<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Addmember.aspx.cs" Inherits="Addmember" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>会员注册页面</title>
</head>
<body>
<form id="form1" runat="server">
   <div>
     <asp:Panel ID="Panel1" runat="server">
        <table align="center" cellpadding="0" cellspacing="0" style="border: 2px groove #FF3300;width: 350px; height: 370px;">
            <tr>
                <td align="center" colspan="2" style="font-size: 20px; color: #FFFFFF; font-weight:bold; background-color: #FF6600; height: 50px;">会员注册</td>
            </tr>
            <tr>
                <td align="right">用户名：</td>
                <td align="left">
                    <asp:TextBox ID="txtname" runat="server" Width="82px"/>
                    <asp:RequiredFieldValidator ID="rfvname" runat="server" ControlToValidate="txtname" ErrorMessage="用户名不能为空" SetFocusOnError="True" ValidationGroup="memok">*</asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td align="right" >密码：</td>
                <td align="left">
                    <asp:TextBox ID="txtpwd" runat="server" TextMode="Password"/>
                    <asp:RequiredFieldValidator ID="rfvpws" runat="server" ControlToValidate="txtpwd" ErrorMessage="密码不能为空" SetFocusOnError="True" ValidationGroup="memok">*</asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td align="right">确认密码：</td>
                <td align="left">
                    <asp:TextBox ID="txtpwd2" runat="server" TextMode="Password"/>
                    <asp:RequiredFieldValidator ID="rfvpws2" runat="server" ControlToValidate="txtpwd2" ErrorMessage="确认密码不能为空" SetFocusOnError="True" ValidationGroup="memok">*</asp:RequiredFieldValidator>
                    <asp:CompareValidator ID="cvpwd2" runat="server" ControlToCompare="txtpwd" ControlToValidate="txtpwd2" ErrorMessage="两次必须一致" SetFocusOnError="True" ValidationGroup="memok">*</asp:CompareValidator>
                </td>
            </tr>
            <tr>
                <td align="right">性别：</td>
                <td align="left">
                    <asp:RadioButtonList ID="rbtlsex" runat="server" RepeatDirection="Horizontal">
                        <asp:ListItem>男</asp:ListItem>
                        <asp:ListItem>女</asp:ListItem>
                    </asp:RadioButtonList>
                </td>
            </tr>
            <tr>
                <td align="right">出生日期：</td>
                <td align="left">
                    <asp:TextBox ID="txtdate" runat="server" Width="83px"/>
                    <asp:ImageButton ID="ibtndate" runat="server" ImageUrl="~/images/图标.JPG" 
                        onclick="ibtndate_Click" style="width: 13px" />
                    <asp:RequiredFieldValidator ID="rfvbir" runat="server" ControlToValidate="txtdate" ErrorMessage="出生日期不能为空" SetFocusOnError="True" ValidationGroup="memok">*</asp:RequiredFieldValidator>
                    <asp:RangeValidator ID="rvbir" runat="server" ControlToValidate="txtdate" ErrorMessage="出生日期为1988年—2008年之间" MaximumValue="2008-12-31" MinimumValue="1988-1-1" Type="Date" ValidationGroup="memok">*</asp:RangeValidator>
                    <asp:Calendar ID="clddate" runat="server" Visible="False" BackColor="#FFFFCC" 
                        BorderColor="#FFCC66" BorderWidth="1px" DayNameFormat="Shortest" 
                        Font-Names="Verdana" Font-Size="8pt" ForeColor="#663399" Height="200px" 
                        onselectionchanged="clddate_SelectionChanged" ShowGridLines="True" 
                        Width="220px">
                        <SelectedDayStyle BackColor="#CCCCFF" Font-Bold="True" />
                        <SelectorStyle BackColor="#FFCC66" />
                        <TodayDayStyle BackColor="#FFCC66" ForeColor="White" />
                        <OtherMonthDayStyle ForeColor="#CC9966" />
                        <NextPrevStyle Font-Size="9pt" ForeColor="#FFFFCC" />
                        <DayHeaderStyle BackColor="#FFCC66" Font-Bold="True" Height="1px" />
                        <TitleStyle BackColor="#990000" Font-Bold="True" Font-Size="9pt" 
                            ForeColor="#FFFFCC" />
                    </asp:Calendar>
                </td>
            </tr>
            <tr>
                <td align="right">最高学历：</td>
                <td align="left">
                    <asp:DropDownList ID="ddlschool" runat="server">
                        <asp:ListItem>研究生</asp:ListItem>
                        <asp:ListItem Selected="True">大学生</asp:ListItem>
                        <asp:ListItem>中学生</asp:ListItem>
                        <asp:ListItem>小学生</asp:ListItem>
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td align="right">个人爱好：</td>
                <td align="left" style="height: 60px">
                    <asp:CheckBoxList ID="chblove" runat="server" RepeatColumns="3" RepeatDirection="Horizontal">
                        <asp:ListItem>唱歌</asp:ListItem>
                        <asp:ListItem>跳舞</asp:ListItem>
                        <asp:ListItem>爬山</asp:ListItem>
                        <asp:ListItem>游泳</asp:ListItem>
                        <asp:ListItem>打球</asp:ListItem>
                        <asp:ListItem>网络游戏</asp:ListItem>
                    </asp:CheckBoxList>
                </td>
            </tr>
            <tr>
                <td align="center" colspan="2">
                  <asp:ImageButton ID="btnOk" runat="server" ImageUrl="~/images/btuok.gif" 
                        onclick="btnOk_Click1" ValidationGroup="memok" />
                  <asp:ImageButton ID="Ibtncancel" runat="server" ImageUrl="~/images/btureset.gif" 
                        onclick="Ibtncancel_Click" />
                    <asp:ValidationSummary ID="vsall" runat="server" ShowMessageBox="True" ShowSummary="False" ValidationGroup="memok" />
                </td>
            </tr>
        </table>
     </asp:Panel>
     <asp:Panel ID="Panel2" runat="server">
        <table align="center" cellpadding="0" cellspacing="0" style="border: 2px groove #FF3300;width: 350px; height: 370px;">
            <tr>
               <td align="center" colspan="2" style="font-size: 20px; color: #FFFFFF; font-weight:bold; background-color: #FF6600; height: 50px;">会员注册</td>
            </tr>
            <tr>
                <td align="right" style="width: 110px">用户名：</td>	
                <td align="left"><asp:Label ID="lblname" runat="server" Text="Label"/></td>
            </tr>
            <tr>
                <td align="right" >密码：</td>
                <td align="left"><asp:Label ID="lblpwd" runat="server" Text="Label"/></td>
            </tr>
            <tr>
                <td align="right">性别：</td>
                <td align="left"><asp:Label ID="lblsex" runat="server" Text="Label"/></td>
            </tr>
            <tr>
                <td align="right">出生日期：</td>
                <td align="left"><asp:Label ID="lbldate" runat="server" Text="Label"/></td>
            </tr>
            <tr>
                <td align="right">最高学历：</td>
                <td align="left"><asp:Label ID="lblschool" runat="server" Text="Label"/></td>
            </tr>
            <tr>
                <td align="right">个人爱好：</td>
                <td align="left" style="height: 60px"><asp:Label ID="lbllove" runat="server"/></td>
            </tr>
            <tr>
                <td align="center" colspan="2"><asp:Button ID="btnclose" runat="server" onclick="btnclose_Click" Text="关闭窗口" /></td>
            </tr>
        </table>
     </asp:Panel>    
   </div>
</form>
</body>
</html>
