<?php
	session_start();
	include "../inc/chec.php";
	include "../conn/conn.php";
	$sqlstr = "select * from tb_person where id=".$_GET[id];
	$result = mysql_query($sqlstr,$conn);
	$rows = mysql_fetch_row($result);
?>
<link href="../css/style.css" rel="stylesheet" />
<script src="../js/client_js.js"></script>
<script charset="gb2312" src="../editor/kindeditor.js"></script>
<script>
KE.show({
    id : 'adminzu',
    filterMode : true,
    resizeMode : 0
    });
    </script>
<table width="765" border="0" cellpadding="0" cellspacing="0" class="big_td">
	<tr>
		<td height="33" background="../images/list.jpg" id="list">修改消息
		</td>
	</tr>
</table>
<form action="m_message_chk.php" method="post" name="form1">
<table width="761" height="180" border="0" cellpadding="0" cellspacing="0" bgcolor="#DEEBEF">
  <tr>
    <td width="93" height="25" align="right" valign="middle" scope="col">标题：</td>
    <td width="668" height="25" align="left" valign="middle" scope="col">
	<input type="text" name="p_title" value="<?php echo $rows[1]; ?>" /></td>
  </tr>
  <tr>
    <td align="right" valign="middle">内容：</td>
    <td align="left" valign="top"><textarea name="p_content" id="adminzu" cols="90" rows="28"><?php echo $rows[2]; ?></textarea></td>
  </tr>
  <tr>
    <td height="30" align="right" valign="middle">类别：</td>
    <td height="30" align="left" valign="middle">
	<select name="p_type">
		<?php
		if($rows[4] == "9"){
		?>
		<option value="9" selected="selected">企业公告</option>
		<option value="10">活动安排</option>
		<?php
			}else{
			?>
		<option value="9">企业公告</option>
		<option value="10" selected="selected">活动安排</option>
			<?php
			}
		?>
	</select>
	</td>
  </tr>
  <tr>
    <td colspan="2" height="30" align="center" valign="middle">
	<input type="hidden" name="id" value="<?php echo $rows[0]; ?>">
	<input type="submit" value="修改" />
	<input type="reset" value="重置" />
	</td>
  </tr>
</table>
</form>