File: /home/nyiet8349bzl/Backup/sbc_back/homedir/public_html/old-myadmin/admin/changepsw.php
<?php
if (!defined('WEB_ROOT')) {
exit;
}
if (isset($_GET['AId']) && $_GET['AId'] > 0) {
$AId = $_GET['AId'];
} else {
header('Location: index.php');
}
$sql = "SELECT User_Password FROM chadmin WHERE AID = $AId";
$result = dbQuery($sql) or die('Cannot get product. ' . mysql_error());
$row = dbFetchAssoc($result);
extract($row);
?>
<div id="ptitle">:.: Adminstrator Settings >> Change Password </div>
<script type="text/javascript" src="<?php echo WEB_ROOT;?>myadmin/library/admin.js"> </script>
<form action="<?php echo $_SERVER['PHP_SELF']."?view=changepsw&changePsw&AId=$AId" ?>" method="post" enctype="multipart/form-data" name="frmAddAdmin" id="frmAddAdmin">
<p align="center" class="formTitle">Change Password</p>
<?php
include_once 'processPass.php';
if(isset($_GET['changePsw']))
{
$errorMessage = changePsw();
?>
<p id="errorMessage" style="color: red; size: 18px;"> <?php echo $errorMessage;?> </p>
<br/>
<br/>
<a href="index.php">Click Continue.... </a>
<?php exit; }?>
<table width="50%" border="0" align="center" cellpadding="5" cellspacing="1" class="entryTable">
<tr>
<td width="150" class="label">Old Password</td>
<td class="content"> <input name="oldPass" type="password" class="box" id="txtName" size="10" maxlength="10"></td>
</tr>
<tr>
<td width="150" class="label">New Password</td>
<td class="content"> <input name="newPass" type="password" class="box" id="txtSku" size="10" maxlength="10"></td>
</tr>
<tr>
<td width="150" class="label">Confirm Password</td>
<td class="content"> <input name="confPass" type="password" class="box" id="txtQty" size="10" maxlength="10"></td>
</tr>
</table>
<p align="center">
<input name="btnModifyAdmin" type="submit" id="btnModifyAdmin" value="Change Password" onClick="checkAddProductForm();" class="box">
<input name="btnCancel" type="button" id="btnCancel" value="Cancel" onClick="window.location.href='index.php';" class="box">
</p>
</form>
<script type="text/javascript">
validator()
</script>