Location: PHPKode > projects > MembersGear > membersgear/templates/user_change_password.tpl
    {if $msg neq ''}
                <div {if $err eq 'true'} class="errormsg" {else} class="succmsg" {/if}>
                  <center> {if $msg neq ''}{$msg}{/if}</center>
                </div>
            
    {/if}
  <div id="divheigth">
 </div>    
 <div id="formlayout"> 
 <div id="formlayout-top">
 {*<div style="text-align:center;vertical-align:top;padding-top:7px;">*}
           <div id="divmemberslinkheader"> 
                <ul>
                   {*<li><a href="{$WEB_URL}/member/user_logout.php">Logout</a></li>*}
                             <li><a href="{$WEB_URL}/member/user_default_page.php" >Main Area</a></li>
                             <li><a href="{$WEB_URL}/member/user_edit_profile.php" >Edit Profile</a></li>
                            {if $MEMBER_SHOW_AFFILIATE eq 'true'}
                              <li><a href="{$WEB_URL}/member/affiliateSettings.php">{$affiliate_text}</a></li>
                             {/if} 
                             <li><a href="{$WEB_URL}/member/user_change_password.php" class="selected">Change Password</a></li>
                             <li><a href="{$WEB_URL}/member/user_support.php">Support</a></li>
                             <li><a href="{$WEB_URL}/member/user_rotete_logout.php?url={$WEB_URL}/member/user_logout.php">Logout</a></li>
                 </ul>
            </div>
 </div>
            <div id="formlayout-bg">
            
        <table cellpadding="0" cellspacing="20" align="center" width="100%" id="tablechangepassword">
              <tr>
                 <td colspan="2">
                    <h1>Change Your Password</h1>
                </td>
             </tr>
             <form name="ChangePassword" method="post" action="user_change_password.php?action=update">
              <tr>
                <td class="right-side-text"><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="36" value="">
                 </td>
             </tr>
             
                <tr>
                    <td class="right-side-text"><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="36" {if $MEMBER_PASSWORD_MAX_LENGTH!=''}maxlength="{$MEMBER_PASSWORD_MAX_LENGTH}"{/if} >
               </tr>
             
              <tr>
                    <td class="right-side-text"><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="36" {if $MEMBER_PASSWORD_MAX_LENGTH!=''}maxlength="{$MEMBER_PASSWORD_MAX_LENGTH}"{/if} >
               </tr>
               <tr>
                <td class="right-side-text"></td>
                 <td class="left-side-text" width="">
                         <input type="submit" id="submit" class="bigger-button btnchangepassword" name="submit" value="Change Password">
                         
                </td>
            </tr>
           </form>                      
                     
            </table>
           </div>
           <div id="formlayout-bottom"></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}
Return current item: MembersGear