
<!--以下为中间主要布局部分:center -->
{literal}
<script language='javascript'>
function chk()
{
var d = new Date();
document.getElementById('rand').src="captcha.php?t="+d.toTimeString()
}
</script>
{/literal}
<div id="center">
  <div id="centerby">
   <div class="tl">
   <div class="tr">
      <!-- 留言本布局 -->
      <div id="book_a">
	  		<div id="nr"></div>
			{if $error}<div id="error"> 错误：{$error} </div>{/if}
			{if $result}
			{ section name=row loop=$result }
			<div id="book_tab">
			<table width="480" border="0" cellspacing="0" cellpadding="0" id="table">
  			<tr>
    		<th colspan="2" scope="col" id="thead">{$result[row].l_id}  标题：{$result[row].l_title}</th>
  			</tr>
  			<tr>
    		<td class="ttl">留言者：{$result[row].l_name}</td>
    		<td class="ttl">留言时间：{$result[row].l_time}</td>
  			</tr>
  			<tr>
   			<td class="ttl">留言者IP：{$result[row].l_ip}</td>
    		<td class="ttl">留言者Email:{$result[row].l_mail}</td>
  			</tr>
  			<tr>
    		<td colspan="2" class="tbl">留言内容：<br />{$result[row].l_lynr|wordwrap:66:"<br />":true}</td>
  			</tr>
  			<tr>
    		<td colspan="2" class="tbl">{if $result[row].hf_nr}管理员回复：{$result[row].hf_nr}{/if}</td>
  			</tr>
			</table>
			</div> <!-- book_tab -->
			{ /section }
			<div id="page"><span>共[{ $pagenum}]页</span>
			{ section name=row loop=$pages }
			{$pages[row].0}
			{/section}
			</div>
			{else}
			<table width="480" border="0" cellspacing="0" cellpadding="0" id="table">
			没有留言...
			</table>
			{/if}
	  </div><!-- book_a -->
	  <div id="book_b">
	  		<div id="ni"></div>
			
			<form name="from1" id="from1" method="post" action="book.php?action=add">
			<table border="0" cellspacing="0" cellpadding="0" id="fortab">
			<tr>
			<td>标题*：</td>
			<td><input name="title" type="text"/></td>
			</tr>
			<tr>
			<td>姓名*：</td>
			<td><input name="name" type="text" /></td>
			</tr>
			<tr>
			<td>Email*：</td>
			<td><input name="email" type="text" /></td>
			</tr>
			<tr>
			<td>浏览权限：</td>
			<td><select name="select">
    			<option value="all">所有人</option>
    			<option value="mst">管理员</option>
				</select>
			</td>
			
			<tr>
			<td>验证码*：</td>
			<td><input name="capt" type="text" size="5" maxlength="4" />
			<img id='rand' src='captcha.php'></img><a href='javascript:chk()'>看不清楚</a></td>
			</tr>
			
			</tr>
			<tr>
			<td>内容*：</td>
			<td><textarea name="ms" rows="10"/></textarea></td>
			</tr>
			</table>
			<input type="submit" name="submit" value="提交" class="submails" />
			</form>

	  </div><!-- book_b -->
	</div> <!-- tr -->
	</div> <!-- tl -->
  </div> <!-- centerby -->
</div> <!-- center -->
