forumdisplay_list.php 35 KB

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