<%@ Page Language="C#" ValidateRequest="false" enableEventValidation="false" viewStateEncryptionMode ="Never" MasterPageFile="~/Admin/MasterPage.master" AutoEventWireup="true" Inherits="Kesion.NET.WebSite.Admin_AdminEditPass" Title="修改管理员登录密码" Codebehind="KS.AdminPassEdit.aspx.cs" %>
<asp:Content ID="Content1" ContentPlaceHolderID="KSContent" Runat="Server">
<script language="JavaScript" src="../../ks_Inc/CheckPassWord.js"></script>
<STYLE type=text/css>
/*密码强度*/
.rank { border:none; background:url(../../sysimg/rank.gif) no-repeat; width:125px; height:22px; vertical-align:middle; cursor:default; }
.r0 { background-position:0 0; }
.r1 { background-position:0 -22px; }
.r2 { background-position:0 -44px; }
.r3 { background-position:0 -66px; }
.r4 { background-position:0 -88px; }
.r5 { background-position:0 -110px; }
.r6 { background-position:0 -132px; }
.r7 { background-position:0 -154px; }

</STYLE>
<script>
    function check() {
        if (jQuery("#<%=this.TxtOldPassWord.ClientID %>").val() == '') {
            KesionJS.Alert("原始密码必须输入!", "jQuery('#<%=this.TxtOldPassWord.ClientID %>').focus()");
            return false;
        }
        if (jQuery("#<%=this.TxtNewPassWord.ClientID %>").val() == '') {
            KesionJS.Alert("新密码必须输入!", "jQuery('#<%=this.TxtNewPassWord.ClientID %>').focus()");
            return false;
        }
        if (jQuery("#<%=this.TxtReNewPassWord.ClientID %>").val() == '') {
            KesionJS.Alert("确认新密码必须输入!", "jQuery('#<%=this.TxtReNewPassWord.ClientID %>').focus()");
            return false;
        }
        if (jQuery("#<%=this.TxtNewPassWord.ClientID %>").val()!=jQuery("#<%=this.TxtReNewPassWord.ClientID %>").val()) {
            KesionJS.Alert("新密码和确认密码不一致，请重输!", "jQuery('#<%=this.TxtNewPassWord.ClientID %>').focus()");
            return false;
        }
        return true;
    }
</script>
     <table width="100%" border="0" cellpadding="1" cellspacing="1" class="CTable"> 
          <tr>
              <td align="right" class="lefttd" style="width: 150px">
                  <strong>用 户 名：</strong></td>
              <td class="righttd"><asp:Label ID="LabUserName" runat="server" Text="Label"></asp:Label></td>
          </tr>
         <tr>
             <td align="right" class="lefttd" style="text-align: right; width: 150px;">
                 <strong>原始密码：</strong></td>
             <td class="righttd"><asp:TextBox CssClass="textbox" ID="TxtOldPassWord" runat="server" TextMode="Password"></asp:TextBox></td>
         </tr>
         <tr>
             <td align="right" class="lefttd" style="text-align: right; width: 150px;">
                 <strong>新 密 码：</strong></td>
             <td class="righttd"><asp:TextBox CssClass="textbox" ID="TxtNewPassWord" runat="server" TextMode="Password" onBlur="setPasswordLevel(this, document.getElementById('passwordLevel'));"  onKeyUp="setPasswordLevel(this, document.getElementById('passwordLevel'));"></asp:TextBox></td>
         </tr>
         <tr>
		       <td align="right" class="lefttd" style="text-align: right; width: 150px;"><strong>密码强度：</strong></td>
		       <td class="righttd"><input name="Input" disabled="disabled" class="rank r0" id="passwordLevel" /></td>
	          </tr>
           <tr>
              <td align="right" class="lefttd" style="text-align: right; width: 150px;">
                  <strong>确认新密码：</strong></td>
              <td class="righttd"><asp:TextBox CssClass="textbox" ID="TxtReNewPassWord" runat="server" TextMode="Password"></asp:TextBox></td>
          </tr>
      </table>
      <div class="pop-button">
      <asp:Button ID="Button1" OnClientClick="return(check());" runat="server" CssClass="button" Text="确定修改" OnClick="Button1_Click" />
         <asp:Button ID="Button2" runat="server" CssClass="button" Text="关闭取消" /></div>


</asp:Content>
