<?php
header('content-type:text/html;charset=UTF-8');
require(dirname(__FILE__)."/config.php");
if(empty($job)) $job="";
if(empty($ID)) $ID="";
if($ID!=""&&$job=="yes")
{
$ad_name=$_POST['ad_name'];
$ad_pass=$_POST['ad_pass'];
$ID = ereg_replace("[^0-9]","",$ID);
$conn = connectMySql();
if($ad_pass!="") $ad_pass = "ad_pass='".md5($ad_pass)."'";
mysql_query("UPDATE `bbb_user` SET $ad_pass where ID=$ID");
ShowMsg("$editSuc","sys_manager.php");
exit();
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xml:lang="en-EU" lang="en-EU">
<head>
<meta http-equiv='Content-Type' content='text/html; charset=UTF-8'>
<link href="css/login.css" rel="stylesheet" type="text/css" title="Default" />
</head>
<body>
<div id="regbox">
<div id="logo"><img alt="" src="img/logo.png" height="40" width="250" title="openology.org" /></div>
<div id="loginbody">
<form method="post" action="sys_user_edit.php">
<input type="hidden" name="ID" value="<?=$ID?>">
<input type="hidden" name="job" value="yes">
<table border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td width="230"> </td>
<td width="210" class="p11" valign="bottom"><font color="#FF6699">*</font><?php echo $TEXT['must'];?></td>
</tr>
<tr>
<td width="25%" id="logincontent"><?php echo $TEXT['username'];?>:</td>
<td><?=$ad_name;?></td>
</tr>
<tr>
<td width="25%" id="logincontent"><?php echo $TEXT['password'];?>:</td>
<td><input type="password" name="ad_pass" size="20" class="c3a"><font color="#FF6699">*</font></td>
</tr>
<tr>
<td colspan="2"><div align="right"><input type="submit" name="Submit" value="<?php echo $TEXT['confirm'];?>"> <input type="reset" name="Submit2" value="<?php echo $TEXT['reset'];?>"></div></td>
</tr>
<tr>
<td align="left"><font style="font-size:12;color:#ffffff;"><?php echo $temp;?></font></td>
</tr>
</table>
</form>
</div>
</div>
</body>
</html>