<?php include_once tpl('header');?>
<card title="软件评论列表 - <?php echo setting('webname');?>">
<p align="left">
返回:<?php echo backLink('上级');?>.<?php echo ilink('软件', url('system', array('s'=>'soft', 'a'=>'view', 'id'=>$soft['id'])));?>.<?php echo memberLink();?>
<br/>
-----------------------
<br/>
<?php if (!empty($comments)):?>
	<?php foreach ($comments as $comment):?>
		[<b><?php echo $comment['floor'];?>楼</b>]<?php echo ilink($this->filter(userName($comment['uid'])), url('system',array('s'=>'bbs','c'=>'post','a'=>'to','pid'=>$comment['id'])));?>:<?php echo iUbbCode($comment['content']);?>[<?php echo date('n/d H:i', $comment['createdate']);?>]<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;?>

<input type="text" name="content" value="" size="10" />
<anchor title="提交">快速回复<go method="post" href="<?php echo url('system',array('s'=>'soft','a'=>'comment','id'=>$soft['id'],'back'=>$GLOBALS['selfurl']));?>">
	<postfield name="content" value="$(content)"/>
</go></anchor>
<br/>
-----------------------
<br/>
<?php echo date('n/d H:i:s');?>
<br/>
<?php echo $this->nav($soft['cid']);?>
<br/>
<?php include_once tpl('footer');?>