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

<!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('TxtNewPass').value;
        if(s.trim().length < 4)
        {
            document.getElementById('err_pwd').style.display = '';
            document.getElementById('hnt_pwd').style.display = 'none';
            return false;
        }
        else
        {
            document.getElementById('err_pwd').style.display = 'none';
            document.getElementById('hnt_pwd').style.display = '';
        }
        if(s != document.getElementById('TxtVerifyPass').value)
        {
            document.getElementById('err_vary').style.display = '';
            return false;
        }
        else
        {
            document.getElementById('err_vary').style.display = 'none';
        }
        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> 
                            <div class="spline"></div> 
                            <div id="errresetpwd" runat="server" visible="false" class="msg-error">错误的参数！</div>
                            <form method="post" action="restpwd.aspx">
                                <div class="spline"></div> 
                                <div class="spline"></div> 
                                <div class="font14 bold reshow">重设密码</div>
                                <div class="spline"></div> 
                                <div class="content">
                                    <label class="f-label" for="newpass">新密码</label>
                                    <input type="password" name="TxtNewPass" id="TxtNewPass" class="f-text" maxlength="32" /> <span class="reshow" id="err_pwd" style="display: none;">请输入新密码(至少4个字符)</span> <span id="hnt_pwd">最少 4 个字符</span>
                                </div>
                                <div class="content">
                                    <label class="f-label" for="verifypass">重复密码</label>
                                    <input type="password" name="TxtVerifyPass" id="TxtVerifyPass" class="f-text" maxlength="32" /> <span class="reshow" id="err_vary" style="display: none;">两次密码不一致</span>
                                </div>
                                <div class="content">
                                    <label class="f-label">&nbsp;</label>
                                    <input type="hidden" name="Restpwdsemail" value="<%=semail%>" />
                                    <input type="hidden" name="code" value="<%=scode%>" />
                                    <input type="hidden" name="Action" value="Submit" />
                                    <input type="submit" onclick="return checkfrm();" class="f-button" runat="server" id="rpwds" value="重设密码" />
                                </div>
                            <div class="spline"></div> 
                            <div class="spline"></div> 
                            <div class="spline"></div> 
                            </form>
                        </div>
                    </div>
                <!--底部-->
                <div class="divbottom">
                    <%=this.GetHtmlFoot() %>
                </div>
            </div>
        </div>
    </div> 
</body>
</html>