找回密码
 立即注册
搜索
查看: 1329|回复: 0

【discuz x3.1教程】discuz.htm 论坛首页解析【不完全】

[复制链接]

581

主题

110

回帖

4066

积分

管理员

积分
4066

众神之神

发表于 2014-11-14 15:13:49 | 显示全部楼层 |阅读模式
  1. <!--{template common/header}-->


  2. <div id="pt" class="bm cl">
  3.         <!-- 如果没有板块ID并且设置了站点公告,就显示站点公告 -->
  4.         <!--{if empty($gid) && $announcements}-->
  5.         <div class="y">
  6.                 <div id="an">
  7.                         <dl class="cl">
  8.                                 <dt class="z xw1">{lang announcements}: </dt>
  9.                                 <dd>
  10.                                         <div id="anc"><ul id="ancl">$announcements</ul></div>
  11.                                 </dd>
  12.                         </dl>
  13.                 </div>
  14.                 <script type="text/javascript">announcement();</script>
  15.         </div>
  16.         <!--{/if}-->
  17.         <div class="z">
  18.                 <!--
  19.                 这个地方显示的是面包屑
  20.                 {lang homepage}:首页
  21.                 $_G[setting][bbname]:站点名称
  22.                 {$_G[setting][navs][2][navname]}:论坛
  23.                 -->
  24.                 <a href="./" class="nvhm" title="{lang homepage}">$_G[setting][bbname]</a><em>»</em><a href="forum.php">{$_G[setting][navs][2][navname]}</a>$navigation
  25.         </div>
  26.         <div class="z"><!--{hook/index_status_extra}--></div>
  27. </div>


  28. <!-- 这个地方是插入广告的 -->
  29. <!--{if empty($gid)}-->
  30.         <!--{ad/text/wp a_t}-->
  31. <!--{/if}-->

  32.         <style id="diy_style" type="text/css"></style>
  33. <!-- 这个地方是放diy文件的 -->
  34. <!--{if empty($gid)}-->
  35.         <div class="wp">
  36.                 <!--[diy=diy1]--><div id="diy1" class="area"></div><!--[/diy]-->
  37.         </div>
  38. <!--{/if}-->
  39. <div id="ct" class="wp cl{if $_G['setting']['forumallowside']} ct2{/if}">
  40.         <!--{if empty($gid)}-->
  41.                 <div id="chart" class="bm bw0 cl">
  42.                 <!--
  43.                 这个地方显示的是今日: 0|昨日: 1|帖子: 1|会员: 1|欢迎新会员: admin
  44.                 {lang index_today}:近日
  45.                 $todayposts:今天的发帖量
  46.                 {lang index_yesterday}:昨日
  47.                 $postdata[0]:昨天的发帖量
  48.                 {lang index_posts}:帖子
  49.                 $posts:论坛发帖的总量
  50.                 {lang index_members}:会员
  51.                 $_G['cache']['userstats']['totalmembers']:论坛会员数量
  52.                 {lang welcome_new_members}:欢迎新会员
  53.                 $_G['cache']['userstats']['newsetuser']:新注册的会员名
  54.                 $_G['uid']:当前用的uid值
  55.                 {lang my_posts}:我的帖子
  56.                 {lang show_newthreads}:最新回复

  57.                 -->
  58.                         <p class="chart z">{lang index_today}: <em>$todayposts</em><span class="pipe">|</span>{lang index_yesterday}: <em>$postdata[0]</em><span class="pipe">|</span>{lang index_posts}: <em>$posts</em><span class="pipe">|</span>{lang index_members}: <em>$_G['cache']['userstats']['totalmembers']</em><!--{if $_G['cache']['userstats']['newsetuser']}--><span class="pipe">|</span>{lang welcome_new_members}: <em><a href="home.php?mod=space&username={echo rawurlencode($_G['cache']['userstats']['newsetuser'])}" target="_blank" class="xi2">$_G['cache']['userstats']['newsetuser']</a></em><!--{/if}--></p>
  59.                         <div class="y">
  60.                                 <!--{hook/index_nav_extra}-->
  61.                                 <!--{if $_G['uid']}--><a href="forum.php?mod=guide&view=my" title="{lang my_posts}" class="xi2">{lang my_posts}</a><!--{/if}--><!--{if !empty($_G['setting']['search']['forum']['status'])}--><!--{if $_G['uid']}--><span class="pipe">|</span><!--{/if}--><a href="forum.php?mod=guide&view=new" title="{lang show_newthreads}" class="xi2">{lang show_newthreads}</a><!--{/if}-->
  62.                         </div>
  63.                 </div>
  64.         <!--{/if}-->
  65.         <!-- 这个地方是放diy文件的 -->
  66.         <!--[diy=diy_chart]--><div id="diy_chart" class="area"></div><!--[/diy]-->
  67.         <div class="mn">
  68.                 <!--{if !empty($_G['setting']['grid']['showgrid'])}-->
  69.                 <!--
  70.                 如果在后台开启了首页四格的话,将显示下面的信息
  71.                 {lang latest_images}:最新图片
  72.                 {lang collection_lastthread}:最新主题
  73.                 {lang show_newthreads}:最新回复
  74.                 {lang hot_thread}:热帖
  75.                 {lang post_digest_thread}:精华帖子
  76.                 {lang hotthreads_forum}:论坛热点
  77.                 -->
  78.                 <!-- index four grid -->

  79.                 <div class="fl bm">
  80.                         <div class="bm bmw cl">
  81.                                 <div id="category_grid" class="bm_c" >
  82.                                         <table cellspacing="0" cellpadding="0"><tr>
  83.                                         <!--{if !$_G['setting']['grid']['gridtype']}-->
  84.                                                 <td valign="top" class="category_l1">
  85.                                                         <div class="newimgbox">
  86.                                                                 <h4><span class="tit_newimg"></span>{lang latest_images}</h4>
  87.                                                                 <div class="module cl slidebox_grid" style="width:218px">
  88.                                                                         <script type="text/javascript">
  89.                                                                         var slideSpeed = 5000;
  90.                                                                         var slideImgsize = [218,200];
  91.                                                                         var slideBorderColor = '{$_G['style']['specialborder']}';
  92.                                                                         var slideBgColor = '{$_G['style']['commonbg']}';
  93.                                                                         var slideImgs = new Array();
  94.                                                                         var slideImgLinks = new Array();
  95.                                                                         var slideImgTexts = new Array();
  96.                                                                         var slideSwitchColor = '{$_G['style']['tabletext']}';
  97.                                                                         var slideSwitchbgColor = '{$_G['style']['commonbg']}';
  98.                                                                         var slideSwitchHiColor = '{$_G['style']['specialborder']}';
  99.                                                                         {eval $k = 1;}
  100.                                                                         <!--{loop $grids['slide'] $stid $svalue}-->
  101.                                                                                 slideImgs[<!--{echo $k}-->] = '$svalue[image]';
  102.                                                                                 slideImgLinks[<!--{echo $k}-->] = '{$svalue[url]}';
  103.                                                                                 slideImgTexts[<!--{echo $k}-->] = '$svalue[subject]';
  104.                                                                                 {eval $k++;}
  105.                                                                         <!--{/loop}-->
  106.                                                                         </script>
  107.                                                                         <script language="javascript" type="text/javascript" src="{$_G[setting][jspath]}forum_slide.js?{VERHASH}"></script>
  108.                                                                 </div>
  109.                                                         </div>
  110.                                                 </td>
  111.                                         <!--{/if}-->
  112.                                         <td valign="top" class="category_l2">
  113.                                                 <div class="subjectbox">
  114.                                                         <h4><span class="tit_subject"></span>{lang collection_lastthread}</h4>
  115.                                                 <ul class="category_newlist">
  116.                                                         <!--{loop $grids['newthread'] $thread}-->
  117.                                                         <!--{if !$thread['forumstick'] && $thread['closed'] > 1 && ($thread['isgroup'] == 1 || $thread['fid'] != $_G['fid'])}-->
  118.                                                                         <!--{eval $thread[tid]=$thread[closed];}-->
  119.                                                                 <!--{/if}-->
  120.                                                                 <li><a href="forum.php?mod=viewthread&tid=$thread[tid]&extra=$extra"{if $thread['highlight']} $thread['highlight']{/if}{if $_G['setting']['grid']['showtips']} tip="{lang title}: <strong>$thread[oldsubject]</strong><br/>{lang author}: $thread[author] ($thread[dateline])<br/>{lang show}/{lang reply}: $thread[views]/$thread[replies]" onmouseover="showTip(this)"{else} title="$thread[oldsubject]"{/if}{if $_G['setting']['grid']['targetblank']} target="_blank"{/if}>$thread[subject]</a></li>
  121.                                                                 <!--{/loop}-->
  122.                                                  </ul>
  123.                                          </div>
  124.                                         </td>
  125.                                         <td valign="top" class="category_l3">
  126.                                                 <div class="replaybox">
  127.                                                         <h4><span class="tit_replay"></span>{lang show_newthreads}</h4>
  128.                                                 <ul class="category_newlist">
  129.                                                         <!--{loop $grids['newreply'] $thread}-->
  130.                                                         <!--{if !$thread['forumstick'] && $thread['closed'] > 1 && ($thread['isgroup'] == 1 || $thread['fid'] != $_G['fid'])}-->
  131.                                                                         <!--{eval $thread[tid]=$thread[closed];}-->
  132.                                                                 <!--{/if}-->
  133.                                                                 <li><a href="forum.php?mod=redirect&tid=$thread[tid]&goto=lastpost#lastpost"{if $thread['highlight']} $thread['highlight']{/if}{if $_G['setting']['grid']['showtips']}tip="{lang title}: <strong>$thread[oldsubject]</strong><br/>{lang author}: $thread[author] ($thread[dateline])<br/>{lang show}/{lang reply}: $thread[views]/$thread[replies]" onmouseover="showTip(this)"{else} title="$thread[oldsubject]"{/if}{if $_G['setting']['grid']['targetblank']} target="_blank"{/if}>$thread[subject]</a></li>
  134.                                                                 <!--{/loop}-->
  135.                                                  </ul>
  136.                                          </div>
  137.                                         </td>
  138.                                         <td valign="top" class="category_l3">
  139.                                                 <div class="hottiebox">
  140.                                                         <h4><span class="tit_hottie"></span>{lang hot_thread}</h4>
  141.                                                 <ul class="category_newlist">
  142.                                                         <!--{loop $grids['hot'] $thread}-->
  143.                                                         <!--{if !$thread['forumstick'] && $thread['closed'] > 1 && ($thread['isgroup'] == 1 || $thread['fid'] != $_G['fid'])}-->
  144.                                                                         <!--{eval $thread[tid]=$thread[closed];}-->
  145.                                                                 <!--{/if}-->
  146.                                                                 <li><a href="forum.php?mod=viewthread&tid=$thread[tid]&extra=$extra"{if $thread['highlight']} $thread['highlight']{/if}{if $_G['setting']['grid']['showtips']} tip="{lang title}: <strong>$thread[oldsubject]</strong><br/>{lang author}: $thread[author] ($thread[dateline])<br/>{lang show}/{lang reply}: $thread[views]/$thread[replies]" onmouseover="showTip(this)"{else} title="$thread[oldsubject]"{/if}{if $_G['setting']['grid']['targetblank']} target="_blank"{/if}>$thread[subject]</a></li>
  147.                                                                 <!--{/loop}-->
  148.                                                  </ul>
  149.                                          </div>
  150.                                         </td>
  151.                                         <!--{if $_G['setting']['grid']['gridtype']}-->
  152.                                                 <td valign="top" class="category_l4">
  153.                                                         <div class="goodtiebox">
  154.                                                                 <h4><span class="tit_goodtie"></span>{lang post_digest_thread}</h4>
  155.                                                                 <ul class="category_newlist">
  156.                                                                         <!--{loop $grids['digest'] $thread}-->
  157.                                                                                 <!--{if !$thread['forumstick'] && $thread['closed'] > 1 && ($thread['isgroup'] == 1 || $thread['fid'] != $_G['fid'])}-->
  158.                                                                                         <!--{eval $thread[tid]=$thread[closed];}-->
  159.                                                                                 <!--{/if}-->
  160.                                                                                 <li><a href="forum.php?mod=viewthread&tid=$thread[tid]&extra=$extra"{if $thread['highlight']} $thread['highlight']{/if}{if $_G['setting']['grid']['showtips']} tip="{lang title}: <strong>$thread[oldsubject]</strong><br/>{lang author}: $thread[author] ($thread[dateline])<br/>{lang show}/{lang reply}: $thread[views]/$thread[replies]" onmouseover="showTip(this)"{else} title="$thread[oldsubject]"{/if}{if $_G['setting']['grid']['targetblank']} target="_blank"{/if}>$thread[subject]</a></li>
  161.                                                                         <!--{/loop}-->
  162.                                                                  </ul>
  163.                                                          </div>
  164.                                                 </td>
  165.                                         <!--{/if}-->
  166.                                         </table>
  167.                                 </div>
  168.                         </div>
  169.                 </div>
  170.                 <!-- index four grid end -->
  171.                 <!--{/if}-->
  172.                 <!--{hook/index_top}-->

  173.                 <!--{if !empty($_G['cache']['heats']['message'])}-->
  174.                         <div class="bm">
  175.                                 <div class="bm_h cl">
  176.                                         <h2>{lang hotthreads_forum}</h2>
  177.                                 </div>
  178.                                 <div class="bm_c cl">
  179.                                         <div class="heat z">
  180.                                                 <!--{loop $_G['cache']['heats']['message'] $data}-->
  181.                                                         <dl class="xld">
  182.                                                                 <dt><!--{if $_G['adminid'] == 1}--><a class="d" href="forum.php?mod=misc&action=removeindexheats&tid=$data[tid]" onclick="return removeindexheats()">delete</a><!--{/if}-->
  183.                                                                 <a href="forum.php?mod=viewthread&tid=$data[tid]" target="_blank" class="xi2">$data[subject]</a></dt>
  184.                                                                 <dd>$data[message]</dd>
  185.                                                         </dl>
  186.                                                 <!--{/loop}-->
  187.                                         </div>
  188.                                         <ul class="xl xl1 heatl">
  189.                                         <!--{loop $_G['cache']['heats']['subject'] $data}-->
  190.                                                 <li><!--{if $_G['adminid'] == 1}--><a class="d" href="forum.php?mod=misc&action=removeindexheats&tid=$data[tid]" onclick="return removeindexheats()">delete</a><!--{/if}-->· <a href="forum.php?mod=viewthread&tid=$data[tid]" target="_blank" class="xi2">$data[subject]</a></li>
  191.                                         <!--{/loop}-->
  192.                                         </ul>
  193.                                 </div>
  194.                         </div>
  195.                 <!--{/if}-->
  196.                 <!--{eval print_r($forum_favlist);}-->
  197.                 <!--
  198.                 {lang forum_threads}:主题
  199.                 {lang my_order_collection}:我订阅的专辑
  200.                 {lang collection_commentnum}:评论
  201.                 {lang forum_lastpost}:最后发表
  202.                 {lang never}:从未
  203.                 {lang spread}:收起/展开
  204.                 {lang forum_myfav}:我收藏的板块
  205.                  -->
  206.                 <!--{hook/index_catlist_top}-->
  207.                 <div class="fl bm">
  208.                         <!--{if !empty($collectiondata['follows'])}-->

  209.                         <!--{eval $forumscount = count($collectiondata['follows']);}-->
  210.                         <!--{eval $forumcolumns = 4;}-->

  211.                         <!--{eval $forumcolwidth = (floor(100 / $forumcolumns) - 0.1).'%';}-->
  212.                         <div class="bm bmw {if $forumcolumns} flg{/if} cl">
  213.                         <!-- 下面这段是论坛的收起展开效果 -->
  214.                                 <div class="bm_h cl">
  215.                                         <span class="o">
  216.                                                 <img id="category_-1_img" src="{IMGDIR}/$collapse['collapseimg_-1']" title="{lang spread}" alt="{lang spread}" onclick="toggle_collapse('category_-1');" />
  217.                                         </span>
  218.                                         <h2><a href="forum.php?mod=collection&op=my">{lang my_order_collection}</a></h2>
  219.                                 </div>
  220.                                 <div id="category_-1" class="bm_c" style="{echo $collapse['category_-1']}">
  221.                                         <table cellspacing="0" cellpadding="0" class="fl_tb">
  222.                                                 <tr>
  223.                                                 <!--{eval $ctorderid = 0;}-->
  224.                                                 <!--{loop $collectiondata['follows'] $key $colletion}-->
  225.                                                         <!--{if $ctorderid && ($ctorderid % $forumcolumns == 0)}-->
  226.                                                                 </tr>
  227.                                                                 <!--{if $ctorderid < $forumscount}-->
  228.                                                                         <tr class="fl_row">
  229.                                                                 <!--{/if}-->
  230.                                                         <!--{/if}-->
  231.                                                         <td class="fl_g"{if $forumcolwidth} width="$forumcolwidth"{/if}>
  232.                                                                 <div class="fl_icn_g">
  233.                                                                 <a href="forum.php?mod=collection&action=view&ctid={$colletion[ctid]}" target="_blank"><img src="{IMGDIR}/forum{if $followcollections[$key]['lastvisit'] < $colletion['lastupdate']}_new{/if}.gif" alt="$colletion[name]" /></a>
  234.                                                                 </div>
  235.                                                                 <dl>
  236.                                                                         <dt><a href="forum.php?mod=collection&action=view&ctid={$colletion[ctid]}">$colletion[name]</a></dt>
  237.                                                                         <dd><em>{lang forum_threads}: <!--{echo dnumber($colletion[threadnum])}--></em>, <em>{lang collection_commentnum}: <!--{echo dnumber($colletion[commentnum])}--></em></dd>
  238.                                                                         <dd>
  239.                                                                         <!--{if $colletion['lastpost']}-->
  240.                                                                                 <!--{if $forumcolumns < 3}-->
  241.                                                                                         <a href="forum.php?mod=redirect&tid=$colletion[lastpost]&goto=lastpost#lastpost" class="xi2"><!--{echo cutstr($colletion[lastsubject], 30)}--></a> <cite><!--{date($colletion[lastposttime])}--> <!--{if $colletion['lastposter']}-->$colletion['lastposter']<!--{else}-->$_G[setting][anonymoustext]<!--{/if}--></cite>
  242.                                                                                 <!--{else}-->
  243.                                                                                         <a href="forum.php?mod=redirect&tid=$colletion[lastpost]&goto=lastpost#lastpost">{lang forum_lastpost}: <!--{date($colletion[lastposttime])}--></a>
  244.                                                                                 <!--{/if}-->
  245.                                                                         <!--{else}-->
  246.                                                                                 {lang never}
  247.                                                                         <!--{/if}-->
  248.                                                                         </dd>
  249.                                                                         <!--{hook/index_followcollection_extra $colletion[ctid]}-->
  250.                                                                 </dl>
  251.                                                         </td>
  252.                                                         <!--{eval $ctorderid++;}-->

  253.                                                 <!--{/loop}-->
  254.                                                 <!--{if ($columnspad = $ctorderid % $forumcolumns) > 0}--><!--{echo str_repeat('<td class="fl_g"'.($forumcolwidth ? " width="$forumcolwidth"" : '').'></td>', $forumcolumns - $columnspad);}--><!--{/if}-->
  255.                                                 </tr>
  256.                                         </table>
  257.                                 </div>
  258.                         </div>
  259.                         <!--{/if}-->
  260.                         <!--{if empty($gid) && !empty($forum_favlist)}-->
  261.                         <!--{eval $forumscount = count($forum_favlist);}-->
  262.                         <!--{eval $forumcolumns = $forumscount > 3 ? ($forumscount == 4 ? 4 : 5) : 1;}-->

  263.                         <!--{eval $forumcolwidth = (floor(100 / $forumcolumns) - 0.1).'%';}-->

  264.                         <div class="bm bmw {if $forumcolumns} flg{/if} cl">
  265.                                 <div class="bm_h cl">
  266.                                         <span class="o">
  267.                                                 <img id="category_0_img" src="{IMGDIR}/$collapse['collapseimg_0']" title="{lang spread}" alt="{lang spread}" onclick="toggle_collapse('category_0');" />
  268.                                         </span>
  269.                                         <h2><a href="home.php?mod=space&do=favorite&type=forum">{lang forum_myfav}</a></h2>
  270.                                 </div>
  271.                                 <div id="category_0" class="bm_c" style="{echo $collapse['category_0']}">
  272.                                         <table cellspacing="0" cellpadding="0" class="fl_tb">
  273.                                                 <tr>
  274.                                                 <!--{eval $favorderid = 0;}-->
  275.                                                 <!--{loop $forum_favlist $key $favorite}-->
  276.                                                 <!--{if $favforumlist[$favorite[id]]}-->
  277.                                                 <!--{eval $forum=$favforumlist[$favorite[id]];}-->
  278.                                                 <!--{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'];}-->
  279.                                                         <!--{if $forumcolumns>1}-->
  280.                                                                 <!--{if $favorderid && ($favorderid % $forumcolumns == 0)}-->
  281.                                                                         </tr>
  282.                                                                         <!--{if $favorderid < $forumscount}-->
  283.                                                                                 <tr class="fl_row">
  284.                                                                         <!--{/if}-->
  285.                                                                 <!--{/if}-->
  286.                                                                 <td class="fl_g"{if $forumcolwidth} width="$forumcolwidth"{/if}>
  287.                                                                         <div class="fl_icn_g"{if !empty($forum[extra][iconwidth]) && !empty($forum[icon])} style="width: {$forum[extra][iconwidth]}px;"{/if}>
  288.                                                                         <!--{if $forum[icon]}-->
  289.                                                                                 $forum[icon]
  290.                                                                         <!--{else}-->
  291.                                                                                 <a href="$forumurl"{if $forum[redirect]} target="_blank"{/if}><img src="{IMGDIR}/forum{if $forum[folder]}_new{/if}.gif" alt="$forum[name]" /></a>
  292.                                                                         <!--{/if}-->
  293.                                                                         </div>
  294.                                                                         <dl{if !empty($forum[extra][iconwidth]) && !empty($forum[icon])} style="margin-left: {$forum[extra][iconwidth]}px;"{/if}>
  295.                                                                                 <dt><a href="$forumurl"{if $forum[redirect]} target="_blank"{/if}{if $forum[extra][namecolor]} style="color: {$forum[extra][namecolor]};"{/if}>$forum[name]</a><!--{if $forum[todayposts] && !$forum['redirect']}--><em class="xw0 xi1" title="{lang forum_todayposts}"> ($forum[todayposts])</em><!--{/if}--></dt>
  296.                                                                                 <!--{if empty($forum[redirect])}--><dd><em>{lang forum_threads}: <!--{echo dnumber($forum[threads])}--></em>, <em>{lang forum_posts}: <!--{echo dnumber($forum[posts])}--></em></dd><!--{/if}-->
  297.                                                                                 <dd>
  298.                                                                                 <!--{if $forum['permission'] == 1}-->
  299.                                                                                         {lang private_forum}
  300.                                                                                 <!--{else}-->
  301.                                                                                         <!--{if $forum['redirect']}-->
  302.                                                                                                 <a href="$forumurl" class="xi2">{lang url_link}</a>
  303.                                                                                         <!--{elseif is_array($forum['lastpost'])}-->
  304.                                                                                                 <!--{if $forumcolumns < 3}-->
  305.                                                                                                         <a href="forum.php?mod=redirect&tid=$forum[lastpost][tid]&goto=lastpost#lastpost" class="xi2"><!--{echo cutstr($forum[lastpost][subject], 30)}--></a> <cite>$forum[lastpost][dateline] <!--{if $forum['lastpost']['author']}-->$forum['lastpost']['author']<!--{else}-->$_G[setting][anonymoustext]<!--{/if}--></cite>
  306.                                                                                                 <!--{else}-->
  307.                                                                                                         <a href="forum.php?mod=redirect&tid=$forum[lastpost][tid]&goto=lastpost#lastpost">{lang forum_lastpost}: $forum[lastpost][dateline]</a>
  308.                                                                                                 <!--{/if}-->
  309.                                                                                         <!--{else}-->
  310.                                                                                                 {lang never}
  311.                                                                                         <!--{/if}-->
  312.                                                                                 <!--{/if}-->
  313.                                                                                 </dd>
  314.                                                                                 <!--{hook/index_favforum_extra $forum[fid]}-->
  315.                                                                         </dl>
  316.                                                                 </td>
  317.                                                                 <!--{eval $favorderid++;}-->
  318.                                                         <!--{else}-->
  319.                                                                 <td class="fl_icn" {if !empty($forum[extra][iconwidth]) && !empty($forum[icon])} style="width: {$forum[extra][iconwidth]}px;"{/if}>
  320.                                                                         <!--{if $forum[icon]}-->
  321.                                                                                 $forum[icon]
  322.                                                                         <!--{else}-->
  323.                                                                                 <a href="$forumurl"{if $forum[redirect]} target="_blank"{/if}><img src="{IMGDIR}/forum{if $forum[folder]}_new{/if}.gif" alt="$forum[name]" /></a>
  324.                                                                         <!--{/if}-->
  325.                                                                 </td>
  326.                                                                 <td>
  327.                                                                         <h2><a href="$forumurl"{if $forum[redirect]} target="_blank"{/if}{if $forum[extra][namecolor]} style="color: {$forum[extra][namecolor]};"{/if}>$forum[name]</a><!--{if $forum[todayposts] && !$forum['redirect']}--><em class="xw0 xi1" title="{lang forum_todayposts}"> ($forum[todayposts])</em><!--{/if}--></h2>
  328.                                                                         <!--{if $forum[description]}--><p class="xg2">$forum[description]</p><!--{/if}-->
  329.                                                                         <!--{if $forum['subforums']}--><p>{lang forum_subforums}: $forum['subforums']</p><!--{/if}-->
  330.                                                                         <!--{if $forum['moderators']}--><p>{lang forum_moderators}: <span class="xi2">$forum[moderators]</span></p><!--{/if}-->
  331.                                                                         <!--{hook/index_favforum_extra $forum[fid]}-->
  332.                                                                 </td>
  333.                                                                 <td class="fl_i">
  334.                                                                         <!--{if empty($forum[redirect])}--><span class="xi2"><!--{echo dnumber($forum[threads])}--></span><span class="xg1"> / <!--{echo dnumber($forum[posts])}--></span><!--{/if}-->
  335.                                                                 </td>
  336.                                                                 <td class="fl_by">
  337.                                                                         <div>
  338.                                                                         <!--{if $forum['permission'] == 1}-->
  339.                                                                                 {lang private_forum}
  340.                                                                         <!--{else}-->
  341.                                                                                 <!--{if $forum['redirect']}-->
  342.                                                                                         <a href="$forumurl" class="xi2">{lang url_link}</a>
  343.                                                                                 <!--{elseif is_array($forum['lastpost'])}-->
  344.                                                                                         <a href="forum.php?mod=redirect&tid=$forum[lastpost][tid]&goto=lastpost#lastpost" class="xi2"><!--{echo cutstr($forum[lastpost][subject], 30)}--></a> <cite>$forum[lastpost][dateline] <!--{if $forum['lastpost']['author']}-->$forum['lastpost']['author']<!--{else}-->$_G[setting][anonymoustext]<!--{/if}--></cite>
  345.                                                                                 <!--{else}-->
  346.                                                                                         {lang never}
  347.                                                                                 <!--{/if}-->
  348.                                                                         <!--{/if}-->
  349.                                                                         </div>
  350.                                                                 </td>
  351.                                                         </tr>
  352.                                                         <tr class="fl_row">

  353.                                                         <!--{/if}-->
  354.                                                 <!--{/if}-->
  355.                                                 <!--{/loop}-->
  356.                                                 <!--{if ($columnspad = $favorderid % $forumcolumns) > 0}--><!--{echo str_repeat('<td class="fl_g"'.($forumcolwidth ? " width="$forumcolwidth"" : '').'></td>', $forumcolumns - $columnspad);}--><!--{/if}-->
  357.                                                 </tr>
  358.                                         </table>

  359.                                 </div>
  360.                         </div>

  361.                         <!--{ad/intercat/bm a_c/-1}-->
  362.                 <!--{/if}-->
  363.                 <!--{loop $catlist $key $cat}-->
  364.                         <!--{hook/index_catlist $cat[fid]}-->
  365.                        
  366.                         <!--
  367.                          {lang forum_category_modedby}:分区版主
  368.                         $cat[moderators]:会显示在后台设置该板块的版主,带该版主的个人页面连接
  369.                         $cat[name]:是当前总板块的名称
  370.                          -->

  371.                         <div class="bm bmw {if $cat['forumcolumns']} flg{/if} cl">
  372.                                 <div class="bm_h cl">
  373.                                         <span class="o">
  374.                                                 <img id="category_$cat[fid]_img" src="{IMGDIR}/$cat[collapseimg]" title="{lang spread}" alt="{lang spread}" onclick="toggle_collapse('category_$cat[fid]');" />
  375.                                         </span>
  376.                                         <!--{if $cat['moderators']}--><span class="y">{lang forum_category_modedby}: $cat[moderators]</span><!--{/if}-->
  377.                                         <!--{eval $caturl = !empty($cat['domain']) && !empty($_G['setting']['domain']['root']['forum']) ? 'http://'.$cat['domain'].'.'.$_G['setting']['domain']['root']['forum'] : '';}-->
  378.                                         <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>
  379.                                 </div>
  380.                                 <!-- $cat[forums]:会保存当前大板块下所有子版块的板块ID -->
  381.                                

  382.                                 <div id="category_$cat[fid]" class="bm_c" style="{echo $collapse['category_'.$cat[fid]]}">
  383.                                         <table cellspacing="0" cellpadding="0" class="fl_tb">
  384.                                                 <tr>
  385.                                                 <!--{loop $cat[forums] $forumid}-->
  386.                                                 <!--{eval $forum=$forumlist[$forumid];}-->
  387.                                                 <!--{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'];}-->
  388.                                                 <!--{if $cat['forumcolumns']}-->
  389.                                                         <!--{if $forum['orderid'] && ($forum['orderid'] % $cat['forumcolumns'] == 0)}-->
  390.                                                                 </tr>
  391.                                                                 <!--{if $forum['orderid'] < $cat['forumscount']}-->
  392.                                                                         <tr class="fl_row">
  393.                                                                 <!--{/if}-->
  394.                                                         <!--{/if}-->
  395.                                                         <td class="fl_g" width="$cat[forumcolwidth]">
  396.                                                                 <div class="fl_icn_g"{if !empty($forum[extra][iconwidth]) && !empty($forum[icon])} style="width: {$forum[extra][iconwidth]}px;"{/if}>
  397.                                                                 <!-- 如果在后台设置了板块图标就显示设置的板块图标,否则就显示系统默认的图标
  398.                                                                 {lang private_forum}:私密板块
  399.                                                                 {lang never}:未从
  400.                                                                 -->
  401.                                                                 <!--{if $forum[icon]}-->
  402.                                                                         $forum[icon]
  403.                                                                 <!--{else}-->
  404.                                                                         <a href="$forumurl"{if $forum[redirect]} target="_blank"{/if}><img src="{IMGDIR}/forum{if $forum[folder]}_new{/if}.gif" alt="$forum[name]" /></a>
  405.                                                                 <!--{/if}-->
  406.                                                                 </div>
  407.                                                                 <dl{if !empty($forum[extra][iconwidth]) && !empty($forum[icon])} style="margin-left: {$forum[extra][iconwidth]}px;"{/if}>
  408.                                                                         <dt><a href="$forumurl"{if $forum[redirect]} target="_blank"{/if}{if $forum[extra][namecolor]} style="color: {$forum[extra][namecolor]};"{/if}>$forum[name]</a><!--{if $forum[todayposts] && !$forum['redirect']}--><em class="xw0 xi1" title="{lang forum_todayposts}"> ($forum[todayposts])</em><!--{/if}--></dt>
  409.                                                                         <!--{if empty($forum[redirect])}--><dd><em>{lang forum_threads}: <!--{echo dnumber($forum[threads])}--></em>, <em>{lang forum_posts}: <!--{echo dnumber($forum[posts])}--></em></dd><!--{/if}-->
  410.                                                                         <dd>
  411.                                                                         <!--{if $forum['permission'] == 1}-->
  412.                                                                                 {lang private_forum}
  413.                                                                         <!--{else}-->
  414.                                                                                 <!--{if $forum['redirect']}-->
  415.                                                                                         <a href="$forumurl" class="xi2">{lang url_link}</a>
  416.                                                                                 <!--{elseif is_array($forum['lastpost'])}-->
  417.                                                                                         <!--{if $cat['forumcolumns'] < 3}-->
  418.                                                                                                 <a href="forum.php?mod=redirect&tid=$forum[lastpost][tid]&goto=lastpost#lastpost" class="xi2"><!--{echo cutstr($forum[lastpost][subject], 30)}--></a> <cite>$forum[lastpost][dateline] <!--{if $forum['lastpost']['author']}-->$forum['lastpost']['author']<!--{else}-->$_G[setting][anonymoustext]<!--{/if}--></cite>
  419.                                                                                         <!--{else}-->
  420.                                                                                                 <a href="forum.php?mod=redirect&tid=$forum[lastpost][tid]&goto=lastpost#lastpost">{lang forum_lastpost}: $forum[lastpost][dateline]</a>
  421.                                                                                         <!--{/if}-->
  422.                                                                                 <!--{else}-->
  423.                                                                                         {lang never}
  424.                                                                                 <!--{/if}-->
  425.                                                                         <!--{/if}-->
  426.                                                                         </dd>
  427.                                                                         <!--{hook/index_forum_extra $forum[fid]}-->
  428.                                                                 </dl>
  429.                                                         </td>
  430.                                                 <!--{else}-->
  431.                                                         <td class="fl_icn" {if !empty($forum[extra][iconwidth]) && !empty($forum[icon])} style="width: {$forum[extra][iconwidth]}px;"{/if}>
  432.                                                                 <!--{if $forum[icon]}-->
  433.                                                                         $forum[icon]
  434.                                                                 <!--{else}-->
  435.                                                                         <a href="$forumurl"{if $forum[redirect]} target="_blank"{/if}><img src="{IMGDIR}/forum{if $forum[folder]}_new{/if}.gif" alt="$forum[name]" /></a>
  436.                                                                 <!--{/if}-->
  437.                                                         </td>
  438.                                                         <td>
  439.                                                                 <h2><a href="$forumurl"{if $forum[redirect]} target="_blank"{/if}{if $forum[extra][namecolor]} style="color: {$forum[extra][namecolor]};"{/if}>$forum[name]</a><!--{if $forum[todayposts] && !$forum['redirect']}--><em class="xw0 xi1" title="{lang forum_todayposts}"> ($forum[todayposts])</em><!--{/if}--></h2>
  440.                                                                 <!--{if $forum[description]}--><p class="xg2">$forum[description]</p><!--{/if}-->
  441.                                                                 <!--{if $forum['subforums']}--><p>{lang forum_subforums}: $forum['subforums']</p><!--{/if}-->
  442.                                                                 <!--{if $forum['moderators']}--><p>{lang forum_moderators}: <span class="xi2">$forum[moderators]</span></p><!--{/if}-->
  443.                                                                 <!--{hook/index_forum_extra $forum[fid]}-->
  444.                                                         </td>
  445.                                                         <td class="fl_i">
  446.                                                                 <!--{if empty($forum[redirect])}--><span class="xi2"><!--{echo dnumber($forum[threads])}--></span><span class="xg1"> / <!--{echo dnumber($forum[posts])}--></span><!--{/if}-->
  447.                                                         </td>
  448.                                                         <td class="fl_by">
  449.                                                                 <div>
  450.                                                                 <!--{if $forum['permission'] == 1}-->
  451.                                                                         {lang private_forum}
  452.                                                                 <!--{else}-->
  453.                                                                         <!--{if $forum['redirect']}-->
  454.                                                                                 <a href="$forumurl" class="xi2">{lang url_link}</a>
  455.                                                                         <!--{elseif is_array($forum['lastpost'])}-->
  456.                                                                                 <a href="forum.php?mod=redirect&tid=$forum[lastpost][tid]&goto=lastpost#lastpost" class="xi2"><!--{echo cutstr($forum[lastpost][subject], 30)}--></a> <cite>$forum[lastpost][dateline] <!--{if $forum['lastpost']['author']}-->$forum['lastpost']['author']<!--{else}-->$_G[setting][anonymoustext]<!--{/if}--></cite>
  457.                                                                         <!--{else}-->
  458.                                                                                 {lang never}
  459.                                                                         <!--{/if}-->
  460.                                                                 <!--{/if}-->
  461.                                                                 </div>
  462.                                                         </td>
  463.                                                 </tr>
  464.                                                 <tr class="fl_row">
  465.                                                 <!--{/if}-->
  466.                                                 <!--{/loop}-->
  467.                                                 $cat['endrows']
  468.                                                 </tr>
  469.                                         </table>
  470.                                 </div>
  471.                         </div>
  472.                        
  473.                         <!--{ad/intercat/bm a_c/$cat[fid]}-->
  474.                 <!--{/loop}-->
  475.                 <!--
  476.                 {lang recommend_collection}:淘宝推荐专辑
  477.                 {lang collection_commentnum}:评论
  478.                 {lang forum_lastpost}:最后发表
  479.                 -->


  480.                         <!--{if !empty($collectiondata['data'])}-->

  481.                         <!--{eval $forumscount = count($collectiondata['data']);}-->
  482.                         <!--{eval $forumcolumns = 4;}-->

  483.                         <!--{eval $forumcolwidth = (floor(100 / $forumcolumns) - 0.1).'%';}-->

  484.                         <div class="bm bmw {if $forumcolumns} flg{/if} cl">
  485.                                 <div class="bm_h cl">
  486.                                         <span class="o">
  487.                                                 <img id="category_-2_img" src="{IMGDIR}/$collapse['collapseimg_-2']" title="{lang spread}" alt="{lang spread}" onclick="toggle_collapse('category_-2');" />
  488.                                         </span>
  489.                                         <h2><a href="forum.php?mod=collection">{lang recommend_collection}</a></h2>
  490.                                 </div>
  491.                                 <div id="category_-2" class="bm_c" style="{echo $collapse['category_-2']}">
  492.                                         <table cellspacing="0" cellpadding="0" class="fl_tb">
  493.                                                 <tr>
  494.                                                 <!--{eval $ctorderid = 0;}-->
  495.                                                 <!--{loop $collectiondata['data'] $key $colletion}-->
  496.                                                         <!--{if $ctorderid && ($ctorderid % $forumcolumns == 0)}-->
  497.                                                                 </tr>
  498.                                                                 <!--{if $ctorderid < $forumscount}-->
  499.                                                                         <tr class="fl_row">
  500.                                                                 <!--{/if}-->
  501.                                                         <!--{/if}-->
  502.                                                         <td class="fl_g"{if $forumcolwidth} width="$forumcolwidth"{/if}>
  503.                                                                 <div class="fl_icn_g">
  504.                                                                 <a href="forum.php?mod=collection&action=view&ctid={$colletion[ctid]}" target="_blank"><img src="{IMGDIR}/forum.gif" alt="$colletion[name]" /></a>
  505.                                                                 </div>
  506.                                                                 <dl>
  507.                                                                         <dt><a href="forum.php?mod=collection&action=view&ctid={$colletion[ctid]}">$colletion[name]</a></dt>
  508.                                                                         <dd><em>{lang forum_threads}: <!--{echo dnumber($colletion[threadnum])}--></em>, <em>{lang collection_commentnum}: <!--{echo dnumber($colletion[commentnum])}--></em></dd>
  509.                                                                         <dd>
  510.                                                                         <!--{if $colletion['lastpost']}-->
  511.                                                                                 <!--{if $forumcolumns < 3}-->
  512.                                                                                         <a href="forum.php?mod=redirect&tid=$colletion[lastpost]&goto=lastpost#lastpost" class="xi2"><!--{echo cutstr($colletion[lastsubject], 30)}--></a> <cite><!--{date($colletion[lastposttime])}--> <!--{if $colletion['lastposter']}-->$colletion['lastposter']<!--{else}-->$_G[setting][anonymoustext]<!--{/if}--></cite>
  513.                                                                                 <!--{else}-->
  514.                                                                                         <a href="forum.php?mod=redirect&tid=$colletion[lastpost]&goto=lastpost#lastpost">{lang forum_lastpost}: <!--{date($colletion[lastposttime])}--></a>
  515.                                                                                 <!--{/if}-->
  516.                                                                         <!--{else}-->
  517.                                                                                 {lang never}
  518.                                                                         <!--{/if}-->
  519.                                                                         </dd>
  520.                                                                         <!--{hook/index_datacollection_extra $colletion[ctid]}-->
  521.                                                                 </dl>
  522.                                                         </td>
  523.                                                         <!--{eval $ctorderid++;}-->

  524.                                                 <!--{/loop}-->
  525.                                                 <!--{if ($columnspad = $ctorderid % $forumcolumns) > 0}--><!--{echo str_repeat('<td class="fl_g"'.($forumcolwidth ? " width="$forumcolwidth"" : '').'></td>', $forumcolumns - $columnspad);}--><!--{/if}-->
  526.                                                 </tr>
  527.                                         </table>

  528.                                 </div>
  529.                         </div>

  530.                         <!--{/if}-->

  531.                 </div>

  532.                 <!--{hook/index_middle}-->
  533.                 <div class="wp mtn">
  534.                         <!--[diy=diy3]--><div id="diy3" class="area"></div><!--[/diy]-->
  535.                 </div>
  536.                 <!--
  537.                 {lang onlinemember}:在线会员
  538.                 {lang onlines}:xx人在线
  539.                 $onlinenum:当前在线的人数
  540.                 {lang index_members}:会员
  541.                 {lang index_invisibles}:隐身
  542.                 $membercount:当前在线会员的人数
  543.                 $invisiblecount:当前隐身会员的人数
  544.                 $guestcount:当前隐身的游客人数
  545.                 {lang index_guests}:位游客
  546.                 {lang index_mostonlines}:最高记录是
  547.                 {lang on}:于
  548.                 $onlineinfo[0]:最高记录在线人数
  549.                 $onlineinfo[1]:最高记录在线人数的日期
  550.                 {lang total}:总计
  551.                 {lang online_only_guests}:当前只有游客或隐身会员在线
  552.                  -->

  553.                 <!--{if empty($gid) && $_G['setting']['whosonlinestatus']}-->
  554.                         <div id="online" class="bm oll">
  555.                                 <div class="bm_h">
  556.                                 <!--{if $detailstatus}-->
  557.                                         <span class="o"><a href="forum.php?showoldetails=no#online" title="{lang spread}"><img src="{IMGDIR}/collapsed_no.gif" alt="{lang spread}" /></a></span>
  558.                                         <h3>
  559.                                                 <strong><a href="home.php?mod=space&do=friend&view=online&type=member">{lang onlinemember}</a></strong>
  560.                                                 <span class="xs1">- <strong>$onlinenum</strong> {lang onlines}
  561.                                                 - <strong>$membercount</strong> {lang index_members}(<strong>$invisiblecount</strong> {lang index_invisibles}),
  562.                                                 <strong>$guestcount</strong> {lang index_guests}
  563.                                                 - {lang index_mostonlines} <strong>$onlineinfo[0]</strong> {lang on} <strong>$onlineinfo[1]</strong>.</span>
  564.                                         </h3>
  565.                                 <!--{else}-->
  566.                                         <!--{if empty($_G['setting']['sessionclose'])}-->
  567.                                                 <span class="o"><a href="forum.php?showoldetails=yes#online" title="{lang spread}"><img src="{IMGDIR}/collapsed_yes.gif" alt="{lang spread}" /></a></span>
  568.                                         <!--{/if}-->
  569.                                         <h3>
  570.                                                 <strong>
  571.                                                         <!--{if !empty($_G['setting']['whosonlinestatus'])}-->
  572.                                                                 {lang onlinemember}
  573.                                                         <!--{else}-->
  574.                                                                 <a href="home.php?mod=space&do=friend&view=online&type=member">{lang onlinemember}</a>
  575.                                                         <!--{/if}-->
  576.                                                 </strong>
  577.                                                 <span class="xs1">- {lang total} <strong>$onlinenum</strong> {lang onlines}
  578.                                                 <!--{if $membercount}-->- <strong>$membercount</strong> {lang index_members},<strong>$guestcount</strong> {lang index_guests}<!--{/if}-->
  579.                                                 - {lang index_mostonlines} <strong>$onlineinfo[0]</strong> {lang on} <strong>$onlineinfo[1]</strong>.</span>
  580.                                         </h3>
  581.                                 <!--{/if}-->
  582.                                 </div>
  583.                         <!--{if $_G['setting']['whosonlinestatus'] && $detailstatus}-->
  584.                                 <dl id="onlinelist" class="bm_c">
  585.                                         <dt class="ptm pbm bbda">$_G[cache][onlinelist][legend]</dt>
  586.                                         <!--{if $detailstatus}-->
  587.                                                 <dd class="ptm pbm">
  588.                                                 <ul class="cl">
  589.                                                 <!--{if $whosonline}-->
  590.                                                         <!--{loop $whosonline $key $online}-->
  591.                                                                 <li title="{lang time}: $online[lastactivity]">
  592.                                                                 <img src="{STATICURL}image/common/$online[icon]" alt="icon" />
  593.                                                                 <!--{if $online['uid']}-->
  594.                                                                         <a href="home.php?mod=space&uid=$online[uid]">$online[username]</a>
  595.                                                                 <!--{else}-->
  596.                                                                         $online[username]
  597.                                                                 <!--{/if}-->
  598.                                                                 </li>
  599.                                                         <!--{/loop}-->
  600.                                                 <!--{else}-->
  601.                                                         <li style="width: auto">{lang online_only_guests}</li>
  602.                                                 <!--{/if}-->
  603.                                                 </ul>
  604.                                         </dd>
  605.                                         <!--{/if}-->
  606.                                 </dl>
  607.                         <!--{/if}-->
  608.                         </div>
  609.                 <!--{/if}-->

  610.                 <!--
  611.                 $_G['cache']['forumlinks'][0]:底部一些友情连接的显示
  612.                 -->
  613.                 <!--{if empty($gid) && ($_G['cache']['forumlinks'][0] || $_G['cache']['forumlinks'][1] || $_G['cache']['forumlinks'][2])}-->
  614.                 <div class="bm lk">
  615.                         <div id="category_lk" class="bm_c ptm">
  616.                                 <!--{if $_G['cache']['forumlinks'][0]}-->
  617.                                         <ul class="m mbn cl">$_G['cache']['forumlinks'][0]</ul>
  618.                                 <!--{/if}-->
  619.                                 <!--{if $_G['cache']['forumlinks'][1]}-->
  620.                                         <div class="mbn cl">
  621.                                                 $_G['cache']['forumlinks'][1]
  622.                                         </div>
  623.                                 <!--{/if}-->
  624.                                 <!--{if $_G['cache']['forumlinks'][2]}-->
  625.                                         <ul class="x mbm cl">
  626.                                                 $_G['cache']['forumlinks'][2]
  627.                                         </ul>
  628.                                 <!--{/if}-->
  629.                         </div>
  630.                 </div>
  631.                 <!--{/if}-->

  632.                 <!--{hook/index_bottom}-->
  633.         </div>

  634.         <!--{if $_G['setting']['forumallowside']}-->
  635.                 <div id="sd" class="sd">
  636.                         <!--{hook/index_side_top}-->
  637.                         <div class="drag">
  638.                                 <!--[diy=diy2]--><div id="diy2" class="area"></div><!--[/diy]-->
  639.                         </div>
  640.                         <!--{hook/index_side_bottom}-->
  641.                 </div>
  642.         <!--{/if}-->
  643. </div>
  644. <!--{if $_G['group']['radminid'] == 1}-->
  645.         <!--{eval helper_manyou::checkupdate();}-->
  646. <!--{/if}-->
  647. <!--{if empty($_G['setting']['disfixednv_forumindex']) }--><script>fixed_top_nv();</script><!--{/if}-->
  648. <!--{template common/footer}-->
复制代码

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|十三博客 ( 鲁ICP备2023000528号 )

GMT+8, 2026-6-1 17:26 , Processed in 0.086809 second(s), 23 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表