<?php $title = '《' . $this->filter($diary['subject']) . '》留言列表-'.setting('webname');?>
<?php include_once tpl('globalHeader');;?>
返回:<?php echo ilink('日志列表',url('system',array('s'=>'member','c'=>'diary','uid'=>$diary['uid'])));?> <?php echo memberLink();?> <?php echo indexLink();?>
<div class="nav">日志:<?php echo ilink($this->filter($diary['subject']),url('system',array('s'=>'member','c'=>'diary','a'=>'read','id'=>$diary['id'])));?></div>
<?php if (!$diary['iscomment']):?>
	留言已关闭
<?php else:?>
	<?php if (!empty($comments)):?>
		<?php foreach ($comments as $comment):?>
            <div class="comment">
			[<?php echo $floor--;?>楼]<?php echo ilink($this->filter(userName($comment['uid'])),url('system',array('s'=>'member','uid'=>$comment['uid'])));?>:<?php echo iUbbCode($this->filter($comment['content']));?> (<?php echo date('y-m-d H:i:s', $comment['createdate']);?>)<?php if (isGM() || $this->uid() == $diary['uid']):?>[<?php echo ilink('删',url('system',array('s'=>'member','c'=>'diary','a'=>'cd','id'=>$comment['id'])));?>]<?php endif;?><br/>
            </div>
		<?php endforeach;?>
		<div class="search">
            [共<?php echo $pageObj->getTotalRecord();?>条留言 <?php echo $pageObj->getCurrentPage();?>/<?php echo $pageObj->getTotalPage();?>页]
	        <?php echo $pageObj->show();?>
	    </div>
	<?php else:?>
		暂无留言
	<?php endif;?>
    <form action="<?php echo url('system',array('s'=>'member','c'=>'diary','a'=>'comment','f'=>1,'id'=>$diary['id']));?>" method="post">
        <textarea style="width: 99%" name="comment"></textarea>
        <br/>
        <input type="submit" value="留言" />
    </form>
<?php endif;?>

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