<%@ page language="C#" autoeventwireup="true" inherits="disk_login_getPass, App_Web_nfdoxdjf" %>

<!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 runat="server">
    <title>找回密码</title>
</head>
<body style="font-size:14px">
    <div style="width: 900px; margin: 0 auto; border: solid 1px whitesmoke; height: 315px;">
        <h3 style="display: block; height: 25px; color: #696969; background-color: whitesmoke;
            padding: 5px">
            密码重置</h3>
        <form id="form1" runat="server">
            <div style="margin: 0px auto; width: 400px">
                <asp:Panel ID="namePanel" runat="server" Height="62px" Width="398px" Visible="true">
                    <table cellpadding="0" cellspacing="0" border="0">
                        <tr>
                            <td style="width: 84px">
                                用户名：
                            </td>
                            <td style="width: 295px">
                                <asp:TextBox ID="txtUserName" runat="server" Width="255px"></asp:TextBox></td>
                        </tr>
                        <tr>
                            <td style="width: 84px">
                            </td>
                            <td style="width: 295px">
                                <asp:Button ID="btnOk" runat="server" OnClick="btnOk_Click" Text="提交" Width="71px" /></td>
                        </tr>
                    </table>
                </asp:Panel>
                <asp:Panel ID="twPanel" runat="server" Height="62px" Width="398px" Visible="false">
                    <table cellpadding="0" cellspacing="0" border="0">
                        <tr>
                            <td style="width: 84px; height: 24px">
                                密码提问：</td>
                            <td style="width: 295px; height: 24px">
                                <asp:Literal ID="litContent" runat="server"></asp:Literal>
                            </td>
                        </tr>
                        <tr>
                            <td style="width: 84px; height: 24px;">
                                密码回答：</td>
                            <td style="width: 295px; height: 24px;">
                                <asp:TextBox ID="txthd" runat="server" Width="258px"></asp:TextBox></td>
                        </tr>
                        <tr>
                            <td style="width: 84px">
                            </td>
                            <td style="width: 295px">
                                <asp:Button ID="btnSubmit" runat="server" Text="提交" Width="69px" OnClick="btnSubmit_Click" /></td>
                        </tr>
                    </table>
                </asp:Panel>
                
                <asp:Panel ID="updatePanel" runat="server" Height="62px" Width="398px" Visible="false">
                    <table cellpadding="0" cellspacing="0" border="0">
                        <tr>
                            <td height="25" width="150">
                                新密码填写：</td>
                            <td align="left" height="25">
                            </td>
                        </tr>
                    <tr>
                    <td height="25" width="150" align="right">
                        密码<span>*</span>：</td>
                        <td height="25" align="left">
                            <asp:TextBox ID="txtur_pass" runat="server" MaxLength="16" Width="213px" TextMode="Password"></asp:TextBox>&nbsp;
                            <asp:RequiredFieldValidator ID="rfvur_pass" runat="server" ErrorMessage="请填写" ControlToValidate="txtur_pass"></asp:RequiredFieldValidator></td>
                        </tr>
                        <tr>
                            <td align="right" colspan="2" height="25">
                            <asp:RegularExpressionValidator ID="rvfur_pass" runat="server" ErrorMessage="字母开头，长度6-16之间，只能包含字符数字和下划线" 
                            ValidationExpression="^[a-zA-Z]\w{5,15}$" ControlToValidate="txtur_pass"></asp:RegularExpressionValidator></td>
                        </tr>
                    <tr>
                    <td align="right" height="25" width="150">
                        密码验证*：</td>
                    <td align="left" height="25">
                        <asp:TextBox ID="txtPass2" runat="server" Width="213px" TextMode="Password"></asp:TextBox>
                        </td>
                    </tr>
                        <tr>
                            <td align="right" height="25" width="150">
                            </td>
                            <td align="left" height="25">
                        <asp:CompareValidator ID="CompareValidator1" runat="server" ControlToCompare="txtur_pass"
                            ControlToValidate="txtPass2" ErrorMessage="两次密码输入不一致"></asp:CompareValidator></td>
                        </tr>
                        <tr>
                            <td style="width: 84px">
                            </td>
                            <td style="width: 295px">
                                <asp:Button ID="btnUpdate" runat="server" Text="提交" Width="69px" OnClick="btnUpdate_Click" /></td>
                        </tr>
                    </table>
                </asp:Panel>
                
            </div>
        </form>
    </div>
</body>
</html>
