<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html" charset="utf-8" />
        <title>纵横知道·通行证</title>
        <link href="{{rootUrl}}global/css/globalLayout.css" rel="stylesheet" type="text/css" />
        <script src="{{rootUrl}}global/js/jquery-1.7.2.min.js"></script>
        <script src="{{rootUrl}}global/js/jquery.validate.js"></script>
        <script type="text/javascript">
            $(function(){
                $("#setpwdform").validate({
                    rules: {
                        answer: {
                            required: true
                        },
                        newpasswd: {
                            required: true,
                            minlength: 6
                        },
                        repeatnew: {
                            required: true,
                            equalTo: "#newpasswd",
                            minlength: 6
                        }
                    },
                    messages: {
                        answer:{
                            required:"请填写有效邮箱地址"
                        },
                        newpasswd:{
                            required:"请输入密码",
                            minlength: "密码长度不能小于6"
                        },
                        repeatnew:{
                            required:"请重复密码",
                            minlength: "密码长度不能小于6",
                            equalTo: "请输入相同的密码"
                        }
                    },
                    errorElement: "span",// 错误信息容器标签
                    errorClass: "erroT",
                    validClass: "inputSus",
                    onkeyup: false
                });
            });
        </script>
    </head>
    <body>
        <div class="warpBody">
            <div class="header">
                <a href="{{rootUrl}}" title="返回首页" class="logoLink"><div class="logo"></div></a>
            </div>
            <div class="formItem">
                <div class="formBgTop"><div><dl><dd><p class="submitSus">{{messages}}</p></dl></dd></div></div>
                <div class="formBgMiddle clearfix">
                    <h2>设置新密码</h2>
                    <dl  class="regForm">
                        <dt>密码保护问题：<b>{{defquestion}}</b></dt>
                        <form method="post" name="setpwdform" id="setpwdform" action="{{rootUrl}}SetPwd/{{StrAuth}}">
                            <dt>您的答案</dt>
                            <dd><input id="answer" name="answer" class="inputText"></dd>
                            <dt>新密码</dt>
                            <dd><input id="newpasswd" name="newpasswd" type="password" class="inputText"><p class="tips">密码长度为6-16位，可用英文字母、数字、特殊字符。</p></dd>
                            <dt>确认新密码</dt>
                            <dd><input id="repeatnew" name="repeatnew" type="password" class="inputText"></dd>
                            <dd class="clearfix"><br><br><input type="submit"  id="buttonsubmit" name="setpwdsubmit" class="button btn-orange " value="完成" /></dd>
                                        </form>
                                        </dl>
                                        </div>
                                        <div class="formBgBottom"></div>
                                        </div>
                                        <div class="footer">
                                            Copyright@<a href="http://smartcost.com.cn" target="_blank">珠海纵横创新软件有限公司</a> all rights reserved
                                        </div>
                                        </div>
                                        </body>
                                        </html>