forumdisplay_list.htm 34 KB

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