Location: PHPKode > projects > MembersGear > membersgear/templates/admin_change_password.tpl
 {$ADMIN_HEADER}
<div id="content" class="setdiv">
  {*  <div id="contentdiv">
        <div class="leftdiv">
            <div class="righttop">
                <h2>
                    Welcome To SafelistProX 3.2.1 Control Panel</h2>
            </div>
            <div class="contant divborder">
                The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the
                lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps
                over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown
                fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick
                brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog.
                The quick brown fox jumps over the lazy dog.
                <div class="link-set clear">
                    <a href="#">read more...</a></div>
            </div>
        </div>
        <div class="rightdiv">
            <div class="righttop">
                <h2>
                    Your Safelist Overview</h2>
            </div>
            <div class="contant divborder">
                The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the
                lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps
                over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown
                fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick
                brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog.
                The quick brown fox jumps over the lazy dog.
                <div class="link-set clear">
                    <a href="#">read more...</a></div>
            </div>
        </div>
    </div>  *}
    
      {if $msg neq ''}
            <div {if $err eq 'true'} class="errormsg" {else} class="succmsg" {/if} style="width:300px">{$msg}</div>
           {/if} 
    <div id="full-contentdiv">
       <div class="righttop">
                <h2><center>
                    Change Your Password</h2>                                      
            </center></div>
         
         <div class="whole-page clear">
          
            <!-- Place your content here -->
             <form name="ChangePassword" method="post" action="admin_change_password.php?action=update">
              <div class="formformat">      
                 <table    width="60%"  cellpadding="0" cellspacing="0" align="center">    
                  <tbody>
                      <tr>
                        <td class="right-side-text" style="width:200px"><label>Old Password <label class="star">*</label></label></td>
                        <td class="left-side-text" width="">
                            <input type="password"  name="oldPassword" id="oldPassword" class="txtcss"  size="35"  >
                         </td>
                     </tr>
                     
                        <tr>
                            <td class="right-side-text" style="width:200px"><label>New Password <label class="star">*</label></label></td>
                            <td class="left-side-text" width="">
                                <input type="password"  name="newpass" id="newpass" class="txtcss" size="35" {if $MEMBER_PASSWORD_MAX_LENGTH!=''}maxlength="{$MEMBER_PASSWORD_MAX_LENGTH}"{/if} >
                       </tr>
                     
                      <tr>
                            <td class="right-side-text" style="width:200px"><label>Confirm New Password <label class="star">*</label></label></td>
                            <td class="left-side-text" width="">
                                <input type="password"  name="confnewpass" id="confnewpass" class="txtcss" size="35" {if $MEMBER_PASSWORD_MAX_LENGTH!=''}maxlength="{$MEMBER_PASSWORD_MAX_LENGTH}"{/if} >
                       </tr>
                       <tr>
                        <td class="right-side-text" style="width:200px">&nbsp;</td>
                         <td class="left-side-text" width="">
                                   
                              <input class="btncss" type="submit" id="submit"   name="submit" value="Change Password" >&nbsp;&nbsp;&nbsp; 
                              <input  class="btncss" type="button" name="btnBack" value="Cancel" onclick="javascript:location.href='./index.php';"> 
                            
                        </td>
                      </tr>
                </tbody>
           </table>
           </div>
        </form>
    </div>
</div>
 {literal} 
   <script language="JavaScript" type="text/javascript">
         
          var mem_pass_min_len='{/literal}{$MEMBER_PASSWORD_MIN_LENGTH}{literal}'; 
          var mem_pass_max_len ='{/literal}{$MEMBER_PASSWORD_MAX_LENGTH}{literal}';
         
         function DoCustomValidationforconfirmpassword()
          {
              var frm = document.forms["ChangePassword"];
              if(frm.newpass.value != frm.confnewpass.value)
              {
                  alert('The Password and Confirm password does not match!'); 
                  return false;
              }
              else
              { 
                return true;
              }
         }
       var frmvalidator  = new Validator("ChangePassword");
       frmvalidator.EnableMsgsTogether();
       frmvalidator.addValidation("oldPassword","req","Please enter Old Password.");  
       frmvalidator.addValidation("newpass","req","Please enter New Password.");  
       frmvalidator.addValidation("confnewpass","req","Please enter confirm password");
       if(parseInt(mem_pass_min_len)<=parseInt(mem_pass_max_len))
          {
             
             frmvalidator.addValidation("newpass","minlen=mem_pass_min_len","Minimum length  for Password is "+mem_pass_min_len+".");
             frmvalidator.addValidation("newpass","maxlen=mem_pass_max_len","Maximum length  for Password is "+mem_pass_max_len+".");
          }
        frmvalidator.setAddnlValidationFunction("DoCustomValidationforconfirmpassword");
       
 
</script>
{/literal}
 </div>
{$ADMIN_FOOTER}
Return current item: MembersGear