<?php include_once tpl('header');?>
<card title="<?php if ($fid):?><?php echo $forum['name'];?><?php endif;?>新贴 - 社区">
<p align="left">
||<?php echo date('n月d日');?>新帖||
<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'=>'forum','filter'=>'digest','fid'=>$fid)));?>|<?php echo ilink('刷新',url('system',array('s'=>'bbs','a'=>'forum','fid'=>$fid)));?>|<?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(userName($thread['uid'])),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(userName($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 if ($fid):?><?php echo $this->nav($fid);?><?php else:?><?php echo backLink();?><?php endif;?>
</p>
</card>
</wml>