forumdisplay.htm.bak 37 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653
  1. <!--{template common/header}-->
  2. <!--{if $_G['forum']['ismoderator']}-->
  3. <script type="text/javascript" src="{$_G[setting][jspath]}forum_moderate.js?{VERHASH}"></script>
  4. <!--{/if}-->
  5. <style id="diy_style" type="text/css">#frameobT8WM { border:0px !important;margin:0px !important;}#portal_block_8 { border:0px !important;margin:0px !important;}#portal_block_8 .dxb_bc { margin:0px !important;}#frameCw60eB { border:#000000 0px !important;margin-top:-1px !important;margin-right:0px !important;margin-bottom:0px !important;margin-left:0px !important;}#portal_block_9 { border:#000000 0px !important;margin:0px !important;}#portal_block_9 .dxb_bc { margin:0px !important;}#frameMSrCR9 { border:0px !important;margin:0px !important;}#portal_block_10 { border:0px !important;margin:0px !important;}#portal_block_10 .dxb_bc { margin:0px !important;}#framePB56zb { border:#000000 0px !important;margin-top:-1px !important;margin-right:0px !important;margin-bottom:0px !important;margin-left:0px !important;}#frameB05G19 { border:0px !important;margin:0px !important;}#portal_block_12 { border:0px !important;margin:0px !important;}#portal_block_12 .dxb_bc { margin:0px !important;}</style>
  6. <!--[diy=diynavtop]--><div id="diynavtop" class="area"></div><!--[/diy]-->
  7. <!--{ad/text/wp a_t}-->
  8. <div class="wp">
  9. <!--[diy=diy1]--><div id="diy1" class="area"></div><!--[/diy]-->
  10. </div>
  11. <div class="boardnav">
  12. <!--{if $leftside}-->
  13. <div id="sd_bdl" class="bdl" onmouseover="showMenu({'ctrlid':this.id, 'pos':'dz'});" style="width:145px;margin-left:-160px">
  14. <!--{hook/forumdisplay_leftside_top}-->
  15. <!--[diy=diyleftsidetop]--><div id="diyleftsidetop" class="area"></div><!--[/diy]-->
  16. <div class="tbn" id="forumleftside">
  17. <!--{subtemplate forum/forumdisplay_leftside}-->
  18. </div>
  19. <!--[diy=diyleftsidebottom]--><div id="diyleftsidebottom" class="area"></div><!--[/diy]-->
  20. <!--{hook/forumdisplay_leftside_bottom}-->
  21. </div>
  22. <!--{/if}-->
  23. <div id="ct" class="wp cl week_ct2">
  24. <div class="mn wk_f_mn padding15 backfff">
  25. <div class="bml pbn">
  26. <div class="bm_h cl mb5">
  27. <div id="pt" class="bm cl z">
  28. <div class="z">
  29. <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
  30. </div>
  31. </div>
  32. <span class="y">
  33. <a href="home.php?mod=spacecp&ac=favorite&type=forum&id=$_G[fid]&handlekey=favoriteforum&formhash={FORMHASH}" id="a_favorite" class="fa_fav" onclick="showWindow(this.id, this.href, 'get', 0);">{lang forum_favorite} <strong class="xi1" id="number_favorite" {if !$_G[forum][favtimes]} style="display:none;"{/if}>(<span id="number_favorite_num">$_G[forum][favtimes]</span>)</strong></a>
  34. <!--{if rssforumperm($_G['forum']) && $_G[setting][rssstatus] && !$_GET['archiveid'] && !$subforumonly}--><span class="pipe">|</span><a href="forum.php?mod=rss&fid=$_G[fid]&auth=$rssauth" class="fa_rss" target="_blank" title="RSS">{lang rss_subscribe_this}</a><!--{/if}-->
  35. <!--{if !empty($forumarchive)}-->
  36. <span class="pipe">|</span><a id="forumarchive" href="javascript:;" class="fa_achv" onmouseover="showMenu(this.id)"><!--{if $_GET['archiveid']}-->$forumarchive[$_GET['archiveid']]['displayname']<!--{else}-->{lang forum_archive}<!--{/if}--></a>
  37. <!--{/if}-->
  38. <!--{hook/forumdisplay_forumaction}-->
  39. <!--{if $_G['forum']['ismoderator']}-->
  40. <!--{if $_G['forum']['recyclebin']}-->
  41. <span class="pipe">|</span><a href="{if $_G['adminid'] == 1}admin.php?mod=forum&action=recyclebin&frames=yes{elseif $_G['forum']['ismoderator']}forum.php?mod=modcp&action=recyclebin&fid=$_G[fid]{/if}" class="fa_bin" target="_blank">{lang forum_recyclebin}</a>
  42. <!--{/if}-->
  43. <!--{if $_G['forum']['ismoderator'] && !$_GET['archiveid']}-->
  44. <span class="pipe">|</span><strong>
  45. <!--{if $_G['forum']['status'] != 3}-->
  46. <a href="forum.php?mod=modcp&fid=$_G[fid]">{lang modcp}</a>
  47. <!--{else}-->
  48. <a href="forum.php?mod=group&action=manage&fid=$_G[fid]">{lang modcp}</a>
  49. <!--{/if}-->
  50. </strong>
  51. <!--{/if}-->
  52. <!--{hook/forumdisplay_modlink}-->
  53. <!--{/if}-->
  54. </span>
  55. </div>
  56. <!--{if !empty($forumarchive)}-->
  57. <div id="forumarchive_menu" class="p_pop" style="display:none">
  58. <ul>
  59. <li><a href="forum.php?mod=forumdisplay&fid=$_G[fid]">{lang threads_all}</a></li>
  60. <!--{loop $forumarchive $id $info}-->
  61. <li><a href="forum.php?mod=forumdisplay&fid=$_G[fid]&archiveid=$id">{$info['displayname']} ({$info['threads']})</a></li>
  62. <!--{/loop}-->
  63. </ul>
  64. </div>
  65. <!--{/if}-->
  66. </div>
  67. <!--{hook/forumdisplay_top}-->
  68. <!--{if $subexists && $_G['page'] == 1}--><!--{template forum/forumdisplay_subforum}--><!--{/if}-->
  69. <div class="drag">
  70. <!--[diy=diy4]--><div id="diy4" class="area"></div><!--[/diy]-->
  71. </div>
  72. <!--{if !empty($_G['forum']['recommendlist'])}-->
  73. <div class="bm bmw">
  74. <div class="bm_h cl">
  75. <h2>{lang forum_recommend}</h2>
  76. </div>
  77. <div class="bm_c cl">
  78. <!--{subtemplate forum/recommend}-->
  79. </div>
  80. </div>
  81. <!--{/if}-->
  82. <!--{hook/forumdisplay_middle}-->
  83. <!--{if !$subforumonly}-->
  84. <!--{if $recommendgroups && !$_G['forum']['allowside']}-->
  85. <div class="bm bmw fl{if $_G['forum']['forumcolumns']} flg{/if}">
  86. <div class="bm_h cl">
  87. <span class="o"><img id="recommendgroups_{$_G[forum][fid]}_img" src="{IMGDIR}/$collapseimg[recommendgroups]" title="{lang spread}" alt="{lang spread}" onclick="toggle_collapse('recommendgroups_{$_G[forum][fid]}');" /></span>
  88. <h2>{lang recommended_groups}</h2>
  89. </div>
  90. <div class="bm_c" id="recommendgroups_{$_G[forum][fid]}" style="$collapse[recommendgroups]">
  91. <table cellspacing="0" cellpadding="0" class="fl_tb">
  92. <!--{loop $recommendgroups $key $group}-->
  93. <!--{if $_G['forum']['forumcolumns']}-->
  94. <!--{if $key && ($key % $_G['forum']['forumcolumns'] == 0)}-->
  95. </tr>
  96. <!--{if $key < $_G['forum']['forumcolumns']}-->
  97. <tr class="fl_row">
  98. <!--{/if}-->
  99. <!--{/if}-->
  100. <td class="fl_g">
  101. <div class="fl_icn_g">
  102. <a href="forum.php?mod=group&fid=$group[fid]" title="$group[name]" target="_blank"><img src="$group[icon]" alt="$group[name]" width="32" /></a>
  103. </div>
  104. <dl>
  105. <dt><a href="forum.php?mod=group&fid=$group[fid]" target="_blank">$group[name]</a><span class="xg1 xw0"> ($group[membernum] {lang activity_member_unit})</span>
  106. <dd><em>{lang forum_threads}: $group[threads]</em></dd>
  107. <dd>
  108. <!--{if is_array($group['lastpost'])}-->
  109. <!--{if $_G['forum']['forumcolumns'] < 3}-->
  110. <a href="forum.php?mod=redirect&tid=$group[lastpost][tid]&goto=lastpost#lastpost" class="xi2"><!--{echo cutstr($group[lastpost][subject], 30)}--></a> <cite>$group[lastpost][dateline] <!--{if $group['lastpost']['author']}--><a href="home.php?mod=space&username={$group[lastpost][encode_author]}">{$group[lastpost][author]}</a><!--{else}-->$_G[setting][anonymoustext]<!--{/if}--></cite>
  111. <!--{else}-->
  112. <a href="forum.php?mod=redirect&tid=$group[lastpost][tid]&goto=lastpost#lastpost" class="xi2">$group[lastpost][dateline]</a>
  113. <!--{/if}--> <!--{else}-->
  114. {lang never}
  115. <!--{/if}-->
  116. </dd>
  117. </dl>
  118. </td>
  119. <!--{else}-->
  120. <tr {if $key != 0}class="fl_row"{/if}>
  121. <td class="fl_icn">
  122. <a href="forum.php?mod=group&fid=$group[fid]" title="$group[name]" target="_blank"><img src="$group[icon]" alt="$group[name]" width="32" /></a>
  123. </td>
  124. <td>
  125. <h2><a href="forum.php?mod=group&fid=$group[fid]" target="_blank">$group[name]</a><span class="xg1 xw0"> ($group[membernum] {lang activity_member_unit})</span></h2>
  126. <p><!--{echo cutstr($group[description], 100)}--></p>
  127. </td>
  128. <td class="fl_i">
  129. <span class="xi2">$group[threads] {lang index_threads}</span>
  130. </td>
  131. <td class="fl_by">
  132. <div>
  133. <!--{if is_array($group['lastpost'])}-->
  134. <a href="forum.php?mod=redirect&tid=$group[lastpost][tid]&goto=lastpost#lastpost" class="xi2"><!--{echo cutstr($group[lastpost][subject], 30)}--></a> <cite>$group[lastpost][dateline] <!--{if $group['lastpost']['author']}--><a href="home.php?mod=space&username={$group[lastpost][encode_author]}">{$group[lastpost][author]}</a><!--{else}-->$_G[setting][anonymoustext]<!--{/if}--></cite>
  135. <!--{else}-->
  136. {lang never}
  137. <!--{/if}-->
  138. </div>
  139. </td>
  140. </tr>
  141. <!--{/if}-->
  142. <!--{/loop}-->
  143. </table>
  144. </div>
  145. </div>
  146. <!--{/if}-->
  147. <!--{if $threadmodcount}--><div class="bm"><div class="ntc_l hm xi2"><strong>{lang forum_moderate_unhandled}</strong></div></div><!--{/if}-->
  148. <!--{if $livethread}-->
  149. <div id="livethread" class="tl bm bmw cl" style="padding:10px 15px;">
  150. <div class="livethreadtitle vm">
  151. <span class="replynumber xg1">{lang reply} <span id="livereplies" class="xi1">$livethread[replies]</span></span>
  152. <a href="forum.php?mod=viewthread&tid=$livethread[tid]" target="_blank">$livethread[subject]</a> <img src="{IMGDIR}/livethreadtitle.png" />
  153. </div>
  154. <div class="livethreadcon">$livemessage</div>
  155. <div id="livereplycontentout">
  156. <div id="livereplycontent">
  157. </div>
  158. </div>
  159. <div id="liverefresh">{lang forum_live_newreply_refresh}</div>
  160. <div id="livefastreply">
  161. <form id="livereplypostform" method="post" action="forum.php?mod=post&action=reply&fid=$_G[fid]&tid=$livethread[tid]&replysubmit=yes&infloat=yes&handlekey=livereplypost&inajax=1" onsubmit="return livereplypostvalidate(this)">
  162. <div id="livefastcomment">
  163. <textarea id="livereplymessage" name="message" style="color:gray;<!--{if !$liveallowpostreply}-->display:none;<!--{/if}-->">{lang forum_live_fastreply_notice}</textarea>
  164. <!--{if !$liveallowpostreply}-->
  165. <div>
  166. <!--{if !$_G[uid]}-->
  167. {lang login_to_reply} <a href="member.php?mod=logging&action=login" onclick="showWindow('login', this.href)" class="xi2">{lang login}</a> | <a href="member.php?mod={$_G[setting][regname]}" class="xi2">$_G['setting']['reglinkname']</a>
  168. <!--{else}-->
  169. {lang no_permission_to_post}<a href="javascript:;" onclick="ajaxpost('livereplypostform', 'livereplypostreturn', 'livereplypostreturn', 'onerror', $('livereplysubmit'));" class="xi2">{lang click_to_show_reason}</a>
  170. <!--{/if}-->
  171. </div>
  172. <!--{/if}-->
  173. </div>
  174. <div id="livepostsubmit" style="display:none;">
  175. <!--{if $secqaacheck || $seccodecheck}-->
  176. <!--{block sectpl}--><sec> <span id="sec<hash>" onclick="showMenu(this.id)"><sec></span><div id="sec<hash>_menu" class="p_pop p_opt" style="display:none"><sec></div><!--{/block}-->
  177. <div class="mtm sec" style="text-align:right;"><!--{subtemplate common/seccheck}--></div>
  178. <!--{/if}-->
  179. <p class="ptm pnpost" style="margin-bottom:10px;">
  180. <button type="submit" name="replysubmit" class="pn pnc vm" style="float:right;" value="replysubmit" id="livereplysubmit">
  181. <strong>{lang forum_live_post}</strong>
  182. </button>
  183. </p>
  184. </div>
  185. <input type="hidden" name="formhash" value="{FORMHASH}">
  186. <input type="hidden" name="subject" value=" ">
  187. </form>
  188. </div>
  189. <span id="livereplypostreturn"></span>
  190. </div>
  191. <script type="text/javascript">
  192. var postminchars = parseInt('$_G['setting']['minpostsize']');
  193. var postmaxchars = parseInt('$_G['setting']['maxpostsize']');
  194. var disablepostctrl = parseInt('{$_G['group']['disablepostctrl']}');
  195. var replycontentlist = new Array();
  196. var addreplylist = new Array();
  197. var timeoutid = timeid = movescrollid = waitescrollid = null;
  198. var replycontentnum = 0;
  199. getnewlivepostlist(1);
  200. timeid = setInterval(getnewlivepostlist, 5000);
  201. $('livereplycontent').style.position = 'absolute';
  202. $('livereplycontent').style.width = ($('livereplycontentout').clientWidth - 50) + 'px';
  203. $('livereplymessage').onfocus = function() {
  204. if(this.style.color == 'gray') {
  205. this.value = '';
  206. this.style.color = 'black';
  207. $('livepostsubmit').style.display = 'block';
  208. this.style.height = '56px';
  209. $('livefastcomment').style.height = '57px';
  210. }
  211. };
  212. $('livereplymessage').onblur = function() {
  213. if(this.value == '') {
  214. this.style.color = 'gray';
  215. this.value = '{lang forum_live_fastreply_notice}';
  216. }
  217. };
  218. $('liverefresh').onclick = function() {
  219. $('livereplycontent').style.position = 'absolute';
  220. getnewlivepostlist();
  221. this.style.display = 'none';
  222. };
  223. $('livereplycontentout').onmouseover = function(e) {
  224. if($('livereplycontent').style.position == 'absolute' && $('livereplycontent').clientHeight > 215) {
  225. $('livereplycontent').style.position = 'static';
  226. this.scrollTop = this.scrollHeight;
  227. }
  228. if(this.scrollTop + this.clientHeight != this.scrollHeight) {
  229. clearInterval(timeid);
  230. clearTimeout(timeoutid);
  231. clearInterval(movescrollid);
  232. timeid = timeoutid = movescrollid = null;
  233. if(waitescrollid == null) {
  234. waitescrollid = setTimeout(function() {
  235. $('liverefresh').style.display = 'block';
  236. }, 60000 * 10);
  237. }
  238. } else {
  239. clearTimeout(waitescrollid);
  240. waitescrollid = null;
  241. }
  242. };
  243. $('livereplycontentout').onmouseout = function(e) {
  244. if(this.scrollTop + this.clientHeight == this.scrollHeight) {
  245. $('livereplycontent').style.position = 'absolute';
  246. clearInterval(timeid);
  247. timeid = setInterval(getnewlivepostlist, 10000);
  248. }
  249. };
  250. function getnewlivepostlist(first) {
  251. var x = new Ajax('JSON');
  252. x.getJSON('forum.php?mod=misc&action=livelastpost&fid=$livethread[fid]', function(s, x) {
  253. var count = s.data.count;
  254. $('livereplies').innerHTML = count;
  255. var newpostlist = s.data.list;
  256. for(i in newpostlist) {
  257. var postid = i;
  258. var postcontent = '';
  259. postcontent += newpostlist[i].authorid ? '<dt><a href="home.php?mod=space&uid=' + newpostlist[i].authorid + '" target="_blank">' + newpostlist[i].avatar + '</a></dt>' : '<dt></dt>';
  260. postcontent += newpostlist[i].authorid ? '<dd><a href="home.php?mod=space&uid=' + newpostlist[i].authorid + '" target="_blank">' + newpostlist[i].author + '</a></dd>' : '<dd>' + newpostlist[i].author + '</dd>';
  261. postcontent += '<dd>' + newpostlist[i].message + '</dd>';
  262. postcontent += '<dd class="dateline">' + newpostlist[i].dateline + '</dd>';
  263. if(replycontentlist[postid]) {
  264. $('livereply_' + postid).innerHTML = postcontent;
  265. continue;
  266. }
  267. addreplylist[postid] = '<dl id="livereply_' + postid + '">' + postcontent + '</dl>';
  268. }
  269. if(first) {
  270. for(i in addreplylist) {
  271. replycontentlist[i] = addreplylist[i];
  272. replycontentnum++;
  273. var div = document.createElement('div');
  274. div.innerHTML = addreplylist[i];
  275. $('livereplycontent').appendChild(div);
  276. delete addreplylist[i];
  277. }
  278. } else {
  279. livecontentfacemove();
  280. }
  281. });
  282. }
  283. function livecontentfacemove() {
  284. //note ´Ó¶ÓÁÐÖÐÈ¡³öÊý¾Ý
  285. var reply = '';
  286. for(i in addreplylist) {
  287. reply = replycontentlist[i] = addreplylist[i];
  288. replycontentnum++;
  289. delete addreplylist[i];
  290. break;
  291. }
  292. if(reply) {
  293. var div = document.createElement('div');
  294. div.innerHTML = reply;
  295. var oldclientHeight = $('livereplycontent').clientHeight;
  296. $('livereplycontent').appendChild(div);
  297. $('livereplycontentout').style.overflowY = 'hidden';
  298. $('livereplycontent').style.bottom = oldclientHeight - $('livereplycontent').clientHeight + 'px';
  299. if(replycontentnum > 20) {
  300. $('livereplycontent').removeChild($('livereplycontent').firstChild);
  301. for(i in replycontentlist) {
  302. delete replycontentlist[i];
  303. break;
  304. }
  305. replycontentnum--;
  306. }
  307. if(!movescrollid) {
  308. movescrollid = setInterval(function() {
  309. if(parseInt($('livereplycontent').style.bottom) < 0) {
  310. $('livereplycontent').style.bottom =
  311. ((parseInt($('livereplycontent').style.bottom) + 5) > 0 ? 0 : (parseInt($('livereplycontent').style.bottom) + 5)) + 'px';
  312. } else {
  313. $('livereplycontentout').style.overflowY = 'auto';
  314. clearInterval(movescrollid);
  315. movescrollid = null;
  316. timeoutid = setTimeout(livecontentfacemove, 1000);
  317. }
  318. }, 100);
  319. }
  320. }
  321. }
  322. function livereplypostvalidate(theform) {
  323. var s;
  324. if(theform.message.value == '' || $('livereplymessage').style.color == 'gray') {
  325. s = '{lang forum_live_nocontent_error}';
  326. }
  327. if(!disablepostctrl && ((postminchars != 0 && mb_strlen(theform.message.value) < postminchars) || (postmaxchars != 0 && mb_strlen(theform.message.value) > postmaxchars))) {
  328. s = {lang forum_live_nolength_error};
  329. }
  330. if(s) {
  331. showError(s);
  332. doane();
  333. $('livereplysubmit').disabled = false;
  334. return false;
  335. }
  336. $('livereplysubmit').disabled = true;
  337. theform.message.value = theform.message.value.replace(/([^>=\]"'\/]|^)((((https?|ftp):\/\/)|www\.)([\w\-]+\.)*[\w\-\u4e00-\u9fa5]+\.([\.a-zA-Z0-9]+|\u4E2D\u56FD|\u7F51\u7EDC|\u516C\u53F8)((\?|\/|:)+[\w\.\/=\?%\-&~`@':+!]*)+\.(jpg|gif|png|bmp))/ig, '$1[img]$2[/img]');
  338. theform.message.value = parseurl(theform.message.value);
  339. ajaxpost('livereplypostform', 'livereplypostreturn', 'livereplypostreturn', 'onerror', $('livereplysubmit'));
  340. return false;
  341. }
  342. function succeedhandle_livereplypost(url, msg, param) {
  343. $('livereplymessage').value = '';
  344. $('livereplycontent').style.position = 'absolute';
  345. if(param['sechash']) {
  346. updatesecqaa(param['sechash']);
  347. updateseccode(param['sechash']);
  348. }
  349. getnewlivepostlist();
  350. }
  351. </script>
  352. <!--{/if}-->
  353. <!--{if ($_G['forum']['threadtypes'] && $_G['forum']['threadtypes']['listable']) || count($_G['forum']['threadsorts']['types']) > 0}-->
  354. <ul id="thread_types" class="ttp cl">
  355. <!--{hook/forumdisplay_threadtype_inner}-->
  356. <li id="ttp_all" {if !$_GET['typeid'] && !$_GET['sortid']}class="xw1 a"{/if}><a href="forum.php?mod=forumdisplay&fid=$_G[fid]{if $_G['forum']['threadsorts']['defaultshow']}&filter=sortall&sortall=1{/if}{if $_GET['archiveid']}&archiveid={$_GET['archiveid']}{/if}">{lang forum_viewall}</a></li>
  357. <!--{if $_G['forum']['threadtypes']}-->
  358. <!--{loop $_G['forum']['threadtypes']['types'] $id $name}-->
  359. <!--{if $_GET['typeid'] == $id}-->
  360. <li class="xw1 a"><a href="forum.php?mod=forumdisplay&fid=$_G[fid]{if $_GET['sortid']}&filter=sortid&sortid=$_GET['sortid']{/if}{if $_GET['archiveid']}&archiveid={$_GET['archiveid']}{/if}"><!--{if $_G[forum][threadtypes][icons][$id] && $_G['forum']['threadtypes']['prefix'] == 2}--><img class="vm" src="$_G[forum][threadtypes][icons][$id]" alt="" /> <!--{/if}-->$name<!--{if $showthreadclasscount[typeid][$id]}--><span class="xg1 num">$showthreadclasscount[typeid][$id]</span><!--{/if}--></a></li>
  361. <!--{else}-->
  362. <li><a href="forum.php?mod=forumdisplay&fid=$_G[fid]&filter=typeid&typeid=$id$forumdisplayadd[typeid]{if $_GET['archiveid']}&archiveid={$_GET['archiveid']}{/if}"><!--{if $_G[forum][threadtypes][icons][$id] && $_G['forum']['threadtypes']['prefix'] == 2}--><img class="vm" src="$_G[forum][threadtypes][icons][$id]" alt="" /> <!--{/if}-->$name<!--{if $showthreadclasscount[typeid][$id]}--><span class="xg1 num">$showthreadclasscount[typeid][$id]</span><!--{/if}--></a></li>
  363. <!--{/if}-->
  364. <!--{/loop}-->
  365. <!--{/if}-->
  366. </ul>
  367. <!--{if $_G['forum']['threadsorts']}-->
  368. <div class="clear"></div>
  369. <ul class="ttp cl wk_ttp">
  370. <!--{loop $_G['forum']['threadsorts']['types'] $id $name}-->
  371. <!--{if $_GET['sortid'] == $id}-->
  372. <li class="xw1 a"><a href="forum.php?mod=forumdisplay&fid=$_G[fid]{if $_GET['typeid']}&filter=typeid&typeid=$_GET['typeid']{/if}{if $_GET['archiveid']}&archiveid={$_GET['archiveid']}{/if}">$name<!--{if $showthreadclasscount[sortid][$id]}--><span class="xg1 num">$showthreadclasscount[sortid][$id]</span><!--{/if}--></a></li>
  373. <!--{else}-->
  374. <li><a href="forum.php?mod=forumdisplay&fid=$_G[fid]&filter=sortid&sortid=$id$forumdisplayadd[sortid]{if $_GET['archiveid']}&archiveid={$_GET['archiveid']}{/if}">$name<!--{if $showthreadclasscount[sortid][$id]}--><span class="xg1 num">$showthreadclasscount[sortid][$id]</span><!--{/if}--></a></li>
  375. <!--{/if}-->
  376. <!--{/loop}-->
  377. </ul>
  378. <!--{/if}-->
  379. <!--{hook/forumdisplay_filter_extra}-->
  380. <div class="clear"></div>
  381. <script type="text/javascript">showTypes('thread_types');</script>
  382. <!--{/if}-->
  383. <!--{hook/forumdisplay_threadtype_extra}-->
  384. <!--{if empty($_G['forum']['sortmode'])}-->
  385. <!--{subtemplate forum/forumdisplay_list}-->
  386. <!--{else}-->
  387. <!--{subtemplate forum/forumdisplay_sort}-->
  388. <!--{/if}-->
  389. <!--{/if}-->
  390. <!--[diy=diyfastposttop]--><div id="diyfastposttop" class="area"></div><!--[/diy]-->
  391. <!--{if $wk_fastpost}-->
  392. <!--{if $fastpost}-->
  393. <!--{template forum/forumdisplay_fastpost}-->
  394. <!--{/if}-->
  395. <!--{/if}-->
  396. <!--{hook/forumdisplay_bottom}-->
  397. <!--[diy=diyforumdisplaybottom]--><div id="diyforumdisplaybottom" class="area"></div><!--[/diy]-->
  398. </div>
  399. <div class="wk_f_sd">
  400. <!--{hook/forumdisplay_side_top}-->
  401. <!--{if !$subforumonly}-->
  402. <div class="wk_fztrd backfff">
  403. <span class="sgsz"><strong class="xi1">$_G[forum][todayposts]</strong><!--{if $_G[forum][todayposts]}--><!--{if $_G[forum][todayposts] < $_G[forum][yesterdayposts]}--><b class="ico_fall">&nbsp;</b><!--{else}--><b class="ico_increase">&nbsp;</b><!--{/if}--> <!--{/if}--></span>
  404. <span> <strong class="xi1">$_G[forum][threads]</strong></span>
  405. <span><!--{if $_G[forum][rank]}--><strong class="xi1" title="{lang previous_rank}:$_G[forum][oldrank]">$_G[forum][rank]</strong><!--{if $_G[forum][rank] <= $_G[forum][oldrank]}--><b class="ico_increase">&nbsp;</b> <!--{else}--><b class="ico_fall">&nbsp;</b><!--{/if}--><!--{/if}--></span>
  406. <div class="clear"></div>
  407. <span class="sgsz">$forum_lang[5]</span>
  408. <span>$forum_lang[6]</span>
  409. <span><!--{if $_G[forum][rank]}-->$forum_lang[7]<!--{/if}--></span>
  410. </div>
  411. <div class="clear"></div>
  412. <!--{/if}-->
  413. <div class="clear"></div>
  414. <div class="wk_kd260 padding15 backfff">
  415. <!--{if !$_GET['archiveid']}-->
  416. <a href="javascript:;"{if !$_G['forum']['allowspecialonly'] && empty($_G['forum']['picstyle']) && !$_G['forum']['threadsorts']['required']} onclick="showWindow('newthread', 'forum.php?mod=post&action=newthread&fid=$_G[fid]')"{else} onclick="location.href='forum.php?mod=post&action=newthread&fid=$_G[fid]';return false;"{/if} title="$forum_lang[8]" class="wk_fpost"><i class="icon wk_fpost_icon"></i><span>$forum_lang[8]</span></a>
  417. <!--{/if}-->
  418. <div class="wkf_hd">
  419. <a href="forum.php?mod=forumdisplay&fid=$_G[fid]">$_G['forum'][name]</a>
  420. <!--{if $_G['page'] == 1 && $_G['forum']['rules']}--><span class="o y"><img id="forum_rules_{$_G[fid]}_img" src="{IMGDIR}/collapsed_{$collapse[forum_rulesimg]}.gif" title="{lang spread}" alt="{lang spread}" onclick="toggle_collapse('forum_rules_{$_G[fid]}')" /></span><!--{/if}-->
  421. </div>
  422. <div class="clear"></div>
  423. <div class="bm_c cl pbn">
  424. <!--{if (!empty($_G[forum][domain]) && !empty($_G['setting']['domain']['root']['forum'])) || $moderatedby || ($_G['page'] == 1 && $_G['forum']['rules'])}-->
  425. <!--{if !empty($_G[forum][domain]) && !empty($_G['setting']['domain']['root']['forum'])}-->
  426. <div class="pbn">{lang forum_domain}: <a href="http://{$_G[forum][domain]}.{$_G['setting']['domain']['root']['forum']}" id="group_link">http://{$_G[forum][domain]}.{$_G['setting']['domain']['root']['forum']}</a></div>
  427. <!--{/if}-->
  428. <!--{if $moderatedby}--><div>{lang forum_modedby}: <span class="xi2">$moderatedby</span></div><!--{/if}-->
  429. <!--{if $_G['page'] == 1 && $_G['forum']['rules']}-->
  430. <div id="forum_rules_{$_G[fid]}" style="$collapse['forum_rules'];">
  431. <div class="ptn xg2">$_G['forum'][rules]</div>
  432. </div>
  433. <!--{/if}-->
  434. <!--{else}-->
  435. $forum_lang[9]
  436. <!--{/if}-->
  437. </div>
  438. </div>
  439. <div class="clear"></div>
  440. <div class="backfff wk_bk_search">
  441. <!--{template common/forum_pubsearchform}-->
  442. <div class="clear"></div>
  443. </div>
  444. <div class="clear"></div>
  445. <div class="wk_lbbkx backfff">
  446. <div class="wk_rmbk">
  447. <span class="wk_spat">$forum_lang[11]</span>
  448. <div class="clear"></div>
  449. <!--[diy=wk_rmbk_diy]--><div id="wk_rmbk_diy" class="area"><div id="frameobT8WM" class=" frame move-span cl frame-1"><div id="frameobT8WM_left" class="column frame-1-c"><div id="frameobT8WM_left_temp" class="move-span temp"></div><!--{block/8}--></div></div></div><!--[/diy]-->
  450. </div>
  451. </div>
  452. <div class="clear"></div>
  453. <div class="backfff mb10"><!--[diy=wk_bkad_diy1]--><div id="wk_bkad_diy1" class="area"><div id="frameCw60eB" class=" frame move-span cl frame-1"><div id="frameCw60eB_left" class="column frame-1-c"><div id="frameCw60eB_left_temp" class="move-span temp"></div><!--{block/9}--></div></div></div><!--[/diy]--></div>
  454. <div class="clear"></div>
  455. <div class="wk_kd260 padding15 backfff">
  456. <div class="wk_bktjtz">
  457. <span class="wk_spae">$forum_lang[12]</span>
  458. <div class="clear"></div>
  459. <!--[diy=wk_tjtz_diy]--><div id="wk_tjtz_diy" class="area"><div id="frameMSrCR9" class=" frame move-span cl frame-1"><div id="frameMSrCR9_left" class="column frame-1-c"><div id="frameMSrCR9_left_temp" class="move-span temp"></div><!--{block/10}--></div></div></div><!--[/diy]-->
  460. </div>
  461. </div>
  462. <div class="clear"></div>
  463. <div class="wk_kd260 padding15 backfff">
  464. <div class="wk_bktwrt">
  465. <span class="wk_spaf">$forum_lang[13]</span>
  466. <div class="clear"></div>
  467. <!--[diy=wk_twrt_diy]--><div id="wk_twrt_diy" class="area"><div id="frameB05G19" class=" frame move-span cl frame-1"><div id="frameB05G19_left" class="column frame-1-c"><div id="frameB05G19_left_temp" class="move-span temp"></div><!--{block/12}--></div></div></div><!--[/diy]-->
  468. </div>
  469. </div>
  470. <div class="clear"></div>
  471. <!--{if $_G['forum']['allowside']}-->
  472. <!--{if !$subforumonly}-->
  473. <div class="bm">
  474. <div class="bm_h">
  475. <h2>{lang their}: <!--{eval echo cutstr($_G['cache']['forums'][$_G['forum']['fup']]['name'], 22, '')}--></h2>
  476. </div>
  477. <div class="bm_c">
  478. <ul class="xl xl2 cl wk_mls">
  479. <!--{loop $_G['cache']['forums'] $bforum}-->
  480. <!--{if $bforum['fup'] == $_G['forum']['fup'] && $bforum['status']}-->
  481. <li><a href="forum.php?mod=forumdisplay&fid=$bforum[fid]">$bforum['name']</a></li>
  482. <!--{/if}-->
  483. <!--{/loop}-->
  484. </ul>
  485. </div>
  486. </div>
  487. <div class="clear"></div>
  488. <!--{if $recommendgroups}-->
  489. <div class="bm">
  490. <div class="bm_h cl">
  491. <h2>{lang recommended_groups}</h2>
  492. </div>
  493. <div class="bm_c cl">
  494. <ul class="ml mls cl">
  495. <!--{loop $recommendgroups $key $group}-->
  496. <li>
  497. <a href="forum.php?mod=group&fid=$group[fid]" title="$group[name]" target="_blank" class="avt"><img src="$group[icon]" alt="$group[name]"></a>
  498. <p><a href="forum.php?mod=group&fid=$group[fid]" target="_blank">$group[name]</a></p>
  499. </li>
  500. <!--{/loop}-->
  501. </ul>
  502. </div>
  503. </div>
  504. <div class="clear"></div>
  505. <!--{/if}-->
  506. <!--{if !($_G['forum']['simple'] & 1) && $_G[setting][whosonlinestatus]}-->
  507. <div class="bm">
  508. <!--{if $detailstatus}-->
  509. <div class="bm_h cl">
  510. <span class="o y"><a href="forum.php?mod=forumdisplay&fid=$_G[fid]&page=$page&showoldetails=no#online"><img src="{IMGDIR}/collapsed_no.gif" alt="" /></a></span>
  511. <h2>{lang forum_activeusers} ($onlinenum)</h2>
  512. </div>
  513. <div class="bm_c">
  514. <ul class="ml mls cl">
  515. <!--{loop $whosonline $key $online}-->
  516. <li>
  517. <a href="home.php?mod=space&uid=$online[uid]" class="avt"><!--{avatar($online[uid],small)}--></a>
  518. <!--{if $online['uid']}-->
  519. <p><a href="home.php?mod=space&uid=$online[uid]">$online[username]</a></p>
  520. <!--{else}-->
  521. <p>$online[username]</p>
  522. <!--{/if}-->
  523. <span>$online[lastactivity]{LF}</span>
  524. </li>
  525. <!--{/loop}-->
  526. </ul>
  527. </div>
  528. <!--{else}-->
  529. <div class="bm_h cl">
  530. <span class="o y"><a href="forum.php?mod=forumdisplay&fid=$_G[fid]&page=$page&showoldetails=yes#online" class="nobdr"><img src="{IMGDIR}/collapsed_yes.gif" alt="" /></a></span>
  531. <h2>{lang forum_activeusers} ($onlinenum)</h2>
  532. </div>
  533. <!--{/if}-->
  534. </div>
  535. <div class="clear"></div>
  536. <!--{/if}-->
  537. <!--{/if}-->
  538. <div class="drag">
  539. <!--[diy=diy2]--><div id="diy2" class="area"></div><!--[/diy]-->
  540. </div>
  541. <!--{/if}-->
  542. <div class="clear"></div>
  543. <div class="backfff mb10"><!--[diy=wk_bkad_diy2]--><div id="wk_bkad_diy2" class="area"><div id="framePB56zb" class=" frame move-span cl frame-1"><div id="framePB56zb_left" class="column frame-1-c"><div id="framePB56zb_left_temp" class="move-span temp"></div></div></div></div><!--[/diy]--></div>
  544. <div class="clear"></div>
  545. <div class="wk_kd260 padding15 backfff">
  546. <div class="wk_opkf">
  547. <span class="wk_spac">$forum_lang[14]</span>
  548. <div class="clear"></div>
  549. <div class="wk_topyb cl">
  550. <p class="wk_font1">$forum_lang[15]</p>
  551. <p class="wk_font2">$forum_lang[16]</p>
  552. </div>
  553. <ul class="cl">
  554. <li><a href="$forum_lang[18]" target="_blank" title="$forum_lang[17]"><i class="wk_ico1"></i>$forum_lang[17]</a></li>
  555. <li class="last"><a target="_blank" href="$forum_lang[20]" title="$forum_lang[19]"><i class="wk_ico2"></i>$forum_lang[19]</a></li>
  556. <li><a target="_blank" href="$forum_lang[22]" title="$forum_lang[21]"><i class="wk_ico3"></i>$forum_lang[21]</a></li>
  557. <li class="last"><a target="_blank" href="$forum_lang[24]" title="$forum_lang[23]"><i class="wk_ico3"></i>$forum_lang[23]</a></li>
  558. </ul>
  559. </div>
  560. </div>
  561. <div class="clear"></div>
  562. <div class="mb10"><!--[diy=wk_bkad_diy3]--><div id="wk_bkad_diy3" class="area"></div><!--[/diy]--></div>
  563. <div class="clear"></div>
  564. <!--{hook/forumdisplay_side_bottom}-->
  565. </div>
  566. </div>
  567. </div>
  568. <!--{if $_G['group']['allowpost'] && ($_G['group']['allowposttrade'] || $_G['group']['allowpostpoll'] || $_G['group']['allowpostreward'] || $_G['group']['allowpostactivity'] || $_G['group']['allowpostdebate'] || $_G['setting']['threadplugins'] || $_G['forum']['threadsorts'])}-->
  569. <ul class="p_pop" id="newspecial_menu" style="display: none">
  570. <!--{if !$_G['forum']['allowspecialonly']}--><li><a href="forum.php?mod=post&action=newthread&fid=$_G[fid]">{lang post_newthread}</a></li><!--{/if}-->
  571. <!--{if $_G['forum']['threadsorts'] && !$_G['forum']['allowspecialonly']}-->
  572. <!--{loop $_G['forum']['threadsorts']['types'] $id $threadsorts}-->
  573. <!--{if $_G['forum']['threadsorts']['show'][$id]}-->
  574. <li class="popupmenu_option"><a href="forum.php?mod=post&action=newthread&fid=$_G[fid]&extra=$extra&sortid=$id">$threadsorts</a></li>
  575. <!--{/if}-->
  576. <!--{/loop}-->
  577. <!--{/if}-->
  578. <!--{if $_G['group']['allowpostpoll']}--><li class="poll"><a href="forum.php?mod=post&action=newthread&fid=$_G[fid]&special=1">{lang post_newthreadpoll}</a></li><!--{/if}-->
  579. <!--{if $_G['group']['allowpostreward']}--><li class="reward"><a href="forum.php?mod=post&action=newthread&fid=$_G[fid]&special=3">{lang post_newthreadreward}</a></li><!--{/if}-->
  580. <!--{if $_G['group']['allowpostdebate']}--><li class="debate"><a href="forum.php?mod=post&action=newthread&fid=$_G[fid]&special=5">{lang post_newthreaddebate}</a></li><!--{/if}-->
  581. <!--{if $_G['group']['allowpostactivity']}--><li class="activity"><a href="forum.php?mod=post&action=newthread&fid=$_G[fid]&special=4">{lang post_newthreadactivity}</a></li><!--{/if}-->
  582. <!--{if $_G['group']['allowposttrade']}--><li class="trade"><a href="forum.php?mod=post&action=newthread&fid=$_G[fid]&special=2">{lang post_newthreadtrade}</a></li><!--{/if}-->
  583. <!--{if $_G['setting']['threadplugins']}-->
  584. <!--{loop $_G['forum']['threadplugin'] $tpid}-->
  585. <!--{if array_key_exists($tpid, $_G['setting']['threadplugins']) && @in_array($tpid, $_G['group']['allowthreadplugin'])}-->
  586. <li class="popupmenu_option"{if $_G['setting']['threadplugins'][$tpid][icon]} style="background-image:url(source/plugin/$tpid/$_G[setting][threadplugins][$tpid][icon])"{/if}><a href="forum.php?mod=post&action=newthread&fid=$_G[fid]&specialextra=$tpid">{$_G[setting][threadplugins][$tpid][name]}</a></li>
  587. <!--{/if}-->
  588. <!--{/loop}-->
  589. <!--{/if}-->
  590. </ul>
  591. <!--{/if}-->
  592. <!--{if $_G['setting']['visitedforums'] && $_G['forum']['status'] != 3}-->
  593. <div id="visitedforums_menu" class="p_pop blk cl" style="display: none;">
  594. <table cellspacing="0" cellpadding="0">
  595. <tr>
  596. <td id="v_forums">
  597. <h3 class="mbn pbn bbda xg1">{lang viewed_forums}</h3>
  598. <ul class="xl xl1">
  599. $_G['setting']['visitedforums']
  600. </ul>
  601. </td>
  602. </tr>
  603. </table>
  604. </div>
  605. <!--{/if}-->
  606. <!--{if $_G['setting']['threadmaxpages'] > 1 && $page && !$subforumonly}-->
  607. <script type="text/javascript">document.onkeyup = function(e){keyPageScroll(e, <!--{if $page > 1}-->1<!--{else}-->0<!--{/if}-->, <!--{if $page < $_G['setting']['threadmaxpages'] && $page < $_G['page_next']}-->1<!--{else}-->0<!--{/if}-->, 'forum.php?mod=forumdisplay&fid={$_G[fid]}&filter={$filter}&orderby={$_GET[orderby]}{$forumdisplayadd[page]}&{$multipage_archive}', $page);}</script>
  608. <!--{/if}-->
  609. <!--{if empty($_G['forum']['picstyle']) && $_GET['orderby'] == 'lastpost' && empty($_GET['filter']) }-->
  610. <script type="text/javascript">checkForumnew_handle = setTimeout(function () {checkForumnew($_G[fid], lasttime);}, checkForumtimeout);</script>
  611. <!--{/if}-->
  612. <div class="wp mtn">
  613. <!--[diy=diy3]--><div id="diy3" class="area"></div><!--[/diy]-->
  614. </div>
  615. <!--{if empty($_G['setting']['disfixednv_forumdisplay']) }--><script>fixed_top_nv();</script><!--{/if}-->
  616. <!--{template common/footer}-->