{include file='header.htm' title='编辑留言'}
<div id="maindiv">
<img src=images/head.jpg>
<input onclick="location.href='lst.php'" type="button" class="spt2" value="返回首页">
<input onclick="location.href='post.php'" type="button" class="spt2" value="发表留言">
<input onclick="location.href='admin.php'" type="button" class="spt2" value="登陆管理">
<input onclick="location.href='admin.php?action=lut'" type="button" class="spt2" value="退出管理">
<form action="?action=edit&id={$row[0]}" method="post">
<table border="0" width="100%" id="table1" cellspacing="2" cellpadding="2">
	<tr>
		<td width="100" align="center">留言标题</td>
		<td><input type="text" name="ntitle" size="40" value="{$row[1]|txtToHtml}" class="spt" /> *</td>
	</tr>
	<tr>
		<td width="100" align="center">您的姓名</td>
		<td><input type="text" name="name" size="10" value="{$row[2]}" class="spt">
		性别：<select class="spt" name="nsex"><option value="{$row[3]}">{$row[3]}</option><option value="男">男</option><option value="女">女</option><option value="保密">保密</option></select></td>
	</tr>
	<tr>
		<td width="100" align="center">您的信箱</td>
		<td><input type="text" name="email" value="{$row[6]}" class="spt" size="20" />
		悄悄话：<input type="radio" name="rqiao" checked value=1>公开
		<input type="radio" name="rqiao" value=0>悄悄</td>
	</tr>
	<tr>
		<td width="100" align="center">留言内容</td>
		<td><textarea name="msgcontent" rows="6" cols="60" onKeyDown=gbcount(this.form.msgcontent,this.form.total,this.form.used,this.form.remain);
	  onKeyUp=gbcount(this.form.msgcontent,this.form.total,this.form.used,this.form.remain);>{$row[7]}</textarea><br>
	  最多留言<INPUT disabled maxLength=4 name=total size=3 value=500>已用<INPUT disabled maxLength=4 name=used size=3 value=0>剩余<INPUT disabled maxLength=4 name=remain size=3 value=500>
	  </td>
	</tr>
	<tr>
		<td width="100" align="center">回复内容</td>
		<td><textarea name="recont" rows="6" cols="60">{$row[10]}</textarea></td>
	</tr>
	<tr>
		<td width="100" align="center">　</td>
		<td><input type="submit" class="spt2" value="马上回复"> <input type="reset" class="spt2" value="重新来过">
		<input onclick="location.href='/'" type="button" class="spt2" value="返回首页">
		</td>
	</tr>
</table>
</form>
{include file='footer.htm'}