<?php
require_once("checkstate.php");
?>

<?php
require("connect.php");
?>


<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>無標題文件</title>
<style type="text/css">
.aaa {
	font-size: 36px;
	color: #00F;
}
.bbb {font-size: 18px;
	font-weight: bold;
	color: #900;
}
</style></head>

<body>
<table width="980" height="818" border="1" align="center">
  <tr>
    <td height="112" colspan="3" align="center" class="aaa">後台管理程式</td>
  </tr>
  <tr>
    <td width="182" valign="baseline">&nbsp;<?php require_once("left_menu.php");?></td>
    <td width="782" colspan="2" valign="baseline"><p>&nbsp;</p>
      <table width="450" border="0" align="center">
        <tr>
          <td colspan="2" align="right" class="bbb">後台管理員 修改資料</td>
          <td width="221" align="center" class="bbb">&nbsp;</td>
        </tr>
      </table>
      <br />
<?php
$id=$_GET['id'];
$sql="select * from bkstage_user where id='$id'";
//echo $sql;
$result=mysql_query($sql);
$object=mysql_fetch_object($result);
?>      
      <form id="form1" name="form1" method="post" action="bkstage_list.php">
        <input type="hidden" name="action" value="modify">
        <table width="450" height="206" border="0" align="center" cellpadding="2" cellspacing="2">
          <tr>
            <td width="86" height="32">ID：</td>
            <td width="350"><?php echo $object->id;?> <input type="hidden" name="id" value="<?php echo $object->id;?>">
</td>
          </tr>
          <tr>
            <td height="32">帳號：</td>
            <td><input type="text" name="account"  value=<?php echo $object->account;?>></td>
          </tr>
          <tr>
            <td height="32">密碼：</td>
            <td><input name="pass1" type="text"  size="35"></td>
          </tr>
          <tr>
            <td height="32">再次密碼：</td>
            <td><input name="pass2" type="text"  size="35"></td>
          </tr>
          <tr>
            <td height="32">等級：</td>
            <td><label for="email"></label>
              <input type="text" name="level"  value=<?php echo $object->level;?>></td>
          </tr>
          <tr>
            <td height="32">&nbsp;</td>
            <td><input type="submit" name="button" id="button" value="確定" />
              <input type="reset" name="button2" id="button2" value="重設" /></td>
          </tr>
        </table>
      </form>
    <p></p></td>
  </tr>
</table>
</body>
</html>