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

<%@ Register TagName="meta" TagPrefix="UC" Src="~/s/include/meta.ascx" %>
<%@ Register TagName="head" TagPrefix="UC" Src="~/s/include/head.ascx" %>
<%@ Register TagName="tip_bar" TagPrefix="UC" Src="~/s/include/tip_bar.ascx" %>
<%@ Register TagName="foot" TagPrefix="UC" Src="~/s/include/foot.ascx" %>
<%@ Register TagName="side_menu" TagPrefix="UC" Src="~/user/side_menu.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">
    <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
    <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
    <title>会员中心_
        <%=ZK.config("sitetitle") %></title>
    <meta name="keywords" content="<%=ZK.config("sitekeywords") %>" />
    <meta name="description" content="<%=ZK.config("sitedescription") %>" />
    <UC:meta ID="meta1" runat="server" />



</head>
<body>
    <div class="wrap">
        <a name="pagetop" id="pagetop"></a>
        <UC:head ID="head1" runat="server" />
        <UC:tip_bar ID="tip_bar1" runat="server" />
        <form id="form1" runat="server" autocomplete="off">
        <div class="box">
            <div class="hot">
                <div class="fl" style="width: 180px">
                    <div class="c1 mt5">
                        <div class="b">
                            <div class="fl">
                            </div>
                            <div class="con" style="width: 80px">
                                功能菜单</div>
                            <div class="fr">
                            </div>
                            <div class="clear">
                            </div>
                        </div>
                        <div class="v">
                            <UC:side_menu ID="side_menu1" runat="server" />
                            <script type="text/javascript">showonly_user_side_menu("1");</script>
                        </div>
                    </div>
                </div>
                <div class="fr flow" style="width: 765px">
                    <div class="c1 mt5">
                        <div class="b">
                            <div class="fl">
                            </div>
                            <div class="con">
                                修改密码</div>
                            <div class="fr">
                            </div>
                            <div class="clear">
                            </div>
                        </div>
                        <div class="v">
                            <div class="do1" style="padding-left:80px; padding-top:10px; padding-bottom:12px">
                       <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("msg_pold").innerHTML.indexOf("请输入原密码")!=-1){alert("请输入原密码！");return false;}if(document.getElementById("msg_pold").innerHTML.indexOf("原密码不正确")!=-1){alert("原密码不正确！");return false;}
            var pvalue=document.getElementById("p").value;var pcopyvalue=document.getElementById("pcopy").value;   
            if(pvalue==""){alert("请输入密码");return false;}else if(pvalue!=pcopyvalue){alert("两次密码输入不一致！");return false;}
            if(document.getElementById("pold").value==pvalue){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="inp4"
                                Width="150" onkeyup="check_pold()" 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>输入新密码：<asp:HiddenField ID="HiddenField_ID" runat="server" />
                            </b>
                        </td>
                        <td>
                            <table border="0" cellpadding="0" cellspacing="0">
                                <tr>
                                    <td>
                                        <asp:TextBox ID="p" runat="server" TextMode="Password" MaxLength="20" CssClass="inp4"
                                            Width="150" onpaste="return false" onblur="replaceCharLegal(this,this.value)"></asp:TextBox>
                                    </td>
                                    <td class="tt">
                                        <b>再次输入新密码：</b>
                                    </td>
                                    <td>
                                        <asp:TextBox ID="pcopy" runat="server" TextMode="Password" MaxLength="20" CssClass="inp4"
                                            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="but4" Text="确定修改" OnClick="ButtonSubmit_Click"
                                OnClientClick="return check()" onmouseover="hover(this,0.8)" onmouseout="hover(this,1)" />
                        </td>
                    </tr>
                </table>
                       </div>
                        </div>
                    </div>
                </div>
                <div class="clear">
                </div>
            </div>
        </div>
        </form>
        <UC:foot ID="foot1" runat="server" />
    </div>
</body>
</html>
