www.gusucode.com > 新锐创想轻主题社区(电脑+手机版)【整站带数据】 > 新锐创想轻主题社区(电脑+手机版)【整站带数据】/web/data/template/2_diy_forum_discuz.tpl.php

    <?php if(!defined('IN_DISCUZ')) exit('Access Denied'); hookscriptoutput('discuz');
block_get('35,36,37,38,39');?><?php include template('common/header'); if(empty($gid)) { ?><?php echo adshow("text/wp a_t");?><?php } ?>



<style id="diy_style" type="text/css"></style>



<?php if(empty($gid)) { ?>

<div class="wp">

<!--[diy=diy1]--><div id="diy1" class="area"></div><!--[/diy]-->

</div>

<?php } ?>



<div id="ct" class="xr_forum wp cl">

<!--[diy=diy_chart]--><div id="diy_chart" class="area"></div><!--[/diy]-->
<style>
.hdp { width:720px; height:320px; float: left;}
.hdp .block, .ltng .block {margin:0;}
.ltng { width:405px; height:320px; float: right;}
</style>
<!-- 论坛页N格 -->
<div class="lthdp " >
    <div  class="hdp bp">
    <!--[diy=diy_hdp]--><div id="diy_hdp" class="area"><div id="frameX5GMPG" class="frame move-span cl frame-1"><div id="frameX5GMPG_left" class="column frame-1-c"><div id="frameX5GMPG_left_temp" class="move-span temp"></div><?php block_display('35');?></div></div></div><!--[/diy]-->
</div>
<div  class="ltng bp">
       	<!--[diy=diy_ltng]--><div id="diy_ltng" class="area"><div id="tabE6CxXX" class="zfxxx frame-tab move-span cl"><div id="tabE6CxXX_title" class="tab-title title column cl" switchtype="mouseover"><?php block_display('36');?><?php block_display('37');?><?php block_display('38');?><?php block_display('39');?></div><div id="tabE6CxXX_content" class="tb-c"></div><script type="text/javascript">initTab("tabE6CxXX","mouseover");</script></div></div><!--[/diy]-->
</div>

</div>
<div style="clear:both"></div>

<div class="mn">

