<!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 type="text/javascript" src="{{rootUrl}}global/js/global.js"></script>
        <script src="{{rootUrl}}global/js/jquery.validate.min.js"></script>
        <script type="text/javascript">
            $(function(){
                $("#chpasswd").validate({
                    rules: {
                        oldpwd: {
                            required: true,
                            minlength: 6
                        },
                        newpwd: {
                            required: true,
                            minlength: 6
                        },
                        newpwdrepeat: {
                            required: true,
                            equalTo: "#newpwd",
                            minlength: 6
                        },
                        answer: {
                            required: true
                        }
                    },
                    messages: {
                        oldpwd: {
                            required:"请输入旧密码",
                            minlength: "密码长度不能小于6"
                        },
                        newpwd: {
                            required:"请输入新密码",
                            minlength: "密码长度不能小于6"
                        },
                        newpwdrepeat: {
                            required:"请重复输入新密码",
                            minlength: "密码长度不能小于6",
                            equalTo: "请输入相同的新密码"
                        },
                        answer: {
                            required:"请输入您的答案"
                        }
                    },
                    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 class="loginInfo fR">
                    <div class="avtraLogin">
                        <a href="#" class="avtraInfo"><span class="avtraName">{{name}}</span><span class="avtraFace"><img src="{{rootUrl}}global/img/avatra48.png" width="32"></span></a>
                        <div class="loginInfoMenu" style="display:none">
                            <div class="loginInfoMenuArrow"><span></span></div>
                            <div class="loginInfoMenuBox">
                                <ul class="clearfix">
                                    <li><a href="{{rootUrl}}profile">我的资料</a></li>
                                    <li><a href="{{rootUrl}}changeMail">更换邮箱</a></li>
                                    <li><a href="{{rootUrl}}chpasswd">修改密码</a></li>
                                    <li><a href="{{rootUrl}}deposit">账户充值</a></li>
                                    <li><a href="#">余额提现</a></li>
                                    <li><a href="{{rootUrl}}logout">退出登录</a></li>
                                </ul>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="formItem">
                <div class="formBgTop"></div>
                <div class="formBgMiddle clearfix">
                    <h2>修改密码</h2>
                    <dl class="regForm">
                        <form method="post" name="chpasswd" id="chpasswd">
                            <dt>旧密码</dt>
                            <dd><input id="oldpwd" name="oldpwd" type="password" class="inputText {{erroT}}" />{{erroTxt}}</dd>
                            <dt>新密码</dt>
                            <dd><input id="newpwd" name="newpwd" type="password" class="inputText" /></dd>
                            <dt>确认新密码</dt>
                            <dd><input id="newpwdrepeat" name="newpwdrepeat" type="password" class="inputText" /></dd>
                            <dt>密码保护问题：<b>{{defquestion}}</b></dt>
                            <dd><input id="answer" name="answer" class="inputText {{aerroT}}" />{{aerroTxt}}</dd>
                            <dd class="clearfix"><br><input type="submit" name="subchpwd" value="确认修改"  class="button btn-orange " /></dd>
                        </form>
                    </dl>
                </div>
                <div class="formBgBottom"></div>
            </div>
            <!-- include 'footer' -->
        </div>
    </body>
</html>