<%@ page language="C#" autoeventwireup="true" inherits="e_pwd, ZKCMS" enableviewstatemac="false" enableEventValidation="false" viewStateEncryptionMode="Never" %>

<%@ Register TagName="meta" TagPrefix="UC" Src="~/e/meta.ascx" %>
<%@ Register TagName="head" TagPrefix="UC" Src="~/e/head.ascx" %>
<%@ Register TagName="foot" TagPrefix="UC" Src="~/e/foot.ascx" %>
<!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 runat="server">
    <UC:meta ID="meta1" runat="server" />
</head>
<body>
    <form id="form1" runat="server" autocomplete="off">
    <asp:Label ID="pathcode" runat="server" Style="display: none">
   &nbsp;&raquo;&nbsp;修改密码
    </asp:Label>
    <UC:head ID="head1" runat="server" />
    <%--main start--%>
    <div class="c1">
        <div class="b1">
            <table width="100%" border="0" cellpadding="0" cellspacing="0">
                <tr>
                    <td class="b1_l">
                    </td>
                    <td>
                        <div class="con1">
                            <ul>
                                <li style="width: 90px"><a href="my.aspx">修改个人信息</a></li>
                                <li class="on"><a href="pwd.aspx">修改密码</a></li>
                            </ul>
                            <div class="clear">
                            </div>
                        </div>
                    </td>
                    <td align="right">
                        <div class="con2">
                        </div>
                    </td>
                    <td class="b1_r">
                    </td>
                </tr>
            </table>
        </div>
        <div class="v1">
            <div class="do1">
<asp:HiddenField ID="HiddenField_ID" runat="server" />
                <script type="text/javascript">ContinueMake=1;
function check_pold(){ContinueMake=0;ajax("get",location.href.substring(0,location.href.indexOf(".aspx")+5)+"?act=ajax&value="+base64en(document.getElementById("pold").value)+"&rd="+Math.random(),"",function OnHandler(){if(xmlHttp.readyState == 4){document.getElementById("msg_pold").innerHTML=xmlHttp.responseText;ContinueMake=1;}});}
                
function check(){if(ContinueMake!=1){setTimeout(check,1000);return false;} 
if(document.getElementById("pold").value==""){alert("请输入原密码！");return false;}
if(document.getElementById("msg_pold").innerHTML.indexOf("原密码不正确！")!=-1){alert("原密码不正确！");return false;}  
if(document.getElementById("p").value==""){alert("请输入密码");return false;}
if(document.getElementById("p").value!=document.getElementById("pcopy").value){alert("两次密码输入不一致！");return false;}
}
                </script>

                <table border="0" cellpadding="0" cellspacing="0" class="table1">
                    <tr>
                        <td class="tt">
                            <b>输入原密码：</b>
                        </td>
                        <td>
                            <asp:TextBox ID="pold" runat="server" TextMode="Password" MaxLength="20" CssClass="inp1"
                                Width="150" onblur="check_pold()"></asp:TextBox><span id="msg_pold"
                                    style="margin-left: 10px"><span class="msgon">请输入原密码！</span></span>
                        </td>
                    </tr>
                    <tr>
                        <td class="tt">
                            <b>输入新密码：
                            </b>
                        </td>
                        <td>
                            <table border="0" cellpadding="0" cellspacing="0">
                                <tr>
                                    <td>
                                        <asp:TextBox ID="p" runat="server" TextMode="Password" MaxLength="20" CssClass="inp1"
                                            Width="150" onpaste="return false"></asp:TextBox>
                                    </td>
                                    <td class="tt">
                                        <b>再次输入新密码：</b>
                                    </td>
                                    <td>
                                        <asp:TextBox ID="pcopy" runat="server" TextMode="Password" MaxLength="20" CssClass="inp1"
                                            Width="150" onpaste="return false"></asp:TextBox>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td class="tt">
                            &nbsp;
                        </td>
                        <td>
                            <asp:Button ID="ButtonSubmit" runat="server" CssClass="but1" Text="修改" OnClick="ButtonSubmit_Click"
                                OnClientClick="return check()" />
                        </td>
                    </tr>
                </table>
            </div>
        </div>
    </div>
    <%--main end--%>
    <UC:foot ID="foot1" runat="server" />
    </form>
</body>
</html>
