Location: PHPKode > projects > Blogs manager > blogs/templates/changepwd.htm
<html> 
<head>
<title>Change password</title>
<link REL="stylesheet" href="include/style.css" type="text/css">
</head>
<body  text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" link="#0066cc">
{literal}
<script language="JavaScript">

function validate()
{

	
	if (document.forms.form1.cpass.value!=document.forms.form1.newpass.value)
	{	
		alert('Passwords do not match. Re-enter password');
		return false;
	}
	

	return true;

}

</script>
{/literal}

{doevent name="ChangePasswordOnLoad"}
<table width="100%" border="0" cellspacing="0" cellpadding="0" height="99%">
  <tr>
    <td valign="center" align="middle"> 
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td>&nbsp</td>
        </tr>
      </table>
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td>
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr> 
                <td  valign="top" align="right"> 
                  <table width="300" border="0" cellspacing="4" cellpadding="4" align="center">
                    <tr> 
                      <td>&nbsp</td>
                    </tr>
                  </table>
                  <form method="POST" action="changepwd.php" id=form1 name=form1 onsubmit="return validate();">
                  
                  
                  <TABLE CELLPADDING=0 CELLSPACING=0 align=center border=0>
                    <tr><td>

                    <div class="xboxcontentb">
                    <table cellpadding=0 cellspacing=0 border=0>
                    <tr><td>
                    <table cellpadding=0 cellspacing=0 border=0 width=100%>
                    <tr>
                    <td class=upeditmenu_left width=5px height=36px></td>
                    <td class=upeditmenu_center align=center>
							 <b><font size=+1>Change password</font></b></td>
                    </td>
                    <td class=upeditmenu_right width=5px height=36px></td>
                    </tr>
                    </table>
                    </td></tr>
                    <tr> 
                      <td valign="top" align=center>
                        <table cellpadding=0 cellspacing=5 border=0>
                        <tr><td>
                        <b class="xtop"><b class="xb1"></b><b class="xb2"></b><b class="xb3"></b><b class="xb4"></b></b>
                        <div class="xboxcontent" align=center>
                        <table border=0 align="center" cellpadding=3 cellspacing=0 width="300">
						  <tr> 
                            <td align=right width="50%"> 
                              <div align="left">Old password</div>
                            </td>
                            <td width="50%"> 
                              <input name="opass" value="" type=password>
                            </td>
                          </tr>

						  <tr>
                            <td align=right width="50%"> 
                              <div align="left">New password</div>
                            </td>
                            <td width="50%"> 
                              <input name="newpass" value="" type=password>
                            </td>
                          </tr>

						  <tr> 
                            <td align=right width="50%"> 
                              <div align="left">Confirm password</div>
                            </td>
                            <td width="50%"> 
                              <input name="cpass" value="" type=password onkeydown="e=event; if (!e) e = window.event; if (e.keyCode != 13) return; e.cancel = true; document.forms[0].submit();">
                            </td>
                          </tr>
                          <tr><td class="linedownD1" height=1px width=100% colspan=2></td></tr>
                          <tr class=downedit><td height=5px colspan=2></td></tr>
                          <tr class=downedit> 
                            <td colspan=2 align=middle >
								<input type=hidden name=btnSubmit value="Submit">
								<span class=buttonborder><input type=button name=btnSubmit onclick="document.forms.form1.submit();return false;" value="&nbsp;&nbsp;Submit&nbsp;&nbsp;" class=button></span>
                            </td>
                          </tr>

                          <tr class=downedit> 
                            <td colspan=2 align=middle>
								<a href="{$backurl}">Back</a>
                            </td>
                          </tr>
						  <tr class=downedit><td align=center colspan=2>
						        <font color=red>{$message}</font>
						  </td></tr>
                        </table>
                        </div>
                        <b class="xbottom"><b class="xb4a"></b><b class="xb3a"></b><b class="xb2a"></b><b class="xb1a"></b></b>
                        </td></tr></table>
                      </td>
                    </tr>
                  </table>
                  </div>
                  <b class="xbottom"><b class="xb4b4"></b><b class="xb3b4"></b><b class="xb2b4"></b><b class="xb1b4"></b></b>
                </td>
                </form>
              </tr>
            </table>
            
          </td>
        </tr>
      </table>
    </td>
  </tr>
</table>
</script>
</body>
</html>
Return current item: Blogs manager