<?php require_once('../../include/class.inc.php'); 
$id=$_GET["id"];
$result=$my->data_select('message','id='.$id,'id','','');
$rs=mysql_fetch_array($result);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<link rel="stylesheet" href="../inc/css.css" type="text/css" />
<title>无标题文档</title>
<style type="text/css">
<!--
.STYLE5 {color: #FFFFFF; font-weight: bold; }
.STYLE6 {
	color: #FF0000;
	font-weight: bold;
}
.STYLE7 {color: #999999}
.STYLE8 {color: #FF0000}
-->
</style>
</head>

<body>
<form id="form1" name="form1" method="post" action="../message/messageup_save.php?id=<?php echo $rs["id"];?>">
  <table width="1052" border="0" align="center" cellpadding="2" cellspacing="1" bordercolor="#799AE1" class="tableBorder">
    <tbody>
      <tr bgcolor="#CCCCCC">
        <td height="18" colspan="2" bgcolor="#4455aa"><div align="center" class="STYLE5">
          <div align="left">编辑留言</div>
        </div>
            <div align="center" class="STYLE5">
              <div align="left"></div>
        </div></td>
      </tr>
      <tr bgcolor="#DEE5FA">
        <td width="105" align="center" class="txlrow"><div align="center"><strong>留言者姓名</strong></div></td>
        <td align="center" class="txlrow"><div align="left">
            <input name="name" type="text" id="name" value="<?php echo $rs["name"];?>" size="30" />
            <span class="STYLE8">*</span></div></td>
      </tr>
      <tr bgcolor="#DEE5FA">
        <td width="105" align="center" class="txlrow"><div align="center"><strong>电&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;话</strong></div></td>
        <td align="center" class="txlrow"><div align="left">
            <input name="phone" type="text" id="phone" value="<?php echo $rs["phone"];?>" size="30" />
            <span class="STYLE8">*</span></div></td>
      </tr>
      <tr bgcolor="#DEE5FA">
        <td width="105" align="center" class="txlrow"><div align="center"><strong>其他联系方式</strong></div></td>
        <td align="center" class="txlrow"><div align="left">
            <input name="other" type="text" id="other" value="<?php echo $rs["other"];?>" size="30" />
        如QQ、MSN等</div></td>
      </tr>
      <tr bgcolor="#DEE5FA">
        <td width="105" align="center" class="txlrow"><div align="center"><strong>E-mail</strong></div></td>
        <td align="center" class="txlrow"><div align="left">
            <input name="E_mail" type="text" id="E_mail" value="<?php echo $rs["E_mail"];?>" size="30" />
        </div></td>
      </tr>
      <tr bgcolor="#DEE5FA">
        <td width="105" align="center" class="txlrow"><strong>留言内容</strong></td>
        <td align="center" class="txlrow"><div align="left">
            <textarea name="content" id="content" cols="50" rows="5"><?php echo $rs["content"];?></textarea>
            <span class="STYLE8">*</span></div></td>
      </tr>
      <tr bgcolor="#DEE5FA">
        <td align="center" class="txlrow"><div align="center" class="STYLE6">审&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;核</div></td>
        <td align="center" class="txlrow"><div align="left">
          <input name="shenhe" type="radio" id="radio" value="是" <?php if($rs["shenhe"]=="是"){echo "checked=checked";}?>/>
          是
          <input type="radio" name="shenhe" id="radio2" value="否" <?php if($rs["shenhe"]=="否"){echo "checked=checked";}?>/>
          否
          <span class="STYLE7">审核通过并在前台显示</span></div></td>
      </tr>
      <tr bgcolor="#DEE5FA">
        <td width="105" align="center" class="txlrow"><div align="center"></div></td>
        <td align="center" class="txlrow"><div align="left">
            <input type="submit" name="button" id="button" value="提交" />
            <input type="reset" name="button2" id="button2" value="重置" />
        </div></td>
      </tr>
      <tr bgcolor="#DEE5FA">
        <td colspan="2" align="center" class="txlrow"></td>
      </tr>
    </tbody>
  </table>
</form>
</body>
</html>
