<?php $title = '软件评论列表 - ' . setting('webname');?>
<?php include_once tpl('globalHeader');?>
<?php echo $this->nav($soft['cid']);?>
<div class="nav"><?php echo ilink($soft['name'], url('system', array('s'=>'soft','a'=>'view','id'=>$soft['id'])));?></div>
<?php if (!empty($comments)):?>
	<?php foreach ($comments as $comment):?>
        <div class="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']);?>]
        </div>
	<?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;?>

<form action="<?php echo url('system',array('s'=>'soft','a'=>'comment','id'=>$soft['id'],'back'=>$GLOBALS['selfurl']));?>" method="post">
<textarea rows="4" style="width:99%" name="content"></textarea>
<br/>
<input type="submit" value="发表评论" />
</form>

<?php include_once tpl('globalFooter');?>