forumdisplay_list.php 34 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508
  1. <?php echo '周末设计商业模板保护!请购买正版模板, 客服QQ: 125422921 , http://www.wfdsoft.com/ ';exit;?>
  2. <div id="threadlist" class="tl bm bmw wk_threadlist"{if $_G['uid']} style="position:relative;"{/if}>
  3. <!--{if $quicksearchlist && !$_GET['archiveid']}-->
  4. <!--{subtemplate forum/search_sortoption}-->
  5. <!--{/if}-->
  6. <!--{if (!$simplestyle || !$_G['forum']['allowside'] && $page == 1) && !empty($announcement)}-->
  7. <div class="wk_gjhk">
  8. <div class="wk_ggxx">
  9. <span class="wk_yhg">{lang announcement}&nbsp;: </span><span><!--{if empty($announcement['type'])}--><a href="forum.php?mod=announcement&id=$announcement[id]#$announcement[id]" target="_blank" title="{lang announcement} : $announcement[subject]">" $announcement[subject] "</a><!--{else}--><a href="$announcement[message]" target="_blank" title="{lang announcement} : $announcement[subject]">" $announcement[subject] "</a><!--{/if}--></span><span class="wk_fs12">$forum_lang[1] : $announcement[starttime]</span>
  10. </div>
  11. </div>
  12. <!--{/if}-->
  13. <div class="th week_box">
  14. <div class="y">
  15. <a href="forum.php?mod=forumdisplay&fid=$_G[fid]&filter=lastpost&orderby=lastpost$forumdisplayadd[lastpost]{if $_GET['archiveid']}&archiveid={$_GET['archiveid']}{/if}" class="{if $_GET['filter'] == 'lastpost'} xw1{/if}">{lang latest}</a>&nbsp;
  16. <span class="pipe">|</span>
  17. <a href="forum.php?mod=forumdisplay&fid=$_G[fid]&filter=hot" class="{if $_GET['filter'] == 'hot'} xw1{/if}">{lang hot_thread}</a>&nbsp;
  18. <span class="pipe">|</span>
  19. <a href="forum.php?mod=forumdisplay&fid=$_G[fid]&filter=digest&digest=1$forumdisplayadd[digest]{if $_GET['archiveid']}&archiveid={$_GET['archiveid']}{/if}" class="{if $_GET['filter'] == 'digest'} xw1{/if}">{lang digest_posts}</a>&nbsp;
  20. <span class="pipe">|</span>
  21. <span id="atarget" {if $_G['cookie']['atarget'] > 0}onclick="setatarget(-1)" class="atarget_1"{else}onclick="setatarget(1)"{/if} title="{lang new_window_thread}">{lang new_window}</span>
  22. <!--{if $_G['forum']['picstyle']}-->
  23. <span class="pipe"></span>
  24. <a{if empty($_G['cookie']['forumdefstyle'])} href="forum.php?mod=forumdisplay&fid=$_G[fid]&forumdefstyle=yes" class="chked"{else} href="forum.php?mod=forumdisplay&fid=$_G[fid]&forumdefstyle=no" class="unchk"{/if} title="{lang view_thread_imagemode}{lang view_thread}">{lang view_thread_imagemode}</a>
  25. <!--{/if}-->
  26. </div>
  27. <div class="z">
  28. $forum_lang[2] :
  29. <span class="wk_showmenu">
  30. <a id="filter_special" href="javascript:;" class="showmenu {if $_GET['specialtype']} xw1{/if}" onclick="showMenu(this.id)">
  31. <!--{if $_GET['specialtype'] == 'poll'}-->
  32. {lang thread_poll}
  33. <!--{elseif $_GET['specialtype'] == 'trade'}-->
  34. {lang thread_trade}
  35. <!--{elseif $_GET['specialtype'] == 'reward'}-->
  36. {lang thread_reward}
  37. <!--{elseif $_GET['specialtype'] == 'activity'}-->
  38. {lang thread_activity}
  39. <!--{elseif $_GET['specialtype'] == 'debate'}-->
  40. {lang thread_debate}
  41. <!--{else}-->
  42. {lang threads_all}
  43. <!--{/if}-->
  44. </a>
  45. </span>
  46. <span class="wk_showmenu">
  47. <a id="filter_dateline" href="javascript:;" class="showmenu {if $_GET['specialtype']} xw1{/if}" onclick="showMenu(this.id)">
  48. <!--{if !$_GET['dateline']}-->
  49. {lang all}{lang search_any_date}
  50. <!--{elseif $_GET['dateline'] == '86400'}-->
  51. {lang last_1_days}
  52. <!--{elseif $_GET['dateline'] == '172800'}-->
  53. {lang last_2_days}
  54. <!--{elseif $_GET['dateline'] == '604800'}-->
  55. {lang list_one_week}
  56. <!--{elseif $_GET['dateline'] == '2592000'}-->
  57. {lang list_one_month}
  58. <!--{elseif $_GET['dateline'] == '7948800'}-->
  59. {lang list_three_month}
  60. <!--{else}-->
  61. {lang all}{lang search_any_date}
  62. <!--{/if}-->
  63. </a>
  64. </span>
  65. {lang orderby} :
  66. <span class="wk_showmenu">
  67. <a id="filter_orderby" href="javascript:;" class="showmenu {if $_GET['specialtype']} xw1{/if}" onclick="showMenu(this.id)">
  68. <!--{if $_GET['orderby'] == 'dateline'}-->
  69. {lang list_post_time}
  70. <!--{elseif $_GET['orderby'] == 'replies'}-->
  71. {lang replies}
  72. <!--{elseif $_GET['orderby'] == 'views'}-->
  73. {lang views}
  74. <!--{elseif $_GET['orderby'] == 'lastpost'}-->
  75. {lang lastpost}
  76. <!--{elseif $_GET['orderby'] == 'heats'}-->
  77. {lang order_heats}
  78. <!--{else}-->
  79. {lang list_default_sort}
  80. <!--{/if}-->
  81. </a>
  82. </span>
  83. </div>
  84. </div>
  85. <div class="bm_c">
  86. <!--{if empty($_G['forum']['picstyle']) || $_G['cookie']['forumdefstyle']}-->
  87. <script type="text/javascript">var lasttime = $_G['timestamp'];var listcolspan= '{if !$_GET['archiveid'] && $_G['forum']['ismoderator']}6{else}5{/if}';</script>
  88. <!--{/if}-->
  89. <div id="forumnew" style="display:none"></div>
  90. <form method="post" autocomplete="off" name="moderate" id="moderate" action="forum.php?mod=topicadmin&action=moderate&fid=$_G[fid]&infloat=yes&nopost=yes">
  91. <input type="hidden" name="formhash" value="{FORMHASH}" />
  92. <input type="hidden" name="listextra" value="$extra" />
  93. <table summary="forum_$_G[fid]" cellspacing="0" cellpadding="0" id="threadlisttableid">
  94. <!--{if !$separatepos || !$_G['setting']['forumseparator']}-->
  95. <tbody id="separatorline" class="emptb"><tr><td class="icon">&nbsp;</td><td class="icn"></td><!--{if !$_GET['archiveid'] && $_G['forum']['ismoderator']}--><td class="o"></td><!--{/if}--><th></th><!--{if CURMODULE == 'guide'}--><td class="by"></td><!--{/if}--><td class="by"></td><td class="num"></td><td class="by"></td></tr></tbody>
  96. <!--{/if}-->
  97. <!--{if $_G['forum_threadcount']}-->
  98. <!--{if empty($_G['forum']['picstyle']) || $_G['cookie']['forumdefstyle']}-->
  99. <!--{loop $_G['forum_threadlist'] $key $thread}-->
  100. <!--{if $_G[setting][forumseparator] == 1 && $separatepos == $key + 1}-->
  101. <tbody id="separatorline">
  102. <tr class="ts">
  103. <td class="icon" style="border-left:1px #F0F0F0 solid;">&nbsp;</td><td>&nbsp;</td>
  104. <!--{if $_G['forum']['ismoderator'] && !$_GET['archiveid']}--><td>&nbsp;</td><!--{/if}-->
  105. <th><!--{if empty($_G['forum']['picstyle']) && $_GET['orderby'] == 'lastpost' && !$_GET['filter']}--><a href="javascript:;" onclick="checkForumnew_btn('{$_G['fid']}')" title="{lang showupgrade}" class="forumrefresh">{lang forum_thread}</a><!--{else}-->&nbsp;<!--{/if}--></th><td>&nbsp;</td><td>&nbsp;</td><td style=" border-right:1px #F0F0F0 solid;">&nbsp;</td>
  106. </tr>
  107. </tbody>
  108. <script type="text/javascript">hideStickThread();</script>
  109. <!--{/if}-->
  110. <!--{if $separatepos <= $key + 1}-->
  111. <!--{ad/threadlist}-->
  112. <!--{/if}-->
  113. <tbody id="$thread[id]"{if $_G['hiddenexists'] && $thread['hidden']} style='display:none'{/if}>
  114. <tr {eval $i++;} {if ($i % 2 === 0)} {eval $i=0;} class="list_bg2"{/if}>
  115. <td class="icon">
  116. <a href="home.php?mod=space&uid=$thread[authorid]" class="w_uid" c="1"><!--{avatar($thread[authorid],small)}--></a>
  117. </td>
  118. <td class="icn">
  119. <a href="forum.php?mod=viewthread&tid=$thread[icontid]&{if $_GET['archiveid']}archiveid={$_GET['archiveid']}&{/if}extra=$extra" title="{if $thread['displayorder'] == 1}{lang thread_type1} - {/if}
  120. {if $thread['displayorder'] == 2}{lang thread_type2} - {/if}
  121. {if $thread['displayorder'] == 3}{lang thread_type3} - {/if}
  122. {if $thread['displayorder'] == 4}{lang thread_type4} - {/if}
  123. {if $thread[folder] == 'lock'}{lang closed_thread} - {/if}
  124. {if $thread['special'] == 1}{lang thread_poll} - {/if}
  125. {if $thread['special'] == 2}{lang thread_trade} - {/if}
  126. {if $thread['special'] == 3}{lang thread_reward} - {/if}
  127. {if $thread['special'] == 4}{lang thread_activity} - {/if}
  128. {if $thread['special'] == 5}{lang thread_debate} - {/if}
  129. {if $thread[folder] == "new"}{lang have_newreplies} - {/if}
  130. {lang target_blank}" target="_blank">
  131. <!--{if $thread[folder] == 'lock'}-->
  132. <img src="{IMGDIR}/folder_lock.gif" />
  133. <!--{elseif $thread['special'] == 1}-->
  134. <img src="{IMGDIR}/pollsmall.gif" alt="{lang thread_poll}" />
  135. <!--{elseif $thread['special'] == 2}-->
  136. <img src="{IMGDIR}/tradesmall.gif" alt="{lang thread_trade}" />
  137. <!--{elseif $thread['special'] == 3}-->
  138. <img src="{IMGDIR}/rewardsmall.gif" alt="{lang thread_reward}" />
  139. <!--{elseif $thread['special'] == 4}-->
  140. <img src="{IMGDIR}/activitysmall.gif" alt="{lang thread_activity}" />
  141. <!--{elseif $thread['special'] == 5}-->
  142. <img src="{IMGDIR}/debatesmall.gif" alt="{lang thread_debate}" />
  143. <!--{elseif in_array($thread['displayorder'], array(1, 2, 3, 4))}-->
  144. <img src="{IMGDIR}/pin_$thread[displayorder].gif" alt="$_G[setting][threadsticky][3-$thread[displayorder]]" />
  145. <!--{else}-->
  146. <img src="{IMGDIR}/folder_$thread[folder].gif" />
  147. <!--{/if}-->
  148. </a>
  149. </td>
  150. <!--{if !$_GET['archiveid'] && $_G['forum']['ismoderator']}-->
  151. <td class="o">
  152. <!--{if $thread['fid'] == $_G[fid]}-->
  153. <!--{if $thread['displayorder'] <= 3 || $_G['adminid'] == 1}-->
  154. <input onclick="tmodclick(this)" type="checkbox" name="moderate[]" value="$thread[tid]" />
  155. <!--{else}-->
  156. <input type="checkbox" disabled="disabled" />
  157. <!--{/if}-->
  158. <!--{else}-->
  159. <input type="checkbox" disabled="disabled" />
  160. <!--{/if}-->
  161. </td>
  162. <!--{/if}-->
  163. <th class="$thread[folder]">
  164. <!--{if CURMODULE == 'guide'}-->
  165. <span><a href="forum.php?mod=forumdisplay&fid=$thread[fid]" target="_blank">$forumnames[$thread[fid]]['name']</a></span>
  166. <!--{/if}-->
  167. <a href="javascript:;" id="content_$thread[tid]" class="showcontent y" title="{lang content_actions}" onclick="CONTENT_TID='$thread[tid]';CONTENT_ID='$thread[id]';showMenu({'ctrlid':this.id,'menuid':'content_menu'})"></a>
  168. <!--{if in_array($thread['displayorder'], array(1, 2, 3, 4))}-->
  169. <a href="javascript:void(0);" onclick="hideStickThread('$thread[tid]')" class="showhide y" title="{lang hidedisplayorder}">{lang hidedisplayorder}</a></em>
  170. <!--{/if}-->
  171. <!--{if !$thread['forumstick'] && $thread['closed'] > 1 && ($thread['isgroup'] == 1 || $thread['fid'] != $_G['fid'])}-->
  172. <!--{eval $thread[tid]=$thread[closed];}-->
  173. <!--{/if}-->
  174. <!--{if !$_G['setting']['forumdisplaythreadpreview'] && !($thread['readperm'] && $thread['readperm'] > $_G['group']['readaccess'] && !$_G['forum']['ismoderator'] && $thread['authorid'] != $_G['uid'])}-->
  175. <!--{if !(!empty($_G['setting']['antitheft']['allow']) && empty($_G['setting']['antitheft']['disable']['thread']) && empty($_G['forum']['noantitheft']))}-->
  176. <a class="tdpre y" href="javascript:void(0);" onclick="previewThread('{echo $thread['moved'] ? $thread[closed] : $thread[tid]}', '$thread[id]');">{lang preview}</a>
  177. <!--{/if}-->
  178. <!--{/if}-->
  179. <!--{hook/forumdisplay_thread $key}-->
  180. $thread[typehtml] $thread[sorthtml]
  181. <!--{if $thread['moved']}-->
  182. {lang thread_moved}:<!--{eval $thread[tid]=$thread[closed];}-->
  183. <!--{/if}-->
  184. <a href="forum.php?mod=viewthread&tid=$thread[tid]&{if $_GET['archiveid']}archiveid={$_GET['archiveid']}&{/if}extra=$extra"$thread[highlight]{if $thread['isgroup'] == 1 || $thread['forumstick']} target="_blank"{else} onclick="atarget(this)"{/if} class="s xst">$thread[subject]</a>
  185. <!--{if $_G['setting']['threadhidethreshold'] && $thread['hidden'] >= $_G['setting']['threadhidethreshold']}--><span class="xg1">{lang hidden}</span>&nbsp;<!--{/if}-->
  186. <!--{if $thread[icon] >= 0}-->
  187. <img src="{STATICURL}image/stamp/{$_G[cache][stamps][$thread[icon]][url]}" alt="{$_G[cache][stamps][$thread[icon]][text]}" align="absmiddle" />
  188. <!--{/if}-->
  189. <!--{if $thread['rushreply']}-->
  190. <img src="{IMGDIR}/rushreply_s.png" alt="{lang rushreply}" align="absmiddle" />
  191. <!--{if $rushinfo[$thread[tid]]}-->
  192. <span id="rushtimer_$thread[tid]"> {lang havemore_special} <span id="rushtimer_body_$thread[tid]"></span> <script language="javascript">settimer($rushinfo[$thread[tid]]['timer'], 'rushtimer_body_$thread[tid]');</script>{if $rushinfo[$thread[tid]]['timertype'] == 'start'} {lang header_start} {else} {lang over} {/if} {lang right_special}</span>
  193. <!--{/if}-->
  194. <!--{/if}-->
  195. <!--{if $stemplate && $sortid}-->$stemplate[$sortid][$thread[tid]]<!--{/if}-->
  196. <!--{if $thread['readperm']}--> - [{lang readperm} <span class="xw1">$thread[readperm]</span>]<!--{/if}-->
  197. <!--{if $thread['price'] > 0}-->
  198. <!--{if $thread['special'] == '3'}-->
  199. - <a href="forum.php?mod=forumdisplay&fid=$_G[fid]&filter=specialtype&specialtype=reward$forumdisplayadd[specialtype]{if $_GET['archiveid']}&archiveid={$_GET['archiveid']}{/if}&rewardtype=1" title="{lang show_rewarding_only}"><span class="xi1">[{lang thread_reward} <span class="xw1">$thread[price]</span> {$_G[setting][extcredits][$_G['setting']['creditstransextra'][2]][unit]}{$_G[setting][extcredits][$_G['setting']['creditstransextra'][2]][title]}]</span></a>
  200. <!--{else}-->
  201. - [{lang price} <span class="xw1">$thread[price]</span> {$_G[setting][extcredits][$_G['setting']['creditstransextra'][1]][unit]}{$_G[setting][extcredits][$_G['setting']['creditstransextra'][1]][title]}]
  202. <!--{/if}-->
  203. <!--{elseif $thread['special'] == '3' && $thread['price'] < 0}-->
  204. - <a href="forum.php?mod=forumdisplay&fid=$_G[fid]&filter=specialtype&specialtype=reward$forumdisplayadd[specialtype]{if $_GET['archiveid']}&archiveid={$_GET['archiveid']}{/if}&rewardtype=2" title="{lang show_rewarded_only}">[{lang reward_solved}]</a>
  205. <!--{/if}-->
  206. <!--{if $thread['attachment'] == 2}-->
  207. <img src="{STATICURL}image/filetype/image_s.gif" alt="attach_img" title="{lang attach_img}" align="absmiddle" />
  208. <!--{elseif $thread['attachment'] == 1}-->
  209. <img src="{STATICURL}image/filetype/common.gif" alt="attachment" title="{lang attachment}" align="absmiddle" />
  210. <!--{/if}-->
  211. <!--{if $thread['mobile']}-->
  212. <img src="{IMGDIR}/mobile-attach-$thread['mobile'].png" alt="{lang post_mobile}" align="absmiddle" />
  213. <!--{/if}-->
  214. <!--{if $thread['digest'] > 0 && $filter != 'digest'}-->
  215. <img src="{IMGDIR}/digest_$thread[digest].gif" align="absmiddle" alt="digest" title="{lang thread_digest} $thread[digest]" />
  216. <!--{/if}-->
  217. <!--{if $thread['displayorder'] == 0}-->
  218. <!--{if $thread[recommendicon] && $filter != 'recommend'}-->
  219. <img src="{IMGDIR}/recommend_$thread[recommendicon].gif" align="absmiddle" alt="recommend" title="{lang thread_recommend} $thread[recommends]" />
  220. <!--{/if}-->
  221. <!--{if $thread[heatlevel]}-->
  222. <img src="{IMGDIR}/hot_$thread[heatlevel].gif" align="absmiddle" alt="heatlevel" title="{lang heats}: {$thread[heats]}" />
  223. <!--{/if}-->
  224. <!--{if $thread['rate'] > 0}-->
  225. <img src="{IMGDIR}/agree.gif" align="absmiddle" alt="agree" title="{lang rate_credit_add}" />
  226. <!--{elseif $thread['rate'] < 0}-->
  227. <img src="{IMGDIR}/disagree.gif" align="absmiddle" alt="disagree" title="{lang posts_deducted}" />
  228. <!--{/if}-->
  229. <!--{/if}-->
  230. <!--{if $thread['replycredit'] > 0}-->
  231. - <span class="xi1">[{lang replycredit} <strong> $thread['replycredit']</strong> ]</span>
  232. <!--{/if}-->
  233. <!--{hook/forumdisplay_thread_subject $key}-->
  234. <!--{if $thread[multipage]}-->
  235. <span class="tps">$thread[multipage]</span>
  236. <!--{/if}-->
  237. <!--{if $thread['weeknew']}-->
  238. <a href="forum.php?mod=redirect&tid=$thread[tid]&goto=lastpost#lastpost" class="xi1">New</a>
  239. <!--{/if}-->
  240. <!--{if !$thread['forumstick'] && ($thread['isgroup'] == 1 || $thread['fid'] != $_G['fid'])}-->
  241. <!--{if $thread['related_group'] == 0 && $thread['closed'] > 1}-->
  242. <!--{eval $thread[tid]=$thread[closed];}-->
  243. <!--{/if}-->
  244. <!--{if $groupnames[$thread[tid]]}-->
  245. <span class="fromg xg1"> [{lang from}: <a href="forum.php?mod=group&fid={$groupnames[$thread[tid]][fid]}" target="_blank" class="xg1">{$groupnames[$thread[tid]][name]}</a>]</span>
  246. <!--{/if}-->
  247. <!--{/if}-->
  248. <div class="clear"></div>
  249. <div class="wk_tzlb_yh">
  250. <span>
  251. <!--{hook/forumdisplay_author $key}-->
  252. {lang author} :
  253. <!--{if $thread['authorid'] && $thread['author']}-->
  254. <a href="home.php?mod=space&uid=$thread[authorid]" c="1"{if $groupcolor[$thread[authorid]]} style="color:$groupcolor[$thread[authorid]];"{/if}>$thread[author]</a><!--{if !empty($verify[$thread['authorid']])}--> $verify[$thread[authorid]]<!--{/if}-->
  255. <!--{else}-->
  256. $_G[setting][anonymoustext]
  257. <!--{/if}-->
  258. <span class="pipe"></span>
  259. <span{if $thread['istoday']} class="xi1"{/if}>$thread[dateline]</span>
  260. </span>
  261. <span class="pipe">|</span>
  262. <span>
  263. {lang lastpost} :
  264. <!--{if $thread['lastposter']}--><a href="{if $thread[digest] != -2}home.php?mod=space&username=$thread[lastposterenc]{else}forum.php?mod=viewthread&tid=$thread[tid]&page={echo max(1, $thread[pages]);}{/if}" c="1">$thread[lastposter]</a><!--{else}-->$_G[setting][anonymoustext]<!--{/if}-->
  265. <span class="pipe"></span>
  266. <a href="{if $thread[digest] != -2 && !$thread[ordertype]}forum.php?mod=redirect&tid=$thread[tid]&goto=lastpost$highlight#lastpost{else}forum.php?mod=viewthread&tid=$thread[tid]{if !$thread[ordertype]}&page={echo max(1, $thread[pages]);}{/if}{/if}">$thread[lastpost]</a></span>
  267. </div>
  268. </th>
  269. <td class="by">
  270. <span class="ico_reply"><a href="forum.php?mod=viewthread&tid=$thread[tid]&extra=$extra"><!--{if $thread[allreplies]}-->$thread[allreplies]<!--{else}-->0<!--{/if}--></a></span>
  271. </td>
  272. <td class="num"></td>
  273. <td class="by">
  274. <span class="ico_see"><!--{if $thread['isgroup'] != 1}-->$thread[views]<!--{else}-->{$groupnames[$thread[tid]][views]}<!--{/if}--></span>
  275. </td>
  276. </tr>
  277. </tbody>
  278. <!--{/loop}-->
  279. </table><!-- end of table "forum_G[fid]" branch 1/3 -->
  280. <!--{if $_G['hiddenexists']}-->
  281. <div id="hiddenthread"{if $thread['hidden']} class="last"{/if}><a href="javascript:;" onclick="display_blocked_thread()">{lang other_reply_hide}</a></div>
  282. <!--{/if}-->
  283. <!--{else}-->
  284. </table><!-- end of table "forum_G[fid]" branch 2/3 -->
  285. <ul id="waterfall" class="ml waterfall cl">
  286. <!--{loop $_G['forum_threadlist'] $key $thread}-->
  287. <!--{if $_G['hiddenexists'] && $thread['hidden']}-->
  288. <!--{eval continue;}-->
  289. <!--{/if}-->
  290. <!--{if !$thread['forumstick'] && ($thread['isgroup'] == 1 || $thread['fid'] != $_G['fid'])}-->
  291. <!--{if $thread['related_group'] == 0 && $thread['closed'] > 1}-->
  292. <!--{eval $thread[tid]=$thread[closed];}-->
  293. <!--{/if}-->
  294. <!--{/if}-->
  295. <!--{eval $waterfallwidth = $_G[setting][forumpicstyle][thumbwidth] + 14; }-->
  296. <li style="width:{$waterfallwidth}px">
  297. <!--{if !$_GET['archiveid'] && $_G['forum']['ismoderator']}-->
  298. <div style="position:absolute;margin:1px;padding:2px;background:#FFF">
  299. <!--{if $thread['fid'] == $_G[fid]}-->
  300. <!--{if $thread['displayorder'] <= 3 || $_G['adminid'] == 1}-->
  301. <input onclick="tmodclick(this)" type="checkbox" name="moderate[]" value="$thread[tid]" />
  302. <!--{else}-->
  303. <input type="checkbox" disabled="disabled" />
  304. <!--{/if}-->
  305. <!--{else}-->
  306. <input type="checkbox" disabled="disabled" />
  307. <!--{/if}-->
  308. </div>
  309. <!--{/if}-->
  310. <div class="c cl">
  311. <a href="forum.php?mod=viewthread&tid=$thread[tid]&{if $_GET['archiveid']}archiveid={$_GET['archiveid']}&{/if}extra=$extra" {if $thread['isgroup'] == 1 || $thread['forumstick'] || CURMODULE == 'guide'} target="_blank"{else} onclick="atarget(this)"{/if} title="$thread[subject]" class="z">
  312. <!--{if $thread['cover']}-->
  313. <img src="$thread[coverpath]" alt="$thread[subject]" width="{$_G[setting][forumpicstyle][thumbwidth]}" />
  314. <!--{else}-->
  315. <span class="nopic" style="width:{$_G[setting][forumpicstyle][thumbwidth]}px; height:{$_G[setting][forumpicstyle][thumbwidth]}px;"></span>
  316. <!--{/if}-->
  317. </a>
  318. </div>
  319. <h3 class="xw0">
  320. <!--{hook/forumdisplay_thread $key}-->
  321. <a href="forum.php?mod=viewthread&tid=$thread[tid]&{if $_GET['archiveid']}archiveid={$_GET['archiveid']}&{/if}extra=$extra"$thread[highlight]{if $thread['isgroup'] == 1 || $thread['forumstick']} target="_blank"{else} onclick="atarget(this)"{/if} title="$thread[subject]">$thread[subject]</a>
  322. </h3>
  323. <div class="auth cl">
  324. <cite class="xg1 y">
  325. {lang like}: <!--{if $thread[recommends]}-->$thread[recommends]<!--{else}-->0<!--{/if}-->
  326. &nbsp; {lang reply}: <a href="forum.php?mod=viewthread&tid=$thread[tid]&extra=$extra" title="$thread[replies] {lang reply}">$thread[replies]</a>
  327. </cite>
  328. <!--{hook/forumdisplay_author $key}-->
  329. <!--{if $thread['authorid'] && $thread['author']}-->
  330. <a href="home.php?mod=space&uid=$thread[authorid]">$thread[author]</a><!--{if !empty($verify[$thread['authorid']])}--> $verify[$thread[authorid]]<!--{/if}-->
  331. <!--{else}-->
  332. $_G[setting][anonymoustext]
  333. <!--{/if}-->
  334. </div>
  335. </li>
  336. <!--{/loop}-->
  337. </ul>
  338. <div id="tmppic" style="display: none;"></div>
  339. <script type="text/javascript" src="{$_G[setting][jspath]}redef.js?{VERHASH}"></script>
  340. <script type="text/javascript" reload="1">
  341. var wf = {};
  342. _attachEvent(window, "load", function () {
  343. if($("waterfall")) {
  344. wf = waterfall();
  345. }
  346. <!--{if $page < $_G['page_next'] && !$subforumonly}-->
  347. var page = $page + 1,
  348. maxpage = Math.min($page + 10,$maxpage + 1),
  349. stopload = 0,
  350. scrolltimer = null,
  351. tmpelems = [],
  352. tmpimgs = [],
  353. markloaded = [],
  354. imgsloaded = 0,
  355. loadready = 0,
  356. showready = 1,
  357. nxtpgurl = 'forum.php?mod=forumdisplay&fid={$_G[fid]}&filter={$filter}&orderby={$_GET[orderby]}{$forumdisplayadd[page]}&page=',
  358. wfloading = "<img src=\"{IMGDIR}/loading.gif\" alt=\"\" width=\"16\" height=\"16\" class=\"vm\" /> {lang onloading}...",
  359. pgbtn = $("pgbtn").getElementsByTagName("a")[0];
  360. function loadmore() {
  361. var url = nxtpgurl + page + '&t=' + parseInt((+new Date()/1000)/(Math.random()*1000));
  362. var x = new Ajax("HTML");
  363. x.get(url, function (s) {
  364. s = s.replace(/\n|\r/g, "");
  365. if(s.indexOf("id=\"pgbtn\"") == -1) {
  366. $("pgbtn").style.display = "none";
  367. stopload++;
  368. window.onscroll = null;
  369. }
  370. s = s.substring(s.indexOf("<ul id=\"waterfall\""), s.indexOf("<div id=\"tmppic\""));
  371. s = s.replace("id=\"waterfall\"", "");
  372. $("tmppic").innerHTML = s;
  373. loadready = 1;
  374. });
  375. }
  376. window.onscroll = function () {
  377. if(scrolltimer == null) {
  378. scrolltimer = setTimeout(function () {
  379. try {
  380. if(page < maxpage && stopload < 2 && showready && ((document.documentElement.scrollTop || document.body.scrollTop) + document.documentElement.clientHeight + 500) >= document.documentElement.scrollHeight) {
  381. pgbtn.innerHTML = wfloading;
  382. loadready = 0;
  383. showready = 0;
  384. loadmore();
  385. tmpelems = $("tmppic").getElementsByTagName("li");
  386. var waitingtimer = setInterval(function () {
  387. stopload >= 2 && clearInterval(waitingtimer);
  388. if(loadready && stopload < 2) {
  389. if(!tmpelems.length) {
  390. page++;
  391. pgbtn.href = nxtpgurl + Math.min(page, $maxpage);
  392. pgbtn.innerHTML = "{lang next_page_extra}";
  393. showready = 1;
  394. clearInterval(waitingtimer);
  395. }
  396. for(var i = 0, j = tmpelems.length; i < j; i++) {
  397. if(tmpelems[i]) {
  398. tmpimgs = tmpelems[i].getElementsByTagName("img");
  399. imgsloaded = 0;
  400. for(var m = 0, n = tmpimgs.length; m < n; m++) {
  401. tmpimgs[m].onerror = function () {
  402. this.style.display = "none";
  403. };
  404. markloaded[m] = tmpimgs[m].complete ? 1 : 0;
  405. imgsloaded += markloaded[m];
  406. }
  407. if(imgsloaded == tmpimgs.length) {
  408. $("waterfall").appendChild(tmpelems[i]);
  409. wf = waterfall({
  410. "index": wf.index,
  411. "totalwidth": wf.totalwidth,
  412. "totalheight": wf.totalheight,
  413. "columnsheight": wf.columnsheight
  414. });
  415. }
  416. }
  417. }
  418. }
  419. }, 40);
  420. }
  421. } catch(e) {}
  422. scrolltimer = null;
  423. }, 320);
  424. }
  425. };
  426. <!--{/if}-->
  427. });
  428. </script>
  429. <!--{/if}-->
  430. <!--{else}-->
  431. <tbody class="bw0_all"><tr><th colspan="{if !$_GET['archiveid'] && $_G['forum']['ismoderator']}6{else}5{/if}"><p class="emp">{lang forum_nothreads}</p></th></tr></tbody>
  432. </table><!-- end of table "forum_G[fid]" branch 3/3 -->
  433. <!--{/if}-->
  434. <!--{if $_G['forum']['ismoderator'] && $_G['forum_threadcount']}-->
  435. <!--{template forum/topicadmin_modlayer}-->
  436. <!--{/if}-->
  437. </form>
  438. </div>
  439. <!--{hook/forumdisplay_threadlist_bottom}-->
  440. </div>
  441. <!--{if !IS_ROBOT}-->
  442. <div id="filter_special_menu" class="p_pop wk_sub" style="display:none" change="location.href='forum.php?mod=forumdisplay&fid=$_G[fid]&filter='+$('filter_special').value">
  443. <ul>
  444. <li><a href="forum.php?mod=forumdisplay&fid=$_G[fid]{if $_GET['archiveid']}&archiveid={$_GET['archiveid']}{/if}">{lang all}{lang forum_threads}</a></li>
  445. <!--{if $showpoll}--><li><a href="forum.php?mod=forumdisplay&fid=$_G[fid]&filter=specialtype&specialtype=poll$forumdisplayadd[specialtype]{if $_GET['archiveid']}&archiveid={$_GET['archiveid']}{/if}">{lang thread_poll}</a></li><!--{/if}-->
  446. <!--{if $showtrade}--><li><a href="forum.php?mod=forumdisplay&fid=$_G[fid]&filter=specialtype&specialtype=trade$forumdisplayadd[specialtype]{if $_GET['archiveid']}&archiveid={$_GET['archiveid']}{/if}">{lang thread_trade}</a></li><!--{/if}-->
  447. <!--{if $showreward}--><li><a href="forum.php?mod=forumdisplay&fid=$_G[fid]&filter=specialtype&specialtype=reward$forumdisplayadd[specialtype]{if $_GET['archiveid']}&archiveid={$_GET['archiveid']}{/if}">{lang thread_reward}</a></li><!--{/if}-->
  448. <!--{if $showactivity}--><li><a href="forum.php?mod=forumdisplay&fid=$_G[fid]&filter=specialtype&specialtype=activity$forumdisplayadd[specialtype]{if $_GET['archiveid']}&archiveid={$_GET['archiveid']}{/if}">{lang thread_activity}</a></li><!--{/if}-->
  449. <!--{if $showdebate}--><li><a href="forum.php?mod=forumdisplay&fid=$_G[fid]&filter=specialtype&specialtype=debate$forumdisplayadd[specialtype]{if $_GET['archiveid']}&archiveid={$_GET['archiveid']}{/if}">{lang thread_debate}</a></li><!--{/if}-->
  450. </ul>
  451. </div>
  452. <div id="filter_reward_menu" class="p_pop wk_sub" style="display:none" change="forum.php?mod=forumdisplay&fid=$_G[fid]&filter=specialtype&specialtype=reward$forumdisplayadd[specialtype]{if $_GET['archiveid']}&archiveid={$_GET['archiveid']}{/if}&rewardtype='+$('filter_reward').value">
  453. <ul>
  454. <li><a href="forum.php?mod=forumdisplay&fid=$_G[fid]&filter=specialtype&specialtype=reward$forumdisplayadd[specialtype]{if $_GET['archiveid']}&archiveid={$_GET['archiveid']}{/if}">{lang all_reward}</a></li>
  455. <!--{if $showpoll}--><li><a href="forum.php?mod=forumdisplay&fid=$_G[fid]&filter=specialtype&specialtype=reward$forumdisplayadd[specialtype]{if $_GET['archiveid']}&archiveid={$_GET['archiveid']}{/if}&rewardtype=1">{lang rewarding}</a></li><!--{/if}-->
  456. <!--{if $showtrade}--><li><a href="forum.php?mod=forumdisplay&fid=$_G[fid]&filter=specialtype&specialtype=reward$forumdisplayadd[specialtype]{if $_GET['archiveid']}&archiveid={$_GET['archiveid']}{/if}&rewardtype=2">{lang reward_solved}</a></li><!--{/if}-->
  457. </ul>
  458. </div>
  459. <div id="filter_dateline_menu" class="p_pop wk_sub" style="display:none">
  460. <ul>
  461. <li><a href="forum.php?mod=forumdisplay&fid=$_G[fid]&orderby={$_GET['orderby']}&filter=dateline$forumdisplayadd[dateline]{if $_GET['archiveid']}&archiveid={$_GET['archiveid']}{/if}">{lang all}{lang search_any_date}</a></li>
  462. <li><a href="forum.php?mod=forumdisplay&fid=$_G[fid]&orderby={$_GET['orderby']}&filter=dateline&dateline=86400$forumdisplayadd[dateline]{if $_GET['archiveid']}&archiveid={$_GET['archiveid']}{/if}">{lang last_1_days}</a></li>
  463. <li><a href="forum.php?mod=forumdisplay&fid=$_G[fid]&orderby={$_GET['orderby']}&filter=dateline&dateline=172800$forumdisplayadd[dateline]{if $_GET['archiveid']}&archiveid={$_GET['archiveid']}{/if}">{lang last_2_days}</a></li>
  464. <li><a href="forum.php?mod=forumdisplay&fid=$_G[fid]&orderby={$_GET['orderby']}&filter=dateline&dateline=604800$forumdisplayadd[dateline]{if $_GET['archiveid']}&archiveid={$_GET['archiveid']}{/if}">{lang list_one_week}</a></li>
  465. <li><a href="forum.php?mod=forumdisplay&fid=$_G[fid]&orderby={$_GET['orderby']}&filter=dateline&dateline=2592000$forumdisplayadd[dateline]{if $_GET['archiveid']}&archiveid={$_GET['archiveid']}{/if}">{lang list_one_month}</a></li>
  466. <li><a href="forum.php?mod=forumdisplay&fid=$_G[fid]&orderby={$_GET['orderby']}&filter=dateline&dateline=7948800$forumdisplayadd[dateline]{if $_GET['archiveid']}&archiveid={$_GET['archiveid']}{/if}">{lang list_three_month}</a></li>
  467. </ul>
  468. </div>
  469. <!--{if !$_G['setting']['closeforumorderby']}-->
  470. <div id="filter_orderby_menu" class="p_pop wk_sub" style="display:none">
  471. <ul>
  472. <li><a href="forum.php?mod=forumdisplay&fid=$_G[fid]{if $_GET['archiveid']}&archiveid={$_GET['archiveid']}{/if}">{lang list_default_sort}</a></li>
  473. <li><a href="forum.php?mod=forumdisplay&fid=$_G[fid]&filter=author&orderby=dateline$forumdisplayadd[author]{if $_GET['archiveid']}&archiveid={$_GET['archiveid']}{/if}">{lang list_post_time}</a></li>
  474. <li><a href="forum.php?mod=forumdisplay&fid=$_G[fid]&filter=reply&orderby=replies$forumdisplayadd[reply]{if $_GET['archiveid']}&archiveid={$_GET['archiveid']}{/if}">{lang replies}</a></li>
  475. <li><a href="forum.php?mod=forumdisplay&fid=$_G[fid]&filter=reply&orderby=views$forumdisplayadd[view]{if $_GET['archiveid']}&archiveid={$_GET['archiveid']}{/if}">{lang views}</a></li>
  476. <li><a href="forum.php?mod=forumdisplay&fid=$_G[fid]&filter=lastpost&orderby=lastpost$forumdisplayadd[lastpost]{if $_GET['archiveid']}&archiveid={$_GET['archiveid']}{/if}">{lang lastpost}</a></li>
  477. <li><a href="forum.php?mod=forumdisplay&fid=$_G[fid]&filter=heat&orderby=heats$forumdisplayadd[heat]{if $_GET['archiveid']}&archiveid={$_GET['archiveid']}{/if}">{lang order_heats}</a></li>
  478. </ul>
  479. </div>
  480. <!--{/if}-->
  481. <!--{/if}-->
  482. <!--{if $multipage && $filter != 'hot'}-->
  483. <!--{if !($_G[forum][picstyle] && !$_G[cookie][forumdefstyle])}-->
  484. <a class="bm_h wk_fbm_h" href="javascript:;" rel="$multipage_more" curpage="$page" id="autopbn" totalpage="$maxpage" picstyle="$_G[forum][picstyle]" forumdefstyle="$_G[cookie][forumdefstyle]">{lang next_page_extra}</a>
  485. <script type="text/javascript" src="{$_G[setting][jspath]}autoloadpage.js?{VERHASH}"></script>
  486. <!--{else}-->
  487. <div id="pgbtn" class="pgbtn"><a href="forum.php?mod=forumdisplay&fid={$_G[fid]}&filter={$filter}&orderby={$_GET[orderby]}{$forumdisplayadd[page]}&{$multipage_archive}&page=$nextpage" hidefocus="true">{lang next_page_extra}</a></div>
  488. <!--{/if}-->
  489. <!--{/if}-->
  490. <div class="bm bw0 pgs cl">
  491. <span id="fd_page_bottom">$multipage</span>
  492. <span {if $_G[setting][visitedforums]}id="visitedforumstmp" onmouseover="$('visitedforums').id = 'visitedforumstmp';this.id = 'visitedforums';showMenu({'ctrlid':this.id,'pos':'21'})"{/if} class="pgb"><a href="forum.php">{lang return_index}</a></span>
  493. </div>