<?php if(!empty($_G['setting']['grid']['showgrid'])) { ?>

<!-- index four grid -->

<div id="category_grid" class="xr_grid bp">

<table cellspacing="0" cellpadding="0"><tr>

<?php if(!$_G['setting']['grid']['gridtype']) { ?>

<td valign="top" class="category_l1">

<div class="newimgbox">

<div class="module cl slidebox_grid" style="width:288px;height:288px;overflow:hidden;">

<script type="text/javascript">

var slideSpeed = 5000;

var slideImgsize = [288,288];

var slideBorderColor = '<?php echo $_G['style']['specialborder'];?>';

var slideBgColor = '<?php echo $_G['style']['commonbg'];?>';

var slideImgs = new Array();

var slideImgLinks = new Array();

var slideImgTexts = new Array();

var slideSwitchColor = '<?php echo $_G['style']['tabletext'];?>';

var slideSwitchbgColor = '<?php echo $_G['style']['commonbg'];?>';

var slideSwitchHiColor = '<?php echo $_G['style']['specialborder'];?>';<?php $k = 1;?><?php if(is_array($grids['slide'])) foreach($grids['slide'] as $stid => $svalue) { ?>slideImgs[<?php echo $k; ?>] = '<?php echo $svalue['image'];?>';

slideImgLinks[<?php echo $k; ?>] = '<?php echo $svalue['url'];?>';

slideImgTexts[<?php echo $k; ?>] = '<?php echo $svalue['subject'];?>';<?php $k++;?><?php } ?>

</script>

<script src="<?php echo $_G['setting']['jspath'];?>forum_slide.js?<?php echo VERHASH;?>" type="text/javascript"></script>

</div>

</div>

</td>

<?php } ?>

<td valign="top" class="category_l2">

<div class="subjectbox">

<h4><span class="tit_subject"></span>最新主题</h4>

<ul class="category_newlist"><?php if(is_array($grids['newthread'])) foreach($grids['newthread'] as $thread) { if(!$thread['forumstick'] && $thread['closed'] > 1 && ($thread['isgroup'] == 1 || $thread['fid'] != $_G['fid'])) { $thread[tid]=$thread[closed];?><?php } ?>

<li><a href="forum.php?mod=viewthread&amp;tid=<?php echo $thread['tid'];?>&amp;extra=<?php echo $extra;?>"<?php if($thread['highlight']) { ?> <?php echo $thread['highlight'];?><?php } if($_G['setting']['grid']['showtips']) { ?> tip="标题: <strong><?php echo $thread['oldsubject'];?></strong><br/>作者: <?php echo $thread['author'];?> (<?php echo $thread['dateline'];?>)<br/>查看/回复: <?php echo $thread['views'];?>/<?php echo $thread['replies'];?>" onmouseover="showTip(this)"<?php } else { ?> title="<?php echo $thread['oldsubject'];?>"<?php } if($_G['setting']['grid']['targetblank']) { ?> target="_blank"<?php } ?>><?php echo $thread['subject'];?></a></li>

<?php } ?>

 </ul>

 </div>

</td>

<td valign="top" class="category_l3">

<div class="replaybox">

<h4><span class="tit_replay"></span>最新回复</h4>

<ul class="category_newlist"><?php if(is_array($grids['newreply'])) foreach($grids['newreply'] as $thread) { if(!$thread['forumstick'] && $thread['closed'] > 1 && ($thread['isgroup'] == 1 || $thread['fid'] != $_G['fid'])) { $thread[tid]=$thread[closed];?><?php } ?>

<li><a href="forum.php?mod=redirect&amp;tid=<?php echo $thread['tid'];?>&amp;goto=lastpost#lastpost"<?php if($thread['highlight']) { ?> <?php echo $thread['highlight'];?><?php } if($_G['setting']['grid']['showtips']) { ?>tip="标题: <strong><?php echo $thread['oldsubject'];?></strong><br/>作者: <?php echo $thread['author'];?> (<?php echo $thread['dateline'];?>)<br/>查看/回复: <?php echo $thread['views'];?>/<?php echo $thread['replies'];?>" onmouseover="showTip(this)"<?php } else { ?> title="<?php echo $thread['oldsubject'];?>"<?php } if($_G['setting']['grid']['targetblank']) { ?> target="_blank"<?php } ?>><?php echo $thread['subject'];?></a></li>

<?php } ?>

 </ul>

 </div>

</td>

<td valign="top" class="category_l3">

<div class="hottiebox">

<h4><span class="tit_hottie"></span>热帖</h4>

<ul class="category_newlist"><?php if(is_array($grids['hot'])) foreach($grids['hot'] as $thread) { if(!$thread['forumstick'] && $thread['closed'] > 1 && ($thread['isgroup'] == 1 || $thread['fid'] != $_G['fid'])) { $thread[tid]=$thread[closed];?><?php } ?>

<li><a href="forum.php?mod=viewthread&amp;tid=<?php echo $thread['tid'];?>&amp;extra=<?php echo $extra;?>"<?php if($thread['highlight']) { ?> <?php echo $thread['highlight'];?><?php } if($_G['setting']['grid']['showtips']) { ?> tip="标题: <strong><?php echo $thread['oldsubject'];?></strong><br/>作者: <?php echo $thread['author'];?> (<?php echo $thread['dateline'];?>)<br/>查看/回复: <?php echo $thread['views'];?>/<?php echo $thread['replies'];?>" onmouseover="showTip(this)"<?php } else { ?> title="<?php echo $thread['oldsubject'];?>"<?php } if($_G['setting']['grid']['targetblank']) { ?> target="_blank"<?php } ?>><?php echo $thread['subject'];?></a></li>

<?php } ?>

 </ul>

 </div>

</td>

<?php if($_G['setting']['grid']['gridtype']) { ?>

<td valign="top" class="category_l4">

<div class="goodtiebox">

<h4><span class="tit_goodtie"></span>精华帖子</h4>

<ul class="category_newlist"><?php if(is_array($grids['digest'])) foreach($grids['digest'] as $thread) { if(!$thread['forumstick'] && $thread['closed'] > 1 && ($thread['isgroup'] == 1 || $thread['fid'] != $_G['fid'])) { $thread[tid]=$thread[closed];?><?php } ?>

<li><a href="forum.php?mod=viewthread&amp;tid=<?php echo $thread['tid'];?>&amp;extra=<?php echo $extra;?>"<?php if($thread['highlight']) { ?> <?php echo $thread['highlight'];?><?php } if($_G['setting']['grid']['showtips']) { ?> tip="标题: <strong><?php echo $thread['oldsubject'];?></strong><br/>作者: <?php echo $thread['author'];?> (<?php echo $thread['dateline'];?>)<br/>查看/回复: <?php echo $thread['views'];?>/<?php echo $thread['replies'];?>" onmouseover="showTip(this)"<?php } else { ?> title="<?php echo $thread['oldsubject'];?>"<?php } if($_G['setting']['grid']['targetblank']) { ?> target="_blank"<?php } ?>><?php echo $thread['subject'];?></a></li>

<?php } ?>

 </ul>

</div>

</td>

<?php } ?>

</table>

</div>

<!-- index four grid end -->

<?php } if(empty($gid)) { ?>

<div id="chart" class="cl">

<ul class="chart z">

<li class="t">今日帖数: <em><?php echo $todayposts;?></em></li>

<li class="ye">昨日帖数: <em><?php echo $postdata['0'];?></em></li>

<li class="p">帖子数: <em><?php echo $posts;?></em></li>

<li class="m">会员总数: <em><?php echo $_G['cache']['userstats']['totalmembers'];?></em></li>

</ul>

<div class="y">

<?php if($_G['cache']['userstats']['newsetuser']) { ?>欢迎新会员:<em><a href="home.php?mod=space&amp;username=<?php echo rawurlencode($_G['cache']['userstats']['newsetuser']); ?>" target="_blank" class="xi2"><?php echo $_G['cache']['userstats']['newsetuser'];?></a></em><?php } ?>

</div>

</div>

<?php } ?>



