<?php include_once tpl('header');?>
<card title="<?php echo $forum['name'];?> - 社区">
<p align="left">
<?php echo $this->nav($fid);?>
<br/>
-------------
<br/>
<?php if ($isAllowPost):?><?php echo ilink('发新贴',url('system',array('s'=>'bbs','c'=>'thread','a'=>'default','fid'=>$forum['fid'])));?>|<?php endif;?><?php if ($isAllowSearch):?><?php echo ilink('搜索',url('system',array('s'=>'bbs','a'=>'search','fid'=>$fid)));?>|<?php endif;?><?php echo ilink('新贴',url('system',array('s'=>'bbs','a'=>'new','fid'=>$fid)));?>|<?php echo ilink('精华',url('system',array('s'=>'bbs','a'=>'forum','fid'=>$fid,'filter'=>'digest')));?>|<?php echo ilink('刷新',url('system',array('s'=>'bbs','a'=>'forum','fid'=>$fid)));?>|<?php echo ilink('版务', url('system', array('s'=>'bbs', 'a'=>'log', 'fid'=>$fid)));?>|<?php echo ilink('思过涯',url('system',array('s'=>'bbs','a'=>'ban','fid'=>$fid)));?>
<br/>
<?php if (!empty($forum['rule'])):?><img src="images/bugle.gif" />公告:<?php echo $this->ubbCode($forum['rule']);?><br/><?php endif;?>
<?php if (!empty($childs)):?>子版块:<?php foreach ($childs as $key => $value):?>〓<?php echo ilink($value,url('system',array('s'=>'bbs','a'=>'forum','fid'=>$key)));?>〓<?php endforeach;?><br/><?php endif;?>
<?php if ($forum['t_type'] && !empty($typeList)):?>分类:<?php foreach ($typeList as $type):?><?php echo ilink($type['name'],url('system',array('s'=>'bbs','a'=>'forum','fid'=>$fid,'filter'=>'type','typeid'=>$type['id'])));?> <?php endforeach;;?><br/><?php endif;?>
-------------
<br/>
<?php if (!empty($threads)):?>
	<?php $page = ($pageObj->getCurrentPage() - 1) * $pageObj->getPageSize();?>
	<?php foreach ($threads as $thread):?>
		<?php echo ++$page;?>.<?php if ($thread['topped']):?>[顶<?php echo $thread['topped'];?>]<?php endif;?><?php if ($thread['isdigest']):?>[精]<?php endif;?><?php if ($thread['ismark']):?><b>[<?php echo userName($thread['markuid']);?>已阅]</b><?php endif;?><?php if ($thread['islock']):?>[锁]<?php endif;?><?php if ($thread['lastpost'] > CTIME):?>[前]<?php endif;?><?php if ($thread['special']):?><?php if (1 == $thread['special']):?>[票]<?php elseif (2 == $thread['special']):?>[赏]<?php elseif (3 == $thread['special']):?>[售]<?php elseif (5 == $thread['special']):?>[抢楼]<?php endif;?><?php endif;?><?php if ($thread['isupload']):?>[附]<?endif;?><?php echo $thread['type'];?><?php echo ilink($this->filter(BookPost::filter($thread['subject'])),url('system',array('s'=>'bbs','a'=>'thread','tid'=>$thread['id'])));?><?php if ($thread['rating']):?>[+<?php echo $thread['ratings'];?>]<?php endif;?>(<?php echo ilink($this->filter(userName($thread['uid'])),url('system',array('s'=>'member','uid'=>$thread['uid'])));?> 回<?php echo ilink($thread['replies'],url('system',array('s'=>'bbs','c'=>'post','a'=>'list','tid'=>$thread['id'])));?> 点<?php echo $thread['hits'];?> <?php echo date('y/m/d H:i', $thread['lastpost']);?>)<br/>
	<?php endforeach;?>
	
	----------------
	<br/>
	[共<?php echo $pageObj->getTotalRecord();?>贴 <?php echo $pageObj->getCurrentPage();?>/<?php echo $pageObj->getTotalPage();?>]
	<br/>
	<?php echo $pageObj->show();?>
	<input type="text" name="page" value="1" size="3" />
    <a href="<?php echo url('system',array('s'=>'bbs','a'=>'forum','fid'=>$forum['fid']));?>&amp;page=$(page)">跳页</a>
	<br/>
<?php else:?>
	本版块暂无主题贴<br/>
<?php endif;?>
-----------------------
<br/>
今日: <?php echo $forum['todayposts'];?> , 主题: <?php echo $forum['threads'];?> , 帖数: <?php echo $forum['posts'];?>
<br/>
-----------------------
<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 echo isOnlineView($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>