代码
<div class="fl bm">
<!--{loop $catlist $key $cat}-->
<div class="bm bmw {if $cat['forumcolumns']} flg{/if} cl">
<div class="bm_h cl">
<span class="o">
<img id="category_$cat[fid]_img" src="{IMGDIR}/$cat[collapseimg]" title="{lang spread}" alt="{lang spread}" />
</span>
<!--{if $cat['moderators']}--><span class="y">{lang forum_category_modedby}: $cat[moderators]</span><!--{/if}-->
<!--{eval $caturl = !empty($cat['domain']) && !empty($_G['setting']['domain']['root']['forum']) ? 'http://'.$cat['domain'].'.'.$_G['setting']['domain']['root']['forum'] : '';}-->
<h2><a href="{if !empty($caturl)}$caturl{else}forum.php?gid=$cat[fid]{/if}" style="{if $cat[extra][namecolor]}color: {$cat[extra][namecolor]};{/if}">$cat[name]</a></h2>
</div>
<div id="category_$cat[fid]" class="bm_c" style="$collapse['category_'.$cat[fid]]">
<table cellspacing="0" cellpadding="0" class="fl_tb">
<tr>
<!--{loop $cat[forums] $forumid}-->
<!--{eval $forum=$forumlist[$forumid];}-->
<!--{eval $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'];}-->
<!--{if $cat['forumcolumns']}-->
<!--{if $forum['orderid'] && ($forum['orderid'] % $cat['forumcolumns'] == 0)}-->
</tr>
<!--{if $forum['orderid'] < $cat['forumscount']}-->
<tr class="fl_row">
<!--{/if}-->
<!--{/if}-->
<td class="fl_g" width="$cat[forumcolwidth]" style="padding:10px 5px; ">
<script language="javascript">
function forumbackshow(id){
document.getElementById(id).style.background="#f8f8f8";
}
function forumbackout(id){
document.getElementById(id).style.background="";
}
function showgoto() {
var i, args=showgoto.arguments; document.showgtvlaue = false;
for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}
</script>
<!--/***************************************************************************/-->
<div id="showback_$forum[fid]" style="border:1px solid #ccc; cursor:default;">
<div style="padding:5px; ">
<style>
.ficodiv {float:left;}
.ficodiv,.ficodiv img{width:56px; height:56px; overflow:hidden; margin-top:2px; margin-right:5px;}
.f_ttdiv {height:56px; line-height:20px;overflow:hidden;}
.f_name {height:20px; overflow:hidden;}
.f_name small{float:right;color:#aaa;}
.f_name small span{color:#f30;}
.f_name a span{font-size:14px;}
.f_lyhp {float:left;}
.f_lyhp {color:#999;}
.f_bkjs {height:20px; line-height:18px; overflow:hidden;color:#888;}
.f_tzmh {padding:5px; height:18px; line-height:20px; overflow:hidden;}
</style>
<div class="ficodiv">
<!--{if $forum[icon]}-->
$forum[icon]
<!--{else}-->
<a href="$forumurl"{if $forum[redirect]} target="_blank"{/if}>
<img src="{IMGDIR}/forum{if $forum[folder]}_new{/if}.gif" alt="$forum[name]" />
</a>
<!--{/if}-->
</div>
<div class="f_ttdiv" {if !empty($forum[extra][iconwidth]) && !empty($forum[icon])} style="margin-left: {$forum[extra][iconwidth]}px;"{/if}>
<div class="f_name" title="$forum[name]">
<small>
<!--{if $forum[todayposts] && !$forum['redirect']}-->
(<span title="{lang forum_todayposts}">$forum[todayposts]</span>)
<!--{/if}-->
</small>
<a href="$forumurl" {if $forum[redirect]}target="_blank"{/if}{if $forum[extra][namecolor]} style="color:{$forum[extra][namecolor]};"{/if}>
<span>$forum[name]</span>
</a>
</div>
<div class="f_name">
<!--{if empty($forum[redirect])}-->
<div class="f_lyhp">
<span>主题:</span><em style="color:#f60;">$forum[threads]</em>
</div><div style="float:left;">
<span>帖子:</span><em style="color:#090;">$forum[posts]</em>
<!--{if $forum[moderators]}-->
<span id="default{$forum['fid']}" class="showmenu">版主列表</span>
<ul id="default{$forum['fid']}_menu" class="p_pop" style="display:none;"><!--{echo str_replace(array(',',' c="1"'),'',$forum[moderators]);}--></ul><!--{else}-->
版主空缺
<!--{/if}-->
</div>
<!--{/if}-->
</div>
<div class="f_bkjs">
<!--{if $forum[description]}-->
<span tabindex="$forum[description]">$forum[description]</span>
<!--{else}-->
<a href="/forum-52-1.html"><b style="color:#f30;">点击申请版主</b></a>
<!--{/if}-->
</div>
</div>
</div>
<!--/******************帖子美化*************************************/-->
<div class="f_tzmh">
<!--{if $forum['redirect']}-->
<a href="$forumurl" class="xi2">{lang url_link}</a>
<!--{elseif is_array($forum['lastpost'])}-->
<FONT color=#003D79>最后发表:</font>
<a href="forum.php?mod=redirect&tid=$forum[lastpost][tid]&goto=lastpost#lastpost" class="xi2">
<!--{echo cutstr($forum[lastpost][subject], 25)}--></a>
<!--{if $forum['lastpost']['author']}-->(byforum['lastpost']['author']<!--{else}-->{lang anonymous}<!--{/if}-->)
</a>
<!--{else}-->
<FONT color=#003D79>最后发表:</font>暂无主题, <a href="forum.php?mod=post&action=newthread&fid=$forum[fid]">抢先发表</a>!
<!--{/if}-->
</div>
</div>
<!--/*****************结束***********************************/-->
</td>
<!--{else}-->
|