<%@ Page Language="c#" Inherits="Web.retake" CodeBehind="retake.aspx.cs" %>

<!DOCTYPE html>
<html>
<head>
    <title>忘记密码?</title>
    <link href="../css/site.css" rel="stylesheet" type="text/css" />

    <script type="text/javascript" src="../Js/jquery.js"></script>

    <script type="text/javascript" src="../Js/validate.js" charset="utf-8"></script>

    <script type="text/javascript">
    function checkAll()
    {
        //验证
        if (checkAllValidate())
        {
            return true ;
        }
        else
        {
            return false ;
        }
    }
    </script>

</head>
<body>
    <form method="post" runat="server">
    <div class="wrapper">
        <div class="main">
            <div class="hd">
                <h1>
                    <asp:Label ID="webname" runat="server" Text=""></asp:Label></h1>
            </div>
            <div class="bd retake">
                <div class="bd_inner">
                    <asp:Panel ID="userPanel" runat="server" CssClass="step01-content">
                        <b>密码遗失处理：</b> <span class="step"><a class="step01 cur">1.输入用户名</a><a class="step02">2.回答问题</a><a
                            class="step03">3.找回密码</a></span>
                        <div class="step-content">
                            <label>
                                输入遗失密码的用户名</label>
                            <asp:TextBox ID="name" runat="server" notNull="true" msgName="用户名" MaxLength="25"
                                CssClass="userName"></asp:TextBox>
                            <asp:Label ID="errorName" runat="server" ForeColor="Red" Visible="False">用户名不存在！</asp:Label>
                        </div>
                    </asp:Panel>
                    <asp:Panel ID="questionPanel" runat="server" Visible="False" CssClass="step02-content">
                        <b>密码遗失处理：</b> <span class="step"><a class="step01">1.输入用户名</a><a class="step02 cur">2.回答问题</a><a
                            class="step03">3.找回密码</a></span>
                        <div class="step-content">
                            <p>
                                <label>
                                    用户名：</label><label><asp:Label ID="userLabel" runat="server"></asp:Label></label></p>
                            <p>
                                <label>
                                    提&nbsp;&nbsp;示：</label><label><asp:Label ID="question" runat="server"></asp:Label></label></p>
                            <p>
                                <label>
                                    答&nbsp;&nbsp;案：</label>
                                <asp:TextBox ID="answer" runat="server" notNull="true" msgName="答案" MaxLength="25"
                                    CssClass="answer"></asp:TextBox>
                                <asp:Label ID="error" runat="server" ForeColor="Red" Visible="False">回答错误！</asp:Label></p>
                        </div>
                    </asp:Panel>
                    <asp:Panel ID="resultPanel" runat="server" Visible="False" CssClass="step03-content">
                        <b>密码遗失处理：</b> <span class="step"><a class="step01">1.输入用户名</a><a class="step02">2.回答问题</a><a
                            class="step03 cur">3.找回密码</a></span>
                        <div class="step-content">
                            <asp:Label ID="result" runat="server">密码已发送到您注册时的邮箱，请查收！</asp:Label>
                            【<a onclick="window.close();" href="#">关闭窗口</a>】
                        </div>
                    </asp:Panel>
                </div>
                <div class="ft_btn">
                    <asp:Button ID="back" runat="server" Text="上一步" Enabled="False" OnClick="back_Click"
                        CssClass="grey_button"></asp:Button>
                    <asp:Button ID="next" runat="server" Text="下一步" OnClick="next_Click" OnClientClick="return checkAll();"
                        CssClass="grey_button"></asp:Button>
                </div>
            </div>
        </div>
    </div>
    <div align="center">
        <asp:Label ID="key" runat="server" Visible="False"></asp:Label>
        <asp:Label ID="email" runat="server" Visible="False"></asp:Label>
    </div>
    </form>
</body>
</html>
