<style type="text/css">
<!--
.tb1 {
	background-color: ;
	border-top-width: 4px;
	border-top-style: outset;
	border-top-color: #c0c0c0;
}
.tb2 {
	color:#000000;
	font-weight:bold
}
.bts
{
border:1px solid #4C77B6;
background-color: #EAEAEA;
font-family:Tahoma, Arial;
font-size:12px
}
-->
</style>
<table width="100%" border="0" cellpadding="0" cellspacing="1" class="tb1">
<TR class=tb2>
	<TD><input name=sub type=button value="发表评论" class="bts" onclick="document.cform.comment_text.focus();"></TD>
	<TD>评论人</TD>
	<TD>评论标题 [<a href={%$root%}/comments.php?id={%$aid%} target=_blank>显示全部</a>]</TD>
	<TD>发表时间</TD>
</TR>
<TR class=tb2>
	<TD colspan=4><hr size=1 noshade></TD>
</TR>
{%section name=cm loop=$comms %}
<TR bgcolor=#ffffff>
	<TD>第{%$comms[cm].num %}楼</TD>
	<TD>{%$comms[cm].post_uid %}</TD>
	<TD>{%$comms[cm].comments %}</TD>
	<TD>{%$comms[cm].post_date %}</TD>
</TR>
{%/section%}
<TR>
	<TD colspan=4>
<table>
<form method="post" action="{%$root%}/comments.php" name=cform><div>
<input type="hidden" name="id" value="{%$aid%}" />
<input type="hidden" name="action" value="saveComment" />
<tr>
<td colspan="3" id="cform" style="display:">
<b><a name=cform>发表评论:</b><br />
<textarea   style="width: 400px;" name="comment_text" cols="45" rows="4" class=bts></textarea><br />
</td>
</tr>
<tr>
<td >名称:<input type="text" name="name" value="" size="15" maxlength="25" class=bts /></td>
<td >Email<input  type="text" name="email" value="" size="15" maxlength="60" class=bts /></td>
<td valign=middle>
<input type="submit" value="发表评论" class="bts"/></td>
</tr>
</table></form>
	</TD>
</TR>
</TABLE>