<%@ Control Language="C#" AutoEventWireup="true" CodeFile="reg.ascx.cs" Inherits="regiser_reg" %>
<script language=javascript>
<!--
function show()
{
if(document.getElementById("pan").style.display=="none")
{
document.getElementById("pan").style.display="block";
}else
{
document.getElementById("pan").style.display="none";
}
}
-->
</script>

<div style="text-align:center">
    <asp:Panel ID="Panel1" runat="server"  Width="357px" >
        <div style="width: 458px; text-align: center">
            <asp:Label ID="Label5" runat="server" Text="您必须同意一下协议……" Width="316px"></asp:Label><br />
            <asp:TextBox ID="txt" runat="server" Columns="60" TextMode="MultiLine" Rows="30" Font-Names="宋体" style=" word-wrap:break-word; text-align: left;"></asp:TextBox><br />
            &nbsp;<input id="Button5" style="width: 61px" type="button" value="不同意" onclick="javascript:return window.open('Default.aspx','_self')" />
            &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<asp:Button ID="Button4" runat="server"
                Text="同意" Width="61px" OnClick="Button4_Click" CausesValidation="False" />
        </div>
    </asp:Panel>
    <asp:Panel ID="Panel2" runat="server"  Width="125px">
<table align=center style="margin-top:0; width: 556px; ">
    <tr>
        <td  valign=top align="center">
            <asp:ScriptManager ID="ScriptManager1" runat="server">
            </asp:ScriptManager>
            <img src="images/dz.gif" />&nbsp;&nbsp;&nbsp;

                    <table align=right>
    <tr>
        <td  style="text-align: right; " valign="top">
            <asp:Label ID="Label1" runat="server" Text="用户名：" ></asp:Label></td>
        <td  valign=top style="color: #ff3333; text-align: left; padding-top:0px;">
           
            <asp:TextBox ID="uidTxt" runat="server" BackColor="#FFFFC0"></asp:TextBox><font color=red>*</font>
                    <asp:CustomValidator
                ID="conval" runat="server" ControlToValidate="uidTxt" ErrorMessage="此用户已经被注册!"
                OnServerValidate="CustomValidator1_ServerValidate"></asp:CustomValidator>
            <asp:RequiredFieldValidator ID="valuid" runat="server" ControlToValidate="uidTxt"
                Display="Dynamic" ErrorMessage="请填写用户名！" SetFocusOnError="True"></asp:RequiredFieldValidator>
   
        </td>
    </tr>
     <tr>
        <td  valign=top style="text-align: right;">
            <asp:Label ID="Label8" runat="server" Text="真实姓名：" Height="1px" Width="83px"></asp:Label></td>
        <td  valign=top style="color: #ff3333; text-align: left;" align="center">
            <asp:TextBox ID="relname" runat="server" BackColor="#FFFFC0"></asp:TextBox></td>
    </tr>
    <tr>
        <td  valign=top style="text-align: right;">
            <asp:Label ID="Label2" runat="server" Text="密码：" Width="49px"></asp:Label></td>
        <td  valign=top style="color: #ff3333; text-align: left;">
            <asp:TextBox ID="pwdTxt" runat="server" BackColor="#FFFFC0" TextMode="Password" Width="155px"></asp:TextBox>*&nbsp;
            <asp:RequiredFieldValidator ID="valpwd" runat="server" ControlToValidate="pwdTxt" ErrorMessage="请填写密码！" SetFocusOnError="True"></asp:RequiredFieldValidator></td>
    </tr>
    <tr>
        <td  valign=top style="text-align: right; height: 46px;">
            <asp:Label ID="Label3" runat="server" Text="重复密码："></asp:Label></td>
        <td  valign=top style="color: #ff3333; text-align: left; height: 46px;" align="center">
            <asp:TextBox ID="reTxt" runat="server" BackColor="#FFFFC0" BorderColor="White" TextMode="Password" Width="155px"></asp:TextBox>*<asp:CompareValidator
                ID="valcom" runat="server" ControlToCompare="pwdTxt" ControlToValidate="reTxt" ErrorMessage="两次密码不相同！" SetFocusOnError="True"></asp:CompareValidator><asp:RequiredFieldValidator ID="valre" runat="server" ControlToValidate="reTxt"
                Display="Dynamic" ErrorMessage="请重复密码！" SetFocusOnError="True"></asp:RequiredFieldValidator></td>
    </tr>
