viewthread.php 30 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535
  1. <?php echo 'Theme by Jeaviking http://www.jeavi.name';exit;?>
  2. <!--{template common/header}-->
  3. <script type="text/javascript">var fid = parseInt('$_G[fid]'), tid = parseInt('$_G[tid]');</script>
  4. <!--{if $modmenu['thread'] || $modmenu['post']}-->
  5. <script type="text/javascript" src="{$_G['setting']['jspath']}forum_moderate.js?{VERHASH}"></script>
  6. <!--{/if}-->
  7. <script type="text/javascript" src="$_G['style'][styleimgdir]/js/forum_viewthread.js?{VERHASH}"></script>
  8. <script type="text/javascript">zoomstatus = parseInt($_G['setting']['zoomstatus']);var imagemaxwidth = '{$_G['setting']['imagemaxwidth']}';var aimgcount = new Array();</script>
  9. <style id="diy_style" type="text/css"></style>
  10. <!--[diy=diynavtop]--><div id="diynavtop" class="area"></div><!--[/diy]-->
  11. <div id="pt" class="bm cl">
  12. <div class="z">
  13. <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>
  14. </div>
  15. </div>
  16. <!-- 热点推荐 -->
  17. <div id="jeavi_recommend">
  18. <div class="tcontent">
  19. <!--[diy=picitem_con]--><div id="picitem_con" class="area"></div><!--[/diy]-->
  20. </div>
  21. <script type="text/javascript">jQuery("#rec_lside").slide({ mainCell:".lside_con .picitem_con",effect:"leftLoop",vis:4,scroll:2,autoPlay:true});</script>
  22. <div class="rside">
  23. <!--[diy=rside]--><div id="rside" class="area"></div><!--[/diy]-->
  24. </div>
  25. </div>
  26. <!-- 热点推荐 -->
  27. <!--{hook/viewthread_top}-->
  28. <!--{ad/text/wp a_t}-->
  29. <style id="diy_style" type="text/css"></style>
  30. <div class="wp">
  31. <!--[diy=diy1]--><div id="diy1" class="area"></div><!--[/diy]-->
  32. </div>
  33. <div id="ct" class="wp cl">
  34. <div id="pgt" class="pgs mbm cl {if $modmenu['thread']}pbm bbs{/if}">
  35. <div class="pgt">$multipage</div>
  36. <span class="y pgb"{if $_G['setting']['visitedforums']} id="visitedforums" onmouseover="$('visitedforums').id = 'visitedforumstmp';this.id = 'visitedforums';showMenu({'ctrlid':this.id,'pos':'34'})"{/if}><a href="$upnavlink">{lang return_forumdisplay}</a></span>
  37. <!--{if $_G['forum']['threadsorts'] && $_G['forum']['threadsorts']['templatelist']}-->
  38. <!--{loop $_G['forum']['threadsorts']['types'] $id $name}-->
  39. <button id="newspecial" class="pn pnc" onclick="location.href='forum.php?mod=post&action=newthread&fid=$_G[fid]&extra=$extra&sortid=$id'"><strong>{lang i_want}$name</strong></button>
  40. <!--{/loop}-->
  41. <!--{else}-->
  42. <!--{if !$_G['forum_thread']['is_archived']}--><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}"><img src="$_G['style'][styleimgdir]/pn_post.png" alt="{lang send_posts}" /></a><!--{/if}-->
  43. <!--{/if}-->
  44. <!--{if $allowpostreply && !$_G['forum_thread']['archiveid']}-->
  45. <a id="post_reply" onclick="showWindow('reply', 'forum.php?mod=post&action=reply&fid=$_G[fid]&tid=$_G[tid]')" href="javascript:;" title="{lang reply}"><img src="$_G['style'][styleimgdir]/pn_reply.png" alt="{lang reply}" /></a>
  46. <!--{/if}-->
  47. <!--{hook/viewthread_postbutton_top}-->
  48. </div>
  49. <!--{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'])}-->
  50. <ul class="p_pop" id="newspecial_menu" style="display: none">
  51. <!--{if !$_G['forum']['allowspecialonly']}--><li><a href="forum.php?mod=post&action=newthread&fid=$_G[fid]">{lang post_newthread}</a></li><!--{/if}-->
  52. <!--{if $_G['forum']['threadsorts'] && !$_G['forum']['allowspecialonly']}-->
  53. <!--{loop $_G['forum']['threadsorts']['types'] $id $threadsorts}-->
  54. <!--{if $_G['forum']['threadsorts']['show'][$id]}-->
  55. <li class="popupmenu_option"><a href="forum.php?mod=post&action=newthread&fid=$_G[fid]&sortid=$id">$threadsorts</a></li>
  56. <!--{/if}-->
  57. <!--{/loop}-->
  58. <!--{/if}-->
  59. <!--{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}-->
  60. <!--{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}-->
  61. <!--{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}-->
  62. <!--{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}-->
  63. <!--{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}-->
  64. <!--{if $_G['setting']['threadplugins']}-->
  65. <!--{loop $_G['forum']['threadplugin'] $tpid}-->
  66. <!--{if array_key_exists($tpid, $_G['setting']['threadplugins']) && @in_array($tpid, $_G['group']['allowthreadplugin'])}-->
  67. <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>
  68. <!--{/if}-->
  69. <!--{/loop}-->
  70. <!--{/if}-->
  71. </ul>
  72. <!--{/if}-->
  73. <!--{if $modmenu['post']}-->
  74. <div id="mdly" class="fwinmask" style="display:none;z-index:350;">
  75. <table cellspacing="0" cellpadding="0" class="fwin">
  76. <tr>
  77. <td class="t_l"></td>
  78. <td class="t_c"></td>
  79. <td class="t_r"></td>
  80. </tr>
  81. <tr>
  82. <td class="m_l">&nbsp;&nbsp;</td>
  83. <td class="m_c">
  84. <div class="f_c">
  85. <div class="c">
  86. <h3>{lang admin_select}&nbsp;<strong id="mdct" class="xi1"></strong>&nbsp;{lang piece}: </h3>
  87. <!--{if $_G['forum']['ismoderator']}-->
  88. <!--{if $_G['group']['allowwarnpost']}--><a href="javascript:;" onclick="modaction('warn')">{lang modmenu_warn}</a><span class="pipe">|</span><!--{/if}-->
  89. <!--{if $_G['group']['allowbanpost']}--><a href="javascript:;" onclick="modaction('banpost')">{lang modmenu_banpost}</a><span class="pipe">|</span><!--{/if}-->
  90. <!--{if $_G['group']['allowdelpost'] && !$rushreply}--><a href="javascript:;" onclick="modaction('delpost')">{lang modmenu_deletepost}</a><span class="pipe">|</span><!--{/if}-->
  91. <!--{/if}-->
  92. <!--{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}-->
  93. <!--{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}-->
  94. </div>
  95. </div>
  96. </td>
  97. <td class="m_r"></td>
  98. </tr>
  99. <tr>
  100. <td class="b_l"></td>
  101. <td class="b_c"></td>
  102. <td class="b_r"></td>
  103. </tr>
  104. </table>
  105. </div>
  106. <!--{/if}-->
  107. <!--{if $modmenu['thread']}-->
  108. <div id="modmenu" class="xi2 pbm">
  109. <!--{eval $modopt=0;}-->
  110. <!--{if $_G['forum']['ismoderator']}-->
  111. <!--{if $_G['group']['allowdelpost']}--><!--{eval $modopt++}--><a href="javascript:;" onclick="modthreads(3, 'delete')">{lang modmenu_deletethread}</a><span class="pipe">|</span><!--{/if}-->
  112. <!--{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}-->
  113. <!--{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}-->
  114. <!--{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}-->
  115. <!--{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}-->
  116. <!--{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}-->
  117. <!--{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}-->
  118. <!--{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}-->
  119. <!--{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}-->
  120. <!--{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}-->
  121. <!--{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}-->
  122. <!--{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}-->
  123. <!--{if !$_G['forum_thread']['special'] && !$_G['forum_thread']['is_archived']}-->
  124. <!--{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}-->
  125. <!--{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}-->
  126. <!--{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}-->
  127. <!--{/if}-->
  128. <!--{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}-->
  129. <!--{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}-->
  130. <!--{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}-->
  131. <!--{if $_G['forum_firstpid']}-->
  132. <!--{if $_G['group']['allowwarnpost']}--><!--{eval $modopt++}--><a href="javascript:;" onclick="modaction('warn', '$_G[forum_firstpid]')">{lang modmenu_warn}</a><span class="pipe">|</span><!--{/if}-->
  133. <!--{if $_G['group']['allowbanpost']}--><!--{eval $modopt++}--><a href="javascript:;" onclick="modaction('banpost', '$_G[forum_firstpid]')">{lang modmenu_banthread}</a><span class="pipe">|</span><!--{/if}-->
  134. <!--{/if}-->
  135. <!--{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}-->
  136. <!--{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}-->
  137. <!--{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}-->
  138. <!--{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}-->
  139. <!--{/if}-->
  140. <!--{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}-->
  141. <!--{hook/viewthread_modoption}-->
  142. </div>
  143. <!--{/if}-->
  144. <!--{hook/viewthread_beginline}-->
  145. <div id="postlist" class="pl bm">
  146. <table cellspacing="0" cellpadding="0">
  147. <tr>
  148. <!--{if !$close_leftinfo}-->
  149. <td class="pls ptn pbn">
  150. <!--{if $_G['page'] > 1}-->
  151. <div id="tath" class="cl">
  152. <!--{if $_G[forum_thread][authorid] && $_G[forum_thread][author]}-->
  153. <a href="home.php?mod=space&uid=$_G[forum_thread][authorid]" title="$_G[forum_thread][author]"><!--{avatar($_G[forum_thread][authorid],small)}--></a>
  154. {lang thread_author}: <a href="home.php?mod=space&uid=$_G[forum_thread][authorid]" title="$_G[forum_thread][author]">$_G[forum_thread][author]</a>
  155. <!--{else}-->
  156. {lang thread_author}:
  157. <!--{if $_G['forum']['ismoderator']}-->
  158. <a href="home.php?mod=space&uid=$_G[forum_thread][authorid]">{lang anonymous}</a>
  159. <!--{else}-->
  160. {lang anonymous}
  161. <!--{/if}-->
  162. <!--{/if}-->
  163. </div>
  164. <!--{else}-->
  165. <div class="hm ptn">
  166. <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>
  167. </div>
  168. <!--{/if}-->
  169. </td>
  170. <!--{/if}-->
  171. <td class="plc ptm pbn vwthd">
  172. <!--{if !IS_ROBOT}-->
  173. <div class="y">
  174. <!--{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>
  175. <!--{/if}-->
  176. <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>
  177. <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>
  178. </div>
  179. <!--{/if}-->
  180. <!--{if $_G['setting']['close_leftinfo_userctrl']}-->
  181. <span class="xg1 side_btn">
  182. <!--{if !$close_leftinfo}-->
  183. <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>
  184. <!--{else}-->
  185. <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>
  186. <!--{/if}-->
  187. </span>
  188. <!--{/if}-->
  189. <h1 class="ts">
  190. <!--{if $_G['forum_thread']['typeid'] && $_G['forum']['threadtypes']['types'][$_G['forum_thread']['typeid']]}-->
  191. <!--{if !IS_ROBOT && ($_G['forum']['threadtypes']['listable'] || $_G['forum']['status'] == 3)}-->
  192. <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>
  193. <!--{else}-->
  194. [{$_G['forum']['threadtypes']['types'][$_G['forum_thread']['typeid']]}]
  195. <!--{/if}-->
  196. <!--{/if}-->
  197. <!--{if $threadsorts && $_G['forum_thread']['sortid']}-->
  198. <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>
  199. <!--{/if}-->
  200. <span id="thread_subject">$_G[forum_thread][subject]</span>
  201. </h1>
  202. <span class="xg1">
  203. <!--{if $_G['forum_thread'][displayorder] == -2}-->({lang moderating})
  204. <!--{elseif $_G['forum_thread'][displayorder] == -3}-->({lang have_ignored})
  205. <!--{elseif $_G['forum_thread'][displayorder] == -4}-->({lang draft})
  206. <!--{if $post['first'] && $post['invisible'] == -3}-->
  207. <a class="psave" href="forum.php?mod=misc&action=pubsave&tid=$_G[tid]">{lang published}</a>
  208. <!--{/if}-->
  209. <!--{/if}-->
  210. <!--{if $_G['forum_thread']['recommendlevel']}-->
  211. &nbsp;<img src="{IMGDIR}/recommend_$_G['forum_thread']['recommendlevel'].gif" alt="" title="{lang thread_recommend} $_G['forum_thread'][recommends]" />
  212. <!--{/if}-->
  213. <!--{if $_G['forum_thread'][heatlevel]}-->
  214. &nbsp;<img src="{IMGDIR}/hot_$_G['forum_thread'][heatlevel].gif" alt="" title="{lang heats}: $_G['forum_thread']['heats']" />
  215. <!--{/if}-->
  216. <!--{if $_G['forum_thread']['closed'] == 1}-->
  217. &nbsp;<img src="{IMGDIR}/locked.gif" alt="{lang close}" title="{lang close}" class="vm" />
  218. <!--{/if}-->
  219. <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>
  220. </span>
  221. <!--{hook/viewthread_title_extra}-->
  222. </td>
  223. </tr>
  224. </table>
  225. <!--{if $_G['forum_thread']['replycredit'] > 0 || $rushreply}-->
  226. <div id="pl_top">
  227. <table cellspacing="0" cellpadding="0">
  228. <tr class="ad">
  229. <td class="pls"></td>
  230. <td class="plc"></td>
  231. </tr>
  232. <!--{if $_G['forum_thread']['replycredit'] > 0 }-->
  233. <tr>
  234. <!--{if !$close_leftinfo}-->
  235. <td class="pls vm ptm">
  236. <!--{else}-->
  237. <td class="pls ptm pbm xi1" colspan="2">
  238. <!--{/if}-->
  239. <img src="{IMGDIR}/thread_prize_s.png" class="hm" alt="{lang replycredit}" />
  240. <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>
  241. <!--{if !$close_leftinfo}-->
  242. </td>
  243. <td class="plc ptm pbm xi1">
  244. <!--{else}-->
  245. &nbsp;&nbsp;&nbsp;&nbsp;
  246. <!--{/if}-->
  247. {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}-->
  248. </td>
  249. </tr>
  250. <!--{if $rushreply}-->
  251. <tr class="ad">
  252. <td class="pls"></td>
  253. <td class="plc"></td>
  254. </tr>
  255. <!--{/if}-->
  256. <!--{/if}-->
  257. <!--{if $rushreply}-->
  258. <tr>
  259. <!--{if !$close_leftinfo}-->
  260. <td class="pls vm ptm">
  261. <img src="{IMGDIR}/rushreply_s.png" class="vm" alt="{lang rushreply}" />
  262. <strong>{lang rushreply}</strong>
  263. </td>
  264. <td class="plc ptm pbm xi1">
  265. <!--{else}-->
  266. <td class="plc ptm pbm xi1" colspan="2">
  267. <img src="{IMGDIR}/rushreply_s.png" class="vm" alt="{lang rushreply}" />
  268. <!--{/if}-->
  269. <!--{if $rushresult[rewardfloor]}-->
  270. <span class="y">
  271. <!--{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}-->
  272. <!--{if !$_GET['checkrush']}-->
  273. <a href="forum.php?mod=viewthread&tid=$post[tid]&checkrush=1" rel="nofollow" class="y pn xi2"><span>{lang rushreply_view}</span></a>
  274. <!--{/if}-->
  275. </span>
  276. <!--{/if}-->
  277. <!--{if $rushresult[creditlimit] == ''}-->
  278. {lang thread_rushreply}&nbsp;
  279. <!--{else}-->
  280. {lang thread_rushreply_limit} &nbsp;
  281. <!--{/if}-->
  282. <!--{if $rushresult['timer']}-->
  283. <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>
  284. <!--{/if}-->
  285. <!--{if $rushresult[stopfloor]}-->
  286. {lang thread_rushreply_end}$rushresult[stopfloor]&nbsp;
  287. <!--{/if}-->
  288. <!--{if $rushresult[rewardfloor]}-->
  289. {lang thread_rushreply_floor}: $rushresult[rewardfloor]&nbsp;
  290. <!--{/if}-->
  291. <!--{if $rushresult[rewardfloor] && $_GET['checkrush']}-->
  292. <p class="ptn">
  293. <!--{if $countrushpost}-->[<strong>$countrushpost</strong>]{lang thread_rushreply_rewardnum}<!--{else}--> {lang thread_rushreply_noreward} <!--{/if}-->&nbsp;&nbsp;
  294. <a href="forum.php?mod=viewthread&tid=$_G[tid]" class="xi2">{lang thread_rushreply_check_back}</a>
  295. </p>
  296. <!--{/if}-->
  297. </td>
  298. </tr>
  299. <!--{/if}-->
  300. </table>
  301. </div>
  302. <!--{/if}-->
  303. <!--{hook/viewthread_title_row}-->
  304. <table cellspacing="0" cellpadding="0" class="ad">
  305. <tr>
  306. <td class="pls">
  307. <!--{if !$close_leftinfo}-->
  308. </td>
  309. <td class="plc">
  310. <!--{/if}-->
  311. </td>
  312. </tr>
  313. </table>
  314. <!--{eval $postcount = 0;}-->
  315. <!--{loop $postlist $post}-->
  316. <!--{if $rushreply && $_GET['checkrush'] && $post['rewardfloor'] != 1}-->
  317. <!--{eval continue;}-->
  318. <!--{/if}-->
  319. <div id="post_$post[pid]" {if $_G['blockedpids'] && $post['inblacklist']}style="display:none;"{/if}>
  320. <!--{subtemplate forum/viewthread_node}-->
  321. </div>
  322. <!--{eval $postcount++;}-->
  323. <!--{/loop}-->
  324. <div id="postlistreply" class="pl"><div id="post_new" class="viewthread_table" style="display: none"></div></div>
  325. <!--{if $_G['blockedpids']}-->
  326. <div id='hiddenpoststip'><a href='javascript:display_blocked_post();'>{lang other_reply_hide}</a></div>
  327. <div id="hiddenposts"></div>
  328. <!--{/if}-->
  329. </div>
  330. <!--{if $modmenu['thread']}-->
  331. <div class="xi2 mbm pbm bbs">
  332. <script type="text/javascript">
  333. $('modmenu').lastChild.style.visibility = 'hidden';
  334. document.write($('modmenu').innerHTML);
  335. </script>
  336. </div>
  337. <!--{/if}-->
  338. <form method="post" autocomplete="off" name="modactions" id="modactions">
  339. <input type="hidden" name="formhash" value="{FORMHASH}" />
  340. <input type="hidden" name="optgroup" />
  341. <input type="hidden" name="operation" />
  342. <input type="hidden" name="listextra" value="$_GET[extra]" />
  343. <input type="hidden" name="page" value="$page" />
  344. </form>
  345. $_G['forum_tagscript']
  346. <!--{if $multipage && $page < $_G['setting']['threadmaxpages'] && $page < $_G['page_next']}-->
  347. <!--{eval $nxtpage = $page + 1;}-->
  348. <div class="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>
  349. <!--{/if}-->
  350. <div class="pgs mtm mbm cl">
  351. $multipage
  352. <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>
  353. <!--{if !$_G['forum_thread']['is_archived']}-->
  354. <a 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} href="javascript:;" title="{lang send_posts}"><img src="$_G['style'][styleimgdir]/pn_post.png" alt="{lang send_posts}" /></a>
  355. <!--{/if}-->
  356. <!--{if $allowpostreply && !$_G['forum_thread']['archiveid']}-->
  357. <a id="post_replytmp" onclick="showWindow('reply', 'forum.php?mod=post&action=reply&fid=$_G[fid]&tid=$_G[tid]')" href="javascript:;" title="{lang reply}"><img src="$_G['style'][styleimgdir]/pn_reply.png" alt="{lang reply}" /></a>
  358. <!--{/if}-->
  359. </div>
  360. <!--{hook/viewthread_middle}-->
  361. <!--[diy=diyfastposttop]--><div id="diyfastposttop" class="area"></div><!--[/diy]-->
  362. <!--{if $fastpost}-->
  363. <!--{subtemplate forum/viewthread_fastpost}-->
  364. <!--{/if}-->
  365. <!--{hook/viewthread_bottom}-->
  366. <!--{if ($_G['setting']['visitedforums']) && $_G['forum']['status'] != 3}-->
  367. <div id="visitedforums_menu" class="p_pop blk cl" style="display: none;">
  368. <table cellspacing="0" cellpadding="0">
  369. <tr>
  370. <td id="v_forums">
  371. <h3 class="mbn pbn bbda xg1">{lang viewed_forums}</h3>
  372. <ul class="xl xl1">
  373. $_G['setting']['visitedforums']
  374. </ul>
  375. </td>
  376. </tr>
  377. </table>
  378. </div>
  379. <!--{/if}-->
  380. <!--{if $_G['medal_list']}-->
  381. <!--{loop $_G['medal_list'] $medalid $medal}-->
  382. <div id="md_{$medalid}_menu" class="tip tip_4" style="display: none;">
  383. <div class="tip_horn"></div>
  384. <div class="tip_c">
  385. <h4>$medal[name]</h4>
  386. <p>$medal[description]</p>
  387. </div>
  388. </div>
  389. <!--{/loop}-->
  390. <!--{/if}-->
  391. <!--{if !IS_ROBOT && !empty($_G[setting][lazyload])}-->
  392. <script type="text/javascript">
  393. new lazyload();
  394. </script>
  395. <!--{/if}-->
  396. <!--{if !IS_ROBOT && $_G['setting']['threadmaxpages'] > 1}-->
  397. <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>
  398. <!--{/if}-->
  399. </div>
  400. <!-- 广播台 -->
  401. <div class="network">
  402. <div class="portal_tit">
  403. <h2>随便看看</h2>
  404. </div>
  405. <div class="netbox">
  406. <div class="z netbox_zpic">
  407. <!--[diy=netbox_zpic]--><div id="netbox_zpic" class="area"></div><!--[/diy]-->
  408. </div>
  409. <div class="netbox_cpic">
  410. <!--[diy=netbox_zpic1]--><div id="netbox_zpic1" class="area"></div><!--[/diy]-->
  411. </div>
  412. <div class="y netbox_zpic">
  413. <!--[diy=netbox_zpic2]--><div id="netbox_zpic2" class="area"></div><!--[/diy]-->
  414. </div>
  415. </div>
  416. </div>
  417. <!-- 广播台 -->
  418. <div class="wp mtn">
  419. <!--[diy=diy3]--><div id="diy3" class="area"></div><!--[/diy]-->
  420. </div>
  421. <!--{if $_G['relatedlinks'] || $_GET['highlight']}-->
  422. <script type="text/javascript">
  423. var relatedlink = [];
  424. <!--{loop $_G['relatedlinks'] $key $link}-->
  425. relatedlink[$key] = {'sname':'$link[name]', 'surl':'$link[url]'};
  426. <!--{/loop}-->
  427. {eval $highlights = explode(' ', str_replace(array('\'', chr(125)), array('&#039;', '&#125;'), dhtmlspecialchars($_GET['highlight'])));}
  428. <!--{loop $highlights $word}-->
  429. {eval $key++;}
  430. relatedlink[$key] = {'sname':'$word', 'surl':''};
  431. <!--{/loop}-->
  432. relatedlinks('postmessage_$_G[forum_firstpid]');
  433. </script>
  434. <!--{/if}-->
  435. <!--{if !empty($_G['cookie']['clearUserdata']) && $_G['cookie']['clearUserdata'] == 'forum'}-->
  436. <script type="text/javascript">saveUserdata('forum_'+discuz_uid, '')</script>
  437. <!--{/if}-->
  438. <script type="text/javascript">
  439. <!--{if $_G['forum']['picstyle'] && ($_G['forum']['ismoderator'] || $_G['uid'] == $_G['thread']['authorid'])}-->
  440. function showsetcover(obj) {
  441. if(obj.parentNode.id == 'postmessage_$_G[forum_firstpid]') {
  442. var defheight = $_G['setting']['forumpicstyle']['thumbheight'];
  443. var defwidth = $_G['setting']['forumpicstyle']['thumbwidth'];
  444. var newimgid = 'showcoverimg';
  445. var imgsrc = obj.src ? obj.src : obj.file;
  446. if(!imgsrc) return;
  447. var tempimg=new Image();
  448. tempimg.src=imgsrc;
  449. if(tempimg.complete) {
  450. if(tempimg.width < defwidth || tempimg.height < defheight) return;
  451. } else {
  452. return;
  453. }
  454. if($(newimgid) && obj.id != newimgid) {
  455. $(newimgid).id = 'img'+Math.random();
  456. }
  457. if($(newimgid+'_menu')) {
  458. var menudiv = $(newimgid+'_menu');
  459. } else {
  460. var menudiv = document.createElement('div');
  461. menudiv.className = 'tip tip_4 aimg_tip';
  462. menudiv.id = newimgid+'_menu';
  463. menudiv.style.position = 'absolute';
  464. menudiv.style.display = 'none';
  465. obj.parentNode.appendChild(menudiv);
  466. }
  467. 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>';
  468. obj.id = newimgid;
  469. showMenu({'ctrlid':newimgid,'pos':'12'});
  470. }
  471. return;
  472. }
  473. <!--{/if}-->
  474. function succeedhandle_followmod(url, msg, values) {
  475. var fObj = $('followmod_'+values['fuid']);
  476. if(values['type'] == 'add') {
  477. fObj.innerHTML = '{lang nofollow}';
  478. fObj.href = 'home.php?mod=spacecp&ac=follow&op=del&fuid='+values['fuid'];
  479. } else if(values['type'] == 'del') {
  480. fObj.innerHTML = '{lang follow}';
  481. fObj.href = 'home.php?mod=spacecp&ac=follow&op=add&hash={FORMHASH}&fuid='+values['fuid'];
  482. }
  483. }
  484. <!--{if $_G['blockedpids']}-->
  485. var blockedPIDs = [<!--{echo implode(',', $_G['blockedpids'])}-->];
  486. <!--{/if}-->
  487. <!--{if $postlist && empty($_G['setting']['disfixedavatar'])}-->
  488. fixed_avatar([<!--{echo implode(',', array_keys($postlist))}-->], {if empty($_G['setting']['disfixednv_viewthread']) }1{else}0{/if});
  489. <!--{elseif empty($_G['setting']['disfixednv_viewthread'])}-->
  490. fixed_top_nv();
  491. <!--{/if}-->
  492. </script>
  493. <!--{template common/footer}-->