viewthread_node_body.php 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317
  1. <?php echo 'Theme by Jeaviking http://www.jeavi.name';exit;?>
  2. <div class="pcb">
  3. <!--{if !$_G['forum']['ismoderator'] && $_G['setting']['bannedmessages'] & 1 && (($post['authorid'] && !$post['username']) || ($_G['thread']['digest'] == 0 && ($post['groupid'] == 4 || $post['groupid'] == 5 || $post['memberstatus'] == '-1')))}-->
  4. <div class="locked">{lang message_banned}</div>
  5. <!--{elseif !$_G['forum']['ismoderator'] && $post['status'] & 1}-->
  6. <div class="locked">{lang message_single_banned}</div>
  7. <!--{elseif $needhiddenreply}-->
  8. <div class="locked">{lang message_ishidden_hiddenreplies}</div>
  9. <!--{elseif $post['first'] && $_G['forum_threadpay']}-->
  10. <!--{template forum/viewthread_pay}-->
  11. <!--{elseif $_G['forum_discuzcode']['passwordlock'][$post[pid]]}-->
  12. <div class="locked">{lang message_password_exists} {lang pleaseinputpw}<input type="text" id="postpw_$post[pid]" class="vm" />&nbsp;<button class="pn vm" type="button" onclick="submitpostpw($post[pid]{if $_GET['from'] == 'preview'},{$post[tid]}{else}{/if})"><strong>{lang submit}</strong></button></div>
  13. <!--{else}-->
  14. <!--{if !$post['first'] && !empty($post[subject])}-->
  15. <h2>$post[subject]</h2>
  16. <!--{/if}-->
  17. <!--{hook/viewthread_posttop $postcount}-->
  18. <!--{if $_G['setting']['bannedmessages'] & 1 && (($post['authorid'] && !$post['username']) || ($_G['thread']['digest'] == 0 && ($post['groupid'] == 4 || $post['groupid'] == 5 || $post['memberstatus'] == '-1')))}-->
  19. <div class="locked">{lang admin_message_banned}</div>
  20. <!--{elseif $post['status'] & 1}-->
  21. <div class="locked">{lang admin_message_single_banned}</div>
  22. <!--{/if}-->
  23. <!--{if !$post['first'] && $hiddenreplies && $_G['forum']['ismoderator']}-->
  24. <div class="locked">{lang message_ishidden_hiddenreplies}</div>
  25. <!--{/if}-->
  26. <!--{if $post['first']}-->
  27. <!--{if $_G['forum_thread']['price'] > 0 && $_G['forum_thread']['special'] == 0 && empty($previewspecial)}-->
  28. <div class="locked"><em class="y"><a href="forum.php?mod=misc&action=viewpayments&tid=$_G[tid]" onclick="showWindow('pay', this.href)">{lang pay_view}</a></em>{lang pay_threads}: <strong>$_G[forum_thread][price] {$_G['setting']['extcredits'][$_G['setting']['creditstransextra'][1]][unit]}{$_G['setting']['extcredits'][$_G['setting']['creditstransextra'][1]][title]} </strong></div>
  29. <!--{/if}-->
  30. <!--{if $threadsort && $threadsortshow}-->
  31. <!--{if $threadsortshow['typetemplate']}-->
  32. $threadsortshow[typetemplate]
  33. <!--{elseif $threadsortshow['optionlist']}-->
  34. <div class="typeoption">
  35. <!--{if $threadsortshow['optionlist'] == 'expire'}-->
  36. {lang has_expired}
  37. <!--{else}-->
  38. <table summary="{lang threadtype_option}" cellpadding="0" cellspacing="0" class="cgtl mbm">
  39. <caption>$_G[forum][threadsorts][types][$_G[forum_thread][sortid]]</caption>
  40. <tbody>
  41. <!--{loop $threadsortshow['optionlist'] $option}-->
  42. <!--{if $option['type'] != 'info'}-->
  43. <tr>
  44. <th>$option[title]:</th>
  45. <td><!--{if $option['value'] || ($option['type'] == 'number' && $option['value'] !== '')}-->$option[value] $option[unit]<!--{else}-->-<!--{/if}--></td>
  46. </tr>
  47. <!--{/if}-->
  48. <!--{/loop}-->
  49. </tbody>
  50. </table>
  51. <!--{/if}-->
  52. </div>
  53. <!--{/if}-->
  54. <!--{/if}-->
  55. <!--{/if}-->
  56. <!--{if $_G['forum_discuzcode']['passwordauthor'][$post[pid]]}-->
  57. <div class="locked">{lang message_password_exists}</div>
  58. <!--{/if}-->
  59. <div class="{if !$_G[forum_thread][special]}t_fsz{else}pcbs{/if}">
  60. $_G['forum_posthtml']['header'][$post[pid]]
  61. <!--{if $post['first']}-->
  62. <!--{if !$_G[forum_thread][special]}-->
  63. <table cellspacing="0" cellpadding="0"><tr><td class="t_f" id="postmessage_$post[pid]">
  64. <!--{if !$_G['inajax']}-->
  65. <!--{if $ad_a_pr}-->
  66. $ad_a_pr
  67. <!--{/if}-->
  68. <!--{/if}-->
  69. <!--{if !empty($_G['setting']['guesttipsinthread']['flag']) && empty($_G['uid']) && !$post['attachment'] && $_GET['from'] != 'preview'}-->
  70. <div class="attach_nopermission attach_tips">
  71. <div>
  72. <h3><strong>
  73. <!--{if !empty($_G['setting']['guesttipsinthread']['text'])}-->
  74. {$_G['setting']['guesttipsinthread']['text']}
  75. <!--{else}-->
  76. {lang guesttipsinthread_text}
  77. <!--{/if}-->
  78. </strong></h3>
  79. <p>{lang attach_nopermission_login} <!--{hook/global_login_text}--></p>
  80. </div>
  81. <span class="atips_close" onclick="this.parentNode.style.display='none'">x</span>
  82. </div>
  83. <!--{/if}-->
  84. $post[message]</td></tr></table>
  85. <!--{elseif $_G[forum_thread][special] == 1}-->
  86. <!--{template forum/viewthread_poll}-->
  87. <!--{elseif $_G[forum_thread][special] == 2}-->
  88. <!--{template forum/viewthread_trade}-->
  89. <!--{elseif $_G[forum_thread][special] == 3}-->
  90. <!--{template forum/viewthread_reward}-->
  91. <!--{elseif $_G[forum_thread][special] == 4}-->
  92. <!--{template forum/viewthread_activity}-->
  93. <!--{elseif $_G[forum_thread][special] == 5}-->
  94. <!--{template forum/viewthread_debate}-->
  95. <!--{elseif $_G[forum_thread][special] == 127}-->
  96. $threadplughtml
  97. <table cellspacing="0" cellpadding="0"><tr><td class="t_f" id="postmessage_$post[pid]">$post[message]</td></tr></table>
  98. <!--{/if}-->
  99. <!--{else}-->
  100. <table cellspacing="0" cellpadding="0"><tr><td class="t_f" id="postmessage_$post[pid]">
  101. <!--{if !$_G['inajax']}-->
  102. <!--{if $ad_a_pr}-->
  103. $ad_a_pr
  104. <!--{/if}-->
  105. <!--{/if}-->
  106. <!--{if $post['invisible'] != '-2' || $_G['forum']['ismoderator']}-->$post[message]<!--{else}--><span class="xg1">{lang moderate_need}</span><!--{/if}--></td></tr></table>
  107. <!--{/if}-->
  108. $_G['forum_posthtml']['footer'][$post[pid]]
  109. <!--{if $post['first'] && ($post[tags] || $relatedkeywords) && $_GET['from'] != 'preview'}-->
  110. <div class="ptg mbm mtn">
  111. <!--{if $post[tags]}-->
  112. <!--{eval $tagi = 0;}-->
  113. <!--{loop $post[tags] $var}-->
  114. <!--{if $tagi}-->, <!--{/if}--><a title="$var[1]" href="misc.php?mod=tag&id=$var[0]" target="_blank">$var[1]</a>
  115. <!--{eval $tagi++;}-->
  116. <!--{/loop}-->
  117. <!--{/if}-->
  118. <!--{if $relatedkeywords}--><span>$relatedkeywords</span><!--{/if}-->
  119. </div>
  120. <!--{/if}-->
  121. <!--{if !IS_ROBOT && $post['first'] && !$_G['forum_thread']['archiveid']}-->
  122. <!--{if !empty($lastmod['modaction'])}--><div class="modact"><a href="forum.php?mod=misc&action=viewthreadmod&tid=$_G[tid]" title="{lang thread_mod}" onclick="showWindow('viewthreadmod', this.href)"><!--{if $lastmod['modactiontype'] == 'REB'}-->{lang thread_mod_recommend_by}<!--{else}-->{lang thread_mod_by}<!--{/if}--></a></div><!--{/if}-->
  123. <!--{hook/viewthread_modaction}-->
  124. <!--{/if}-->
  125. <!--{if $post['attachment'] && $_GET['from'] != 'preview'}-->
  126. <div class="attach_nopermission attach_tips">
  127. <div>
  128. <h3><strong>{lang attach_nopermission_notice}</strong></h3>
  129. <p><!--{if $_G['uid']}-->{lang attach_nopermission}<!--{elseif $_G['connectguest']}-->{lang attach_nopermission_connect_fill_profile}<!--{else}-->{lang attach_nopermission_login} <!--{hook/global_login_text}--><!--{/if}--></p>
  130. </div>
  131. <span class="atips_close" onclick="this.parentNode.style.display='none'">x</span>
  132. </div>
  133. <!--{elseif $post['imagelist'] || $post['attachlist']}-->
  134. <div class="pattl">
  135. <!--{if $post['imagelist'] && $_G['setting']['imagelistthumb'] && $post['imagelistcount'] >= $_G['setting']['imagelistthumb']}-->
  136. <!--{if !isset($imagelistkey)}-->
  137. <!--{eval $imagelistkey = rawurlencode(dsign($_G[tid].'|100|100'))}-->
  138. <script type="text/javascript" reload="1">var imagelistkey = '$imagelistkey';</script>
  139. <!--{/if}-->
  140. <!--{eval $post['imagelistthumb'] = true;}-->
  141. <div class="bbda cl mtw mbm pbm">
  142. <strong>{lang more_images}</strong>
  143. <a href="javascript:;" onclick="attachimglst('$post[pid]', 0)" class="xi2 attl_g">{lang image_small}</a>
  144. <a href="javascript:;" onclick="attachimglst('$post[pid]', 1, {echo intval($_G['setting']['lazyload'])})" class="xi2 attl_m">{lang image_big}</a>
  145. </div>
  146. <div id="imagelist_$post[pid]" class="cl" style="display:none"><!--{echo showattach($post, 1)}--></div>
  147. <div id="imagelistthumb_$post[pid]" class="pattl_c cl"><img src="{IMGDIR}/loading.gif" width="16" height="16" class="vm" /> {lang image_list_openning}</div>
  148. <!--{else}-->
  149. <!--{echo showattach($post, 1)}-->
  150. <!--{/if}-->
  151. <!--{if $post['attachlist']}-->
  152. <!--{echo showattach($post)}-->
  153. <!--{/if}-->
  154. </div>
  155. <!--{/if}-->
  156. <!--{if $_G['setting']['allowfastreply'] && $post['first'] && $fastpost && $allowpostreply && !$_G['forum_thread']['archiveid'] && $_GET['from'] != 'preview'}-->
  157. <div id="vfastpost" class="fullvfastpost">
  158. <form method="post" autocomplete="off" id="vfastpostform" action="forum.php?mod=post&action=reply&fid=$_G[fid]&tid=$_G[tid]&fromvf=1&extra=$_G[gp_extra]&replysubmit=yes{if $_G['gp_ordertype'] != 1}&infloat=yes&handlekey=vfastpost{/if}{if $_G[gp_from]}&from=$_G[gp_from]{/if}" onsubmit="this.message.value = parseurl(this.message.value);ajaxpost('vfastpostform', 'return_reply', 'return_reply', 'onerror');return false;">
  159. <input type="hidden" name="formhash" value="{FORMHASH}" />
  160. <table cellspacing="0" cellpadding="0" id="vfastposttb">
  161. <tr>
  162. <td id="vf_l"></td>
  163. <td id="vf_m">
  164. <input type="text" name="message" id="vmessage" onKeyDown="seditor_ctlent(event, '$(\'vfastpostform\').submit()');"/>
  165. </td>
  166. <td id="vf_r"></td>
  167. <td id="vf_b">
  168. <button type="submit" class="pn pnc" name="replysubmit" id="vreplysubmit" value="true" style="">post_newreply</button>
  169. </td>
  170. </tr>
  171. </table>
  172. </form>
  173. </div>
  174. <script type="text/javascript">
  175. //$('note_{$tid}').focus();
  176. function succeedhandle_vfastpost(url, message, param) {
  177. $('vmessage').value = '';
  178. succeedhandle_fastpost(url, message, param);
  179. showCreditPrompt();
  180. }
  181. var vf_tips = '{lang forum_live_fastreply_notice}';
  182. $('vmessage').value = vf_tips;
  183. $('vmessage').style.color = '#CDCDCD';
  184. $('vmessage').onclick = function() {
  185. if($('vmessage').value==vf_tips) {
  186. $('vmessage').value='';
  187. $('vmessage').style.color="#000";
  188. }
  189. }
  190. $('vmessage').onblur = function() {
  191. if(!$('vmessage').value) {
  192. $('vmessage').value=vf_tips;
  193. $('vmessage').style.color="#CDCDCD";
  194. }
  195. }
  196. $('vreplysubmit').onclick = function() {
  197. if($('vmessage').value == vf_tips) {
  198. return false;
  199. }
  200. }
  201. </script>
  202. <!--{/if}-->
  203. </div>
  204. <div id="comment_$post[pid]" class="cm">
  205. <!--{if $_GET['from'] != 'preview' && $_G['setting']['commentnumber'] && !empty($comments[$post[pid]])}-->
  206. <h3 class="psth xs1"><span class="icon_ring vm"></span>{lang comments}</h3>
  207. <!--{if $totalcomment[$post[pid]]}--><div class="pstl">$totalcomment[$post[pid]]</div><!--{/if}-->
  208. <!--{loop $comments[$post[pid]] $comment}-->
  209. <div class="pstl xs1 cl">
  210. <div class="psta vm">
  211. <a href="home.php?mod=space&uid=$comment[authorid]" c="1">$comment[avatar]</a>
  212. <!--{if $comment['authorid']}-->
  213. <a href="home.php?mod=space&uid=$comment[authorid]" class="xi2 xw1">$comment[author]</a>
  214. <!--{else}-->
  215. {lang guest}
  216. <!--{/if}-->
  217. </div>
  218. <div class="psti">
  219. $comment[comment]&nbsp;
  220. <!--{if $comment[rpid]}-->
  221. <a href="forum.php?mod=redirect&goto=findpost&pid=$comment[rpid]&ptid=$_G[tid]" class="xi2">{lang detail}</a>
  222. <a href="forum.php?mod=post&action=reply&fid=$_G[fid]&tid=$_G[tid]&repquote=$comment[rpid]&extra=$_GET[extra]&page=$page{if $_GET[from]}&from=$_GET[from]{/if}" class="xi2" onclick="showWindow('reply', this.href)">{lang reply}</a>
  223. <!--{/if}-->
  224. <span class="xg1">
  225. {lang poston} <!--{date($comment[dateline], 'u')}-->
  226. <!--{if $comment['useip'] && $_G['group']['allowviewip']}-->&nbsp;IP:$comment[useip]<!--{/if}-->
  227. <!--{if $_G['forum']['ismoderator'] && $_G['group']['allowdelpost']}-->&nbsp;<a href="javascript:;" onclick="modaction('delcomment', $comment[id])">{lang delete}</a><!--{/if}-->
  228. </span>
  229. </div>
  230. </div>
  231. <!--{/loop}-->
  232. <!--{if $commentcount[$post[pid]] > $_G['setting']['commentnumber']}--><div class="pgs mbm mtn cl"><div class="pg"><a href="javascript:;" class="nxt" onclick="ajaxget('forum.php?mod=misc&action=commentmore&tid=$post[tid]&pid=$post[pid]&page=2', 'comment_$post[pid]')">{lang next_page}</a></div></div><!--{/if}-->
  233. <!--{/if}-->
  234. </div>
  235. <!--{if $_GET['from'] != 'preview' && !empty($post['ratelog'])}-->
  236. <h3 class="psth xs1"><span class="icon_ring vm"></span>{lang rate}</h3>
  237. <dl id="ratelog_$post[pid]" class="rate{if !empty($_G['cookie']['ratecollapse'])} rate_collapse{/if}">
  238. <!--{if $_G['setting']['ratelogon']}-->
  239. <dd style="margin:0">
  240. <!--{else}-->
  241. <dt>
  242. <!--{if !empty($postlist[$post[pid]]['totalrate'])}-->
  243. <strong><a href="forum.php?mod=misc&action=viewratings&tid=$_G[tid]&pid=$post[pid]" onclick="showWindow('viewratings', this.href)" title="{lang have}{echo count($postlist[$post[pid]][totalrate]);}{lang people_score}, {lang rate_view}"><!--{echo count($postlist[$post[pid]][totalrate]);}--></a></strong>
  244. <p><a href="forum.php?mod=misc&action=viewratings&tid=$_G[tid]&pid=$post[pid]" onclick="showWindow('viewratings', this.href)">{lang rate_view}</a></p>
  245. <!--{/if}-->
  246. </dt>
  247. <dd>
  248. <!--{/if}-->
  249. <div id="post_rate_$post[pid]"></div>
  250. <!--{if $_G['setting']['ratelogon']}-->
  251. <table class="ratl">
  252. <tr>
  253. <th class="xw1" width="120"><a href="forum.php?mod=misc&action=viewratings&tid=$_G[tid]&pid=$post[pid]" onclick="showWindow('viewratings', this.href)" title="{lang rate_view}"> {lang number_of_participants} <span class="xi1"><!--{echo count($postlist[$post[pid]][totalrate]);}--></span></a></th>
  254. <!--{loop $post['ratelogextcredits'] $id $score}-->
  255. <!--{if $score > 0}-->
  256. <th class="xw1" width="80">{$_G['setting']['extcredits'][$id][title]} <i><span class="xi1">+$score</span></i></th>
  257. <!--{else}-->
  258. <th class="xw1" width="80">{$_G['setting']['extcredits'][$id][title]} <i><span class="xi1">$score</span></i></th>
  259. <!--{/if}-->
  260. <!--{/loop}-->
  261. <th>
  262. <a href="javascript:;" onclick="toggleRatelogCollapse('ratelog_$post[pid]', this);" class="y xi2 op"><!--{if !empty($_G['cookie']['ratecollapse'])}-->{lang open}<!--{else}-->{lang pack}<!--{/if}--></a>
  263. <i class="txt_h">{lang reason}</i>
  264. </th>
  265. </tr>
  266. <tbody class="ratl_l">
  267. <!--{loop $post['ratelog'] $uid $ratelog}-->
  268. <tr id="rate_{$post[pid]}_{$uid}">
  269. <td>
  270. <a href="home.php?mod=space&uid=$uid" target="_blank"><!--{echo avatar($uid, 'small');}--></a> <a href="home.php?mod=space&uid=$uid" target="_blank">$ratelog[username]</a>
  271. </td>
  272. <!--{loop $post['ratelogextcredits'] $id $score}-->
  273. <!--{if $ratelog['score'][$id] > 0}-->
  274. <td class="xi1"> + $ratelog[score][$id]</td>
  275. <!--{else}-->
  276. <td class="xg1">$ratelog[score][$id]</td>
  277. <!--{/if}-->
  278. <!--{/loop}-->
  279. <td class="xg1">$ratelog[reason]</td>
  280. </tr>
  281. <!--{/loop}-->
  282. </tbody>
  283. </table>
  284. <p class="ratc">
  285. <a href="forum.php?mod=misc&action=viewratings&tid=$_G[tid]&pid=$post[pid]" onclick="showWindow('viewratings', this.href)" title="{lang rate_view}" class="xi2">{lang rate_view}</a>
  286. </p>
  287. <!--{else}-->
  288. <ul class="cl">
  289. <!--{loop $post['ratelog'] $uid $ratelog}-->
  290. <li>
  291. <p id="rate_{$post[pid]}_{$uid}" onmouseover="showTip(this)" tip="<strong>$ratelog[reason]</strong>&nbsp;
  292. <!--{loop $ratelog['score'] $id $score}-->
  293. <!--{if $score > 0}-->
  294. <em class='xi1'>{$_G['setting']['extcredits'][$id][title]} + $score $_G['setting']['extcredits'][$id][unit]</em>
  295. <!--{else}-->
  296. <span>{$_G['setting']['extcredits'][$id][title]} $score $_G['setting']['extcredits'][$id][unit]</span>
  297. <!--{/if}-->
  298. <!--{/loop}-->" class="mtn mbn"><a href="home.php?mod=space&uid=$uid" target="_blank" class="avt"><!--{echo avatar($uid, 'small');}--></a></p>
  299. <p><a href="home.php?mod=space&uid=$uid" target="_blank">$ratelog[username]</a></p>
  300. </li>
  301. <!--{/loop}-->
  302. </ul>
  303. <!--{/if}-->
  304. </dd>
  305. </dl>
  306. <!--{else}-->
  307. <div id="post_rate_div_$post[pid]"></div>
  308. <!--{/if}-->
  309. <!--{/if}-->
  310. <!--{hook/viewthread_postbottom $postcount}-->
  311. </div>