<%@ page language="C#" autoeventwireup="true" inherits="Admin_FullAndDiscount_Operate, ShopNum1Deploy" %>

<%@ Register assembly="FredCK.FCKeditorV2" namespace="FredCK.FCKeditorV2" tagprefix="FCKeditorV2" %>

<%@ Register src="UserControl/MemberRankSelect.ascx" tagname="MemberRankSelect" tagprefix="uc1" %>

<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="ShopNum1" %>

<%@ Register src="UserControl/MessageShow.ascx" tagname="MessageShow" tagprefix="uc1" %>

<!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 id="Head1" runat="server">
    <title>Untitled Page</title>
     <link type="text/css" rel="Stylesheet" href="css/index.css" />
    <style type="text/css">

.content {
 
}
.content .contentHeader {
  background-color:#BCC7E0;
  border:solid 1px #4B66A5;
  font-weight:bold;
}

.content .contentMain {
 border-left:solid 1px #4B66A5;
 border-top:solid 0px #4B66A5;
 border-right:solid 1px #4B66A5;
 border-bottom:solid 1px #4B66A5;
} 
        </style> 
    <script type="text/javascript">
    var number =2;
    function change_option(index)
    {
        for (var i = 1; i <= number; i++) 
        {
          document.getElementById('current' + i).className = '';
          document.getElementById('content' + i).style.display = 'none';
        }
        document.getElementById('current' + index).className = 'current';
        document.getElementById('content' + index).style.display = 'block';
    }

    </script>
