{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 name="postForm" action="?action=add" method="post">
<table border="0" width="100%" id="table1" cellspacing="2" cellpadding="2">
	<tr>
		<td width="100" align="center">留言标题</td>
		<td><input type="text" onblur="ckntitle();" name="ntitle" size="40" class="spt" /> <span id="ntitlediv" class="fb"> * </span></td>
		<td rowspan="3"><img id=myface height=90 src="images/face/no.gif"></td>
	</tr>
	<tr>
		<td width="100" align="center">您的姓名</td>
		<td><input type="text" onblur="ckname();" name="name" size="10" value="游客" class="spt" />
		性别：<select class="spt" name="nsex"><option value="男">男</option><option value="女">女</option><option value="保密">保密</option></select>
		头像：<select class="spt" name="npic" onchange='myface.src=this.options[this.selectedIndex].value;'>
		<option value="images/face/no.gif">默认头像</option>
		{section name=s loop=$picarr}
		<option value="{$picarr[s]|RuPic}">{$picarr[s]}</option>
		{/section}
		</select>
		<span id="namediv" class="fb"> *</span>
		</td>
	</tr>
	<tr>
		<td width="100" align="center">您的信箱</td>
		<td><input type="text" onblur="ckemail();" name="email" value="post@126.com" class="spt" size="20" />
		悄悄话：<input type="radio" name="rqiao" checked value=1>公开
		<input type="radio" name="rqiao" value=0>悄悄
		<span id="emaildiv" class="fb"> *</span> </td>
	</tr>
	<tr>
		<td width="100" align="center">留言内容</td>
		<td colspan="2">
<span class="fb fred">UBB编辑器-></span>
<span class="fb fred">
<a href="javascript:addcontent('[b]','[/b]');" title=粗体>[Ｂ]</a>
<a href="javascript:addcontent('[i]','[/i]');" title=斜体>[Ｉ]</a>
<a href="javascript:addcontent('[u]','[/u]');" title=下划线>[Ｕ]</a>
<a href="javascript:addcontent('[size=4]','[/size]');" title=字体大小>[字]</a>
<a href="javascript:addcontent('[color=#000000]','[/color]');" title=字体颜色>[色]</a>
<a href="javascript:addcontent('[url=http://]','');" title=链接>[链]</a>
<a href="javascript:addcontent('[email=xxxxxx@xxxx.com]','');" title=邮件>[邮]</a>
<a href="javascript:addcontent('[img=http://,500,300]','');" title=图片>[图]</a>
<a href="javascript:addcontent('[flash=http://,500,300]','');" title=swf格式的文件>[FLASH]</a>
<a href="javascript:addcontent('[mp3=http://,0]','');" title=插入mp3文件>[MP3]</a>
<a href="javascript:addcontent('[flv=http://,500,400]','');" title=插入flv文件>[FLV]</a></span>
<br> 
		<textarea onblur="ckmsgcontent();" name="msgcontent" rows="6" cols="74" 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);></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>
		<input type="button" onclick="javascript:checkpost();" class="spt2" value="马上留言"> <input type="reset" class="spt2" value="重新来过"> <span id="msgcontentdiv" class="fb"> *</span>
		</td>
	</tr>
</table>
 </form>
{include file='footer.htm'}
