<?php $title = $this->filter($thread['subject']) . ' - 社区';?>
<?php include_once tpl('globalHeader');?>
<?php echo $this->nav($forum['fid']);?>
<div class="nav">原贴:<?php echo ilink($this->filter($thread['subject']), url('system',array('s'=>'bbs','a'=>'thread','tid'=>$tid)));?>/<?php if ('ASC'== $sort):?><?php echo ilink('顺序',url('system',array('s'=>'bbs','c'=>'post','a'=>'list','tid'=>$tid)));?><?php else:?><?php echo ilink('倒序',url('system',array('s'=>'bbs','c'=>'post','a'=>'list','tid'=>$tid,'sort'=>'ASC')));?><?php endif;?></div>
<?php if (!empty($posts)):?>
	<?php $page = ($pageObj->getCurrentPage() - 1) * $pageObj->getPageSize();?>
	<?php foreach ($posts as $post):?>
		<div class="comment">[<?php echo $post['floor'];?>楼]<?php echo ilink($this->filter(userName($post['uid'])), url('system',array('s'=>'bbs','c'=>'post','a'=>'to','pid'=>$post['id'])));?>:<?php echo sFilter($this->ubbCode($post['content']));?><span class="f">(<?php echo date('n/d H:i', $post['createdate']);?>)</span><?php if ($this->showLite($allows)):?>[<?php echo ilink('管理', url('system', array('s'=>'bbs','c'=>'manage','a'=>'lite','pid'=>$post['id'])));?>]<?php endif;?>[<?php echo ilink('只看Ta',url('system',array('s'=>'bbs','c'=>'post','a'=>'list','tid'=>$post['tid'],'uid'=>$post['uid'])));?>]</div>
	<?php endforeach;?>
    <div class="search">
	<?php echo $pageObj->show();?>
	</div>
<?php else:?>
	暂无回复<br/>
<?php endif;?>
<?php if ($allows['reply']):?>
<form action="<?php echo url('system',array('s'=>'bbs','c'=>'post','a'=>'reply','tid'=>$tid));?>" method="post">
<textarea rows="4" style="width:90%;" name="content"></textarea>
<br/>
<input type="submit" value="快速回复" />
</form>
<?php endif;?>
<?php echo date('n/d H:i:s');?>
<br/>
<?php echo $this->nav($forum['fid']);?>
</html>