<!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>
    <title>找回密码-{config.sitetitle}</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link href="{config.templatetheme}/css/about.css" rel="stylesheet" type="text/css" />
    <script language="JavaScript" src="{config.templatetheme}/js/jquery.js"></script>
    <script type="text/javascript" src="{config.templatetheme}/js/Job_Summary.js"></script>
    <script language="JavaScript" src="{config.templatetheme}/js/jquery.validate.min.js"></script>
    <script language="JavaScript" src="{config.templatetheme}/js/jquery.form.js"></script>
    <script>
        function dshow(obj, sType) {
            var oDiv = document.getElementById(obj); if (sType == 'show') { oDiv.style.display = 'block' }
            if (sType == 'hide') { oDiv.style.display = 'none' }
        }
        function ChangeCode(obj, codeurl) {
            $(obj).attr("src", codeurl + "?time=" + Math.random());
        }

        $(document).ready(function () {
            $("#form1").validate({
                success: function (label) {
                    label.text(" ").addClass("success")
                },
                rules: {
                    txtemail: {
                        required: true,
                        email: true
                    },
                    txtusername: {
                        required: true

                    },
                    valicode: {
                        required: true,
                        remote: {
                            url: "/ajax/reg.ashx",
                            type: "post",
                            data: { "valicode": function () { return $("#valicode").val() }, "act": "check_valicode" }
                        }
                    }

                },
                messages: {
                    txtemail: {
                        required: "请填写注册时的邮箱",
                        email: jQuery.format("电子邮箱格式错误")
                    },
                    txtusername: {
                        required: "请填写您的用户名"

                    },
                    valicode: {
                        required: "请输入验证码",
                        remote: jQuery.format("验证码输入错误")
                    }

                },
                errorPlacement: function (error, element) {
                    if (element.is(":radio")) error.appendTo(element.parent().next().next());
                    else if (element.is(":checkbox")) error.appendTo(element.next());
                    else error.appendTo(element.parent())
                }
            })
        }); 
    </script>
</head>
<body>
    <%template src=/_head.html/%>
    <div class="getpass">
        <div class="title_hui_noline">
            <h3>
                找回密码</h3>
        </div>
        <div class="td1">
            <h5>
                <span class="ico_denglu"></span>密码取回流程：①输入您的账号 → ②我们会将账号和密码发送到您的电子邮箱！<br />
                <span class="ft_red">如果通过此页面也未能取得密码的话，可与客服人员联系，客服电话：{config.sitetel}</span></h5>
            <form method="post" name="form1" id="form1" action="">
            <p>
                您的用户名：<input type="text" name="txtusername" id="txtusername" class="input" style="width: 220px"
                    cnname="用户名"></p>
            <p>
                注册的邮箱：<input type="text" name="txtemail" id="txtemail" class="input" style="width: 220px"
                    cnname="发送邮箱" />
                <input type="hidden" name="type" value="c">
            </p>
            <p>
                <span>验证码：</span>
                <input name="valicode" id="valicode" type="text" class="input" size="8" runat="server" />
                <img id="piccode" src="/ajax/verify_code.ashx" width="70" height="22" alt="点击切换验证码"
                    title="点击切换验证码" style="margin-top: 2px; vertical-align: top; cursor: pointer;"
                    onclick="ChangeCode(this, '/ajax/verify_code.ashx');return false;" />&nbsp;&nbsp;
                <a onclick="ChangeCode('#piccode', '/ajax/verify_code.ashx');return false;" href="javascript:void()"
                    class="a_blue"><u>看不清，换一个</u></a></p>
            <p style="margin-left: 66px">
                <input type="submit" name="btnlogin" id="btnlogin" class="btn_000" value="立即找回密码">
            </p>
            </form>
        </div>
    </div>
    <!-- foot -->
    <div class="clear">
    </div>
    <%template src=/_foot.html/%>
</body>
</html>
