<%@ Page Language="C#" AutoEventWireup="true" Codebehind="GetPassword.aspx.cs" Inherits="JuSNS.Web.GetPassword" %>

<!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>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title id="ptitle" runat="server">找回密码</title>
    <link href="template/<% Response.Write(JuSNS.Config.UiConfig.SkinStyle); %>/css/base.css" id="skinpath" type="text/css" rel="stylesheet" />
    <script language="javascript" type="text/javascript" src="js/ajax.js"></script>
    <script language="javascript" type="text/javascript" src="js/public.js"></script>

    <script language="javascript" type="text/javascript">
    <!--
    function checkfrm()
    {
        var s = document.getElementById('TxtEmail').value;
        if(s == '' || !s.IsEmail())
        {
            document.getElementById('err_mail').style.display = '';
            document.getElementById('hnt_mail').style.display = 'none';
            return false;
        }
        return true;
    }
    //-->
    </script>
</head>
<body>
    <!--头部-->
    <%=this.GetHtmlShort()%>
    <div id="divhead">
        <%=this.GetHtmlHead()%>
    </div>
    <div id="divbody">
        <div id="body_first">
            <div class="body_menu">
                <%=this.GetHtmlLeft()%>
            </div>
        </div>
        <div id="body_sec">
            <div id="body_mid">
                <div class="body_frame">
                    <div class="body_sec_all">
                        <div class="spline">
                        </div>
                        <%if (flag == 2)
                          { %>
                        <div class="msg-error">
                            <%# errmsg%>
                        </div>
                        <%} %>
                        <div class="content">
                            <%if (flag == 1)
                              {%>
                            <div class="font14 bold content">查阅邮件重设密码</div>
                            <div class="content">
                                已经向您的 <strong class="reshow">
                                    <% =email %>
                                </strong>发送了密码信息，请查收！</div>
                            <div class="content">
                                请进入你的收件箱，找到来自<%# JuSNS.Config.UiConfig.SiteName%>的邮件，点击邮件中的链接以重设你的密码。</div>
                            <%}
                              else
                              { %>
                            <form id="frmfecth" method="post" action="GetPassword.aspx">
                                <div class="font14 bold content">
                                    重设密码</div>
                                <div class="spline">
                                </div>
                                <div class="content" style="height: 30px;">
                                    <label class="f-label" for="email">
                                        Email</label>
                                    <input type="text" name="TxtEmail" class="f-text" style="width:180px;" id="TxtEmail" value="<%# email%>" />
                                    <span class="reshow" id="err_mail" style="display: none;">请输入有效的 Email</span> <span
                                        id="hnt_mail" class="hint">你的用来登录的 Email 地址</span>
                                </div>
                                <div class="content" style="height: 30px;">
                                    <label class="f-label" for="captcha">
                                        验证码</label>
                                    <input type="text" name="TxtVerify" class="f-text" id="TxtVerify" />

                                    <script language="javascript" type="text/javascript">
                                       var numkey = Math.random();
                                       numkey = Math.round(numkey*10000);
                                       document.write("<img align=\"adsmiddle\" src=\"inc/code/image.aspx?k="+ numkey +"\" onClick=\"this.src+=Math.random()\" alt=\"点击重新获得验证码\" style=\"cursor:pointer;\" height=\"22\" hspace=\"4\" />");
                                    </script>

                                </div>
                                <div class="content">
                                    <label class="f-label">
                                        &nbsp;</label>
                                    <input type="hidden" name="HidAction" value="Submit" />
                                    <input type="submit" onclick="return checkfrm();" class="f-button" value="重设密码" />
                                </div>
                            </form>
                            <%} %>
                        </div>
                        <div class="spline">
                        </div>
                    </div>
                </div>
                <!--底部-->
                <div class="divbottom">
                    <%=this.GetHtmlFoot() %>
                </div>
            </div>
        </div>
    </div>
</body>
</html>
