<?php $title = ($isSelf ? '我' : 'Ta') . '的社区发帖 - ' . 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"><?php if ($isSelf):?>我<?php else:?>Ta<?php endif;?>的社区发帖</div>
<div class="block">
按发帖时间:<?php if ($sort == 'DESC' && $field == 'id'):?><?php echo ilink('降序',url('system',array('s'=>'member','c'=>'my','a'=>'post','sort'=>'DESC','f'=>1,'uid'=>$uid)));?><?php else:?><?php echo ilink('升序',url('system',array('s'=>'member','c'=>'my','a'=>'post','f'=>1,'uid'=>$uid)));?><?php endif;?>
<br/>
按回复时间:<?php if ($sort == 'DESC' && $field == 'lastpost'):?><?php echo ilink('降序',url('system',array('s'=>'member','c'=>'my','a'=>'post','sort'=>'DESC','uid'=>$uid)));?><?php else:?><?php echo ilink('升序',url('system',array('s'=>'member','c'=>'my','a'=>'post','uid'=>$uid)));?><?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'])));?>(回<?php echo $thread['replies'];?> 点<?php echo $thread['hits'];?> <?php echo $this->filter($thread['lastpost_user']);?> <?php echo date('y/m/d H:i', $thread['lastpost']);?>)
        </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:?>
    您还没在社区发过主题贴<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');?>