<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="EditPass.aspx.cs" Inherits="JRAPI.Admin.Systematic.EditPass" %>
<%@ Register src="../Controls/SubPageTop.ascx" tagname="SubPageTop" tagprefix="uc1" %>
<uc1:SubPageTop ID="SubPageTop1" runat="server" />
<body>
<div class="subnav">
    <div class="content-menu ib-a blue line-x">
</div>
<style type="text/css">
	html{_overflow-y:scroll}
</style>
<script type="text/javascript">
            $(document).ready(function () {
                $.formValidator.initConfig({ autotip: true, formid: "myform", onerror: function (msg) { } });
                $("#txtOldPassWord").formValidator({ empty: true, onshow: "不修改密码请留空。", onfocus: "密码应该为6-20位之间", oncorrect: "旧密码输入正确" }).inputValidator({ min: 6, max: 20, onerror: "密码应该为6-20位之间" }).ajaxValidator({
                    type: "get",
                    url: "AjaxPassword.aspx",
                    data: "",
                    datatype: "html",
                    async: 'false',
                    success: function (data) {
                        if (data == "1") {
                            return true;
                        }
                        else {
                            return false;
                        }
                    },
                    buttons: $("#btnSubmit"),
                    onerror: "旧密码输入错误",
                    onwait: "请稍候..."
                });
                $("#txtPassWord").formValidator({ empty: true, onshow: "不修改密码请留空。", onfocus: "密码应该为6-20位之间" }).inputValidator({ min: 6, max: 20, onerror: "密码应该为6-20位之间" });
                $("#txtPassWord2").formValidator({ empty: true, onshow: "不修改密码请留空。", onfocus: "请输入两次密码不同。", oncorrect: "密码输入一致" }).compareValidator({ desid: "txtPassWord", operateor: "=", onerror: "请输入两次密码不同。" });
            })
</script>
<div class="pad_10">
<div class="common-form">
<form runat="server" id="myform">
<table width="100%" class="table_form contentWrap">
<tr>
<td width="80">用户ID</td> 
<td>
    <asp:Literal ID="liAdminID" runat="server"></asp:Literal>
</td>
</tr>
<tr>
<td>邮件地址</td> 
<td><asp:Literal ID="liEmail" runat="server"></asp:Literal></td>
</tr>
<tr>
<td>旧密码</td> 
<td><asp:TextBox ID="txtOldPassWord" runat="server" CssClass="input-text" TextMode="Password"></asp:TextBox></td>
</tr>
<tr>
<td>新密码</td>
<td>
<asp:TextBox ID="txtPassWord" runat="server" CssClass="input-text"  TextMode="Password"></asp:TextBox>
</td>
</tr>
<tr>
<td>重复新密码</td>
<td>
<asp:TextBox ID="txtPassWord2" runat="server" CssClass="input-text" TextMode="Password"></asp:TextBox>
</td>
</tr>

</table>
    <div class="bk15"></div>
<asp:Button ID="btnSubmit" runat="server" Text="提交" CssClass="button" 
    onclick="btnSubmit_Click" />
</form>
</div>
</div>
</body>
</html>