<?php
require("./CustomSql.inc.php");
$db = new CustomSQL($DBName);
include("./usercheck.php");
if (empty($loginuserid)) {
$loginuserid = $_SESSION["loginuserid"];
}
if (!empty($editpass)) {
$db->editpass($password,$loginuserid);
}
$result = $db->getadminpassinfo($loginuserid);
$adminid = $result[0]["adminid"];
$username = $result[0]["username"];
$password = $result[0]["password"];
?>
<html>
<head>
<title><?php print "$admin_changepass"; ?></title>
<meta http-equiv="Content-Type" content="text/html; charset=<?php print "$admin_charset"; ?>">
<link rel="stylesheet" href="style/style.css" type="text/css">
</head>
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0">
<form action="<?php print "$PHP_SELF"; ?>" method="POST">
<input type="hidden" name="adminid" value="<?php print "$adminid"; ?>">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="center" valign="top">
<?php
include("top.php3");
?>
<hr width="90%" size="1" noshade>
<table width="90%" border="0" cellspacing="0" cellpadding="4" height="300">
<tr>
<td align="center">
<table width="400" border="0" cellspacing="1" cellpadding="4" bgcolor="#F2F2F2">
<tr bgcolor="#CCCCCC">
<td width="183"><?php print "$admin_username"; ?> :</td>
<td width="198"><? print "$username"; ?></td>
</tr>
<tr bgcolor="#CCCCCC">
<td width="183"><?php print "$admin_password"; ?> :</td>
<td width="198"><input type="text" name="password" value="<? print "$password"; ?>"></td>
</tr>
</table>
<p>
<input type="submit" name="editpass" value="<?php print "$admin_ok"; ?>">
</p>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td align="center" valign="top" height="40"> </td>
</tr>
</table>
</form>
<?php
include("bottom.php3");
?>
</body>
</html>