</table>
                
            
        </td></tr>
<tr><td  valign=top style="text-align:right">
            <div>
            <div ID="pan" style="display:none">
                <table style="width: 410px; height: 183px">
                    <tr>
                    <td  valign=top align="right">
                        详细地址：</td>
                    <td  valign=top align="left">
                    <asp:TextBox ID="add" runat="server" MaxLength="100" BackColor="White" Width="251px"></asp:TextBox></td>
                    </tr>
                    <tr>
                        <td  valign=top style=" text-align: right;">
                            <asp:Label ID="Label4" runat="server" Text="邮政编码:"></asp:Label>
                            </td>
                        <td  valign=top style="text-align: left;">
                            <asp:TextBox ID="post" runat="server" BackColor="White"></asp:TextBox>
                            <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="post"
                                ErrorMessage="格式不正确" ValidationExpression="\d{6}"></asp:RegularExpressionValidator></td>
                            </tr>
                    <tr>
                        <td  valign=top style="text-align: right;">
                            邮箱:</td>
                        <td  valign=top style="text-align: left; ">
                            <asp:TextBox ID="mail" runat="server" BackColor="White"></asp:TextBox>
                            <asp:RegularExpressionValidator ID="emailval" runat="server" ControlToValidate="mail" ErrorMessage="格式不符合规范!" SetFocusOnError="True" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"
                                Width="127px"></asp:RegularExpressionValidator></td>
                    </tr>
                    <tr>
                        <td  valign=top style="text-align: right;">
                            电话:</td>
                        <td  valign=top style="text-align: left;">
                            <asp:TextBox ID="phone" runat="server" MaxLength="20" BackColor="White"></asp:TextBox></td>
                    </tr>
                    <tr>
                        <td  valign=top colspan=2 style="text-align: left">
                            &nbsp;安全问题:</td>
                       
                    </tr>
                    <tr>
                        <td  valign=top style="text-align: right;">
                            <asp:Label ID="Label6" runat="server" Text="提问:"></asp:Label></td>
                        <td  valign=top style="text-align: left;">
                            <asp:TextBox ID="que" runat="server" MaxLength="20" BackColor="White"></asp:TextBox></td>
                    </tr>
                    <tr>
                        <td  valign=top style=" text-align: right;">
                            <asp:Label ID="Label7" runat="server" Text="回答:"></asp:Label></td>
                        <td  valign=top style=" text-align: left;">
                            <asp:TextBox ID="ans" runat="server" MaxLength="20" BackColor="White"></asp:TextBox></td>
                    </tr>
                    
                   
                </table>
            </div></div>
    <table>
        <tr>
            <td  valign=top style=" text-align: center; width: 521px;" align="center">
    <table>
        <tr>
            <td  valign=top style=" text-align: center">
                <asp:Button ID="Button2" runat="server" Text="取消" Width="69px" CausesValidation="False" PostBackUrl="~/Default.aspx" BackColor="MistyRose" BorderColor="Gainsboro" /></td>
            <td  valign=top style="width: 100px;  text-align: center">
                <asp:Button ID="Button3" runat="server" Text="提交" Width="73px" BackColor="MistyRose" BorderColor="LightGray" OnClick="Button3_Click" /></td>
        </tr>
    </table>
            <input ID="Button1" type=button value="详细信息>>" OnClick="return show()" style="width: 518px; border-top-style: none; border-right-style: none; border-left-style: none; height: 18px; background-color: #ffff66; border-bottom-style: none" /></td>
        </tr>
    </table>
        </td>
    </tr>
</table>
    </asp:Panel>
    &nbsp;&nbsp;
</div>

