<%@ page language="C#" autoeventwireup="true" inherits="Admin_MemberGroup_Operate, ShopNum1Deploy" %>
<%@ Register src="UserControl/MemberSelect.ascx" tagname="MemberSelect" tagprefix="uc1" %>

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

<!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="30%">
                    <asp:Label ID="LabelName" runat="server" Text="会员组名称："></asp:Label>
                    </td>
                <td align="left" >
                    <asp:TextBox ID="TextBoxName" runat="server" CssClass="input2"></asp:TextBox>
                            <asp:Label ID="Label1" runat="server" Text="*" ForeColor="red"></asp:Label>
                            <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="LabelDescription" runat="server" Text="会员组描述："></asp:Label>
                </td>
                <td align="left">
                    <asp:TextBox ID="TextBoxDescription" runat="server" Height="60px" 
                        TextMode="MultiLine" Width="440"></asp:TextBox>
                            <asp:Label ID="Label2" runat="server" Text="*" ForeColor="red"></asp:Label>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidatorDescription" 
                            runat="server" ControlToValidate="TextBoxDescription" Display="Dynamic" 
                            ErrorMessage="该值不能为空"></asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidatorName0" 
                        runat="server" ControlToValidate="TextBoxDescription" Display="Dynamic" 
                        ErrorMessage="描述最多500个字符" ValidationExpression="^[\s\S]{0,500}$"></asp:RegularExpressionValidator>
                    <br />
                </td>
            </tr>
         
        </table>
            </div>
<br />

            <!-- *******************发送对象******************* -->         
            <%--<div id="content2" runat="server" align="left">--%>
             <div id="content2" runat="server" style="display: none;">
                <uc1:MemberSelect ID="MemberSelect1" runat="server" />
        </div>
        
         <div style="background-color:#EEEEEE;height:28px">
    
            <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"/>
                <a href="MemberGroup_List.aspx"><img src="images/back.png" border="0" align="top" /></a>
                       <ShopNum1:MessageShow ID="MessageShow" runat="server" Visible="False" />
    
            <br />
        </div>
        </div>
    <asp:HiddenField ID="hiddenFieldGuid" runat="server" Value="0" />
    </form>
</body>
</html>
