<?php include_once tpl('header');?>
<card title="查看帖子回复 - 社区">
<p align="left">
原贴:<?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;?>
<br/>
-----------------------
<br/>
<?php if (!empty($posts)):?>
	<?php $page = ($pageObj->getCurrentPage() - 1) * $pageObj->getPageSize();?>
	<?php foreach ($posts as $post):?>
		[<b><?php echo $post['floor'];?>楼</b>]<?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']));?>[<?php echo date('n/d H:i', $post['createdate']);?>]<?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'])));?>]<br/>
	<?php endforeach;?>
	<?php echo $pageObj->show();?>
	<?php if ($pageObj->getTotalPage() > 1):?><input type="text" name="page" value="1" size="3" />
    <a href="<?php echo url('system',array('s'=>'bbs','c'=>'post','a'=>'list','tid'=>$tid));?>&amp;page=$(page)">跳页</a>
	<br/>
	<?php endif;?>
<?php else:?>
	暂无回复<br/>
<?php endif;?>
<?php if ($allows['reply']):?>
<input type="text" name="content" value="" size="10" />
<anchor title="提交">快速回复<go method="post" href="<?php echo url('system',array('s'=>'bbs','c'=>'post','a'=>'reply','tid'=>$tid));?>">
	<postfield name="content" value="$(content)"/>
</go></anchor>
<br/>
<?php endif;?>
-----------------------
<br/>
<?php echo date('n/d H:i:s');?>
<br/>
<?php echo $this->nav($thread['fid']);?>
</p>
</card>
</wml>