discuz.htm 30 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604
  1. <!--{subtemplate common/header}-->
  2. <!--{if empty($gid)}-->
  3. <!--{ad/text/wp a_t}-->
  4. <!--{/if}-->
  5. <div class="wp cl dxq">
  6. <div class="dxl">
  7. <!--[diy=diy4]--><div id="diy4" class="area"></div><!--[/diy]-->
  8. </div>
  9. <div class="dxr">
  10. <!--[diy=diy5]--><div id="diy5" class="area"></div><!--[/diy]-->
  11. </div>
  12. </div>
  13. <div id="pt" class="bm cl">
  14. <!--{if empty($gid) && $announcements}-->
  15. <div class="y">
  16. <div id="an">
  17. <dl class="cl">
  18. <dt class="z xw1">{lang announcements}:&nbsp;</dt>
  19. <dd>
  20. <div id="anc"><ul id="ancl">$announcements</ul></div>
  21. </dd>
  22. </dl>
  23. </div>
  24. <script type="text/javascript">announcement();</script>
  25. </div>
  26. <!--{/if}-->
  27. <div class="z">
  28. <a href="./" class="nvhm" title="{lang homepage}">$_G[setting][bbname]</a><em>&raquo;</em><a href="forum.php">{$_G[setting][navs][2][navname]}</a>$navigation
  29. </div>
  30. <div class="z"><!--{hook/index_status_extra}--></div>
  31. </div>
  32. <style id="diy_style" type="text/css"></style>
  33. <!--{if empty($gid)}-->
  34. <div class="wp">
  35. <!--[diy=diy1]--><div id="diy1" class="area"></div><!--[/diy]-->
  36. </div>
  37. <!--{/if}-->
  38. <div id="ct" class="wp cl{if $_G['setting']['forumallowside']} ct2{/if}">
  39. <!--{if empty($gid)}-->
  40. <div id="chart" class="bm bw0 cl">
  41. <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>
  42. <div class="y">
  43. <!--{hook/index_nav_extra}-->
  44. <!--{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}-->
  45. </div>
  46. </div>
  47. <!--{/if}-->
  48. <!--[diy=diy_chart]--><div id="diy_chart" class="area"></div><!--[/diy]-->
  49. <div class="mn">
  50. <!--{if !empty($_G['setting']['grid']['showgrid'])}-->
  51. <!-- index four grid -->
  52. <div class="fl bm">
  53. <div class="bm bmw cl">
  54. <div id="category_grid" class="bm_c" >
  55. <table cellspacing="0" cellpadding="0"><tr>
  56. <!--{if !$_G['setting']['grid']['gridtype']}-->
  57. <td valign="top" class="category_l1">
  58. <div class="newimgbox">
  59. <h4><span class="tit_newimg"></span>{lang latest_images}</h4>
  60. <div class="module cl slidebox_grid" style="width:218px">
  61. <script type="text/javascript">
  62. var slideSpeed = 5000;
  63. var slideImgsize = [218,200];
  64. var slideBorderColor = '{$_G['style']['specialborder']}';
  65. var slideBgColor = '{$_G['style']['commonbg']}';
  66. var slideImgs = new Array();
  67. var slideImgLinks = new Array();
  68. var slideImgTexts = new Array();
  69. var slideSwitchColor = '{$_G['style']['tabletext']}';
  70. var slideSwitchbgColor = '{$_G['style']['commonbg']}';
  71. var slideSwitchHiColor = '{$_G['style']['specialborder']}';
  72. {eval $k = 1;}
  73. <!--{loop $grids['slide'] $stid $svalue}-->
  74. slideImgs[<!--{echo $k}-->] = '$svalue[image]';
  75. slideImgLinks[<!--{echo $k}-->] = '{$svalue[url]}';
  76. slideImgTexts[<!--{echo $k}-->] = '$svalue[subject]';
  77. {eval $k++;}
  78. <!--{/loop}-->
  79. </script>
  80. <script language="javascript" type="text/javascript" src="{$_G[setting][jspath]}forum_slide.js?{VERHASH}"></script>
  81. </div>
  82. </div>
  83. </div>
  84. <!--{/if}-->
  85. <td valign="top" class="category_l2">
  86. <div class="subjectbox">
  87. <h4><span class="tit_subject"></span>{lang collection_lastthread}</h4>
  88. <ul class="category_newlist">
  89. <!--{loop $grids['newthread'] $thread}-->
  90. <!--{if !$thread['forumstick'] && $thread['closed'] > 1 && ($thread['isgroup'] == 1 || $thread['fid'] != $_G['fid'])}-->
  91. <!--{eval $thread[tid]=$thread[closed];}-->
  92. <!--{/if}-->
  93. <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>
  94. <!--{/loop}-->
  95. </ul>
  96. </div>
  97. </div>
  98. <td valign="top" class="category_l3">
  99. <div class="replaybox">
  100. <h4><span class="tit_replay"></span>{lang show_newthreads}</h4>
  101. <ul class="category_newlist">
  102. <!--{loop $grids['newreply'] $thread}-->
  103. <!--{if !$thread['forumstick'] && $thread['closed'] > 1 && ($thread['isgroup'] == 1 || $thread['fid'] != $_G['fid'])}-->
  104. <!--{eval $thread[tid]=$thread[closed];}-->
  105. <!--{/if}-->
  106. <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>
  107. <!--{/loop}-->
  108. </ul>
  109. </div>
  110. </div>
  111. <td valign="top" class="category_l3">
  112. <div class="hottiebox">
  113. <h4><span class="tit_hottie"></span>{lang hot_thread}</h4>
  114. <ul class="category_newlist">
  115. <!--{loop $grids['hot'] $thread}-->
  116. <!--{if !$thread['forumstick'] && $thread['closed'] > 1 && ($thread['isgroup'] == 1 || $thread['fid'] != $_G['fid'])}-->
  117. <!--{eval $thread[tid]=$thread[closed];}-->
  118. <!--{/if}-->
  119. <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>
  120. <!--{/loop}-->
  121. </ul>
  122. </div>
  123. </div>
  124. <!--{if $_G['setting']['grid']['gridtype']}-->
  125. <td valign="top" class="category_l4">
  126. <div class="goodtiebox">
  127. <h4><span class="tit_goodtie"></span>{lang post_digest_thread}</h4>
  128. <ul class="category_newlist">
  129. <!--{loop $grids['digest'] $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=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>
  134. <!--{/loop}-->
  135. </ul>
  136. </div>
  137. </div>
  138. <!--{/if}-->
  139. </table>
  140. </div>
  141. </div>
  142. </div>
  143. <!-- index four grid end -->
  144. <!--{/if}-->
  145. <!--{hook/index_top}-->
  146. <!--{if !empty($_G['cache']['heats']['message'])}-->
  147. <div class="bm">
  148. <div class="bm_h cl">
  149. <h2>{lang hotthreads_forum}</h2>
  150. </div>
  151. <div class="bm_c cl">
  152. <div class="heat z">
  153. <!--{loop $_G['cache']['heats']['message'] $data}-->
  154. <dl class="xld">
  155. <dt><!--{if $_G['adminid'] == 1}--><a class="d" href="forum.php?mod=misc&action=removeindexheats&tid=$data[tid]" onclick="return removeindexheats()">delete</a><!--{/if}-->
  156. <a href="forum.php?mod=viewthread&tid=$data[tid]" target="_blank" class="xi2">$data[subject]</a></dt>
  157. <dd>$data[message]</dd>
  158. </dl>
  159. <!--{/loop}-->
  160. </div>
  161. <ul class="xl xl1 heatl">
  162. <!--{loop $_G['cache']['heats']['subject'] $data}-->
  163. <li><!--{if $_G['adminid'] == 1}--><a class="d" href="forum.php?mod=misc&action=removeindexheats&tid=$data[tid]" onclick="return removeindexheats()">delete</a><!--{/if}-->&middot; <a href="forum.php?mod=viewthread&tid=$data[tid]" target="_blank" class="xi2">$data[subject]</a></li>
  164. <!--{/loop}-->
  165. </ul>
  166. </div>
  167. </div>
  168. <!--{/if}-->
  169. <!--{hook/index_catlist_top}-->
  170. <div class="fl bm">
  171. <!--{if !empty($collectiondata['follows'])}-->
  172. <!--{eval $forumscount = count($collectiondata['follows']);}-->
  173. <!--{eval $forumcolumns = 4;}-->
  174. <!--{eval $forumcolwidth = (floor(100 / $forumcolumns) - 0.1).'%';}-->
  175. <div class="bm bmw {if $forumcolumns} flg{/if} cl">
  176. <div class="bm_h cl">
  177. <span class="o">
  178. <img id="category_-1_img" src="{IMGDIR}/$collapse['collapseimg_-1']" title="{lang spread}" alt="{lang spread}" onclick="toggle_collapse('category_-1');" />
  179. </span>
  180. <h2><a href="forum.php?mod=collection&op=my">{lang my_order_collection}</a></h2>
  181. </div>
  182. <div id="category_-1" class="bm_c" style="{echo $collapse['category_-1']}">
  183. <table cellspacing="0" cellpadding="0" class="fl_tb">
  184. <tr>
  185. <!--{eval $ctorderid = 0;}-->
  186. <!--{loop $collectiondata['follows'] $key $colletion}-->
  187. <!--{if $ctorderid && ($ctorderid % $forumcolumns == 0)}-->
  188. </tr>
  189. <!--{if $ctorderid < $forumscount}-->
  190. <tr class="fl_row">
  191. <!--{/if}-->
  192. <!--{/if}-->
  193. <td class="fl_g"{if $forumcolwidth} width="$forumcolwidth"{/if}>
  194. <div class="fl_icn_g">
  195. <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>
  196. </div>
  197. <dl>
  198. <dt><a href="forum.php?mod=collection&action=view&ctid={$colletion[ctid]}">$colletion[name]</a></dt>
  199. <dd><em>{lang forum_threads}: <!--{echo dnumber($colletion[threadnum])}--></em>, <em>{lang collection_commentnum}: <!--{echo dnumber($colletion[commentnum])}--></em></dd>
  200. <dd>
  201. <!--{if $colletion['lastpost']}-->
  202. <!--{if $forumcolumns < 3}-->
  203. <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>
  204. <!--{else}-->
  205. <a href="forum.php?mod=redirect&tid=$colletion[lastpost]&goto=lastpost#lastpost">{lang forum_lastpost}: <!--{date($colletion[lastposttime])}--></a>
  206. <!--{/if}-->
  207. <!--{else}-->
  208. {lang never}
  209. <!--{/if}-->
  210. </dd>
  211. <!--{hook/index_followcollection_extra $colletion[ctid]}-->
  212. </dl>
  213. </td>
  214. <!--{eval $ctorderid++;}-->
  215. <!--{/loop}-->
  216. <!--{if ($columnspad = $ctorderid % $forumcolumns) > 0}--><!--{echo str_repeat('<td class="fl_g"'.($forumcolwidth ? " width=\"$forumcolwidth\"" : '').'></td>', $forumcolumns - $columnspad);}--><!--{/if}-->
  217. </tr>
  218. </table>
  219. </div>
  220. </div>
  221. <!--{/if}-->
  222. <!--{if empty($gid) && !empty($forum_favlist)}-->
  223. <!--{eval $forumscount = count($forum_favlist);}-->
  224. <!--{eval $forumcolumns = $forumscount > 3 ? ($forumscount == 4 ? 4 : 5) : 1;}-->
  225. <!--{eval $forumcolwidth = (floor(100 / $forumcolumns) - 0.1).'%';}-->
  226. <div class="bm bmw {if $forumcolumns} flg{/if} cl">
  227. <div class="bm_h cl">
  228. <span class="o">
  229. <img id="category_0_img" src="{IMGDIR}/$collapse['collapseimg_0']" title="{lang spread}" alt="{lang spread}" onclick="toggle_collapse('category_0');" />
  230. </span>
  231. <h2><a href="home.php?mod=space&do=favorite&type=forum">{lang forum_myfav}</a></h2>
  232. </div>
  233. <div id="category_0" class="bm_c" style="{echo $collapse['category_0']}">
  234. <table cellspacing="0" cellpadding="0" class="fl_tb">
  235. <tr>
  236. <!--{eval $favorderid = 0;}-->
  237. <!--{loop $forum_favlist $key $favorite}-->
  238. <!--{if $favforumlist[$favorite[id]]}-->
  239. <!--{eval $forum=$favforumlist[$favorite[id]];}-->
  240. <!--{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'];}-->
  241. <!--{if $forumcolumns>1}-->
  242. <!--{if $favorderid && ($favorderid % $forumcolumns == 0)}-->
  243. </tr>
  244. <!--{if $favorderid < $forumscount}-->
  245. <tr class="fl_row">
  246. <!--{/if}-->
  247. <!--{/if}-->
  248. <td class="fl_g"{if $forumcolwidth} width="$forumcolwidth"{/if}>
  249. <div class="fl_icn_g"{if !empty($forum[extra][iconwidth]) && !empty($forum[icon])} style="width: {$forum[extra][iconwidth]}px;"{/if}>
  250. <!--{if $forum[icon]}-->
  251. $forum[icon]
  252. <!--{else}-->
  253. <a href="$forumurl"{if $forum[redirect]} target="_blank"{/if}><img src="{IMGDIR}/forum{if $forum[folder]}_new{/if}.gif" alt="$forum[name]" /></a>
  254. <!--{/if}-->
  255. </div>
  256. <dl{if !empty($forum[extra][iconwidth]) && !empty($forum[icon])} style="margin-left: {$forum[extra][iconwidth]}px;"{/if}>
  257. <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>
  258. <!--{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}-->
  259. <dd>
  260. <!--{if $forum['permission'] == 1}-->
  261. {lang private_forum}
  262. <!--{else}-->
  263. <!--{if $forum['redirect']}-->
  264. <a href="$forumurl" class="xi2">{lang url_link}</a>
  265. <!--{elseif is_array($forum['lastpost'])}-->
  266. <!--{if $forumcolumns < 3}-->
  267. <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>
  268. <!--{else}-->
  269. <a href="forum.php?mod=redirect&tid=$forum[lastpost][tid]&goto=lastpost#lastpost">{lang forum_lastpost}: $forum[lastpost][dateline]</a>
  270. <!--{/if}-->
  271. <!--{else}-->
  272. {lang never}
  273. <!--{/if}-->
  274. <!--{/if}-->
  275. </dd>
  276. <!--{hook/index_favforum_extra $forum[fid]}-->
  277. </dl>
  278. </td>
  279. <!--{eval $favorderid++;}-->
  280. <!--{else}-->
  281. <td class="fl_icn" {if !empty($forum[extra][iconwidth]) && !empty($forum[icon])} style="width: {$forum[extra][iconwidth]}px;"{/if}>
  282. <!--{if $forum[icon]}-->
  283. $forum[icon]
  284. <!--{else}-->
  285. <a href="$forumurl"{if $forum[redirect]} target="_blank"{/if}><img src="{IMGDIR}/forum{if $forum[folder]}_new{/if}.gif" alt="$forum[name]" /></a>
  286. <!--{/if}-->
  287. </td>
  288. <td>
  289. <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>
  290. <!--{if $forum[description]}--><p class="xg2">$forum[description]</p><!--{/if}-->
  291. <!--{if $forum['subforums']}--><p>{lang forum_subforums}: $forum['subforums']</p><!--{/if}-->
  292. <!--{if $forum['moderators']}--><p>{lang forum_moderators}: <span class="xi2">$forum[moderators]</span></p><!--{/if}-->
  293. <!--{hook/index_favforum_extra $forum[fid]}-->
  294. </td>
  295. <td class="fl_i">
  296. <!--{if empty($forum[redirect])}--><span class="xi2"><!--{echo dnumber($forum[threads])}--></span><span class="xg1"> / <!--{echo dnumber($forum[posts])}--></span><!--{/if}-->
  297. </td>
  298. <td class="fl_by">
  299. <div>
  300. <!--{if $forum['permission'] == 1}-->
  301. {lang private_forum}
  302. <!--{else}-->
  303. <!--{if $forum['redirect']}-->
  304. <a href="$forumurl" class="xi2">{lang url_link}</a>
  305. <!--{elseif is_array($forum['lastpost'])}-->
  306. <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>
  307. <!--{else}-->
  308. {lang never}
  309. <!--{/if}-->
  310. <!--{/if}-->
  311. </div>
  312. </td>
  313. </tr>
  314. <tr class="fl_row">
  315. <!--{/if}-->
  316. <!--{/if}-->
  317. <!--{/loop}-->
  318. <!--{if ($columnspad = $favorderid % $forumcolumns) > 0}--><!--{echo str_repeat('<td class="fl_g"'.($forumcolwidth ? " width=\"$forumcolwidth\"" : '').'></td>', $forumcolumns - $columnspad);}--><!--{/if}-->
  319. </tr>
  320. </table>
  321. </div>
  322. </div>
  323. <!--{ad/intercat/bm a_c/-1}-->
  324. <!--{/if}-->
  325. <!--{loop $catlist $key $cat}-->
  326. <!--{hook/index_catlist $cat[fid]}-->
  327. <div class="bm bmw {if $cat['forumcolumns']} flg{/if} cl">
  328. <div class="bm_h cl">
  329. <span class="o">
  330. <img id="category_$cat[fid]_img" src="{IMGDIR}/$cat[collapseimg]" title="{lang spread}" alt="{lang spread}" onclick="toggle_collapse('category_$cat[fid]');" />
  331. </span>
  332. <!--{if $cat['moderators']}--><span class="y">{lang forum_category_modedby}: $cat[moderators]</span><!--{/if}-->
  333. <!--{eval $caturl = !empty($cat['domain']) && !empty($_G['setting']['domain']['root']['forum']) ? 'http://'.$cat['domain'].'.'.$_G['setting']['domain']['root']['forum'] : '';}-->
  334. <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>
  335. </div>
  336. <div id="category_$cat[fid]" class="bm_c" style="{echo $collapse['category_'.$cat[fid]]}">
  337. <table cellspacing="0" cellpadding="0" class="fl_tb">
  338. <tr>
  339. <!--{loop $cat[forums] $forumid}-->
  340. <!--{eval $forum=$forumlist[$forumid];}-->
  341. <!--{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'];}-->
  342. <!--{if $cat['forumcolumns']}-->
  343. <!--{if $forum['orderid'] && ($forum['orderid'] % $cat['forumcolumns'] == 0)}-->
  344. </tr>
  345. <!--{if $forum['orderid'] < $cat['forumscount']}-->
  346. <tr class="fl_row">
  347. <!--{/if}-->
  348. <!--{/if}-->
  349. <td class="fl_g" width="$cat[forumcolwidth]">
  350. <div class="fl_icn_g"{if !empty($forum[extra][iconwidth]) && !empty($forum[icon])} style="width: {$forum[extra][iconwidth]}px;"{/if}>
  351. <!--{if $forum[icon]}-->
  352. $forum[icon]
  353. <!--{else}-->
  354. <a href="$forumurl"{if $forum[redirect]} target="_blank"{/if}><img src="{IMGDIR}/forum{if $forum[folder]}_new{/if}.gif" alt="$forum[name]" /></a>
  355. <!--{/if}-->
  356. </div>
  357. <dl{if !empty($forum[extra][iconwidth]) && !empty($forum[icon])} style="margin-left: {$forum[extra][iconwidth]}px;"{/if}>
  358. <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>
  359. <!--{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}-->
  360. <dd>
  361. <!--{if $forum['permission'] == 1}-->
  362. {lang private_forum}
  363. <!--{else}-->
  364. <!--{if $forum['redirect']}-->
  365. <a href="$forumurl" class="xi2">{lang url_link}</a>
  366. <!--{elseif is_array($forum['lastpost'])}-->
  367. <!--{if $cat['forumcolumns'] < 3}-->
  368. <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>
  369. <!--{else}-->
  370. <a href="forum.php?mod=redirect&tid=$forum[lastpost][tid]&goto=lastpost#lastpost">{lang forum_lastpost}: $forum[lastpost][dateline]</a>
  371. <!--{/if}-->
  372. <!--{else}-->
  373. {lang never}
  374. <!--{/if}-->
  375. <!--{/if}-->
  376. </dd>
  377. <!--{hook/index_forum_extra $forum[fid]}-->
  378. </dl>
  379. </td>
  380. <!--{else}-->
  381. <td class="fl_icn" {if !empty($forum[extra][iconwidth]) && !empty($forum[icon])} style="width: {$forum[extra][iconwidth]}px;"{/if}>
  382. <!--{if $forum[icon]}-->
  383. $forum[icon]
  384. <!--{else}-->
  385. <a href="$forumurl"{if $forum[redirect]} target="_blank"{/if}><img src="{IMGDIR}/forum{if $forum[folder]}_new{/if}.gif" alt="$forum[name]" /></a>
  386. <!--{/if}-->
  387. </td>
  388. <td>
  389. <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>
  390. <!--{if $forum[description]}--><p class="xg2">$forum[description]</p><!--{/if}-->
  391. <!--{if $forum['subforums']}--><p>{lang forum_subforums}: $forum['subforums']</p><!--{/if}-->
  392. <!--{if $forum['moderators']}--><p>{lang forum_moderators}: <span class="xi2">$forum[moderators]</span></p><!--{/if}-->
  393. <!--{hook/index_forum_extra $forum[fid]}-->
  394. </td>
  395. <td class="fl_i">
  396. <!--{if empty($forum[redirect])}--><span class="xi2"><!--{echo dnumber($forum[threads])}--></span><span class="xg1"> / <!--{echo dnumber($forum[posts])}--></span><!--{/if}-->
  397. </td>
  398. <td class="fl_by">
  399. <div>
  400. <!--{if $forum['permission'] == 1}-->
  401. {lang private_forum}
  402. <!--{else}-->
  403. <!--{if $forum['redirect']}-->
  404. <a href="$forumurl" class="xi2">{lang url_link}</a>
  405. <!--{elseif is_array($forum['lastpost'])}-->
  406. <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>
  407. <!--{else}-->
  408. {lang never}
  409. <!--{/if}-->
  410. <!--{/if}-->
  411. </div>
  412. </td>
  413. </tr>
  414. <tr class="fl_row">
  415. <!--{/if}-->
  416. <!--{/loop}-->
  417. $cat['endrows']
  418. </tr>
  419. </table>
  420. </div>
  421. </div>
  422. <!--{ad/intercat/bm a_c/$cat[fid]}-->
  423. <!--{/loop}-->
  424. <!--{if !empty($collectiondata['data'])}-->
  425. <!--{eval $forumscount = count($collectiondata['data']);}-->
  426. <!--{eval $forumcolumns = 4;}-->
  427. <!--{eval $forumcolwidth = (floor(100 / $forumcolumns) - 0.1).'%';}-->
  428. <div class="bm bmw {if $forumcolumns} flg{/if} cl">
  429. <div class="bm_h cl">
  430. <span class="o">
  431. <img id="category_-2_img" src="{IMGDIR}/$collapse['collapseimg_-2']" title="{lang spread}" alt="{lang spread}" onclick="toggle_collapse('category_-2');" />
  432. </span>
  433. <h2><a href="forum.php?mod=collection">{lang recommend_collection}</a></h2>
  434. </div>
  435. <div id="category_-2" class="bm_c" style="{echo $collapse['category_-2']}">
  436. <table cellspacing="0" cellpadding="0" class="fl_tb">
  437. <tr>
  438. <!--{eval $ctorderid = 0;}-->
  439. <!--{loop $collectiondata['data'] $key $colletion}-->
  440. <!--{if $ctorderid && ($ctorderid % $forumcolumns == 0)}-->
  441. </tr>
  442. <!--{if $ctorderid < $forumscount}-->
  443. <tr class="fl_row">
  444. <!--{/if}-->
  445. <!--{/if}-->
  446. <td class="fl_g"{if $forumcolwidth} width="$forumcolwidth"{/if}>
  447. <div class="fl_icn_g">
  448. <a href="forum.php?mod=collection&action=view&ctid={$colletion[ctid]}" target="_blank"><img src="{IMGDIR}/forum.gif" alt="$colletion[name]" /></a>
  449. </div>
  450. <dl>
  451. <dt><a href="forum.php?mod=collection&action=view&ctid={$colletion[ctid]}">$colletion[name]</a></dt>
  452. <dd><em>{lang forum_threads}: <!--{echo dnumber($colletion[threadnum])}--></em>, <em>{lang collection_commentnum}: <!--{echo dnumber($colletion[commentnum])}--></em></dd>
  453. <dd>
  454. <!--{if $colletion['lastpost']}-->
  455. <!--{if $forumcolumns < 3}-->
  456. <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>
  457. <!--{else}-->
  458. <a href="forum.php?mod=redirect&tid=$colletion[lastpost]&goto=lastpost#lastpost">{lang forum_lastpost}: <!--{date($colletion[lastposttime])}--></a>
  459. <!--{/if}-->
  460. <!--{else}-->
  461. {lang never}
  462. <!--{/if}-->
  463. </dd>
  464. <!--{hook/index_datacollection_extra $colletion[ctid]}-->
  465. </dl>
  466. </td>
  467. <!--{eval $ctorderid++;}-->
  468. <!--{/loop}-->
  469. <!--{if ($columnspad = $ctorderid % $forumcolumns) > 0}--><!--{echo str_repeat('<td class="fl_g"'.($forumcolwidth ? " width=\"$forumcolwidth\"" : '').'></td>', $forumcolumns - $columnspad);}--><!--{/if}-->
  470. </tr>
  471. </table>
  472. </div>
  473. </div>
  474. <!--{/if}-->
  475. </div>
  476. <!--{hook/index_middle}-->
  477. <div class="wp mtn">
  478. <!--[diy=diy3]--><div id="diy3" class="area"></div><!--[/diy]-->
  479. </div>
  480. <!--{if empty($gid) && $_G['setting']['whosonlinestatus']}-->
  481. <div id="online" class="bm oll">
  482. <div class="bm_h">
  483. <!--{if $detailstatus}-->
  484. <span class="o"><a href="forum.php?showoldetails=no#online" title="{lang spread}"><img src="{IMGDIR}/collapsed_no.gif" alt="{lang spread}" /></a></span>
  485. <h3>
  486. <strong><a href="home.php?mod=space&do=friend&view=online&type=member">{lang onlinemember}</a></strong>
  487. <span class="xs1">- <strong>$onlinenum</strong> {lang onlines}
  488. - <strong>$membercount</strong> {lang index_members}(<strong>$invisiblecount</strong> {lang index_invisibles}),
  489. <strong>$guestcount</strong> {lang index_guests}
  490. - {lang index_mostonlines} <strong>$onlineinfo[0]</strong> {lang on} <strong>$onlineinfo[1]</strong>.</span>
  491. </h3>
  492. <!--{else}-->
  493. <!--{if empty($_G['setting']['sessionclose'])}-->
  494. <span class="o"><a href="forum.php?showoldetails=yes#online" title="{lang spread}"><img src="{IMGDIR}/collapsed_yes.gif" alt="{lang spread}" /></a></span>
  495. <!--{/if}-->
  496. <h3>
  497. <strong>
  498. <!--{if !empty($_G['setting']['whosonlinestatus'])}-->
  499. {lang onlinemember}
  500. <!--{else}-->
  501. <a href="home.php?mod=space&do=friend&view=online&type=member">{lang onlinemember}</a>
  502. <!--{/if}-->
  503. </strong>
  504. <span class="xs1">- {lang total} <strong>$onlinenum</strong> {lang onlines}
  505. <!--{if $membercount}-->- <strong>$membercount</strong> {lang index_members},<strong>$guestcount</strong> {lang index_guests}<!--{/if}-->
  506. - {lang index_mostonlines} <strong>$onlineinfo[0]</strong> {lang on} <strong>$onlineinfo[1]</strong>.</span>
  507. </h3>
  508. <!--{/if}-->
  509. </div>
  510. <!--{if $_G['setting']['whosonlinestatus'] && $detailstatus}-->
  511. <dl id="onlinelist" class="bm_c">
  512. <dt class="ptm pbm bbda">$_G[cache][onlinelist][legend]</dt>
  513. <!--{if $detailstatus}-->
  514. <dd class="ptm pbm">
  515. <ul class="cl">
  516. <!--{if $whosonline}-->
  517. <!--{loop $whosonline $key $online}-->
  518. <li title="{lang time}: $online[lastactivity]">
  519. <img src="{STATICURL}image/common/$online[icon]" alt="icon" />
  520. <!--{if $online['uid']}-->
  521. <a href="home.php?mod=space&uid=$online[uid]">$online[username]</a>
  522. <!--{else}-->
  523. $online[username]
  524. <!--{/if}-->
  525. </li>
  526. <!--{/loop}-->
  527. <!--{else}-->
  528. <li style="width: auto">{lang online_only_guests}</li>
  529. <!--{/if}-->
  530. </ul>
  531. </dd>
  532. <!--{/if}-->
  533. </dl>
  534. <!--{/if}-->
  535. </div>
  536. <!--{/if}-->
  537. <!--{if empty($gid) && ($_G['cache']['forumlinks'][0] || $_G['cache']['forumlinks'][1] || $_G['cache']['forumlinks'][2])}-->
  538. <div class="bm lk">
  539. <div id="category_lk" class="bm_c ptm">
  540. <!--{if $_G['cache']['forumlinks'][0]}-->
  541. <ul class="m mbn cl">$_G['cache']['forumlinks'][0]</ul>
  542. <!--{/if}-->
  543. <!--{if $_G['cache']['forumlinks'][1]}-->
  544. <div class="mbn cl">
  545. $_G['cache']['forumlinks'][1]
  546. </div>
  547. <!--{/if}-->
  548. <!--{if $_G['cache']['forumlinks'][2]}-->
  549. <ul class="x mbm cl">
  550. $_G['cache']['forumlinks'][2]
  551. </ul>
  552. <!--{/if}-->
  553. </div>
  554. </div>
  555. <!--{/if}-->
  556. <!--{hook/index_bottom}-->
  557. </div>
  558. <!--{if $_G['setting']['forumallowside']}-->
  559. <div id="sd" class="sd">
  560. <!--{hook/index_side_top}-->
  561. <div class="drag">
  562. <!--[diy=diy2]--><div id="diy2" class="area"></div><!--[/diy]-->
  563. </div>
  564. <!--{hook/index_side_bottom}-->
  565. </div>
  566. <!--{/if}-->
  567. </div>
  568. <!--{if $_G['group']['radminid'] == 1}-->
  569. <!--{eval helper_manyou::checkupdate();}-->
  570. <!--{/if}-->
  571. <!--{if empty($_G['setting']['disfixednv_forumindex']) }--><script>fixed_top_nv();</script><!--{/if}-->
  572. <!--{template common/footer}-->