viewthread.php 31 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556
  1. <?php echo '周末设计商业模板保护!请购买正版模板, 客服QQ: 125422921 , http://www.wfdsoft.com/ ';exit;?>
  2. <!--{template common/header}-->
  3. <!--{if $wk_leftinfo }-->
  4. <!--{eval $close_leftinfo = 1;}-->
  5. <!--{/if}-->
  6. <!--{if $close_leftinfo}-->
  7. <style>
  8. #postlist .plc {padding:0px;}
  9. #postlist .plc .side_btn .btn_s_open { margin-left:7px; }
  10. .authi .wk_ckhf { float:left; margin-top:0; line-height:24px; }
  11. </style>
  12. <!--{/if}-->
  13. <script type="text/javascript">var fid = parseInt('$_G[fid]'), tid = parseInt('$_G[tid]');</script>
  14. <!--{if $modmenu['thread'] || $modmenu['post']}-->
  15. <script type="text/javascript" src="{$_G['setting']['jspath']}forum_moderate.js?{VERHASH}"></script>
  16. <!--{/if}-->
  17. <script type="text/javascript" src="{$_G['setting']['jspath']}forum_viewthread.js?{VERHASH}"></script>
  18. <script type="text/javascript">zoomstatus = parseInt($_G['setting']['zoomstatus']);var imagemaxwidth = '{$_G['setting']['imagemaxwidth']}';var aimgcount = new Array();</script>
  19. <style id="diy_style" type="text/css"></style>
  20. <!--[diy=diynavtop]--><div id="diynavtop" class="area"></div><!--[/diy]-->
  21. <!--{hook/viewthread_top}-->
  22. <!--{ad/text/wp a_t}-->
  23. <style id="diy_style" type="text/css"></style>
  24. <div class="wp">
  25. <!--[diy=diy1]--><div id="diy1" class="area"></div><!--[/diy]-->
  26. </div>
  27. <div id="ct" class="wp cl week_ct2">
  28. <div class="wk_f_mn padding15 backfff">
  29. <div id="pt" class="bm cl">
  30. <div class="z">
  31. <a href="./" class="nvhm" title="{lang homepage}">$_G[setting][bbname]</a><em>&raquo;</em><a href="forum.php">{$_G[setting][navs][2][navname]}</a>$navigation <em>&rsaquo;</em> <a href="forum.php?mod=viewthread&tid=$_G[tid]">$_G[forum_thread][short_subject]</a>
  32. </div>
  33. </div>
  34. <!--{hook/viewthread_postbutton_top}-->
  35. <!--{if $_G['group']['allowpost'] && ($_G['group']['allowposttrade'] || $_G['group']['allowpostpoll'] || $_G['group']['allowpostreward'] || $_G['group']['allowpostactivity'] || $_G['group']['allowpostdebate'] || $_G['setting']['threadplugins'] || $_G['forum']['threadsorts'])}-->
  36. <ul class="p_pop" id="newspecial_menu" style="display: none">
  37. <!--{if !$_G['forum']['allowspecialonly']}--><li><a href="forum.php?mod=post&action=newthread&fid=$_G[fid]">{lang post_newthread}</a></li><!--{/if}-->
  38. <!--{if $_G['forum']['threadsorts'] && !$_G['forum']['allowspecialonly']}-->
  39. <!--{loop $_G['forum']['threadsorts']['types'] $id $threadsorts}-->
  40. <!--{if $_G['forum']['threadsorts']['show'][$id]}-->
  41. <li class="popupmenu_option"><a href="forum.php?mod=post&action=newthread&fid=$_G[fid]&sortid=$id">$threadsorts</a></li>
  42. <!--{/if}-->
  43. <!--{/loop}-->
  44. <!--{/if}-->
  45. <!--{if $_G['group']['allowpostpoll']}--><li class="poll"><a href="forum.php?mod=post&action=newthread&fid=$_G[fid]&special=1">{lang post_newthreadpoll}</a></li><!--{/if}-->
  46. <!--{if $_G['group']['allowpostreward']}--><li class="reward"><a href="forum.php?mod=post&action=newthread&fid=$_G[fid]&special=3">{lang post_newthreadreward}</a></li><!--{/if}-->
  47. <!--{if $_G['group']['allowpostdebate']}--><li class="debate"><a href="forum.php?mod=post&action=newthread&fid=$_G[fid]&special=5">{lang post_newthreaddebate}</a></li><!--{/if}-->
  48. <!--{if $_G['group']['allowpostactivity']}--><li class="activity"><a href="forum.php?mod=post&action=newthread&fid=$_G[fid]&special=4">{lang post_newthreadactivity}</a></li><!--{/if}-->
  49. <!--{if $_G['group']['allowposttrade']}--><li class="trade"><a href="forum.php?mod=post&action=newthread&fid=$_G[fid]&special=2">{lang post_newthreadtrade}</a></li><!--{/if}-->
  50. <!--{if $_G['setting']['threadplugins']}-->
  51. <!--{loop $_G['forum']['threadplugin'] $tpid}-->
  52. <!--{if array_key_exists($tpid, $_G['setting']['threadplugins']) && @in_array($tpid, $_G['group']['allowthreadplugin'])}-->
  53. <li class="popupmenu_option"{if $_G['setting']['threadplugins'][$tpid][icon]} style="background-image:url(source/plugin/$tpid/$_G['setting']['threadplugins'][$tpid][icon])"{/if}><a href="forum.php?mod=post&action=newthread&fid=$_G[fid]&specialextra=$tpid">{$_G['setting']['threadplugins'][$tpid][name]}</a></li>
  54. <!--{/if}-->
  55. <!--{/loop}-->
  56. <!--{/if}-->
  57. </ul>
  58. <!--{/if}-->
  59. <!--[diy=diy_ad_a]--><div id="diy_ad_a" class="area"></div><!--[/diy]-->
  60. <!--{if $modmenu['post']}-->
  61. <div id="mdly" class="fwinmask" style="display:none;z-index:350;">
  62. <table cellspacing="0" cellpadding="0" class="fwin">
  63. <tr>
  64. <td class="t_l"></td>
  65. <td class="t_c"></td>
  66. <td class="t_r"></td>
  67. </tr>
  68. <tr>
  69. <td class="m_l">&nbsp;&nbsp;</td>
  70. <td class="m_c">
  71. <div class="f_c">
  72. <div class="c">
  73. <h3>{lang admin_select}&nbsp;<strong id="mdct" class="xi1"></strong>&nbsp;{lang piece}: </h3>
  74. <!--{if $_G['forum']['ismoderator']}-->
  75. <!--{if $_G['group']['allowwarnpost']}--><a href="javascript:;" onclick="modaction('warn')">{lang modmenu_warn}</a><span class="pipe">|</span><!--{/if}-->
  76. <!--{if $_G['group']['allowbanpost']}--><a href="javascript:;" onclick="modaction('banpost')">{lang modmenu_banpost}</a><span class="pipe">|</span><!--{/if}-->
  77. <!--{if $_G['group']['allowdelpost'] && !$rushreply}--><a href="javascript:;" onclick="modaction('delpost')">{lang modmenu_deletepost}</a><span class="pipe">|</span><!--{/if}-->
  78. <!--{/if}-->
  79. <!--{if $_G['forum']['ismoderator'] && $_G['group']['allowstickreply'] || $_G['forum_thread']['authorid'] == $_G['uid']}--><a href="javascript:;" onclick="modaction('stickreply')">{lang modmenu_stickpost}</a><span class="pipe">|</span><!--{/if}-->
  80. <!--{if $_G['forum_thread']['pushedaid'] && $allowpostarticle}--><a href="javascript:;" onclick="modaction('pushplus', '', 'aid=$_G[forum_thread][pushedaid]', 'portal.php?mod=portalcp&ac=article&op=pushplus')">{lang modmenu_pushplus}</a><span class="pipe">|</span><!--{/if}-->
  81. </div>
  82. </div>
  83. </td>
  84. <td class="m_r"></td>
  85. </tr>
  86. <tr>
  87. <td class="b_l"></td>
  88. <td class="b_c"></td>
  89. <td class="b_r"></td>
  90. </tr>
  91. </table>
  92. </div>
  93. <!--{/if}-->
  94. <!--{if $modmenu['thread']}-->
  95. <div id="modmenu" class="xi2 pbm">
  96. <!--{eval $modopt=0;}-->
  97. <!--{if $_G['forum']['ismoderator']}-->
  98. <!--{if $_G['group']['allowdelpost']}--><!--{eval $modopt++}--><a href="javascript:;" onclick="modthreads(3, 'delete')">{lang modmenu_deletethread}</a><span class="pipe">|</span><!--{/if}-->
  99. <!--{if $_G['group']['allowbumpthread'] && !$_G['forum_thread']['is_archived']}--><!--{eval $modopt++}--><a href="javascript:;" onclick="modthreads(3, 'bump')">{lang modmenu_updown}</a><span class="pipe">|</span><!--{/if}-->
  100. <!--{if $_G['group']['allowstickthread'] && ($_G['forum_thread']['displayorder'] <= 3 || $_G['adminid'] == 1) && !$_G['forum_thread']['is_archived']}--><!--{eval $modopt++}--><a href="javascript:;" onclick="modthreads(1, 'stick')">{lang modmenu_stickthread}</a><span class="pipe">|</span><!--{/if}-->
  101. <!--{if $_G['group']['allowlivethread'] && !$_G['forum_thread']['is_archived']}--><!--{eval $modopt++}--><a href="javascript:;" onclick="modaction('live')">{lang modmenu_live}</a><span class="pipe">|</span><!--{/if}-->
  102. <!--{if $_G['group']['allowhighlightthread'] && !$_G['forum_thread']['is_archived']}--><!--{eval $modopt++}--><a href="javascript:;" onclick="modthreads(1, 'highlight')">{lang modmenu_highlight}</a><span class="pipe">|</span><!--{/if}-->
  103. <!--{if $_G['group']['allowdigestthread'] && !$_G['forum_thread']['is_archived']}--><!--{eval $modopt++}--><a href="javascript:;" onclick="modthreads(1, 'digest')">{lang modmenu_digestpost}</a><span class="pipe">|</span><!--{/if}-->
  104. <!--{if $_G['group']['allowrecommendthread'] && !empty($_G['forum']['modrecommend']['open']) && $_G['forum']['modrecommend']['sort'] != 1 && !$_G['forum_thread']['is_archived']}--><!--{eval $modopt++}--><a href="javascript:;" onclick="modthreads(1, 'recommend')">{lang modmenu_recommend}</a><span class="pipe">|</span><!--{/if}-->
  105. <!--{if $_G['group']['allowstampthread'] && !$_G['forum_thread']['is_archived']}--><!--{eval $modopt++}--><a href="javascript:;" onclick="modaction('stamp')">{lang modmenu_stamp}</a><span class="pipe">|</span><!--{/if}-->
  106. <!--{if $_G['group']['allowstamplist'] && !$_G['forum_thread']['is_archived']}--><!--{eval $modopt++}--><a href="javascript:;" onclick="modaction('stamplist')">{lang modmenu_icon}</a><span class="pipe">|</span><!--{/if}-->
  107. <!--{if $_G['group']['allowclosethread'] && !$_G['forum_thread']['is_archived'] && $_G['forum']['status'] != 3}--><!--{eval $modopt++}--><a href="javascript:;" onclick="modthreads(4)"><!--{if !$_G['forum_thread']['closed']}-->{lang modmenu_switch_off}<!--{else}-->{lang modmenu_switch_on}<!--{/if}--></a><span class="pipe">|</span><!--{/if}-->
  108. <!--{if $_G['group']['allowmovethread'] && !$_G['forum_thread']['is_archived'] && $_G['forum']['status'] != 3}--><!--{eval $modopt++}--><a href="javascript:;" onclick="modthreads(2, 'move')">{lang modmenu_move}</a><span class="pipe">|</span><!--{/if}-->
  109. <!--{if $_G['group']['allowedittypethread'] && !$_G['forum_thread']['is_archived']}--><!--{eval $modopt++}--><a href="javascript:;" onclick="modthreads(2, 'type')">{lang modmenu_type}</a><span class="pipe">|</span><!--{/if}-->
  110. <!--{if !$_G['forum_thread']['special'] && !$_G['forum_thread']['is_archived']}-->
  111. <!--{if $_G['group']['allowcopythread'] && $_G['forum']['status'] != 3}--><!--{eval $modopt++}--><a href="javascript:;" onclick="modaction('copy')">{lang modmenu_copy}</a><span class="pipe">|</span><!--{/if}-->
  112. <!--{if $_G['group']['allowmergethread'] && $_G['forum']['status'] != 3}--><!--{eval $modopt++}--><a href="javascript:;" onclick="modaction('merge')">{lang modmenu_merge}</a><span class="pipe">|</span><!--{/if}-->
  113. <!--{if $_G['group']['allowrefund'] && $_G['forum_thread']['price'] > 0}--><!--{eval $modopt++}--><a href="javascript:;" onclick="modaction('refund')">{lang modmenu_restore}</a><span class="pipe">|</span><!--{/if}-->
  114. <!--{/if}-->
  115. <!--{if $_G['group']['allowsplitthread'] && !$_G['forum_thread']['is_archived'] && $_G['forum']['status'] != 3}--><!--{eval $modopt++}--><a href="javascript:;" onclick="modaction('split')">{lang modmenu_split}</a><span class="pipe">|</span><!--{/if}-->
  116. <!--{if $_G['group']['allowrepairthread'] && !$_G['forum_thread']['is_archived']}--><!--{eval $modopt++}--><a href="javascript:;" onclick="modaction('repair')">{lang modmenu_repair}</a><span class="pipe">|</span><!--{/if}-->
  117. <!--{if $_G['forum_thread']['is_archived'] && $_G['adminid'] == 1}--><!--{eval $modopt++}--><a href="javascript:;" onclick="modaction('restore', '', 'archiveid={$_G[forum_thread][archiveid]}')">{lang modmenu_archive}</a><span class="pipe">|</span><!--{/if}-->
  118. <!--{if $_G['forum_firstpid']}-->
  119. <!--{if $_G['group']['allowwarnpost']}--><!--{eval $modopt++}--><a href="javascript:;" onclick="modaction('warn', '$_G[forum_firstpid]')">{lang modmenu_warn}</a><span class="pipe">|</span><!--{/if}-->
  120. <!--{if $_G['group']['allowbanpost']}--><!--{eval $modopt++}--><a href="javascript:;" onclick="modaction('banpost', '$_G[forum_firstpid]')">{lang modmenu_banthread}</a><span class="pipe">|</span><!--{/if}-->
  121. <!--{/if}-->
  122. <!--{if $_G['group']['allowremovereward'] && $_G['forum_thread']['special'] == 3 && !$_G['forum_thread']['is_archived']}--><!--{eval $modopt++}--><a href="javascript:;" onclick="modaction('removereward')">{lang modmenu_removereward}</a><span class="pipe">|</span><!--{/if}-->
  123. <!--{if $_G['forum']['status'] == 3 && in_array($_G['adminid'], array('1','2')) && $_G['forum_thread']['closed'] < 1}--><a href="javascript:;" onclick="modthreads(5, 'recommend_group');return false;">{lang modmenu_grouprecommend}</a><span class="pipe">|</span><!--{/if}-->
  124. <!--{if $_G['group']['allowmanagetag']}--><a href="javascript:;" onclick="showWindow('mods', 'forum.php?mod=tag&op=manage&tid=$_G[tid]', 'get', 0)">{lang post_tag}</a><span class="pipe">|</span><!--{/if}-->
  125. <!--{if $_G['group']['alloweditusertag']}--><a href="javascript:;" onclick="showWindow('usertag', 'forum.php?mod=misc&action=usertag&tid=$_G[tid]', 'get', 0)">{lang usertag}</a><span class="pipe">|</span><!--{/if}-->
  126. <!--{/if}-->
  127. <!--{if $allowpusharticle && $allowpostarticle}--><!--{eval $modopt++}--><a href="portal.php?mod=portalcp&ac=article&from_idtype=tid&from_id=$_G['tid']">{lang modmenu_pusharticle}</a><span class="pipe">|</span><!--{/if}-->
  128. <!--{hook/viewthread_modoption}-->
  129. </div>
  130. <!--{/if}-->
  131. <!--{hook/viewthread_beginline}-->
  132. <div id="postlist" class="pl bm wk_bm">
  133. <table cellspacing="0" cellpadding="0">
  134. <tr>
  135. <!--{if !$close_leftinfo}-->
  136. <td class="pls ptn pbn">
  137. <!--{if $_G['page'] > 1}-->
  138. <div id="tath" class="cl">
  139. <!--{if $_G[forum_thread][authorid] && $_G[forum_thread][author]}-->
  140. <a href="home.php?mod=space&uid=$_G[forum_thread][authorid]" title="$_G[forum_thread][author]"><!--{avatar($_G[forum_thread][authorid],small)}--></a>
  141. {lang thread_author}: <a href="home.php?mod=space&uid=$_G[forum_thread][authorid]" title="$_G[forum_thread][author]">$_G[forum_thread][author]</a>
  142. <!--{else}-->
  143. {lang thread_author}:
  144. <!--{if $_G['forum']['ismoderator']}-->
  145. <a href="home.php?mod=space&uid=$_G[forum_thread][authorid]">{lang anonymous}</a>
  146. <!--{else}-->
  147. {lang anonymous}
  148. <!--{/if}-->
  149. <!--{/if}-->
  150. </div>
  151. <!--{else}-->
  152. <div class="hm ptn">
  153. <span class="xg1">{lang show}:</span> <span class="xi1">$_G[forum_thread][views]</span><span class="pipe">|</span><span class="xg1">{lang reply}:</span> <span class="xi1">$_G[forum_thread][allreplies]</span>
  154. </div>
  155. <!--{/if}-->
  156. </td>
  157. <!--{/if}-->
  158. <td class="plc ptm pbn vwthd">
  159. <!--{if !IS_ROBOT}-->
  160. <div class="y">
  161. <!--{if $post['invisible'] == 0}--><a href="forum.php?mod=viewthread&action=printable&tid=$_G[tid]" title="{lang thread_printable}" target="_blank"><img src="{IMGDIR}/print.png" alt="{lang thread_printable}" class="vm" /></a>
  162. <!--{/if}-->
  163. <a href="forum.php?mod=redirect&goto=nextoldset&tid=$_G[tid]" title="{lang last_thread}"><img src="{IMGDIR}/thread-prev.png" alt="{lang last_thread}" class="vm" /></a>
  164. <a href="forum.php?mod=redirect&goto=nextnewset&tid=$_G[tid]" title="{lang next_thread}"><img src="{IMGDIR}/thread-next.png" alt="{lang next_thread}" class="vm" /></a>
  165. </div>
  166. <!--{/if}-->
  167. <!--{if $_G['setting']['close_leftinfo_userctrl']}-->
  168. <span class="xg1 side_btn">
  169. <!--{if !$close_leftinfo}-->
  170. <a onclick="setcookie('close_leftinfo', 1);location.reload();" title="{lang collapse_the_left}" class="btn_s_close" href="javascript:;"><img src="{IMGDIR}/control_l.png" alt="{lang collapse_the_left}" class="vm" /></a>
  171. <!--{else}-->
  172. <a onclick="setcookie('close_leftinfo', 2);location.reload();" title="{lang open_the_left}" class="btn_s_open" href="javascript:;"><img src="{IMGDIR}/control_r.png" alt="{lang open_the_left}" class="vm" /></a>
  173. <!--{/if}-->
  174. </span>
  175. <!--{/if}-->
  176. <h1 class="ts">
  177. <!--{if $_G['forum_thread']['typeid'] && $_G['forum']['threadtypes']['types'][$_G['forum_thread']['typeid']]}-->
  178. <!--{if !IS_ROBOT && ($_G['forum']['threadtypes']['listable'] || $_G['forum']['status'] == 3)}-->
  179. <a href="forum.php?mod=forumdisplay&fid=$_G[fid]&filter=typeid&typeid=$_G[forum_thread][typeid]">[{$_G['forum']['threadtypes']['types'][$_G['forum_thread']['typeid']]}]</a>
  180. <!--{else}-->
  181. [{$_G['forum']['threadtypes']['types'][$_G['forum_thread']['typeid']]}]
  182. <!--{/if}-->
  183. <!--{/if}-->
  184. <!--{if $threadsorts && $_G['forum_thread']['sortid']}-->
  185. <a href="forum.php?mod=forumdisplay&fid=$_G[fid]&filter=sortid&sortid=$_G[forum_thread][sortid]">[{$_G['forum']['threadsorts']['types'][$_G['forum_thread']['sortid']]}]</a>
  186. <!--{/if}-->
  187. <span id="thread_subject">$_G[forum_thread][subject]</span>
  188. </h1>
  189. <span class="xg1">
  190. <!--{if $_G['forum_thread'][displayorder] == -2}-->({lang moderating})
  191. <!--{elseif $_G['forum_thread'][displayorder] == -3}-->({lang have_ignored})
  192. <!--{elseif $_G['forum_thread'][displayorder] == -4}-->({lang draft})
  193. <!--{if $post['first'] && $post['invisible'] == -3}-->
  194. <a class="psave" href="forum.php?mod=misc&action=pubsave&tid=$_G[tid]">{lang published}</a>
  195. <!--{/if}-->
  196. <!--{/if}-->
  197. <!--{if $_G['setting']['threadhidethreshold'] && $_G['forum_thread']['hidden'] >= $_G['setting']['threadhidethreshold']}-->
  198. <!--{if $_G['forum_thread']['authorid'] == $_G['uid']}--><a class="psave" id="hiderecover" title="{lang hiderecover_tips}" href="forum.php?mod=misc&action=hiderecover&tid=$_G[tid]&formhash={FORMHASH}" onclick="showWindow(this.id, this.href, 'get', 0);">{lang hidden}</a><!--{else}-->({lang hidden})<!--{/if}-->
  199. &nbsp;
  200. <!--{/if}-->
  201. <!--{if $_G['forum_thread']['recommendlevel']}-->
  202. &nbsp;<img src="{IMGDIR}/recommend_$_G['forum_thread']['recommendlevel'].gif" alt="" title="{lang thread_recommend} $_G['forum_thread'][recommends]" />
  203. <!--{/if}-->
  204. <!--{if $_G['forum_thread'][heatlevel]}-->
  205. &nbsp;<img src="{IMGDIR}/hot_$_G['forum_thread'][heatlevel].gif" alt="" title="{lang heats}: $_G['forum_thread']['heats']" />
  206. <!--{/if}-->
  207. <!--{if $_G['forum_thread']['closed'] == 1}-->
  208. &nbsp;<img src="{IMGDIR}/locked.gif" alt="{lang close}" title="{lang close}" class="vm" />
  209. <!--{/if}-->
  210. <a href="forum.php?mod=viewthread&tid=$_G[tid]$fromuid" onclick="return copyThreadUrl(this, '$_G[setting][bbname]')" {if $fromuid}title="{lang share_url_copy_comment}"{/if}>[{lang share_url_copy}]</a>
  211. </span>
  212. <!--{hook/viewthread_title_extra}-->
  213. </td>
  214. </tr>
  215. </table>
  216. <!--{if $_G['forum_thread']['replycredit'] > 0 || $rushreply}-->
  217. <div id="pl_top">
  218. <table cellspacing="0" cellpadding="0">
  219. <tr class="ad">
  220. <td class="pls"></td>
  221. <td class="plc"></td>
  222. </tr>
  223. <!--{if $_G['forum_thread']['replycredit'] > 0 }-->
  224. <tr>
  225. <!--{if !$close_leftinfo}-->
  226. <td class="pls vm ptm">
  227. <!--{else}-->
  228. <td class="pls ptm pbm xi1" colspan="2">
  229. <!--{/if}-->
  230. <img src="{IMGDIR}/thread_prize_s.png" class="hm" alt="{lang replycredit}" />
  231. <strong>{$_G['forum_thread']['replycredit']} {$_G['setting']['extcredits'][$_G[forum_thread][replycredit_rule][extcreditstype]][unit]}{$_G['setting']['extcredits'][$_G[forum_thread][replycredit_rule][extcreditstype]][title]}</strong>
  232. <!--{if !$close_leftinfo}-->
  233. </td>
  234. <td class="plc ptm pbm xi1">
  235. <!--{else}-->
  236. &nbsp;&nbsp;&nbsp;&nbsp;
  237. <!--{/if}-->
  238. {lang thread_replycredit_tips1} {lang thread_replycredit_tips2}<!--{if $_G['forum_thread']['replycredit_rule'][random] > 0}--><span class="xg1">{lang thread_replycredit_tips3}</span><!--{/if}-->
  239. </td>
  240. </tr>
  241. <!--{if $rushreply}-->
  242. <tr class="ad">
  243. <td class="pls"></td>
  244. <td class="plc"></td>
  245. </tr>
  246. <!--{/if}-->
  247. <!--{/if}-->
  248. <!--{if $rushreply}-->
  249. <tr>
  250. <!--{if !$close_leftinfo}-->
  251. <td class="pls vm ptm">
  252. <img src="{IMGDIR}/rushreply_s.png" class="vm" alt="{lang rushreply}" />
  253. <strong>{lang rushreply}</strong>
  254. </td>
  255. <td class="plc ptm pbm xi1">
  256. <!--{else}-->
  257. <td class="plc ptm pbm xi1" colspan="2">
  258. <img src="{IMGDIR}/rushreply_s.png" class="vm" alt="{lang rushreply}" />
  259. <!--{/if}-->
  260. <!--{if $rushresult[rewardfloor]}-->
  261. <span class="y">
  262. <!--{if $_G['uid'] == $_G['thread']['authorid'] || $_G['forum']['ismoderator']}--><a href="javascript:;" onclick="showWindow('membernum', 'forum.php?mod=ajax&action=get_rushreply_membernum&tid=$_G[tid]')" class="y pn xi2"><span>{lang thread_rushreply_statnum}</span></a><!--{/if}-->
  263. <!--{if !$_GET['checkrush']}-->
  264. <a href="forum.php?mod=viewthread&tid=$post[tid]&checkrush=1" rel="nofollow" class="y pn xi2"><span>{lang rushreply_view}</span></a>
  265. <!--{/if}-->
  266. </span>
  267. <!--{/if}-->
  268. <!--{if $rushresult[creditlimit] == ''}-->
  269. {lang thread_rushreply}&nbsp;
  270. <!--{else}-->
  271. {lang thread_rushreply_limit} &nbsp;
  272. <!--{/if}-->
  273. <!--{if $rushresult['timer']}-->
  274. <span id="rushtimer_$thread[tid]"> {lang havemore_special} <span id="rushtimer_body_$thread[tid]"></span> <script language="javascript">settimer($rushresult['timer'], 'rushtimer_body_$thread[tid]');</script>{if $rushresult['timertype'] == 'start'} {lang header_start} {else} {lang over} {/if} {lang right_special}</span>
  275. <!--{/if}-->
  276. <!--{if $rushresult[stopfloor]}-->
  277. {lang thread_rushreply_end}$rushresult[stopfloor]&nbsp;
  278. <!--{/if}-->
  279. <!--{if $rushresult[rewardfloor]}-->
  280. {lang thread_rushreply_floor}: $rushresult[rewardfloor]&nbsp;
  281. <!--{/if}-->
  282. <!--{if $rushresult[rewardfloor] && $_GET['checkrush']}-->
  283. <p class="ptn">
  284. <!--{if $countrushpost}-->[<strong>$countrushpost</strong>]{lang thread_rushreply_rewardnum}<!--{else}--> {lang thread_rushreply_noreward} <!--{/if}-->&nbsp;&nbsp;
  285. <a href="forum.php?mod=viewthread&tid=$_G[tid]" class="xi2">{lang thread_rushreply_check_back}</a>
  286. </p>
  287. <!--{/if}-->
  288. </td>
  289. </tr>
  290. <!--{/if}-->
  291. </table>
  292. </div>
  293. <!--{/if}-->
  294. <!--{hook/viewthread_title_row}-->
  295. <table cellspacing="0" cellpadding="0" class="ad">
  296. <tr>
  297. <td class="pls">
  298. <!--{if !$close_leftinfo}-->
  299. </td>
  300. <td class="plc">
  301. <!--{/if}-->
  302. </td>
  303. </tr>
  304. </table>
  305. <!--{eval $postcount = 0;}-->
  306. <!--{loop $postlist $post}-->
  307. <!--{if $rushreply && $_GET['checkrush'] && $post['rewardfloor'] != 1}-->
  308. <!--{eval continue;}-->
  309. <!--{/if}-->
  310. <div id="post_$post[pid]" {if $_G['blockedpids'] && $post['inblacklist']}style="display:none;"{/if}>
  311. <!--{subtemplate forum/viewthread_node}-->
  312. </div>
  313. <!--{eval $postcount++;}-->
  314. <!--{/loop}-->
  315. <div id="postlistreply" class="pl"><div id="post_new" class="viewthread_table" style="display: none"></div></div>
  316. <!--{if $_G['blockedpids']}-->
  317. <div id='hiddenpoststip'><a href='javascript:display_blocked_post();'>{lang other_reply_hide}</a></div>
  318. <div id="hiddenposts"></div>
  319. <!--{/if}-->
  320. </div>
  321. <!--{if $modmenu['thread']}-->
  322. <div class="xi2 mbm pbm bbs wk_bbsbj">
  323. <script type="text/javascript">
  324. $('modmenu').lastChild.style.visibility = 'hidden';
  325. document.write($('modmenu').innerHTML);
  326. </script>
  327. </div>
  328. <!--{/if}-->
  329. <form method="post" autocomplete="off" name="modactions" id="modactions">
  330. <input type="hidden" name="formhash" value="{FORMHASH}" />
  331. <input type="hidden" name="optgroup" />
  332. <input type="hidden" name="operation" />
  333. <input type="hidden" name="listextra" value="$_GET[extra]" />
  334. <input type="hidden" name="page" value="$page" />
  335. </form>
  336. $_G['forum_tagscript']
  337. <!--{if $multipage && $page < $_G['setting']['threadmaxpages'] && $page < $_G['page_next']}-->
  338. <!--{eval $nxtpage = $page + 1;}-->
  339. <div class="pgbtn wk_pgbtn"><a href="forum.php?mod=viewthread&tid=$_G[tid]{if $_GET[authorid]}&authorid=$_GET[authorid]{/if}&page=$nxtpage" hidefocus="true" class="bm_h">{lang next_page_extra}</a></div>
  340. <!--{/if}-->
  341. <div class="pgs mtm mbm cl">
  342. <span class="pgb y"{if $_G['setting']['visitedforums']} id="visitedforumstmp" onmouseover="$('visitedforums').id = 'visitedforumstmp';this.id = 'visitedforums';showMenu({'ctrlid':this.id,'pos':'21'})"{/if}><a href="$upnavlink">{lang return_forumdisplay}</a></span>
  343. $multipage
  344. </div>
  345. <!--{hook/viewthread_middle}-->
  346. <!--[diy=diyfastposttop]--><div id="diyfastposttop" class="area"></div><!--[/diy]-->
  347. <!--{if $fastpost}-->
  348. <!--{subtemplate forum/viewthread_fastpost}-->
  349. <!--{/if}-->
  350. <!--[diy=diy_ad_b]--><div id="diy_ad_b" class="area"></div><!--[/diy]-->
  351. <!--{hook/viewthread_bottom}-->
  352. <!--{if ($_G['setting']['visitedforums']) && $_G['forum']['status'] != 3}-->
  353. <div id="visitedforums_menu" class="p_pop blk cl" style="display: none;">
  354. <table cellspacing="0" cellpadding="0">
  355. <tr>
  356. <td id="v_forums">
  357. <h3 class="mbn pbn bbda xg1">{lang viewed_forums}</h3>
  358. <ul class="xl xl1">
  359. $_G['setting']['visitedforums']
  360. </ul>
  361. </td>
  362. </tr>
  363. </table>
  364. </div>
  365. <!--{/if}-->
  366. <!--{if $_G['medal_list']}-->
  367. <!--{loop $_G['medal_list'] $medalid $medal}-->
  368. <div id="md_{$medalid}_menu" class="tip tip_4" style="display: none;">
  369. <div class="tip_horn"></div>
  370. <div class="tip_c">
  371. <h4>$medal[name]</h4>
  372. <p>$medal[description]</p>
  373. </div>
  374. </div>
  375. <!--{/loop}-->
  376. <!--{/if}-->
  377. <!--{if !IS_ROBOT && !empty($_G[setting][lazyload])}-->
  378. <script type="text/javascript">
  379. new lazyload();
  380. </script>
  381. <!--{/if}-->
  382. <!--{if !IS_ROBOT && $_G['setting']['threadmaxpages'] > 1}-->
  383. <script type="text/javascript">document.onkeyup = function(e){keyPageScroll(e, <!--{if $page > 1}-->1<!--{else}-->0<!--{/if}-->, <!--{if $page < $_G['setting']['threadmaxpages'] && $page < $_G['page_next']}-->1<!--{else}-->0<!--{/if}-->, 'forum.php?mod=viewthread&tid=$_G[tid]<!--{if $_GET[authorid]}-->&authorid=$_GET[authorid]<!--{/if}-->', $page);}</script>
  384. <!--{/if}-->
  385. </div>
  386. <div class="wk_f_sd">
  387. <div class="wk_kd260 padding15 backfff">
  388. <a id="newspecial" 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} href="javascript:;" title="{lang send_posts}" class="wk_tzpost"><i class="icon wk_tzpost_icon1"></i><span>$forum_lang[27]</span></a>
  389. <a id="post_reply" onclick="showWindow('reply', 'forum.php?mod=post&action=reply&fid=$_G[fid]&tid=$_G[tid]')" href="javascript:;" title="{lang reply}" class="wk_tzpost"><i class="icon wk_tzpost_icon2"></i><span>$forum_lang[28]</span></a>
  390. <div class="clear"></div>
  391. </div>
  392. <div class="clear"></div>
  393. <div class="backfff wk_bk_search">
  394. <!--{template common/forum_pubsearchform}-->
  395. <div class="clear"></div>
  396. </div>
  397. <div class="clear"></div>
  398. <div class="wk_lbbkx backfff">
  399. <div class="wk_rmbk">
  400. <span class="wk_spat">$forum_lang[11]</span>
  401. <div class="clear"></div>
  402. <!--[diy=wk_rmbk_diy]--><div id="wk_rmbk_diy" class="area"></div><!--[/diy]-->
  403. </div>
  404. </div>
  405. <div class="clear"></div>
  406. <div class="backfff mb10"><!--[diy=wk_bkad_diy1]--><div id="wk_bkad_diy1" class="area"></div><!--[/diy]--></div>
  407. <div class="clear"></div>
  408. <div class="wk_kd260 padding15 backfff">
  409. <div class="wk_bktjtz">
  410. <span class="wk_spae">$forum_lang[12]</span>
  411. <div class="clear"></div>
  412. <!--[diy=wk_tjtz_diy]--><div id="wk_tjtz_diy" class="area"></div><!--[/diy]-->
  413. </div>
  414. </div>
  415. <div class="clear"></div>
  416. <div class="wk_kd260 padding15 backfff">
  417. <div class="wk_bktwrt">
  418. <span class="wk_spaf">$forum_lang[13]</span>
  419. <div class="clear"></div>
  420. <!--[diy=wk_twrt_diy]--><div id="wk_twrt_diy" class="area"></div><!--[/diy]-->
  421. </div>
  422. </div>
  423. <div class="clear"></div>
  424. <div class="backfff mb10"><!--[diy=wk_bkad_diy2]--><div id="wk_bkad_diy2" class="area"></div><!--[/diy]--></div>
  425. <div class="clear"></div>
  426. <div class="wk_kd260 padding15 backfff">
  427. <div class="wk_opkf">
  428. <span class="wk_spac">$forum_lang[14]</span>
  429. <div class="clear"></div>
  430. <div class="wk_topyb cl">
  431. <p class="wk_font1">$forum_lang[15]</p>
  432. <p class="wk_font2">$forum_lang[16]</p>
  433. </div>
  434. <ul class="cl">
  435. <li><a href="$forum_lang[18]" target="_blank" title="$forum_lang[17]"><i class="wk_ico1"></i>$forum_lang[17]</a></li>
  436. <li class="last"><a target="_blank" href="$forum_lang[20]" title="$forum_lang[19]"><i class="wk_ico2"></i>$forum_lang[19]</a></li>
  437. <li><a target="_blank" href="$forum_lang[22]" title="$forum_lang[21]"><i class="wk_ico3"></i>$forum_lang[21]</a></li>
  438. <li class="last"><a target="_blank" href="$forum_lang[24]" title="$forum_lang[23]"><i class="wk_ico3"></i>$forum_lang[23]</a></li>
  439. </ul>
  440. </div>
  441. </div>
  442. <div class="clear"></div>
  443. <div class="mb10"><!--[diy=wk_bkad_diy3]--><div id="wk_bkad_diy3" class="area"></div><!--[/diy]--></div>
  444. <div class="clear"></div>
  445. </div>
  446. </div>
  447. <div class="wp mtn">
  448. <!--[diy=diy3]--><div id="diy3" class="area"></div><!--[/diy]-->
  449. </div>
  450. <!--{if $_G['relatedlinks'] || $_GET['highlight']}-->
  451. <script type="text/javascript">
  452. var relatedlink = [];
  453. <!--{loop $_G['relatedlinks'] $key $link}-->
  454. relatedlink[$key] = {'sname':'$link[name]', 'surl':'$link[url]'};
  455. <!--{/loop}-->
  456. {eval $highlights = explode(' ', str_replace(array('\'', chr(125)), array('&#039;', '&#125;'), dhtmlspecialchars($_GET['highlight'])));}
  457. <!--{loop $highlights $word}-->
  458. {eval $key++;}
  459. relatedlink[$key] = {'sname':'$word', 'surl':''};
  460. <!--{/loop}-->
  461. relatedlinks('postmessage_$_G[forum_firstpid]');
  462. </script>
  463. <!--{/if}-->
  464. <!--{if !empty($_G['cookie']['clearUserdata']) && $_G['cookie']['clearUserdata'] == 'forum'}-->
  465. <script type="text/javascript">saveUserdata('forum_'+discuz_uid, '')</script>
  466. <!--{/if}-->
  467. <script type="text/javascript">
  468. <!--{if $_G['forum']['picstyle'] && ($_G['forum']['ismoderator'] || $_G['uid'] == $_G['thread']['authorid'])}-->
  469. function showsetcover(obj) {
  470. if(obj.parentNode.id == 'postmessage_$_G[forum_firstpid]') {
  471. var defheight = $_G['setting']['forumpicstyle']['thumbheight'];
  472. var defwidth = $_G['setting']['forumpicstyle']['thumbwidth'];
  473. var newimgid = 'showcoverimg';
  474. var imgsrc = obj.src ? obj.src : obj.file;
  475. if(!imgsrc) return;
  476. var tempimg=new Image();
  477. tempimg.src=imgsrc;
  478. if(tempimg.complete) {
  479. if(tempimg.width < defwidth || tempimg.height < defheight) return;
  480. } else {
  481. return;
  482. }
  483. if($(newimgid) && obj.id != newimgid) {
  484. $(newimgid).id = 'img'+Math.random();
  485. }
  486. if($(newimgid+'_menu')) {
  487. var menudiv = $(newimgid+'_menu');
  488. } else {
  489. var menudiv = document.createElement('div');
  490. menudiv.className = 'tip tip_4 aimg_tip';
  491. menudiv.id = newimgid+'_menu';
  492. menudiv.style.position = 'absolute';
  493. menudiv.style.display = 'none';
  494. obj.parentNode.appendChild(menudiv);
  495. }
  496. menudiv.innerHTML = '<div class="tip_c xs0"><a onclick="showWindow(\'setcover_'+newimgid+'\', this.href)" href="forum.php?mod=ajax&amp;action=setthreadcover&amp;tid=$_G[tid]&amp;pid=$_G[forum_firstpid]&amp;fid=$_G[fid]&imgurl='+imgsrc+'">{lang set_cover}</a></div>';
  497. obj.id = newimgid;
  498. showMenu({'ctrlid':newimgid,'pos':'12'});
  499. }
  500. return;
  501. }
  502. <!--{/if}-->
  503. function succeedhandle_followmod(url, msg, values) {
  504. var fObj = $('followmod_'+values['fuid']);
  505. if(values['type'] == 'add') {
  506. fObj.innerHTML = '{lang nofollow}';
  507. fObj.href = 'home.php?mod=spacecp&ac=follow&op=del&fuid='+values['fuid'];
  508. } else if(values['type'] == 'del') {
  509. fObj.innerHTML = '{lang follow}';
  510. fObj.href = 'home.php?mod=spacecp&ac=follow&op=add&hash={FORMHASH}&fuid='+values['fuid'];
  511. }
  512. }
  513. <!--{if $_G['blockedpids']}-->
  514. var blockedPIDs = [<!--{echo implode(',', $_G['blockedpids'])}-->];
  515. <!--{/if}-->
  516. <!--{if $postlist && empty($_G['setting']['disfixedavatar'])}-->
  517. fixed_avatar([<!--{echo implode(',', array_keys($postlist))}-->], {if empty($_G['setting']['disfixednv_viewthread']) }1{else}0{/if});
  518. <!--{elseif empty($_G['setting']['disfixednv_viewthread'])}-->
  519. fixed_top_nv();
  520. <!--{/if}-->
  521. </script>
  522. <!--{template common/footer}-->