<%@ page language="C#" autoeventwireup="true" inherits="RetrievePass, App_Web_retrievepass.aspx.cdcab7d2" enableEventValidation="false" %>

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>网上预约系统</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <link href="/control/plugin/bootstrap3/css/bootstrap.min.css" rel="stylesheet" />
    <script src="/control/js/jquery.js"></script>
    <script src="/control/plugin/bootstrap3/js/bootstrap.min.js"></script>
    <!-- ionicons -->
    <link href="/lib/ionicons/ionicons.min.css" rel="stylesheet" />
    <!-- Animate -->
    <link href="/lib/animate/animate.min.css" rel="stylesheet" />
    <!-- base -->
    <link href="/css/base.css" rel="stylesheet" />
    <!--[if lt IE 9]>
      <script src="/js/html5shiv.min.js"></script>
      <script src="/js/respond.min.js"></script>
    <![endif]-->
</head>
<body>
    <div class="wrapper">
        <nav class="top-nav" style="position: fixed;">
            <div class="nav-header">
                <!--移动模式右侧按钮-->
                <!--logo-->
                <a href="#" class="brand">
                    <img src="/images/logo.png">网上预约平台
                </a>
            </div>
            <div class="nav-container">
                <ul class="navbar-right">
                    <li class="dropdown">
                        <a href="/SysLogin.aspx">
                            <i class="glyphicon glyphicon-share-alt m-right-sm"></i>
                            返回登录页面
                        </a>
                    </li>
                    <!--nav 管理设置-->        
                </ul>
            </div>
        </nav>

        <div class="container">
            <div class="row">
                <div class="col-lg-12">
                    <h3 class="page-header">密码找回<small>回答提问找回密码</small></h3>
                </div>
            </div>
            <div class="row">
                <div class="col-lg-12">
                    <form id="from1" runat="server">

                        <asp:Panel ID="PanelQuestion" runat="server" Visible="true">
                        <div class="panel panel-default">
                            <div class="panel-body">

                                <div class="form-group">
                                    <label class=" control-label">
                                        用户名<span class='rd'>*</span>：</label>
                                    <div>
                                        <asp:Label ID="Label1" runat="server" Font-Size="20px"></asp:Label>
                                    </div>
                                </div>
                                <!-- Add.aspx -->
                                <div class="form-group">
                                    <label class=" control-label">
                                        提问<span class='rd'>*</span>：</label>
                                    <div>
                                        <asp:Label ID="litOldQuestion" runat="server" Font-Size="20px"></asp:Label>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class=" control-label">
                                        回答<span class='rd'>*</span>：</label>
                                    <div>
                                        <asp:TextBox ID="txtOldAnswer" runat="server" MaxLength="100" CssClass="form-control"></asp:TextBox>
                                    </div>
                                    <div>
                                        <asp:RequiredFieldValidator ID="rfvt_pass" runat="server" ForeColor="Red" Display="Dynamic"
                                            ErrorMessage="请填写旧的回答" ControlToValidate="txtOldAnswer">
                                        </asp:RequiredFieldValidator>
                                    </div>
                                </div>

                                <div class="form-group">
                                    <asp:Button ID="btnSubmit" runat="server" Text="找回密码" CssClass="btn btn-block btn-default btn-primary btn-lg" OnClick="btnSubmit_Click" />
                                </div>


                            </div>
                        </div>
                        </asp:Panel>

                        <asp:Panel ID="PanelUpdatePass" runat="server" Visible="false">
                            <div class="panel panel-default">
                                <div class="panel-body">
                                    <!-- Add.aspx -->
                                    <div class="form-group">
                                        <label class=" control-label">
                                            用户名<span class='rd'>*</span>：</label>
                                        <div>
                                            <asp:TextBox ID="txtt_user" runat="server" MaxLength="50" CssClass="form-control"></asp:TextBox>
                                        </div>
                                        <div>
                                            <asp:RequiredFieldValidator ID="rfvt_user" runat="server" ForeColor="Red" Display="Dynamic" ErrorMessage="请填写用户名" ControlToValidate="txtt_user"></asp:RequiredFieldValidator>
                                            <asp:RegularExpressionValidator ID="revtxtu_user" runat="server" ControlToValidate="txtt_user"
                                            ErrorMessage="最少5位（字母和数字@.组合）" ValidationExpression="^[\da-z@.]{5,}$"
                                            ForeColor="Red" Display="Dynamic"></asp:RegularExpressionValidator>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class=" control-label">
                                            密码<span class='rd'>*</span>：</label>
                                        <div>
                                            <asp:TextBox ID="txtt_pass" runat="server" TextMode="Password" MaxLength="100" CssClass="form-control"></asp:TextBox>
                                        </div>
                                        <div>
                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ForeColor="Red" Display="Dynamic" ErrorMessage="请填写密码" ControlToValidate="txtt_pass"></asp:RequiredFieldValidator>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class=" control-label">
                                            密码验证 <span class='rd'>*</span>：
                                        </label>
                                        <div>
                                            <asp:TextBox ID="txtt_pass2" runat="server" TextMode="Password" MaxLength="100" CssClass="form-control"></asp:TextBox>
                                        </div>
                                        <div>
                                            <asp:CompareValidator ID="cbpass" runat="server" ControlToValidate="txtt_pass2" ControlToCompare="txtt_pass" ErrorMessage="两次密码输入不一致" Display="Dynamic" ForeColor="Red"></asp:CompareValidator>
                                        </div>
                                    </div>

                                    <div class="form-group">
                                        <asp:Button ID="btnUpdate" runat="server" Text="保存密码修改" CssClass="btn btn-block btn-default btn-primary btn-lg" OnClick="btnUpdate_Click" />
                                    
                                  
                                                    
                                    
                                    </div>

                                </div>
                            </div>

                        </asp:Panel>


                    </form>
                </div>
            </div>
        </div>

    </div>
</body>
</html>