</head>
<body style="padding:0; background-image: url(images/Bg_right.gif); background-repeat:repeat;">
    <form id="form1" runat="server">   
        <div style="text-align: center;">
            <div id="header">
                <ul>
                    <li id="current1" class="current"><a style="cursor: pointer;" onclick="change_option(1);">
                        <asp:Label runat="server" ID="tab01" Text="活动信息"  /></a></li>
                  
                            <li id="current2"><a style="cursor: pointer;" onclick="change_option(2);">
                         <asp:Label runat="server" ID="tab02" Text="参加会员"  /></a></li>
                </ul>
                <br style="clear: both;" />
            </div>
            <div id="content1" runat="server">
            <!-- 基本信息-->
                <table cellpadding="0" cellspacing="0" border="0" style="width:100%">
            <tr>
                <td align="right" width="20%" >
                    <asp:Label ID="LabelName" runat="server" Text="促销活动名称："></asp:Label>
                    </td>
                <td align="left" >
                    <asp:TextBox ID="TextBoxName" runat="server" CssClass="input2"></asp:TextBox>
                    <font color="red">
                            <asp:Label ID="Label5" runat="server" Text="*"></asp:Label>
                            </font>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidatorName" 
                            runat="server" ControlToValidate="TextBoxName" Display="Dynamic" 
                            ErrorMessage="该值不能为空"></asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidatorName" 
                        runat="server" ControlToValidate="TextBoxName" Display="Dynamic" 
                        ErrorMessage="名称最多50个字符" ValidationExpression="^[\s\S]{0,50}$"></asp:RegularExpressionValidator>
                    </td>
            </tr>
            <tr>
                <td align="right" >
    
                    <asp:Label ID="LabelStartTime" runat="server" Text="活动开始时间："></asp:Label>
                </td>
                <td align="left" >
                    <asp:TextBox ID="TextBoxStartTime" runat="server" CssClass="input2"></asp:TextBox>
                     <img id="imgCalendarStartTime" alt="" src="../images/Calendar.png" 
                                    style="width: 16px; height: 18px;" />
                                      <font color="red">
                                    <asp:Label ID="Label6" runat="server" Text="*"></asp:Label>
                                    </font>
                            <asp:RegularExpressionValidator ID="RegularExpressionValidatorStartTime" 
                            runat="server" ControlToValidate="TextBoxStartTime" Display="Dynamic" 
                            ErrorMessage="时间格式不正确" 
                            
                            ValidationExpression="^\d{4}-(\d{2}|\d{1})-(\d{2}|\d{1})( (\d{2}|\d{1}):(\d{2}|\d{1}):(\d{2}|\d{1}))*"></asp:RegularExpressionValidator>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidatorStartTime" 
                            runat="server" ControlToValidate="TextBoxStartTime" Display="Dynamic" 
                            ErrorMessage="该值不能为空"></asp:RequiredFieldValidator>
                            <ShopNum1:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server" 
                                        EnableScriptGlobalization="True" EnableScriptLocalization="True">
                            </ShopNum1:ToolkitScriptManager>
                            &nbsp;<ShopNum1:CalendarExtender 
                                      ID="CalendarExtender1" runat="server" TargetControlID="TextBoxStartTime" 
                                      PopupButtonID="imgCalendarStartTime" CssClass="ajax__calendar">
                            </ShopNum1:CalendarExtender></td>
            </tr>
            <tr>
                <td align="right" >
    
                    <asp:Label ID="LabelEndTime" runat="server" Text="活动结束时间："></asp:Label>
                </td>
                <td align="left" >
                    <asp:TextBox ID="TextBoxEndTime" runat="server" CssClass="input2"></asp:TextBox>
                    <img id="imgCalendarEndTime" alt="" src="../images/Calendar.png" 
                                    style="width: 16px; height: 18px;" />
                                    <font color="red">
                                    <asp:Label ID="Label7" runat="server" Text="*"></asp:Label>
                                    </font>
                        <asp:RegularExpressionValidator ID="RegularExpressionValidatorEndTime" 
                            runat="server" ControlToValidate="TextBoxEndTime" Display="Dynamic" 
                            ErrorMessage="时间格式不正确" 
                            
                            ValidationExpression="^\d{4}-(\d{2}|\d{1})-(\d{2}|\d{1})( (\d{2}|\d{1}):(\d{2}|\d{1}):(\d{2}|\d{1}))*"></asp:RegularExpressionValidator>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidatorEndTime" 
                            runat="server" ControlToValidate="TextBoxEndTime" Display="Dynamic" 
                            ErrorMessage="该值不能为空"></asp:RequiredFieldValidator>
                    <ShopNum1:CalendarExtender 
                                     ID="CalendarExtender2" runat="server" TargetControlID="TextBoxEndTime" 
                         PopupButtonID="imgCalendarEndTime" CssClass="ajax__calendar">
                        </ShopNum1:CalendarExtender>
                </td>
            </tr>
            <tr>
                <td align="right"  >
    
                    <asp:Label ID="LabelMinimalCost" runat="server" Text="满足金额："></asp:Label>
                </td>
                <td align="left"  >
                    <asp:TextBox ID="TextBoxMinimalCost" runat="server" CssClass="input2"></asp:TextBox>
                    <font color="red">
                    <asp:Label ID="Label8" runat="server" Text="*"></asp:Label>
                    </font>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidatorMinimalCost" 
                            runat="server" ControlToValidate="TextBoxMinimalCost" Display="Dynamic" 
                            ErrorMessage="该值不能为空"></asp:RequiredFieldValidator>
                        <asp:RegularExpressionValidator ID="RegularExpressionValidatorMinimalCost" 
                            runat="server" ControlToValidate="TextBoxMinimalCost" Display="Dynamic" 
                            ErrorMessage="输入格式不正确" 
                            
                            ValidationExpression="^[0-9]+(.[0-9]{1,3})?$"></asp:RegularExpressionValidator>
                </td>
            </tr>
            <tr>
                <td align="right" >
    
                    <asp:Label ID="LabelDiscountMode" runat="server" Text="打折方式："></asp:Label>
                </td>
                <td align="left" >
                    <asp:DropDownList ID="DropDownListDiscountMode" runat="server" CssClass="select2">
                        <asp:ListItem Value="-1">-请选择-</asp:ListItem>
                        <asp:ListItem Value="0">折扣率</asp:ListItem>
                        <asp:ListItem Value="1">优惠金额</asp:ListItem>
                    </asp:DropDownList>
                      <font color="red"><asp:Label ID="Label9" runat="server" Text="*"></asp:Label></font>
                    <asp:CompareValidator ID="CompareValidatorDiscountMode" runat="server" 
                            ControlToValidate="DropDownListDiscountMode" Display="Dynamic" ErrorMessage="该值必需选择" 
                            Operator="NotEqual" ValueToCompare="-1"></asp:CompareValidator>
                </td>
            </tr>
            <tr>
                <td align="right"  >
    
                    <asp:Label ID="LabelNumber" runat="server" Text="折扣值："></asp:Label>
                </td>
                <td align="left" >
                    <asp:TextBox ID="TextBoxNumber" runat="server" CssClass="input2"></asp:TextBox>
                      <font color="red"><asp:Label ID="Label10" runat="server" Text="*"></asp:Label></font>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidatorEndTime1" 
                            runat="server" ControlToValidate="TextBoxNumber" Display="Dynamic" 
                            ErrorMessage="该值不能为空"></asp:RequiredFieldValidator>
                        <asp:RegularExpressionValidator ID="RegularExpressionValidatorMinimalCost0" 
                            runat="server" ControlToValidate="TextBoxNumber" Display="Dynamic" 
                            ErrorMessage="输入格式不正确" 
                            
                            ValidationExpression="^[0-9]+(.[0-9]{1,3})?$"></asp:RegularExpressionValidator>
                </td>
            </tr>
                            <tr>
                <td align="right" >
    
                    <asp:Label ID="LabelDescription" runat="server" Text="活动描述："></asp:Label>
                </td>
                <td align="left" >
                    <asp:TextBox ID="TextBoxDescription" runat="server" width="440" Height="60"
                        TextMode="MultiLine"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                <td align="right" >
    
                    <asp:Label ID="LabelOrderID" runat="server" Text="排序号："></asp:Label>
                </td>
                <td align="left" >
                    <asp:TextBox ID="TextBoxOrderID" runat="server" CssClass="input2"></asp:TextBox>
                                  <font color="red"><asp:Label ID="Label11" runat="server" Text="*"></asp:Label></font>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidatorOrderID" 
                            runat="server" ControlToValidate="TextBoxOrderID" Display="Dynamic" 
                            ErrorMessage="该值不能为空"></asp:RequiredFieldValidator>
                        <asp:RegularExpressionValidator ID="RegularExpressionValidatorOrderID" 
                            runat="server" ControlToValidate="TextBoxOrderID" Display="Dynamic" 
                            ErrorMessage="输入格式不正确" 
                            
                            ValidationExpression="^[0-9]*$"></asp:RegularExpressionValidator>
                                </td>
                            </tr>
                            <tr>
                <td align="right" >
    
                    <asp:Label ID="LabelIsAllowFavourTicket" runat="server" Text="是否可以同时使用优惠券："></asp:Label>
    
                </td>
                <td align="left" >
                    <asp:CheckBox ID="CheckBoxIsAllowFavourTicket" runat="server" Text="是" />
                                </td>
                            </tr>
            <tr>
                <td align="right" >
    
                    <asp:Label ID="LabelIsUsed" runat="server" Text="是否启用："></asp:Label>
    
                    </td>
                <td align="left">
                    <asp:CheckBox ID="CheckBoxIsUsed" runat="server" Text="是" 
                        oncheckedchanged="CheckBoxIsUsed_CheckedChanged" />
                    </td>
            </tr>
        </table>
            </div>


               
            <%--<div id="content2" runat="server" align="left">--%>
              <div id="content2" runat="server" style="display: none;">
            <!-- 相关会员 -->
                <asp:Label ID="LabelCMemberRank"  runat="server" Text="会员等级："></asp:Label>
                <asp:CheckBoxList ID="CheckBoxListMemberRank" runat="server"  
                    RepeatDirection="Horizontal">
                </asp:CheckBoxList>
                            <asp:Label ID="Label2" runat="server" Text="*" ForeColor="red"></asp:Label>
                            <asp:Label ID="LabelMemberRank" runat="server" Text="该值必须选择" 
                    ForeColor="Red"></asp:Label>
            </div>
        <div style="background-color:#EEEEEE; " class="btconfig">
    
            <asp:Button ID="ButtonConfirm" runat="server" Text="确定" 
                onclick="ButtonConfirm_Click" ToolTip="Submit" CssClass="bt2" />
<input id="inputReset" runat="server" type="reset" value="重置" onclick="return inputReset_onclick()" class="bt2" />
                
        <uc1:MessageShow ID="MessageShow" runat="server" Visible="False" />
    
            <br />
        </div>
        </div>
    <asp:HiddenField ID="hiddenFieldGuid" runat="server" Value="0" />
    </form>
</body>
</html>
