<?php $title = '社区 - '.setting('webname');?>
<?php $bbsIndex = true; include_once tpl('globalHeader');?>
<img src='<?php echo getImageFile('bbs/logo.gif');?>' alt="logo" />
<br/>
<?php include_once tpl('topnav');?>
<div class="nav">
<?php echo ilink('浏览记录', url('system', array('s'=>'bbs','a'=>'history')));?>|<?php echo ilink('帮助',url('system',array('s'=>'bbs','a'=>'ubb')));?>|<?php echo ilink('版规',url('system',array('s'=>'bbs','a'=>'thread','tid'=>26352)));?>|<?php echo ilink('软件', url('system', array('s'=>'soft')));?>|<a href="<?php echo url('system',array('s'=>'forum','a'=>'new'));?>">热聊</a>
</div>
<div class="kind">【热议话题】</div>
<div class="content">
<?php foreach ($news as $new):?>
	<?php echo ilink(sFilter($this->filter(mb_substr($new['subject'],0,20,'utf8'))),url('system',array('s'=>'bbs','a'=>'thread','tid'=>$new['id'])));?><br/>
<?php endforeach;?>
</div>
<?php foreach ($allowForums as $forum):?>
	<?php $i = 1;?>
	<div class="kind">〓<?php echo $forum['name'];?>〓</div>
        <div class="content">
		<?php foreach ($forum['child'] as $fid => $name):?>
			<?php echo ilink($name.'(今日:'.$forumCounts[$fid]['todayposts'].')',url('system',array('s'=>'bbs','a'=>'forum','fid'=>$fid)));?>
			<br/>
			<?php //if ($i++ % 2 == 0):?>
			<?php //endif;?>
		<?php endforeach;?>
        </div>
<?php endforeach;?>

<?php echo randAd('read,other,show,chapter,bbs,index,member,forum');?>
<div class="pl">时间：<?php echo date('n/d H:i:s');?></div>
<?php echo ilink(setting('webname'),url('index'));?>&gt;<?php echo ilink('社区',url('system',array('s'=>'bbs')));?>
</html>