<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>超級管理</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<?php
require_once('conn.php');
$result = mysql_query("SELECT * FROM spmanage");
$row_rds = mysql_fetch_assoc($result);
if($_SESSION['loginCheck']=="true"&&$_SESSION['username']=="admin"){
?>
<form name="form1" method="post" action="supermanage_done.php">
<table width="495" border="1">
<tr>
<td width="145"> </td>
<td width="192">現時的值</td>
<td width="136">修改值為</td>
</tr>
<tr>
<td>註冊贈送</td>
<td><input name="gift2" type="text" id="gift2" value="<?=$row_rds['gift']; ?>" readonly="true"></td>
<td><input name="gift" type="text" id="gift"></td>
</tr>
<tr>
<td>拍賣節扣</td>
<td><input name="feedis2" type="text" id="feedis2" value="<?=$row_rds['feedis']; ?>" readonly="true"></td>
<td><input name="feedis" type="text" id="feedis"></td>
</tr>
</table>
<p>
<input name="Submit" type="submit" id="Submit" value="更新">
<input type="reset" name="Submit2" value="取消">
</p>
</form>
<?php
}
else{
echo "請登入";}
mysql_free_result($result);
?>
<p> </p>
</body>
</html>
搞店左,沒諗過可以咁樣做,感謝咁多位 |