<?
include_once("../inc/config.php");
include_once("../inc/publicfun.php");
include_once("../inc/ftbbsdbclass.php");
include_once("../conn.php");
include_once("../admin/check_master.php");

$id=$_GET["id"];
$sql="select * from {$tablepre}clubuser where clubuser_id=".$id;
$rs=mysql_query($sql);
$myrow = mysql_fetch_array($rs);
?>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link href="../css/xmwuye.css" rel="stylesheet" type="text/css">
<body topmargin="2">
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="1" bordercolorlight="#f4f4f4" bordercolordark="#FFFFFF" bgcolor="#cccccc">
  <form method="POST" action="user_saveedit.php?id=<?=$id?>">
	<tr bgcolor="#f4f4f4">    
      <td width="100%" height="30"> 
        <p align="center"><b><font color="#000000">修 改 用 户 资 料</font></b> </td>
    </tr>
    <tr align="center">
      <td width="100%">
            <table width="100%" border="0" cellspacing="1" bgcolor="#f8f8f8">
          <tr> 
                
            <td width="15%" align="right" height="30">用户名：</td>
                <td width="85%" height="30"> 
                  <input type="text" name="name" class="smallinput" value="<?=$myrow["clubuser_name"]?>" disabled>
                </td>
              </tr>
              
          <tr bgcolor="#FFFFFF"> 
            <td width="15%" height="30" align="right"> 
              <p>密码：</p>
                </td>
                
            <td width="85%" height="30"> 
              <input name="password" type="text" class="smallinput" value="<?=$myrow["clubuser_password"]?>" size="50">
                </td>
              </tr>
             <tr> 
                <td width="15%" align="right" height="30"> 
                  <p>查询密码问题：</p>
                </td>
                <td width="85%" height="30"> 
                  <input name="clubuser_question" type="text" class="smallinput" value="<?=$myrow["clubuser_question"]?>" size="40">
                </td>
              </tr>
              
          <tr bgcolor="#FFFFFF"> 
            <td width="15%" height="30" align="right"> 
              <p>查询密码答案：</p>
                </td>
                
            <td width="85%" height="30"> 
              <input name="clubuser_answer" type="text" class="smallinput" value="<?=$myrow["clubuser_answer"]?>" size="35">
                </td>
              </tr>
             <tr> 
                <td width="15%" align="right" height="30"> 
                  <p>积分：</p>
                </td>
                <td width="85%" height="30"> 
                  <input name="jingyuan" type="text" class="smallinput" id="jingyuan" value="<?=$myrow["jingyuan"]?>">
              <a href="../help.php">查看帮助</a></td>
              </tr>
              
          <tr bgcolor="#FFFFFF"> 
            <td width="15%" height="30" align="right"> 
              <p>体力：</p>
                </td>
                
            <td width="85%" height="30"> 
              <input name="tili" type="text" class="smallinput" id="tili" value="<?=$myrow["tili"]?>">
              <a href="../help.php">查看帮助</a></td>
              </tr>
              <tr>
                <td width="15%" align="right" height="30">电话：</td>
                <td width="85%" height="30">
                  <input type="text" name="phone" class="smallinput" value="<?=$myrow["clubuser_phone"]?>">
                </td>
              </tr>
              
          <tr bgcolor="#FFFFFF"> 
            <td width="15%" height="30" align="right">传真：</td>
                
            <td width="85%" height="30"> 
              <input type="text" name="fax" class="smallinput" value="<?=$myrow["clubuser_fax"]?>">
                </td>
              </tr>
              <tr>
                <td width="15%" align="right" height="30">网址：</td>
                <td width="85%" height="30">
                  <input name="url" type="text" class="smallinput" value="<?=$myrow["clubuser_url"]?>" size="35">
                </td>
              </tr>
              
          <tr bgcolor="#FFFFFF"> 
            <td width="15%" height="30" align="right">Email：</td>
                
            <td width="85%" height="30" valign="middle"> 
              <input name="email" type="text" class="smallinput" value="<?=$myrow["clubuser_email"]?>" size="35">
            </td>
              </tr>
              <tr>
                
            <td width="15%" align="right" height="30">IP地址：</td>
                <td width="85%" height="30">
                  <input name="ip" type="text" class="smallinput" id="ip" value="<?=$myrow["clubuser_ip"]?>" size="40">
                </td>
              </tr>
              
          <tr bgcolor="#FFFFFF"> 
            <td width="15%" height="30" align="right" valign="top">备注：</td>
                
            <td width="85%" height="30"> 
              <textarea rows="8" name="note" cols="50" class="smallarea"><?=$myrow["clubuser_note"]?></textarea>
                </td>
              </tr>
              <tr>
                
            <td width="15%" align="right" height="30">注册日期：</td>
                <td width="85%" height="30">
                  <input type="text" name="reg_date" class="smallinput" value="<?=$myrow["clubuser_reg_date"]?>">
                </td>
              </tr>
              
          <tr bgcolor="#FFFFFF"> 
            <td width="15%" height="30" align="right">进入数：</td>
                
            <td width="85%" height="30"> 
              <input type="text" name="enter_count" class="smallinput" value="<?=$myrow["clubuser_enter_count"]?>">
                </td>
              </tr>
              <tr> 
                
            <td width="15%" align="right" valign="top" height="35"></td>
                <td width="85%">
				<input type="submit" value=" 修 改 " name="cmdok" class="buttonface" <? if (false===strrpos($_SESSION["admin_qs"],"2")){?>disabled<? }?>>&nbsp; 
                <input type="button" value=" 返 回 " name="cmdback" class="buttonface" onclick="history.back()">
              <input name="reurl" type="hidden" id="reurl" value="<?=$_SERVER["HTTP_REFERER"]?>"></td>
              </tr>
            </table>
      </td>
    </tr>
	</form>
  </table>
</body>
</html>
<?
$db->close(); 
?>