<?php $title = '挖宝讨论区 - ' . setting('webname');?>
<?php include_once tpl('globalHeader');?>
<div class="nav"><?php echo ilink('返回挖宝', url('system',array('s'=>'props','c'=>'wa')));?> <?php echo memberLink();?> <?php echo indexLink();?></div>
<?php if (!empty($comments)):?>
    <?php foreach ($comments as $comment):?>
        <div class="comment">[<?php echo $floor--;?>楼]<?php echo ilink($this->filter($comment['username']),url('system',array('s'=>'member','uid'=>$comment['uid'])));?>:<?php echo iubb(sFilter($this->filter($comment['message'])));?>[<?php echo $comment['createdate'];?>]</div>
    <?php endforeach;?>
    <div class="search">
    <?php echo $pageObj->show();?>
    </div>
<?php else:?>
    暂无讨论<br/>
<?php endif;?>
<form action="<?php echo url('system', array('s'=>'props','c'=>'wa','a'=>'comment'));?>" method="post">
<textarea name="message"></textarea>
<input type="submit" value="发表评论" />
</form>
<?php echo ilink('返回挖宝', url('system',array('s'=>'props','c'=>'wa')));?>
<br/>
<?php include_once tpl('globalFooter');?>