discuz.htm 32 KB

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