<?php if(!empty($_G['setting']['pluginhooks']['index_top'])) echo $_G['setting']['pluginhooks']['index_top'];?>

<?php if(!empty($_G['cache']['heats']['message'])) { ?>

<div class="xr_forum_box bp">

<div class="xr_forum_tit cl">

<h2><?php echo $_G['setting']['navs']['2']['navname'];?>热点</h2>

</div>

<div class="cl">

<div class="heat z"><?php if(is_array($_G['cache']['heats']['message'])) foreach($_G['cache']['heats']['message'] as $data) { ?><dl class="xld">

<dt><?php if($_G['adminid'] == 1) { ?><a class="d" href="forum.php?mod=misc&amp;action=removeindexheats&amp;tid=<?php echo $data['tid'];?>" onclick="return removeindexheats()">delete</a><?php } ?>

<a href="forum.php?mod=viewthread&amp;tid=<?php echo $data['tid'];?>" target="_blank" class="xi2"><?php echo $data['subject'];?></a></dt>

<dd><?php echo $data['message'];?></dd>

</dl>

<?php } ?>

</div>

<ul class="xl xl1 heatl"><?php if(is_array($_G['cache']['heats']['subject'])) foreach($_G['cache']['heats']['subject'] as $data) { ?><li><?php if($_G['adminid'] == 1) { ?><a class="d" href="forum.php?mod=misc&amp;action=removeindexheats&amp;tid=<?php echo $data['tid'];?>" onclick="return removeindexheats()">delete</a><?php } ?>&middot; <a href="forum.php?mod=viewthread&amp;tid=<?php echo $data['tid'];?>" target="_blank" class="xi2"><?php echo $data['subject'];?></a></li>

<?php } ?>

</ul>

</div>

</div>

<?php } ?>



<?php if(!empty($_G['setting']['pluginhooks']['index_catlist_top'])) echo $_G['setting']['pluginhooks']['index_catlist_top'];?>



