<%@ Page Language="c#" Codebehind="PromotionActivity.aspx.cs" AutoEventWireup="true" Inherits="XpShop.Manage.PromotionActivity" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<!--#include file="../inc/head2.inc"-->
	    <title>PromotionActivity</title>
	    <script src="inc/PromotionActivity.function.js" type="text/javascript"></script>
	    <script src="inc/ui.datepicker.cn.js" type="text/javascript"></script>
        <script src="inc/PromotionActivity.ready.js" type="text/javascript"></script>
        <script src="inc/PageBar.js" type="text/javascript"></script>
        <script type="text/javascript" src="../inc/commond.js"></script>
		
		<link type="text/css" rel="stylesheet" href="inc/ui.datepicker.css" />
		<style type="text/css">
		    .c1{width:4%;}
            .c2{width:18%;}
            .c3{width:5%;margin:0px;padding:0px;}
            .c4{width:10%;}
            .c5{width:10%;}
            .c6{width:30%;}
            .c7{width:6%;}
            .c8{width:6%;margin:0px;padding:0px;}
            
            .cc1{width:10%;}
            .cc2{width:10%;}
            .cc3{width:10%;}
            .cc4{width:30%;}
            .cc5{width:40%;}
		</style>
	</head>
	<body>
	    <div class="container">
		<div class="sub_container">
		<div class="sub_container_title"><a href="<%=AdminDefault%>" target="_top">桌面</a><img alt="" src="../images/admin_title.jpg" height="9px" width="8px" align="absmiddle" />促销活动管理</div>
		<form id="Form1" method="post" runat="server">
		    <% if (Request.QueryString["Action"] != "Add" && Request.QueryString["Action"] != "Modify") { %>
		        <%--添加活动--%>
		        <div id="rule" style="display:none;">
		            <div style="border:solid 2px #6b94ad;background-color:White;">
		                <table width="100%">
    		                <tr style="background-color:White;">
    		                    <td colspan="6"><input type="button" id="btnAddRule" class="inputbtn" value="添加促销规则"/>&nbsp;&nbsp;
    		                        <input type="button" id="btnDeleteRule" class="inputbtn" value="删除规则"/>
    		                    </td>
    		                </tr>
    		                <tr style="background-color:#E3EAEE;">
    		                    <th class="cc1 ccenter"><input type="checkbox" id="chkRuleAll" name="chkRuleAll" /></th>
    		                    <th class="cc1 ccenter">操作</th>
    		                    <th class="cc2 ccenter">起始时间</th>
    		                    <th class="cc3 ccenter">截止时间</th>
    		                    <th class="cc4 ccenter">规则描述</th>
    		                    <th class="cc5 ccenter"></th>
    		                </tr>
		                </table>
		                <table id="ruledatas" width="100%" cellspacing="0" cellpadding="0" class="llist">
		                    <tr id="ruletemplate" style="display:none;background-color:White;">
    		                    <td class="cc1 ccenter" id="rulecheckbox"></td>
    		                    <td class="cc1 ccenter" id="ruleOperate"></td>
    		                    <td class="cc2 ccenter" id="ruleTimeBegin"></td>
    		                    <td class="cc3 ccenter" id="ruleTimeEnd"></td>
    		                    <td class="cc4" id="ruleDescription"></td>
    		                    <td class="cc5">&nbsp;</td>
    		                </tr>
		                </table>
		            </div>
		        </div>
		        <div class="sub_container_operation">
		            <table width="100%">
		                <tr>
			                <td>
			                    <input type="button" id="btnAdd" name="btnAdd" value="添加活动" class="inputbtn" />
				                <input type="button" id="btnDelete" name="btnDelete" value="删除活动" class="inputbtn" />
			                </td>
			                <td align="center" style="visibility:hidden;">
				                
				            </td>
		                </tr>
		            </table>
		        </div>
		        <div class="sub_container_listhead" style="padding:0px;">
                    <table cellspacing="0" cellpadding="0" class="llist">
                        <tr id="listhead"><%--id="listhead不能少"--%>
	                        <th class="c1"><input type="checkbox" id="chkAll" name="chkAll" /></th>
	                        <th class="c2">活动名称</th>
	                        <th class="c3">是否发布</th>
	                        <th class="c4">起始时间</th>
	                        <th class="c5">截止时间</th>
	                        <th class="c6">详细描述</th>
	                        <th class="c7 Modify">修改</th>
	                        <th class="c8">删除</th>               
	                    </tr>
                    </table>           
                </div>
		        <div class="sub_container_content" style="padding:0px;">
			        <table id="datas" cellspacing="0" cellpadding="0" class="llist">
				        <tr id="template" style="display:none;"><%--id="template"不能少--%>
					        <td class="c1 ccenter" id="checkbox"></td>
					        <td class="c2" id="ActivityName"></td>
					        <td class="c3 ccenter" id="Status"></td>
					        <td class="c4 ccenter" id="TimeBegin"></td>
					        <td class="c5 ccenter" id="TimeEnd"></td>
					        <td class="c6" id="Description"></td>
					        <td class="c7 ccenter" id="Modify"></td>
					        <td class="c8 ccenter" id="Delete"></td>
				        </tr>
			        </table>
		        </div>
		        <div class="sub_container_page" id="pageDataList1_Pager">
	                <!-- 翻页-->
	                <!-- 翻页结束-->
		        </div>
		        
		        
		        <%--添加活动End--%>
		    <%}else{ %>
		        <%--添加或修改--%>
		        <div class="sub_container_content">
		            <div class="frame">
						<div class="frame_title">基本信息</div>
						<div class="frame_content">
							<table cellspacing="0" cellpadding="0" class="ptable">
								<tr>
									<th class="tl">促销活动名称：</th>
									<td class="tr">
										<asp:TextBox ID="txtPromotionActivityName" runat="server"></asp:TextBox> <font color="#FF3300">*</font>
									</td>
								</tr>
								<tr>
									<th class="tl">是否发布：</th>
									<td class="tr">
									    <asp:RadioButton ID="rbtnStatusNo" runat="server" Text="是" Checked="true" GroupName="Status" />
                                        <asp:RadioButton ID="rbtnStatusOff" runat="server" Text="否" GroupName="Status" />
                                    </td>
								</tr>
								<tr>
									<th class="tl">活动开始时间：</th>
									<td class="tr">
									    <asp:TextBox ID="txtTimeBegin" runat="server" Width="120px" Height="18px" style="line-height:18px;background-image:url(../images/calendar.gif);background-repeat:no-repeat;padding-left:20px;" ReadOnly="true"></asp:TextBox> <font color="#FF3300">*</font>
                                    </td>
								</tr>
								<tr>
									<th class="tl">结束时间：</th>
									<td class="tr">
									    <asp:TextBox ID="txtTimeEnd" runat="server" Width="120px" Height="18px" style="line-height:18px;background-image:url(../images/calendar.gif);background-repeat:no-repeat;padding-left:20px;" ReadOnly="true"></asp:TextBox> <font color="#FF3300">*</font>
                                    </td>
								</tr>
								<tr>
									<th class="tl">描述信息：</th>
									<td class="tr">
									    <asp:TextBox ID="txtDescription" runat="server" TextMode="MultiLine" Columns="50" Rows="5"></asp:TextBox>
                                    </td>
								</tr>
								<tr>
									<th class="tl"></th>
									<td class="tr">
									    <asp:Button ID="btnSave" OnClick="btnSave_Click" runat="server" Text="完 成" CssClass="inputbtn"/>
                                    </td>
								</tr>									
							</table>
							
							
						</div>
					</div>
		        </div>
                <%--添加或修改End--%>
		    <%} %>
		</form>
		</div>
		</div>
	</body>
</html>
