<?
session_start();
require_once("func_all.php");
do_html_header("Change Password");
if($msg){
echo "<script>alert('$msg')</script>";
unset($msg);
}
$formname="thisonly";
$inputname= array("oldpassword","password1","password2");
$displayname= array("Old Password","New Password","Re-type New Password");
JS_CheckRequired($formname,$inputname,$displayname,"","");
$user = getdata("select * from users where access_id='$accessID'
AND username='$valid_user'");
$user_id = $user[1][user_id];
echo "<form method=post action='sqlupdate.php?what=other_user' name='$formname' onsubmit='return CheckRequired()'>";
?>
<input type=hidden name="user_id" value="<?=$user_id?>">
<tr><td height="100%" align=center valign="top">
<table align=center cellpadding='2' cellspacing='2'><br><br>
<tr><td>
<table bgcolor=#cccccc cellpadding="2" cellspacing=2>
<tr class=black><td class="box" colspan=2><font color=#003399><b>To change your password:</b><br><font size=1 color=red>*</font><font size=1 color=black>Password must be from 5 up to 16 chars.</td></tr>
<tr class=black><td class="box" colspan=2><table>
<tr><td>Old Password</b></td>
<td valign=top>: <input type=password name=oldpassword size=16 maxlength=16
value=''></td></tr>
<tr><td>New Password</b></td>
<td valign=top>: <input type=password name=password1 size=16 maxlength=16
value=''></td></tr>
<tr><td>Re-type New Password</b></td>
<td valign=top>: <input type=password name=password2 size=16 maxlength=16
value=''></td></tr>
</table></td>
</tr>
<tr><td class="box" colspan=2 align=center><input type=submit value=" Save " name="user" class="button"></td></tr>
</table>
</td></tr>
</table>
</tr></td>
</form>
<?
do_html_footer();
?>