<?php if(!empty($collectiondata['follows'])) { $forumscount = count($collectiondata['follows']);?><?php $forumcolumns = 4;?><?php $forumcolwidth = (floor(100 / $forumcolumns) - 0.1).'%';?><div class="xr_forum_box bp <?php if($forumcolumns) { ?> flg<?php } ?> cl">

<div class="xr_forum_tit cl">

<h2><a href="forum.php?mod=collection&amp;op=my">我订阅的专辑</a></h2>

</div>

<div id="category_-1" style="<?php echo $collapse['category_-1']; ?>">

<table cellspacing="0" cellpadding="0" class="fl_tb">

<tr><?php $ctorderid = 0;?><?php if(is_array($collectiondata['follows'])) foreach($collectiondata['follows'] as $key => $colletion) { if($ctorderid && ($ctorderid % $forumcolumns == 0)) { ?>

</tr>

<?php if($ctorderid < $forumscount) { ?>

<tr class="fl_row">

<?php } } ?>

<td class="fl_g"<?php if($forumcolwidth) { ?> width="<?php echo $forumcolwidth;?>"<?php } ?>>

<div class="fl_icn_g">

<a href="forum.php?mod=collection&amp;action=view&amp;ctid=<?php echo $colletion['ctid'];?>" target="_blank"><img src="<?php echo IMGDIR;?>/forum<?php if($followcollections[$key]['lastvisit'] < $colletion['lastupdate']) { ?>_new<?php } ?>.gif" alt="<?php echo $colletion['name'];?>" /></a>

</div>

<dl>

<dt><a href="forum.php?mod=collection&amp;action=view&amp;ctid=<?php echo $colletion['ctid'];?>"><?php echo $colletion['name'];?></a></dt>

<dd><em>主题: <?php echo dnumber($colletion['threadnum']); ?></em>, <em>评论: <?php echo dnumber($colletion['commentnum']); ?></em></dd>

<dd>

<?php if($colletion['lastpost']) { if($forumcolumns < 3) { ?>

<a href="forum.php?mod=redirect&amp;tid=<?php echo $colletion['lastpost'];?>&amp;goto=lastpost#lastpost" class="xi2"><?php echo cutstr($colletion['lastsubject'], 30); ?></a> <cite><?php echo dgmdate($colletion[lastposttime]);?> <?php if($colletion['lastposter']) { ?><?php echo $colletion['lastposter'];?><?php } else { ?><?php echo $_G['setting']['anonymoustext'];?><?php } ?></cite>

<?php } else { ?>

<a href="forum.php?mod=redirect&amp;tid=<?php echo $colletion['lastpost'];?>&amp;goto=lastpost#lastpost">最后发表: <?php echo dgmdate($colletion[lastposttime]);?></a>

<?php } } else { ?>

从未

<?php } ?>

</dd>

<?php if(!empty($_G['setting']['pluginhooks']['index_followcollection_extra'][$colletion[ctid]])) echo $_G['setting']['pluginhooks']['index_followcollection_extra'][$colletion[ctid]];?>

</dl>

</td><?php $ctorderid++;?><?php } if(($columnspad = $ctorderid % $forumcolumns) > 0) { echo str_repeat('<td class="fl_g"'.($forumcolwidth ? " width=\"$forumcolwidth\"" : '').'></td>', $forumcolumns - $columnspad);; } ?>

</tr>

</table>



</div>





<?php } if(empty($gid) && !empty($forum_favlist)) { $forumscount = count($forum_favlist);?><?php $forumcolumns = $forumscount > 3 ? ($forumscount == 4 ? 4 : 5) : 1;?><?php $forumcolwidth = (floor(100 / $forumcolumns) - 0.1).'%';?><div class="xr_forum_box bp <?php if($forumcolumns) { ?> flg<?php } ?> cl">

<div class="xr_forum_tit cl">

<h2><a href="home.php?mod=space&amp;do=favorite&amp;type=forum">我收藏的版块</a></h2>

</div>

<div id="category_0" style="<?php echo $collapse['category_0']; ?>">

<table cellspacing="0" cellpadding="0" class="fl_tb">

<tr><?php $favorderid = 0;?><?php if(is_array($forum_favlist)) foreach($forum_favlist as $key => $favorite) { if($favforumlist[$favorite['id']]) { $forum=$favforumlist[$favorite[id]];?><?php $forumurl = !empty($forum['domain']) && !empty($_G['setting']['domain']['root']['forum']) ? 'http://'.$forum['domain'].'.'.$_G['setting']['domain']['root']['forum'] : 'forum.php?mod=forumdisplay&fid='.$forum['fid'];?><?php if($forumcolumns>1) { if($favorderid && ($favorderid % $forumcolumns == 0)) { ?>

</tr>

<?php if($favorderid < $forumscount) { ?>

<tr class="fl_row">

<?php } } ?>

<td class="fl_g"<?php if($forumcolwidth) { ?> width="<?php echo $forumcolwidth;?>"<?php } ?>>

<div class="fl_icn_g"<?php if(!empty($forum['extra']['iconwidth']) && !empty($forum['icon'])) { ?> style="width: <?php echo $forum['extra']['iconwidth'];?>px;"<?php } ?>>

<?php if($forum['icon']) { ?>

<?php echo $forum['icon'];?>

<?php } else { ?>

<a href="<?php echo $forumurl;?>"<?php if($forum['redirect']) { ?> target="_blank"<?php } ?>><img src="<?php echo IMGDIR;?>/forum<?php if($forum['folder']) { ?>_new<?php } ?>.gif" alt="<?php echo $forum['name'];?>" /></a>

<?php } ?>

</div>

<dl<?php if(!empty($forum['extra']['iconwidth']) && !empty($forum['icon'])) { ?> style="margin-left: <?php echo $forum['extra']['iconwidth'];?>px;"<?php } ?>>

<dt><a href="<?php echo $forumurl;?>"<?php if($forum['redirect']) { ?> target="_blank"<?php } if($forum['extra']['namecolor']) { ?> style="color: <?php echo $forum['extra']['namecolor'];?>;"<?php } ?>><?php echo $forum['name'];?></a><?php if($forum['todayposts'] && !$forum['redirect']) { ?><em class="xw0 xi1" title="今日"> (<?php echo $forum['todayposts'];?>)</em><?php } ?></dt>

<?php if(empty($forum['redirect'])) { ?><dd><em>主题: <?php echo dnumber($forum['threads']); ?></em>, <em>帖数: <?php echo dnumber($forum['posts']); ?></em></dd><?php } ?>

<dd>

<?php if($forum['permission'] == 1) { ?>

私密版块

<?php } else { if($forum['redirect']) { ?>

<a href="<?php echo $forumurl;?>" class="xi2">链接到外部地址</a>

<?php } elseif(is_array($forum['lastpost'])) { if($forumcolumns < 3) { ?>

<a href="forum.php?mod=redirect&amp;tid=<?php echo $forum['lastpost']['tid'];?>&amp;goto=lastpost#lastpost" class="xi2"><?php echo cutstr($forum['lastpost']['subject'], 30); ?></a> <cite><?php echo $forum['lastpost']['dateline'];?> <?php if($forum['lastpost']['author']) { ?><?php echo $forum['lastpost']['author'];?><?php } else { ?><?php echo $_G['setting']['anonymoustext'];?><?php } ?></cite>

<?php } else { ?>

<a href="forum.php?mod=redirect&amp;tid=<?php echo $forum['lastpost']['tid'];?>&amp;goto=lastpost#lastpost">最后发表: <?php echo $forum['lastpost']['dateline'];?></a>

<?php } } else { ?>

从未

<?php } } ?>

</dd>

<?php if(!empty($_G['setting']['pluginhooks']['index_favforum_extra'][$forum[fid]])) echo $_G['setting']['pluginhooks']['index_favforum_extra'][$forum[fid]];?>

</dl>

</td><?php $favorderid++;?><?php } else { ?>

<td class="fl_icn" <?php if(!empty($forum['extra']['iconwidth']) && !empty($forum['icon'])) { ?> style="width: <?php echo $forum['extra']['iconwidth'];?>px;"<?php } ?>>

<?php if($forum['icon']) { ?>

<?php echo $forum['icon'];?>

<?php } else { ?>

<a href="<?php echo $forumurl;?>"<?php if($forum['redirect']) { ?> target="_blank"<?php } ?>><img src="<?php echo IMGDIR;?>/forum<?php if($forum['folder']) { ?>_new<?php } ?>.gif" alt="<?php echo $forum['name'];?>" /></a>

<?php } ?>

</td>

<td>

<h2><a href="<?php echo $forumurl;?>"<?php if($forum['redirect']) { ?> target="_blank"<?php } if($forum['extra']['namecolor']) { ?> style="color: <?php echo $forum['extra']['namecolor'];?>;"<?php } ?>><?php echo $forum['name'];?></a><?php if($forum['todayposts'] && !$forum['redirect']) { ?><em class="xw0 xi1" title="今日"> (<?php echo $forum['todayposts'];?>)</em><?php } ?></h2>

<?php if($forum['description']) { ?><p class="xg2"><?php echo $forum['description'];?></p><?php } if($forum['subforums']) { ?><p>子版块: <?php echo $forum['subforums'];?></p><?php } if($forum['moderators']) { ?><p>版主: <span><?php echo $forum['moderators'];?></span></p><?php } ?>

<?php if(!empty($_G['setting']['pluginhooks']['index_favforum_extra'][$forum[fid]])) echo $_G['setting']['pluginhooks']['index_favforum_extra'][$forum[fid]];?>

</td>

<td class="fl_i">

<?php if(empty($forum['redirect'])) { ?><span><?php echo dnumber($forum['threads']); ?></span><span> / <?php echo dnumber($forum['posts']); ?></span><?php } ?>

</td>

<td class="fl_by">

<div>

<?php if($forum['permission'] == 1) { ?>

私密版块

<?php } else { if($forum['redirect']) { ?>

<a href="<?php echo $forumurl;?>" class="xi2">链接到外部地址</a>

<?php } elseif(is_array($forum['lastpost'])) { ?>

<a href="forum.php?mod=redirect&amp;tid=<?php echo $forum['lastpost']['tid'];?>&amp;goto=lastpost#lastpost" class="xi2"><?php echo cutstr($forum['lastpost']['subject'], 30); ?></a> <cite><?php echo $forum['lastpost']['dateline'];?> <?php if($forum['lastpost']['author']) { ?><?php echo $forum['lastpost']['author'];?><?php } else { ?><?php echo $_G['setting']['anonymoustext'];?><?php } ?></cite>

<?php } else { ?>

从未

<?php } } ?>

</div>

</td>

</tr>

<tr class="fl_row">



<?php } } } if(($columnspad = $favorderid % $forumcolumns) > 0) { echo str_repeat('<td class="fl_g"'.($forumcolwidth ? " width=\"$forumcolwidth\"" : '').'></td>', $forumcolumns - $columnspad);; } ?>

</tr>

</table>



</div>

</div><?php echo adshow("intercat/bm a_c/-1");?><?php } if(is_array($catlist)) foreach($catlist as $key => $cat) { ?><?php if(!empty($_G['setting']['pluginhooks']['index_catlist'][$cat[fid]])) echo $_G['setting']['pluginhooks']['index_catlist'][$cat[fid]];?>

<div class="xr_forum_box bp <?php if($cat['forumcolumns']) { ?> flg<?php } ?> cl">

<div class="xr_forum_tit">

<?php if($cat['moderators']) { ?><span class="y">分区版主: <?php echo $cat['moderators'];?></span><?php } $caturl = !empty($cat['domain']) && !empty($_G['setting']['domain']['root']['forum']) ? 'http://'.$cat['domain'].'.'.$_G['setting']['domain']['root']['forum'] : '';?><h2><?php echo $cat['name'];?></h2>

</div>

<div id="category_<?php echo $cat['fid'];?>" style="<?php echo $collapse['category_'.$cat['fid']]; ?>">

<table cellspacing="0" cellpadding="0" class="fl_tb">

<tr><?php if(is_array($cat['forums'])) foreach($cat['forums'] as $forumid) { $forum=$forumlist[$forumid];?><?php $forumurl = !empty($forum['domain']) && !empty($_G['setting']['domain']['root']['forum']) ? 'http://'.$forum['domain'].'.'.$_G['setting']['domain']['root']['forum'] : 'forum.php?mod=forumdisplay&fid='.$forum['fid'];?><?php if($cat['forumcolumns']) { if($forum['orderid'] && ($forum['orderid'] % $cat['forumcolumns'] == 0)) { ?>

</tr>

<?php if($forum['orderid'] < $cat['forumscount']) { ?>

<tr class="fl_row">

<?php } } ?>

<td class="fl_g" width="<?php echo $cat['forumcolwidth'];?>">

<div class="fl_icn_g"<?php if(!empty($forum['extra']['iconwidth']) && !empty($forum['icon'])) { ?> style="width: <?php echo $forum['extra']['iconwidth'];?>px;"<?php } ?>>

<?php if($forum['icon']) { ?>

<?php echo $forum['icon'];?>

<?php } else { ?>

<a href="<?php echo $forumurl;?>"<?php if($forum['redirect']) { ?> target="_blank"<?php } ?>><img src="<?php echo IMGDIR;?>/forum<?php if($forum['folder']) { ?>_new<?php } ?>.gif" alt="<?php echo $forum['name'];?>" /></a>

<?php } ?>

</div>

<dl<?php if(!empty($forum['extra']['iconwidth']) && !empty($forum['icon'])) { ?> style="margin-left: <?php echo $forum['extra']['iconwidth'];?>px;"<?php } ?>>

<dt><a href="<?php echo $forumurl;?>"<?php if($forum['redirect']) { ?> target="_blank"<?php } if($forum['extra']['namecolor']) { ?> style="color: <?php echo $forum['extra']['namecolor'];?>;"<?php } ?>><?php echo $forum['name'];?></a><?php if($forum['todayposts'] && !$forum['redirect']) { ?><em title="今日"> (<?php echo $forum['todayposts'];?>)</em><?php } ?></dt>

<?php if($forum['description']) { ?><dd class="desc"><?php echo $forum['description'];?></dd><?php } if(empty($forum['redirect'])) { ?><dd><em>主题: <?php echo dnumber($forum['threads']); ?></em>, <em>帖数: <?php echo dnumber($forum['posts']); ?></em></dd><?php } ?>									

<?php if(!empty($_G['setting']['pluginhooks']['index_forum_extra'][$forum[fid]])) echo $_G['setting']['pluginhooks']['index_forum_extra'][$forum[fid]];?>

</dl>

</td>

<?php } else { ?>

<td class="fl_icn" <?php if(!empty($forum['extra']['iconwidth']) && !empty($forum['icon'])) { ?> style="width: <?php echo $forum['extra']['iconwidth'];?>px;"<?php } ?>>

<?php if($forum['icon']) { ?>

<?php echo $forum['icon'];?>

<?php } else { ?>

<a href="<?php echo $forumurl;?>"<?php if($forum['redirect']) { ?> target="_blank"<?php } ?>><img src="<?php echo IMGDIR;?>/forum<?php if($forum['folder']) { ?>_new<?php } ?>.gif" alt="<?php echo $forum['name'];?>" /></a>

<?php } ?>

</td>

<td>

<h2><a href="<?php echo $forumurl;?>"<?php if($forum['redirect']) { ?> target="_blank"<?php } if($forum['extra']['namecolor']) { ?> style="color: <?php echo $forum['extra']['namecolor'];?>;"<?php } ?>><?php echo $forum['name'];?></a><?php if($forum['todayposts'] && !$forum['redirect']) { ?><em class="xw0 xi1" title="今日"> (<?php echo $forum['todayposts'];?>)</em><?php } ?></h2>

<?php if($forum['description']) { ?><p class="xg2"><?php echo $forum['description'];?></p><?php } if($forum['subforums']) { ?><p>子版块: <?php echo $forum['subforums'];?></p><?php } if($forum['moderators']) { ?><p>版主: <span class="xi2"><?php echo $forum['moderators'];?></span></p><?php } ?>

<?php if(!empty($_G['setting']['pluginhooks']['index_forum_extra'][$forum[fid]])) echo $_G['setting']['pluginhooks']['index_forum_extra'][$forum[fid]];?>

</td>

<td class="fl_i">

<?php if(empty($forum['redirect'])) { ?><span class="xi2"><?php echo dnumber($forum['threads']); ?></span><span class="xg1"> / <?php echo dnumber($forum['posts']); ?></span><?php } ?>

</td>

<td class="fl_by">

<div>

<?php if($forum['permission'] == 1) { ?>

私密版块

<?php } else { if($forum['redirect']) { ?>

<a href="<?php echo $forumurl;?>" class="xi2">链接到外部地址</a>

<?php } elseif(is_array($forum['lastpost'])) { ?>

<a href="forum.php?mod=redirect&amp;tid=<?php echo $forum['lastpost']['tid'];?>&amp;goto=lastpost#lastpost" class="xi2"><?php echo cutstr($forum['lastpost']['subject'], 30); ?></a> <cite><?php echo $forum['lastpost']['dateline'];?> <?php if($forum['lastpost']['author']) { ?><?php echo $forum['lastpost']['author'];?><?php } else { ?><?php echo $_G['setting']['anonymoustext'];?><?php } ?></cite>

<?php } else { ?>

从未

<?php } } ?>

</div>

</td>

</tr>

<tr class="fl_row">

<?php } } ?>

<?php echo $cat['endrows'];?>

</tr>

</table>

</div>

</div><?php echo adshow("intercat/bm a_c/$cat[fid]");?><?php } if(!empty($collectiondata['data'])) { $forumscount = count($collectiondata['data']);?><?php $forumcolumns = 4;?><?php $forumcolwidth = (floor(100 / $forumcolumns) - 0.1).'%';?><div class="xr_forum_box bp <?php if($forumcolumns) { ?> flg<?php } ?> cl">

<div class="xr_forum_tit cl">

<h2><a href="forum.php?mod=collection">淘专辑推荐</a></h2>

</div>

<div id="category_-2"  style="<?php echo $collapse['category_-2']; ?>">

<table cellspacing="0" cellpadding="0" class="fl_tb">

<tr><?php $ctorderid = 0;?><?php if(is_array($collectiondata['data'])) foreach($collectiondata['data'] as $key => $colletion) { if($ctorderid && ($ctorderid % $forumcolumns == 0)) { ?>

</tr>

<?php if($ctorderid < $forumscount) { ?>

<tr class="fl_row">

<?php } } ?>

<td class="fl_g"<?php if($forumcolwidth) { ?> width="<?php echo $forumcolwidth;?>"<?php } ?>>

<div class="fl_icn_g">

<a href="forum.php?mod=collection&amp;action=view&amp;ctid=<?php echo $colletion['ctid'];?>" target="_blank"><img src="<?php echo IMGDIR;?>/forum.gif" alt="<?php echo $colletion['name'];?>" /></a>

</div>

<dl>

<dt><a href="forum.php?mod=collection&amp;action=view&amp;ctid=<?php echo $colletion['ctid'];?>"><?php echo $colletion['name'];?></a></dt>

<dd><em>主题: <?php echo dnumber($colletion['threadnum']); ?></em>, <em>评论: <?php echo dnumber($colletion['commentnum']); ?></em></dd>

<dd>

<?php if($colletion['lastpost']) { if($forumcolumns < 3) { ?>

<a href="forum.php?mod=redirect&amp;tid=<?php echo $colletion['lastpost'];?>&amp;goto=lastpost#lastpost" class="xi2"><?php echo cutstr($colletion['lastsubject'], 30); ?></a> <cite><?php echo dgmdate($colletion[lastposttime]);?> <?php if($colletion['lastposter']) { ?><?php echo $colletion['lastposter'];?><?php } else { ?><?php echo $_G['setting']['anonymoustext'];?><?php } ?></cite>

<?php } else { ?>

<a href="forum.php?mod=redirect&amp;tid=<?php echo $colletion['lastpost'];?>&amp;goto=lastpost#lastpost">最后发表: <?php echo dgmdate($colletion[lastposttime]);?></a>

<?php } } else { ?>

从未

<?php } ?>

</dd>

<?php if(!empty($_G['setting']['pluginhooks']['index_datacollection_extra'][$colletion[ctid]])) echo $_G['setting']['pluginhooks']['index_datacollection_extra'][$colletion[ctid]];?>

</dl>

</td><?php $ctorderid++;?><?php } if(($columnspad = $ctorderid % $forumcolumns) > 0) { echo str_repeat('<td class="fl_g"'.($forumcolwidth ? " width=\"$forumcolwidth\"" : '').'></td>', $forumcolumns - $columnspad);; } ?>

</tr>

</table>



</div>

</div>



<?php } ?>



