<?php $title = '我收藏的社区帖 - ' . setting('webname');?>
<?php include_once tpl('globalHeader');?>
<?php echo backLink();?> <?php echo memberLink();?> <a href="<?php echo url('system',array('s'=>'member','c'=>'message'));?>">信箱</a>
<div class="nav">我收藏的社区帖</div>
<div class="block">
按发帖时间:<?php if ($sort == 'DESC' && $field == 'f.fid'):?><?php echo ilink('降序',url('system',array('s'=>'member','c'=>'my','a'=>'ft','sort'=>'DESC','f'=>1)));?><?php else:?><?php echo ilink('升序',url('system',array('s'=>'member','c'=>'my','a'=>'ft','f'=>1)));?><?php endif;?>
<br/>
按回复时间:<?php if ($sort == 'DESC' && $field == 'lastpost'):?><?php echo ilink('降序',url('system',array('s'=>'member','c'=>'my','a'=>'ft','sort'=>'DESC')));?><?php else:?><?php echo ilink('升序',url('system',array('s'=>'member','c'=>'my','a'=>'ft')));?><?php endif;?>
</div>
<?php if (!empty($threads)):?>
    <?php foreach ($threads as $thread):?>
        <div class="comment">
        <?php if ($thread['isdigest']):?>[<b>精</b>]<?php endif;?><?php echo ilink($floor--.'.'.$this->filter($thread['subject']),url('system',array('s'=>'bbs','a'=>'thread','tid'=>$thread['id'])));?>(<span class="f">回<?php echo $thread['replies'];?> 点<?php echo $thread['hits'];?> 收<?php echo $thread['favors'];?> <?php echo $this->filter($thread['lastpost_user']);?> <?php echo date('Y/m/d H:i', $thread['lastpost']);?></span>)[<?php echo ilink('删', url('system', array('s'=>'member','c'=>'my','a'=>'ft','do'=>'delete','id'=>$thread['id'])));?>]
            <br/>
            作者: <?php echo ilink(userName($thread['uid']), url('system', array('s'=>'member','uid'=>$thread['uid'])));?>
        </div>
    <?php endforeach;?>
    <div class="search">
    共<?php echo $pagination->getTotalRecord();?>贴 [<?php echo $pagination->getCurrentPage();?>/<?php echo $pagination->getTotalPage();?>页]
    <br/>
    <?php echo $pagination->show();?>
    </div>
<?php else:?>
    您还没收藏过社区贴，赶紧<?php echo ilink('去社区看看', url('system', array('s'=>'bbs')));?>？<br/>
<?php endif;?>
<?php echo backLink();?> <?php echo memberLink();?> <a href="<?php echo url('system',array('s'=>'member','c'=>'message'));?>">信箱</a>
<?php include_once tpl('globalFooter');?>