{include file="admin/header.html"}
{nocache}
<h1 class="xdcms_search_title">留言板管理</h1>
<div class="line"></div>
<form name="form"  id="form" action="index.php?m=guestbook&c=admin&f=delete" method="post">
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="xdcms_table">
  <tr>
    <th colspan="7" class="title"><div class="title_nav_1"><a href="index.php?m=guestbook&c=admin&f=setting">留言设置</a></div><span>|</span><div class="title_nav_2"><a href="index.php?m=guestbook&c=admin">管理留言</a></div><span>|</span><div class="title_nav_3"><a href="javascript:location.reload()">刷新页面</a></div></th>
  </tr>
  <tr>
    <td width="6%" class="tc"><input name="checkSelect" type="checkbox" class="checkbox" onClick="javascript: checkAll(this)" value="checkbox"></td>
    <td width="9%">ID</td>
    <td width="41%">标题</td>
    <td width="7%">留言者</td>
    <td width="17%">发布时间</td>
    <td width="11%">操作</td>
  </tr>
{loop sql="select * from {$pre}guestbook order by id desc" pages="page" urlrule="index.php"}
<tr {if $r._index%2==0}class="bf"{/if}>> 
    <td class="tc"><input type="checkbox" name="id[]" value="{$r.id}" class="checkbox" /></td>
    <td>{$r.id}</a></td>
    <td align="left">{$r.title}</td>
    <td>{$r.username}</td>
    <td>{$r.inputtime|date_format:'%Y-%m-%d'}</td>
    <td>{if $r.state==0}<a href="index.php?m=guestbook&c=admin&f=audit&id={$r.id}&state=1"><font color='#FF0000'>未审核</font></a>{else}<a href="index.php?m=guestbook&c=admin&f=audit&id={$r.id}&state=0">已审核</a>{/if} | <a href="index.php?m=guestbook&c=admin&f=reply&id={$r.id}">回复</a> | <a href="index.php?m=guestbook&c=admin&f=delete&id={$r.id}">删除</a></td>
</tr>
{/loop}
<tr>
	<td class="tc"><input name="submit" type="submit" class="inputs" value=" 删除 " /></td>
    <td colspan="5">&nbsp;</td>
  </tr>
 <tr class="bf">
    <td colspan="6" class="tc">{$pages}</td>
 </tr>
</table>
</form>
{/nocache}
<div class="xdcms_bottom"></div>
</body>
</html>