</div>



<?php if(!empty($_G['setting']['pluginhooks']['index_middle'])) echo $_G['setting']['pluginhooks']['index_middle'];?>

<div class="wp mtn">

<!--[diy=diy3]--><div id="diy3" class="area"></div><!--[/diy]-->

</div>



<?php if(empty($gid) && $_G['setting']['whosonlinestatus']) { ?>

<div id="online" class="oll bp">

<div class="oll_tit">

<?php if($detailstatus) { ?>

<span class="o y mtn"><a href="forum.php?showoldetails=no#online" title="收起/展开"><img src="<?php echo IMGDIR;?>/collapsed_no.gif" alt="收起/展开" /></a></span>

<h3>

<strong><a href="home.php?mod=space&amp;do=friend&amp;view=online&amp;type=member">在线会员</a></strong>

<span class="xs1">- <strong><?php echo $onlinenum;?></strong> 人在线

- <strong><?php echo $membercount;?></strong> 会员(<strong><?php echo $invisiblecount;?></strong> 隐身),

<strong><?php echo $guestcount;?></strong> 位游客

- 最高记录是 <strong><?php echo $onlineinfo['0'];?></strong> 于 <strong><?php echo $onlineinfo['1'];?></strong>.</span>

</h3>

<?php } else { if(empty($_G['setting']['sessionclose'])) { ?>

<span class="o y mtn"><a href="forum.php?showoldetails=yes#online" title="收起/展开"><img src="<?php echo IMGDIR;?>/collapsed_yes.gif" alt="收起/展开" /></a></span>

<?php } ?>

<h3>

<strong>

<?php if(!empty($_G['setting']['whosonlinestatus'])) { ?>

在线会员

<?php } else { ?>

<a href="home.php?mod=space&amp;do=friend&amp;view=online&amp;type=member">在线会员</a>

<?php } ?>

</strong>

<span class="xs1">- 总计 <strong><?php echo $onlinenum;?></strong> 人在线

<?php if($membercount) { ?>- <strong><?php echo $membercount;?></strong> 会员,<strong><?php echo $guestcount;?></strong> 位游客<?php } ?>

- 最高记录是 <strong><?php echo $onlineinfo['0'];?></strong> 于 <strong><?php echo $onlineinfo['1'];?></strong>.</span>

</h3>

<?php } ?>

</div>

<?php if($_G['setting']['whosonlinestatus'] && $detailstatus) { ?>

<dl id="onlinelist">

<dt class="ptm pbm bbda"><?php echo $_G['cache']['onlinelist']['legend'];?></dt>

<?php if($detailstatus) { ?>

<dd class="ptm pbm">

<ul class="cl">

<?php if($whosonline) { if(is_array($whosonline)) foreach($whosonline as $key => $online) { ?><li title="时间: <?php echo $online['lastactivity'];?>">

<img src="<?php echo STATICURL;?>image/common/<?php echo $online['icon'];?>" alt="icon" />

<?php if($online['uid']) { ?>

<a href="home.php?mod=space&amp;uid=<?php echo $online['uid'];?>"><?php echo $online['username'];?></a>

<?php } else { ?>

<?php echo $online['username'];?>

<?php } ?>

</li>

<?php } } else { ?>

<li style="width: auto">当前只有游客或隐身会员在线</li>

<?php } ?>

</ul>

</dd>

<?php } ?>

</dl>

<?php } ?>

</div>

<?php } if(empty($gid) && ($_G['cache']['forumlinks']['0'] || $_G['cache']['forumlinks']['1'] || $_G['cache']['forumlinks']['2'])) { ?>

<div class="bp lk">

<div id="category_lk" class="bm_c ptm">

<?php if($_G['cache']['forumlinks']['0']) { ?>

<ul class="m mbn cl"><?php echo $_G['cache']['forumlinks']['0'];?></ul>

<?php } if($_G['cache']['forumlinks']['1']) { ?>

<div class="mbn cl">

<?php echo $_G['cache']['forumlinks']['1'];?>

</div>

<?php } if($_G['cache']['forumlinks']['2']) { ?>

<ul class="x mbm cl">

<?php echo $_G['cache']['forumlinks']['2'];?>

</ul>

<?php } ?>

</div>

</div>

<?php } ?>



<?php if(!empty($_G['setting']['pluginhooks']['index_bottom'])) echo $_G['setting']['pluginhooks']['index_bottom'];?>

</div>



</div>

<?php if($_G['group']['radminid'] == 1) { helper_manyou::checkupdate();?><?php } if(empty($_G['setting']['disfixednv_forumindex']) ) { ?><script>fixed_top_nv();</script><?php } include template('common/footer'); ?>