Discuz!官方免费开源建站系统

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

[素材] 【discuzx3.4】Discuz.htm模板代码分析

[复制链接]
longe1013 发表于 2018-1-9 11:09:11 | 显示全部楼层 |阅读模式
  1. <!--{template common/header}-->


  2. <div id="pt" class="bm cl">
  3. <!--位置信息右侧公告-->
  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. <!--位置信息-->
  18.         <div class="z">
  19.                 <a href="./" class="nvhm" title="{lang homepage}">$_G[setting][bbname]</a><em>&#187;</em><a href="forum.php">{$_G[setting][navs][2][navname]}</a>$navigation
  20.         </div>
  21.         <div class="z"><!--{hook/index_status_extra}--></div>
  22. </div>


  23. <!--{if empty($gid)}-->
  24.         <!--{ad/text/wp a_t}-->
  25. <!--{/if}-->

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

  27. <!--{if empty($gid)}-->
  28.         <div class="wp">
  29.                 <!--[diy=diy1]--><div id="diy1" class="area"></div><!--[/diy]-->
  30.         </div>
  31. <!--{/if}-->
  32. <!--论坛板块内容区域-->
  33. <div id="ct" class="wp cl{if $_G['setting']['forumallowside']} ct2{/if}">
  34.         <!--{if empty($gid)}-->
  35.                 <div id="chart" class="bm bw0 cl">
  36. <!--论坛左侧帖子会员信息统计显示-->
  37.                         <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>
  38. <!--论坛右侧我的帖子|最新回复-->
  39.                         <div class="y">
  40.                                 <!--{hook/index_nav_extra}-->
  41.                                 <!--{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}-->
  42.                         </div>
  43.                 </div>
  44.         <!--{/if}-->
  45.         <!--[diy=diy_chart]--><div id="diy_chart" class="area"></div><!--[/diy]-->
  46.         <div class="mn">

  47.                 <!--{if !empty($_G['setting']['grid']['showgrid'])}-->
  48.                 <!-- index four grid -->
  49.                 <div class="fl bm">
  50.                         <div class="bm bmw cl">
  51.                                 <div id="category_grid" class="bm_c" >
  52.                                         <table cellspacing="0" cellpadding="0"><tr>
  53.                                         <!--{if !$_G['setting']['grid']['gridtype']}-->
  54.                                                 <td valign="top" class="category_l1">
  55.                                                         <div class="newimgbox">
  56.                                                                 <h4><span class="tit_newimg"></span>{lang latest_images}</h4>
  57.                                                                 <div class="module cl slidebox_grid" style="width:218px">
  58.                                                                         <script type="text/javascript">
  59.                                                                         var slideSpeed = 5000;
  60.                                                                         var slideImgsize = [218,200];
  61.                                                                         var slideBorderColor = '{$_G['style']['specialborder']}';
  62.                                                                         var slideBgColor = '{$_G['style']['commonbg']}';
  63.                                                                         var slideImgs = new Array();
  64.                                                                         var slideImgLinks = new Array();
  65.                                                                         var slideImgTexts = new Array();
  66.                                                                         var slideSwitchColor = '{$_G['style']['tabletext']}';
  67.                                                                         var slideSwitchbgColor = '{$_G['style']['commonbg']}';
  68.                                                                         var slideSwitchHiColor = '{$_G['style']['specialborder']}';
  69.                                                                         {eval $k = 1;}
  70.                                                                         <!--{loop $grids['slide'] $stid $svalue}-->
  71.                                                                                 slideImgs[<!--{echo $k}-->] = '$svalue[image]';
  72.                                                                                 slideImgLinks[<!--{echo $k}-->] = '{$svalue[url]}';
  73.                                                                                 slideImgTexts[<!--{echo $k}-->] = '$svalue[subject]';
  74.                                                                                 {eval $k++;}
  75.                                                                         <!--{/loop}-->
  76.                                                                         </script>
  77.                                                                         <script language="javascript" type="text/javascript" src="{$_G[setting][jspath]}forum_slide.js?{VERHASH}"></script>
  78.                                                                 </div>
  79.                                                         </div>
  80.                                                 </td>
  81.                                         <!--{/if}-->
  82.                                         <td valign="top" class="category_l2">
  83.                                                 <div class="subjectbox">
  84.                                                         <h4><span class="tit_subject"></span>{lang collection_lastthread}</h4>
  85.                                                 <ul class="category_newlist">
  86.                                                         <!--{loop $grids['newthread'] $thread}-->
  87.                                                         <!--{if !$thread['forumstick'] && $thread['closed'] > 1 && ($thread['isgroup'] == 1 || $thread['fid'] != $_G['fid'])}-->
  88.                                                                         <!--{eval $thread[tid]=$thread[closed];}-->
  89.                                                                 <!--{/if}-->
  90.                                                                 <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>
  91.                                                                 <!--{/loop}-->
  92.                                                  </ul>
  93.                                          </div>
  94.                                         </td>
  95.                                         <td valign="top" class="category_l3">
  96.                                                 <div class="replaybox">
  97.                                                         <h4><span class="tit_replay"></span>{lang show_newthreads}</h4>
  98.                                                 <ul class="category_newlist">
  99.                                                         <!--{loop $grids['newreply'] $thread}-->
  100.                                                         <!--{if !$thread['forumstick'] && $thread['closed'] > 1 && ($thread['isgroup'] == 1 || $thread['fid'] != $_G['fid'])}-->
  101.                                                                         <!--{eval $thread[tid]=$thread[closed];}-->
  102.                                                                 <!--{/if}-->
  103.                                                                 <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>
  104.                                                                 <!--{/loop}-->
  105.                                                  </ul>
  106.                                          </div>
  107.                                         </td>
  108.                                         <td valign="top" class="category_l3">
  109.                                                 <div class="hottiebox">
  110.                                                         <h4><span class="tit_hottie"></span>{lang hot_thread}</h4>
  111.                                                 <ul class="category_newlist">
  112.                                                         <!--{loop $grids['hot'] $thread}-->
  113.                                                         <!--{if !$thread['forumstick'] && $thread['closed'] > 1 && ($thread['isgroup'] == 1 || $thread['fid'] != $_G['fid'])}-->
  114.                                                                         <!--{eval $thread[tid]=$thread[closed];}-->
  115.                                                                 <!--{/if}-->
  116.                                                                 <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>
  117.                                                                 <!--{/loop}-->
  118.                                                  </ul>
  119.                                          </div>
  120.                                         </td>
  121.                                         <!--{if $_G['setting']['grid']['gridtype']}-->
  122.                                                 <td valign="top" class="category_l4">
  123.                                                         <div class="goodtiebox">
  124.                                                                 <h4><span class="tit_goodtie"></span>{lang post_digest_thread}</h4>
  125.                                                                 <ul class="category_newlist">
  126.                                                                         <!--{loop $grids['digest'] $thread}-->
  127.                                                                                 <!--{if !$thread['forumstick'] && $thread['closed'] > 1 && ($thread['isgroup'] == 1 || $thread['fid'] != $_G['fid'])}-->
  128.                                                                                         <!--{eval $thread[tid]=$thread[closed];}-->
  129.                                                                                 <!--{/if}-->
  130.                                                                                 <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>
  131.                                                                         <!--{/loop}-->
  132.                                                                  </ul>
  133.                                                          </div>
  134.                                                 </td>
  135.                                         <!--{/if}-->
  136.                                         </table>
  137.                                 </div>
  138.                         </div>
  139.                 </div>
  140.                 <!-- index four grid end -->
  141.                 <!--{/if}-->
  142.                 <!--{hook/index_top}-->
  143.                 <!--{if !empty($_G['cache']['heats']['message'])}-->
  144.                         <div class="bm">
  145.                                 <div class="bm_h cl">
  146.                                         <h2>{lang hotthreads_forum}</h2>
  147.                                 </div>
  148.                                 <div class="bm_c cl">
  149.                                         <div class="heat z">
  150.                                                 <!--{loop $_G['cache']['heats']['message'] $data}-->
  151.                                                         <dl class="xld">
  152.                                                                 <dt><!--{if $_G['adminid'] == 1}--><a class="d" href="forum.php?mod=misc&action=removeindexheats&tid=$data[tid]" onclick="return removeindexheats()">delete</a><!--{/if}-->
  153.                                                                 <a href="forum.php?mod=viewthread&tid=$data[tid]" target="_blank" class="xi2">$data[subject]</a></dt>
  154.                                                                 <dd>$data[message]</dd>
  155.                                                         </dl>
  156.                                                 <!--{/loop}-->
  157.                                         </div>
  158.                                         <ul class="xl xl1 heatl">
  159.                                         <!--{loop $_G['cache']['heats']['subject'] $data}-->
  160.                                                 <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>
  161.                                         <!--{/loop}-->
  162.                                         </ul>
  163.                                 </div>
  164.                         </div>
  165.                 <!--{/if}-->

  166.                 <!--{hook/index_catlist_top}-->
  167.                 <div class="fl bm">
  168.                         <!--{if !empty($collectiondata['follows'])}-->

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

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

  172.                         <div class="bm bmw {if $forumcolumns} flg{/if} cl">
  173.                                 <div class="bm_h cl">
  174.                                         <span class="o">
  175.                                                 <img id="category_-1_img" src="{IMGDIR}/$collapse['collapseimg_-1']" title="{lang spread}" alt="{lang spread}" onclick="toggle_collapse('category_-1');" />
  176.                                         </span>
  177.                                         <h2><a href="forum.php?mod=collection&op=my">{lang my_order_collection}</a></h2>
  178.                                 </div>
  179.                                 <div id="category_-1" class="bm_c" style="{echo $collapse['category_-1']}">
  180.                                         <table cellspacing="0" cellpadding="0" class="fl_tb">
  181.                                                 <tr>
  182.                                                 <!--{eval $ctorderid = 0;}-->
  183.                                                 <!--{loop $collectiondata['follows'] $key $colletion}-->
  184.                                                         <!--{if $ctorderid && ($ctorderid % $forumcolumns == 0)}-->
  185.                                                                 </tr>
  186.                                                                 <!--{if $ctorderid < $forumscount}-->
  187.                                                                         <tr class="fl_row">
  188.                                                                 <!--{/if}-->
  189.                                                         <!--{/if}-->
  190.                                                         <td class="fl_g"{if $forumcolwidth} width="$forumcolwidth"{/if}>
  191.                                                                 <div class="fl_icn_g">
  192.                                                                 <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>
  193.                                                                 </div>
  194.                                                                 <dl>
  195.                                                                         <dt><a href="forum.php?mod=collection&action=view&ctid={$colletion[ctid]}">$colletion[name]</a></dt>
  196.                                                                         <dd><em>{lang forum_threads}: <!--{echo dnumber($colletion[threadnum])}--></em>, <em>{lang collection_commentnum}: <!--{echo dnumber($colletion[commentnum])}--></em></dd>
  197.                                                                         <dd>
  198.                                                                         <!--{if $colletion['lastpost']}-->
  199.                                                                                 <!--{if $forumcolumns < 3}-->
  200.                                                                                         <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>
  201.                                                                                 <!--{else}-->
  202.                                                                                         <a href="forum.php?mod=redirect&tid=$colletion[lastpost]&goto=lastpost#lastpost">{lang forum_lastpost}: <!--{date($colletion[lastposttime])}--></a>
  203.                                                                                 <!--{/if}-->
  204.                                                                         <!--{else}-->
  205.                                                                                 {lang never}
  206.                                                                         <!--{/if}-->
  207.                                                                         </dd>
  208.                                                                         <!--{hook/index_followcollection_extra $colletion[ctid]}-->
  209.                                                                 </dl>
  210.                                                         </td>
  211.                                                         <!--{eval $ctorderid++;}-->

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

  216.                                 </div>
  217.                         </div>

  218.                         <!--{/if}-->
  219.                         <!--{if empty($gid) && !empty($forum_favlist)}-->
  220.                         <!--{eval $forumscount = count($forum_favlist);}-->
  221.                         <!--{eval $forumcolumns = $forumscount > 3 ? ($forumscount == 4 ? 4 : 5) : 1;}-->

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

  223.                         <div class="bm bmw {if $forumcolumns} flg{/if} cl">
  224.                                 <div class="bm_h cl">
  225.                                         <span class="o">
  226.                                                 <img id="category_0_img" src="{IMGDIR}/$collapse['collapseimg_0']" title="{lang spread}" alt="{lang spread}" onclick="toggle_collapse('category_0');" />
  227.                                         </span>
  228.                                         <h2><a href="home.php?mod=space&do=favorite&type=forum">{lang forum_myfav}</a></h2>
  229.                                 </div>
  230.                                 <div id="category_0" class="bm_c" style="{echo $collapse['category_0']}">
  231.                                         <table cellspacing="0" cellpadding="0" class="fl_tb">
  232.                                                 <tr>
  233.                                                 <!--{eval $favorderid = 0;}-->
  234.                                                 <!--{loop $forum_favlist $key $favorite}-->
  235.                                                 <!--{if $favforumlist[$favorite[id]]}-->
  236.                                                 <!--{eval $forum=$favforumlist[$favorite[id]];}-->
  237.                                                 <!--{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'];}-->
  238.                                                         <!--{if $forumcolumns>1}-->
  239.                                                                 <!--{if $favorderid && ($favorderid % $forumcolumns == 0)}-->
  240.                                                                         </tr>
  241.                                                                         <!--{if $favorderid < $forumscount}-->
  242.                                                                                 <tr class="fl_row">
  243.                                                                         <!--{/if}-->
  244.                                                                 <!--{/if}-->
  245.                                                                 <td class="fl_g"{if $forumcolwidth} width="$forumcolwidth"{/if}>
  246.                                                                         <div class="fl_icn_g"{if !empty($forum[extra][iconwidth]) && !empty($forum[icon])} style="width: {$forum[extra][iconwidth]}px;"{/if}>
  247.                                                                         <!--{if $forum[icon]}-->
  248.                                                                                 $forum[icon]
  249.                                                                         <!--{else}-->
  250.                                                                                 <a href="$forumurl"{if $forum[redirect]} target="_blank"{/if}><img src="{IMGDIR}/forum{if $forum[folder]}_new{/if}.gif" alt="$forum[name]" /></a>
  251.                                                                         <!--{/if}-->
  252.                                                                         </div>
  253.                                                                         <dl{if !empty($forum[extra][iconwidth]) && !empty($forum[icon])} style="margin-left: {$forum[extra][iconwidth]}px;"{/if}>
  254.                                                                                 <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>
  255.                                                                                 <!--{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}-->
  256.                                                                                 <dd>
  257.                                                                                 <!--{if $forum['permission'] == 1}-->
  258.                                                                                         {lang private_forum}
  259.                                                                                 <!--{else}-->
  260.                                                                                         <!--{if $forum['redirect']}-->
  261.                                                                                                 <a href="$forumurl" class="xi2">{lang url_link}</a>
  262.                                                                                         <!--{elseif is_array($forum['lastpost'])}-->
  263.                                                                                                 <!--{if $forumcolumns < 3}-->
  264.                                                                                                         <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>
  265.                                                                                                 <!--{else}-->
  266.                                                                                                         <a href="forum.php?mod=redirect&tid=$forum[lastpost][tid]&goto=lastpost#lastpost">{lang forum_lastpost}: $forum[lastpost][dateline]</a>
  267.                                                                                                 <!--{/if}-->
  268.                                                                                         <!--{else}-->
  269.                                                                                                 {lang never}
  270.                                                                                         <!--{/if}-->
  271.                                                                                 <!--{/if}-->
  272.                                                                                 </dd>
  273.                                                                                 <!--{hook/index_favforum_extra $forum[fid]}-->
  274.                                                                         </dl>
  275.                                                                 </td>
  276.                                                                 <!--{eval $favorderid++;}-->
  277.                                                         <!--{else}-->
  278.                                                                 <td class="fl_icn" {if !empty($forum[extra][iconwidth]) && !empty($forum[icon])} style="width: {$forum[extra][iconwidth]}px;"{/if}>
  279.                                                                         <!--{if $forum[icon]}-->
  280.                                                                                 $forum[icon]
  281.                                                                         <!--{else}-->
  282.                                                                                 <a href="$forumurl"{if $forum[redirect]} target="_blank"{/if}><img src="{IMGDIR}/forum{if $forum[folder]}_new{/if}.gif" alt="$forum[name]" /></a>
  283.                                                                         <!--{/if}-->
  284.                                                                 </td>
  285.                                                                 <td>
  286.                                                                         <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>
  287.                                                                         <!--{if $forum[description]}--><p class="xg2">$forum[description]</p><!--{/if}-->
  288.                                                                         <!--{if $forum['subforums']}--><p>{lang forum_subforums}: $forum['subforums']</p><!--{/if}-->
  289.                                                                         <!--{if $forum['moderators']}--><p>{lang forum_moderators}: <span class="xi2">$forum[moderators]</span></p><!--{/if}-->
  290.                                                                         <!--{hook/index_favforum_extra $forum[fid]}-->
  291.                                                                 </td>
  292.                                                                 <td class="fl_i">
  293.                                                                         <!--{if empty($forum[redirect])}--><span class="xi2"><!--{echo dnumber($forum[threads])}--></span><span class="xg1"> / <!--{echo dnumber($forum[posts])}--></span><!--{/if}-->
  294.                                                                 </td>
  295.                                                                 <td class="fl_by">
  296.                                                                         <div>
  297.                                                                         <!--{if $forum['permission'] == 1}-->
  298.                                                                                 {lang private_forum}
  299.                                                                         <!--{else}-->
  300.                                                                                 <!--{if $forum['redirect']}-->
  301.                                                                                         <a href="$forumurl" class="xi2">{lang url_link}</a>
  302.                                                                                 <!--{elseif is_array($forum['lastpost'])}-->
  303.                                                                                         <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>
  304.                                                                                 <!--{else}-->
  305.                                                                                         {lang never}
  306.                                                                                 <!--{/if}-->
  307.                                                                         <!--{/if}-->
  308.                                                                         </div>
  309.                                                                 </td>
  310.                                                         </tr>
  311.                                                         <tr class="fl_row">

  312.                                                         <!--{/if}-->
  313.                                                 <!--{/if}-->
  314.                                                 <!--{/loop}-->
  315.                                                 <!--{if ($columnspad = $favorderid % $forumcolumns) > 0}--><!--{echo str_repeat('<td class="fl_g"'.($forumcolwidth ? " width="$forumcolwidth"" : '').'></td>', $forumcolumns - $columnspad);}--><!--{/if}-->
  316.                                                 </tr>
  317.                                         </table>

  318.                                 </div>
  319.                         </div>
  320.                         <!--{ad/intercat/bm a_c/-1}-->
  321.                 <!--{/if}-->
  322.                 <!--{loop $catlist $key $cat}-->
  323.                         <!--{hook/index_catlist $cat[fid]}-->
  324.                         <div class="bm bmw {if $cat['forumcolumns']} flg{/if} cl">
  325.                                 <div class="bm_h cl">
  326.                                         <span class="o">
  327.                                                 <img id="category_$cat[fid]_img" src="{IMGDIR}/$cat[collapseimg]" title="{lang spread}" alt="{lang spread}" onclick="toggle_collapse('category_$cat[fid]');" />
  328.                                         </span>
  329.                                         <!--{if $cat['moderators']}--><span class="y">{lang forum_category_modedby}: $cat[moderators]</span><!--{/if}-->
  330.                                         <!--{eval $caturl = !empty($cat['domain']) && !empty($_G['setting']['domain']['root']['forum']) ? 'http://'.$cat['domain'].'.'.$_G['setting']['domain']['root']['forum'] : '';}-->
  331.                                         <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>
  332.                                 </div>
  333.                                 <div id="category_$cat[fid]" class="bm_c" style="{echo $collapse['category_'.$cat[fid]]}">
  334.                                         <table cellspacing="0" cellpadding="0" class="fl_tb">
  335.                                                 <tr>
  336.                                                 <!--{loop $cat[forums] $forumid}-->
  337.                                                 <!--{eval $forum=$forumlist[$forumid];}-->
  338.                                                 <!--{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'];}-->
  339.                                                 <!--{if $cat['forumcolumns']}-->
  340.                                                         <!--{if $forum['orderid'] && ($forum['orderid'] % $cat['forumcolumns'] == 0)}-->
  341.                                                                 </tr>
  342.                                                                 <!--{if $forum['orderid'] < $cat['forumscount']}-->
  343.                                                                         <tr class="fl_row">
  344.                                                                 <!--{/if}-->
  345.                                                         <!--{/if}-->
  346.                                                         <td class="fl_g" width="$cat[forumcolwidth]">
  347.                                                                 <div class="fl_icn_g"{if !empty($forum[extra][iconwidth]) && !empty($forum[icon])} style="width: {$forum[extra][iconwidth]}px;"{/if}>
  348.                                                                 <!--{if $forum[icon]}-->
  349.                                                                         $forum[icon]
  350.                                                                 <!--{else}-->
  351.                                                                         <a href="$forumurl"{if $forum[redirect]} target="_blank"{/if}><img src="{IMGDIR}/forum{if $forum[folder]}_new{/if}.gif" alt="$forum[name]" /></a>
  352.                                                                 <!--{/if}-->
  353.                                                                 </div>
  354.                                                                 <dl{if !empty($forum[extra][iconwidth]) && !empty($forum[icon])} style="margin-left: {$forum[extra][iconwidth]}px;"{/if}>
  355.                                                                         <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>
  356.                                                                         <!--{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}-->
  357.                                                                         <dd>
  358.                                                                         <!--{if $forum['permission'] == 1}-->
  359.                                                                                 {lang private_forum}
  360.                                                                         <!--{else}-->
  361.                                                                                 <!--{if $forum['redirect']}-->
  362.                                                                                         <a href="$forumurl" class="xi2">{lang url_link}</a>
  363.                                                                                 <!--{elseif is_array($forum['lastpost'])}-->
  364.                                                                                         <!--{if $cat['forumcolumns'] < 3}-->
  365.                                                                                                 <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>
  366.                                                                                         <!--{else}-->
  367.                                                                                                 <a href="forum.php?mod=redirect&tid=$forum[lastpost][tid]&goto=lastpost#lastpost">{lang forum_lastpost}: $forum[lastpost][dateline]</a>
  368.                                                                                         <!--{/if}-->
  369.                                                                                 <!--{else}-->
  370.                                                                                         {lang never}
  371.                                                                                 <!--{/if}-->
  372.                                                                         <!--{/if}-->
  373.                                                                         </dd>
  374.                                                                         <!--{hook/index_forum_extra $forum[fid]}-->
  375.                                                                 </dl>
  376.                                                         </td>
  377.                                                 <!--{else}-->
  378.                                                         <td class="fl_icn" {if !empty($forum[extra][iconwidth]) && !empty($forum[icon])} style="width: {$forum[extra][iconwidth]}px;"{/if}>
  379.                                                                 <!--{if $forum[icon]}-->
  380.                                                                         $forum[icon]
  381.                                                                 <!--{else}-->
  382.                                                                         <a href="$forumurl"{if $forum[redirect]} target="_blank"{/if}><img src="{IMGDIR}/forum{if $forum[folder]}_new{/if}.gif" alt="$forum[name]" /></a>
  383.                                                                 <!--{/if}-->
  384.                                                         </td>
  385.                                                         <td>
  386.                                                                 <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>
  387.                                                                 <!--{if $forum[description]}--><p class="xg2">$forum[description]</p><!--{/if}-->
  388.                                                                 <!--{if $forum['subforums']}--><p>{lang forum_subforums}: $forum['subforums']</p><!--{/if}-->
  389.                                                                 <!--{if $forum['moderators']}--><p>{lang forum_moderators}: <span class="xi2">$forum[moderators]</span></p><!--{/if}-->
  390.                                                                 <!--{hook/index_forum_extra $forum[fid]}-->
  391.                                                         </td>
  392.                                                         <td class="fl_i">
  393.                                                                 <!--{if empty($forum[redirect])}--><span class="xi2"><!--{echo dnumber($forum[threads])}--></span><span class="xg1"> / <!--{echo dnumber($forum[posts])}--></span><!--{/if}-->
  394.                                                         </td>
  395.                                                         <td class="fl_by">
  396.                                                                 <div>
  397.                                                                 <!--{if $forum['permission'] == 1}-->
  398.                                                                         {lang private_forum}
  399.                                                                 <!--{else}-->
  400.                                                                         <!--{if $forum['redirect']}-->
  401.                                                                                 <a href="$forumurl" class="xi2">{lang url_link}</a>
  402.                                                                         <!--{elseif is_array($forum['lastpost'])}-->
  403.                                                                                 <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>
  404.                                                                         <!--{else}-->
  405.                                                                                 {lang never}
  406.                                                                         <!--{/if}-->
  407.                                                                 <!--{/if}-->
  408.                                                                 </div>
  409.                                                         </td>
  410.                                                 </tr>
  411.                                                 <tr class="fl_row">
  412.                                                 <!--{/if}-->
  413.                                                 <!--{/loop}-->
  414.                                                 $cat['endrows']
  415.                                                 </tr>
  416.                                         </table>
  417.                                 </div>
  418.                         </div>
  419.                         <!--{ad/intercat/bm a_c/$cat[fid]}-->
  420.                 <!--{/loop}-->
  421.                         <!--{if !empty($collectiondata['data'])}-->

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

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

  425.                         <div class="bm bmw {if $forumcolumns} flg{/if} cl">
  426.                                 <div class="bm_h cl">
  427.                                         <span class="o">
  428.                                                 <img id="category_-2_img" src="{IMGDIR}/$collapse['collapseimg_-2']" title="{lang spread}" alt="{lang spread}" onclick="toggle_collapse('category_-2');" />
  429.                                         </span>
  430.                                         <h2><a href="forum.php?mod=collection">{lang recommend_collection}</a></h2>
  431.                                 </div>
  432.                                 <div id="category_-2" class="bm_c" style="{echo $collapse['category_-2']}">
  433.                                         <table cellspacing="0" cellpadding="0" class="fl_tb">
  434.                                                 <tr>
  435.                                                 <!--{eval $ctorderid = 0;}-->
  436.                                                 <!--{loop $collectiondata['data'] $key $colletion}-->
  437.                                                         <!--{if $ctorderid && ($ctorderid % $forumcolumns == 0)}-->
  438.                                                                 </tr>
  439.                                                                 <!--{if $ctorderid < $forumscount}-->
  440.                                                                         <tr class="fl_row">
  441.                                                                 <!--{/if}-->
  442.                                                         <!--{/if}-->
  443.                                                         <td class="fl_g"{if $forumcolwidth} width="$forumcolwidth"{/if}>
  444.                                                                 <div class="fl_icn_g">
  445.                                                                 <a href="forum.php?mod=collection&action=view&ctid={$colletion[ctid]}" target="_blank"><img src="{IMGDIR}/forum.gif" alt="$colletion[name]" /></a>
  446.                                                                 </div>
  447.                                                                 <dl>
  448.                                                                         <dt><a href="forum.php?mod=collection&action=view&ctid={$colletion[ctid]}">$colletion[name]</a></dt>
  449.                                                                         <dd><em>{lang forum_threads}: <!--{echo dnumber($colletion[threadnum])}--></em>, <em>{lang collection_commentnum}: <!--{echo dnumber($colletion[commentnum])}--></em></dd>
  450.                                                                         <dd>
  451.                                                                         <!--{if $colletion['lastpost']}-->
  452.                                                                                 <!--{if $forumcolumns < 3}-->
  453.                                                                                         <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>
  454.                                                                                 <!--{else}-->
  455.                                                                                         <a href="forum.php?mod=redirect&tid=$colletion[lastpost]&goto=lastpost#lastpost">{lang forum_lastpost}: <!--{date($colletion[lastposttime])}--></a>
  456.                                                                                 <!--{/if}-->
  457.                                                                         <!--{else}-->
  458.                                                                                 {lang never}
  459.                                                                         <!--{/if}-->
  460.                                                                         </dd>
  461.                                                                         <!--{hook/index_datacollection_extra $colletion[ctid]}-->
  462.                                                                 </dl>
  463.                                                         </td>
  464.                                                         <!--{eval $ctorderid++;}-->

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

  469.                                 </div>
  470.                         </div>

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

  472.                 </div>

  473.                 <!--{hook/index_middle}-->
  474.                 <div class="wp mtn">
  475.                         <!--[diy=diy3]--><div id="diy3" class="area"></div><!--[/diy]-->
  476.                 </div>
  477. <!--在线会员信息-->
  478.                 <!--{if empty($gid) && $_G['setting']['whosonlinestatus']}-->
  479.                         <div id="online" class="bm oll">
  480.                                 <div class="bm_h">
  481.                                 <!--{if $detailstatus}-->
  482.                                         <span class="o"><a href="forum.php?showoldetails=no#online" title="{lang spread}"><img src="{IMGDIR}/collapsed_no.gif" alt="{lang spread}" /></a></span>
  483.                                         <h3>
  484.                                                 <strong><a href="home.php?mod=space&do=friend&view=online&type=member">{lang onlinemember}</a></strong>
  485.                                                 <span class="xs1">- <strong>$onlinenum</strong> {lang onlines}
  486.                                                 - <strong>$membercount</strong> {lang index_members}(<strong>$invisiblecount</strong> {lang index_invisibles}),
  487.                                                 <strong>$guestcount</strong> {lang index_guests}
  488.                                                 - {lang index_mostonlines} <strong>$onlineinfo[0]</strong> {lang on} <strong>$onlineinfo[1]</strong>.</span>
  489.                                         </h3>
  490.                                 <!--{else}-->
  491.                                         <!--{if empty($_G['setting']['sessionclose'])}-->
  492.                                                 <span class="o"><a href="forum.php?showoldetails=yes#online" title="{lang spread}"><img src="{IMGDIR}/collapsed_yes.gif" alt="{lang spread}" /></a></span>
  493.                                         <!--{/if}-->
  494.                                         <h3>
  495.                                                 <strong>
  496.                                                         <!--{if !empty($_G['setting']['whosonlinestatus'])}-->
  497.                                                                 {lang onlinemember}
  498.                                                         <!--{else}-->
  499.                                                                 <a href="home.php?mod=space&do=friend&view=online&type=member">{lang onlinemember}</a>
  500.                                                         <!--{/if}-->
  501.                                                 </strong>
  502.                                                 <span class="xs1">- {lang total} <strong>$onlinenum</strong> {lang onlines}
  503.                                                 <!--{if $membercount}-->- <strong>$membercount</strong> {lang index_members},<strong>$guestcount</strong> {lang index_guests}<!--{/if}-->
  504.                                                 - {lang index_mostonlines} <strong>$onlineinfo[0]</strong> {lang on} <strong>$onlineinfo[1]</strong>.</span>
  505.                                         </h3>
  506.                                 <!--{/if}-->
  507.                                 </div>
  508.                         <!--{if $_G['setting']['whosonlinestatus'] && $detailstatus}-->
  509.                                 <dl id="onlinelist" class="bm_c">
  510.                                         <dt class="ptm pbm bbda">$_G[cache][onlinelist][legend]</dt>
  511.                                         <!--{if $detailstatus}-->
  512.                                                 <dd class="ptm pbm">
  513.                                                 <ul class="cl">
  514.                                                 <!--{if $whosonline}-->
  515.                                                         <!--{loop $whosonline $key $online}-->
  516.                                                                 <li title="{lang time}: $online[lastactivity]">
  517.                                                                 <img src="{STATICURL}image/common/$online[icon]" alt="icon" />
  518.                                                                 <!--{if $online['uid']}-->
  519.                                                                         <a href="home.php?mod=space&uid=$online[uid]">$online[username]</a>
  520.                                                                 <!--{else}-->
  521.                                                                         $online[username]
  522.                                                                 <!--{/if}-->
  523.                                                                 </li>
  524.                                                         <!--{/loop}-->
  525.                                                 <!--{else}-->
  526.                                                         <li style="width: auto">{lang online_only_guests}</li>
  527.                                                 <!--{/if}-->
  528.                                                 </ul>
  529.                                         </dd>
  530.                                         <!--{/if}-->
  531.                                 </dl>
  532.                         <!--{/if}-->
  533.                         </div>
  534.                 <!--{/if}-->
  535. <!--论坛友情链接-->
  536.                 <!--{if empty($gid) && ($_G['cache']['forumlinks'][0] || $_G['cache']['forumlinks'][1] || $_G['cache']['forumlinks'][2])}-->
  537.                 <div class="bm lk">
  538.                         <div id="category_lk" class="bm_c ptm">
  539.                                 <!--{if $_G['cache']['forumlinks'][0]}-->
  540.                                         <ul class="m mbn cl">$_G['cache']['forumlinks'][0]</ul>
  541.                                 <!--{/if}-->
  542.                                 <!--{if $_G['cache']['forumlinks'][1]}-->
  543.                                         <div class="mbn cl">
  544.                                                 $_G['cache']['forumlinks'][1]
  545.                                         </div>
  546.                                 <!--{/if}-->
  547.                                 <!--{if $_G['cache']['forumlinks'][2]}-->
  548.                                         <ul class="x mbm cl">
  549.                                                 $_G['cache']['forumlinks'][2]
  550.                                         </ul>
  551.                                 <!--{/if}-->
  552.                         </div>
  553.                 </div>
  554.                 <!--{/if}-->

  555.                 <!--{hook/index_bottom}-->
  556.         </div>

  557.         <!--{if $_G['setting']['forumallowside']}-->
  558.                 <div id="sd" class="sd">
  559.                         <!--{hook/index_side_top}-->
  560.                         <div class="drag">
  561.                                 <!--[diy=diy2]--><div id="diy2" class="area"></div><!--[/diy]-->
  562.                         </div>
  563.                         <!--{hook/index_side_bottom}-->
  564.                 </div>
  565.         <!--{/if}-->
  566. </div>

  567. <!--{if empty($_G['setting']['disfixednv_forumindex']) }--><script>fixed_top_nv();</script><!--{/if}-->
  568. <!--{template common/footer}-->
复制代码


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

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2024-4-28 10:06 , Processed in 0.202013 second(s), 16 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

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