<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>留言板</title>
<base href="{$config['siteurl']}">
<link href="{$css_path}css.css" type=text/css rel=stylesheet>
</head>

<body>
{include file="xdcms/header.html"}
  <div id="banner1">{get_block tag='banner'}</div>
  <div id="body3">
<!-- 二级导航 -->
<div id="body3_l">
    <div class="body3_l1">留言板</div>
    <div class="body3_l2">
        <ul>
        	<li><div class="body3_l2_t">&nbsp;<a href="index.php?m=guestbook&c=index&f=add">发表留言</a></div></li>
            <li><div class="body3_l2_t">&nbsp;<a href="index.php?m=guestbook">留言列表</a></div></li>
        </ul> 
    </div>
</div>
<!-- 二级导航 END  -->
    <div id="body3_r">
      <div class="body3_r1">
        <p><a href="/">首页</a> > 留言列表</p>留言板</div>
        <div class="body3_r2">
        <table width="100%" border="0" cellpadding="1" cellspacing="1" bgcolor="#CCCCCC">
          {loop sql="select * from {$pre}guestbook where state=1 order by id desc" rows="10" pages="page"}
          <tr>
            <td><b>标题：{$r.title} 发布人：{$r.username} 发布时间：{$r.inputtime|date_format:'%Y-%m-%d'}</b></td>
          </tr>
          <tr>
            <td>{$r.content}{loop sql="select * from {$pre}guestbook_reply where gid={$r.id}" rows="1" return="rp"}<font color="#ff0000">(管理员回复：{$rp.reply_content})</font>{/loop}</td>
          </tr>
          {/loop}
          <tr>
            <td>{$pages}</td>
          </tr>
        </table>
        </div>
    </div>
    <div class="Cle"></div>
  </div>
{include file="xdcms/footer.html"}
</div>
</body>
</html>
