$forumlist = $catforumlist = $forums = $catforums = $categories = array();
$subforumlist= array(); //首頁顯示【子版列表】
if($forum['type'] != 'sub') {
$forum['fup'] ? $forums[] = $forum : ($forum['type'] == 'group' ? $categories[] = $forum : $catforums[] = $forum);
//首頁顯示【子版列表】by DyNE
} elseif((!$forum['viewperm'] && $allowview) || ($forum['viewperm'] && strstr($forum['viewperm'], "\t$groupid\t"))) {
$subforumlist[$forum['fup']] .= "<option value=forumdisplay.php?fid=".$forum['fid'].">".$forum['name']."</option>";
//End
$forum[icon]<a href="forumdisplay.php?fid=$forum[fid]"><span class="bold">$forum[name]</span></a>
<!--{if $subforumlist[$forum[fid]]}-->
<iframe frameborder=0 width=76 height=16 scrolling=no src="about: <select style='position:absolute; top:-2; left:-2; color:royalblue; background={ALTBG2}' onMouseOver=this.style.cursor='hand' onchange=top.location=(this.options[this.selectedIndex].value)><option>【子版列表】</option>{eval echo $subforumlist[$forum[fid]];}</select>"></iframe> <!--{/if}-->