<?php include_once tpl('header');?>
<card title="<?php echo $forum['name'];?> - 社区">
<p align="left">
||<?php echo $forum['name'];?>精华贴||
<br/>
<?php if ($isAllowPost):?><?php echo ilink('发新贴',url('system',array('s'=>'bbs','c'=>'thread','a'=>'default','fid'=>$forum['fid'])));?>|<?php endif;?><?php echo ilink('新贴',url('system',array('s'=>'bbs','a'=>'new','fid'=>$fid)));?>|<?php echo ilink('刷新',$selfurl);?>|<?php echo ilink('思过涯',url('system',array('s'=>'bbs','a'=>'ban','fid'=>$fid)));?>
<br/>
-------------
<br/>
<?php if (!empty($threads)):?>
	<?php $page = ($pageObj->getCurrentPage() - 1) * $pageObj->getPageSize();?>
	<?php foreach ($threads as $thread):?>
		<?php echo ++$page;?>.<?php if ($thread['topped']):?><b>[顶<?php echo $thread['topped'];?>]</b><?php endif;?><?php if ($thread['isdigest']):?><b>[精]</b><?php endif;?><?php if ($thread['islock']):?><b>[锁]</b><?php endif;?><?php echo ilink($this->filter($thread['subject']),url('system',array('s'=>'bbs','a'=>'thread','tid'=>$thread['id'])));?>(<?php echo ilink($this->filter($thread['username']),url('system',array('s'=>'member','uid'=>$thread['uid'])));?> 回<?php echo $thread['replies'];?> 点<?php echo $thread['hits'];?> <?php echo date('y/m/d H:i', $thread['createdate']);?>)<br/>
	<?php endforeach;?>
	
	----------------
	<br/>
	[共<?php echo $pageObj->getTotalRecord();?>贴 <?php echo $pageObj->getCurrentPage();?>/<?php echo $pageObj->getTotalPage();?>]
	<br/>
	<?php echo $pageObj->show();?>
	<br/>
<?php else:?>
	本版块暂无精华主题贴<br/>
<?php endif;?>
-----------------------
<br/>
||本版块斑竹||
<br/>
<?php if (!empty($forum['forumadmin'])):?>
	<?php $forumAdmins = explode(',', trim($forum['forumadmin'],','));?>
	<?php foreach ($forumAdmins as $admin):?>
		<?php echo ilink(Members::single()->getNameByUid($admin),url('system',array('s'=>'member','uid'=>$admin)));?>
	<?php endforeach;;?>
<?php else:?>
	本版块暂无斑竹
<?php endif;?>
<br/>
-----------------------
<br/>
<?php echo date('n/d H:i:s');?>
<br/>
<?php echo $this->nav($fid);?>
</p>
</card>
</wml>