viewthread.php 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231
  1. <?php echo '思维定制 QQ277718133';exit;?>
  2. <!--{eval $threadsort = $threadsorts = null;}-->
  3. <!--{template common/header}-->
  4. <!-- header start -->
  5. <header class="header">
  6. <div class="n5-bbslb">
  7. <div class="n5-lbftan n5-anzj y"><a id="replyid">{lang reply}</a></div>
  8. <div class="n5-lbftan y"><a href="<!--{if $_GET[fromguid] == 'hot'}-->forum.php?mod=guide&view=hot&page=$_GET[page]<!--{else}-->forum.php?mod=forumdisplay&fid=$_G[fid]&<!--{eval echo rawurldecode($_GET[extra]);}--><!--{/if}-->">返回</a></div>
  9. <img class="z" alt="$_G['forum'][name]" src="<!--{if $_G['forum'][icon]}-->data/attachment/common/$_G['forum'][icon]<!--{else}-->template/zhikai_baibiansj/touch/style/forum.png<!--{/if}-->">
  10. <h3><a href="forum.php?mod=forumdisplay&fid=$_G[fid]">$_G['forum'][name]</a></h3>
  11. <i>主题:$_G[forum][threads] 新帖:$_G[forum][todayposts]</i>
  12. </div>
  13. </header>
  14. <!-- header end -->
  15. <!--{hook/viewthread_top_mobile}-->
  16. <!-- main postlist start -->
  17. <div class="postlist n5-bbsnr">
  18. <h2>
  19. <!--{if $_G['forum_thread']['typeid'] && $_G['forum']['threadtypes']['types'][$_G['forum_thread']['typeid']]}-->
  20. [{$_G['forum']['threadtypes']['types'][$_G['forum_thread']['typeid']]}]
  21. <!--{/if}-->
  22. <!--{if $threadsorts && $_G['forum_thread']['sortid']}-->
  23. [{$_G['forum']['threadsorts']['types'][$_G['forum_thread']['sortid']]}]
  24. <!--{/if}-->
  25. $_G[forum_thread][subject]
  26. <!--{if $_G['forum_thread'][displayorder] == -2}--> <span>({lang moderating})</span>
  27. <!--{elseif $_G['forum_thread'][displayorder] == -3}--> <span>({lang have_ignored})</span>
  28. <!--{elseif $_G['forum_thread'][displayorder] == -4}--> <span>({lang draft})</span>
  29. <!--{/if}-->
  30. <!--{if !IS_ROBOT && !$_GET['authorid'] && !$_G['forum_thread']['archiveid']}-->
  31. <a href="forum.php?mod=viewthread&tid=$_G[tid]&page=$page&authorid=$_G[forum_thread][authorid]" rel="nofollow" class="blue" style="font-size:12px;font-weight:normal;margin-left:10px;">{lang viewonlyauthorid}</a>
  32. <!--{elseif !$_G['forum_thread']['archiveid']}-->
  33. <a href="forum.php?mod=viewthread&tid=$_G[tid]&page=$page" rel="nofollow" class="blue" style="font-size:12px;font-weight:normal;margin-left:10px;">{lang thread_show_all}</a>
  34. <!--{/if}-->
  35. </h2>
  36. <!--{loop $postlist $post}-->
  37. <!--{eval $needhiddenreply = ($hiddenreplies && $_G['uid'] != $post['authorid'] && $_G['uid'] != $_G['forum_thread']['authorid'] && !$post['first'] && !$_G['forum']['ismoderator']);}-->
  38. <!--{hook/viewthread_posttop_mobile $postcount}-->
  39. <div class="plc cl">
  40. <span class="avatar"><img src="<!--{if !$post['authorid'] || $post['anonymous']}--><!--{avatar(0, small, true)}--><!--{else}--><!--{avatar($post[authorid], small, true)}--><!--{/if}-->" style="width:32px;height:32px;" /></span>
  41. <div class="display pi" href="#replybtn_$post[pid]">
  42. <ul class="authi">
  43. <li class="grey">
  44. <em>
  45. <!--{if isset($post[isstick])}-->
  46. <img src ="{IMGDIR}/settop.png" title="{lang replystick}" class="vm" /> {lang from} {$post[number]}{$postnostick}
  47. <!--{elseif $post[number] == -1}-->
  48. {lang recommend_post}
  49. <!--{else}-->
  50. <!--{if !empty($postno[$post[number]])}-->$postno[$post[number]]<!--{else}-->{$post[number]}{$postno[0]}<!--{/if}-->
  51. <!--{/if}-->
  52. </em><b>
  53. <!--{if $post['authorid'] && $post['username'] && !$post['anonymous']}-->
  54. <a href="home.php?mod=space&uid=$post[authorid]" class="blue">$post[author]</a></b>
  55. <!--{else}-->
  56. <!--{if !$post['authorid']}-->
  57. <a href="javascript:;">{lang guest} <em>$post[useip]</em></a>
  58. <!--{elseif $post['authorid'] && $post['username'] && $post['anonymous']}-->
  59. <!--{if $_G['forum']['ismoderator']}--><a href="home.php?mod=space&uid=$post[authorid]" target="_blank">{lang anonymous}</a><!--{else}-->{lang anonymous}<!--{/if}-->
  60. <!--{else}-->
  61. $post[author] <em>{lang member_deleted}</em>
  62. <!--{/if}-->
  63. <!--{/if}-->
  64. </li>
  65. <li class="grey rela">
  66. <!--{if $_G['forum']['ismoderator']}-->
  67. <!-- manage start -->
  68. <!--{if $post[first]}-->
  69. <em><a href="#moption_$post[pid]" class="popup blue">{lang manage}</a></em>
  70. <div id="moption_$post[pid]" popup="true" class="manage" style="display:none;">
  71. <!--{if !$_G['forum_thread']['special']}-->
  72. <input type="button" value="{lang edit}" class="redirect button" href="forum.php?mod=post&action=edit&fid=$_G[fid]&tid=$_G[tid]&pid=$post[pid]<!--{if $_G[forum_thread][sortid]}--><!--{if $post[first]}-->&sortid={$_G[forum_thread][sortid]}<!--{/if}--><!--{/if}-->{if !empty($_GET[modthreadkey])}&modthreadkey=$_GET[modthreadkey]{/if}&page=$page">
  73. <!--{/if}-->
  74. <input type="button" value="{lang delete}" class="dialog button" href="forum.php?mod=topicadmin&action=moderate&fid={$_G[fid]}&moderate[]={$_G[tid]}&operation=delete&optgroup=3&from={$_G[tid]}">
  75. <input type="button" value="{lang close}" class="dialog button" href="forum.php?mod=topicadmin&action=moderate&fid={$_G[fid]}&moderate[]={$_G[tid]}&from={$_G[tid]}&optgroup=4">
  76. <input type="button" value="{lang admin_banpost}" class="dialog button" href="forum.php?mod=topicadmin&action=banpost&fid={$_G[fid]}&tid={$_G[tid]}&topiclist[]={$_G[forum_firstpid]}">
  77. <input type="button" value="{lang topicadmin_warn_add}" class="dialog button" href="forum.php?mod=topicadmin&action=warn&fid={$_G[fid]}&tid={$_G[tid]}&topiclist[]={$_G[forum_firstpid]}">
  78. </div>
  79. <!--{else}-->
  80. <em><a href="#moption_$post[pid]" class="popup blue">{lang manage}</a></em>
  81. <div id="moption_$post[pid]" popup="true" class="manage" style="display:none;">
  82. <input type="button" value="{lang edit}" class="redirect button" href="forum.php?mod=post&action=edit&fid=$_G[fid]&tid=$_G[tid]&pid=$post[pid]{if !empty($_GET[modthreadkey])}&modthreadkey=$_GET[modthreadkey]{/if}&page=$page">
  83. <!--{if $_G['group']['allowdelpost']}--><input type="button" value="{lang modmenu_deletepost}" class="dialog button" href="forum.php?mod=topicadmin&action=delpost&fid={$_G[fid]}&tid={$_G[tid]}&operation=&optgroup=&page=&topiclist[]={$post[pid]}"><!--{/if}-->
  84. <!--{if $_G['group']['allowbanpost']}--><input type="button" value="{lang modmenu_banpost}" class="dialog button" href="forum.php?mod=topicadmin&action=banpost&fid={$_G[fid]}&tid={$_G[tid]}&operation=&optgroup=&page=&topiclist[]={$post[pid]}"><!--{/if}-->
  85. <!--{if $_G['group']['allowwarnpost']}--><input type="button" value="{lang modmenu_warn}" class="dialog button" href="forum.php?mod=topicadmin&action=warn&fid={$_G[fid]}&tid={$_G[tid]}&operation=&optgroup=&page=&topiclist[]={$post[pid]}"><!--{/if}-->
  86. </div>
  87. <!--{/if}-->
  88. <!-- manage end -->
  89. <!--{/if}-->
  90. <!--{if $post[first]}-->
  91. <em><a href="home.php?mod=spacecp&ac=favorite&type=thread&id=$_G[tid]" class="favbtn blue" <!--{if $_G[forum][ismoderator]}-->style="margin-right:10px;"<!--{/if}-->>{lang favorite}</a></em>
  92. <!--{/if}-->
  93. $post[dateline]
  94. </li>
  95. </ul>
  96. <div class="message">
  97. <!--{if $post['warned']}-->
  98. <span class="grey quote">{lang warn_get}</span>
  99. <!--{/if}-->
  100. <!--{if !$post['first'] && !empty($post[subject])}-->
  101. <h2><strong>$post[subject]</strong></h2>
  102. <!--{/if}-->
  103. <!--{if $_G['adminid'] != 1 && $_G['setting']['bannedmessages'] & 1 && (($post['authorid'] && !$post['username']) || ($post['groupid'] == 4 || $post['groupid'] == 5) || $post['status'] == -1 || $post['memberstatus'])}-->
  104. <div class="grey quote">{lang message_banned}</div>
  105. <!--{elseif $_G['adminid'] != 1 && $post['status'] & 1}-->
  106. <div class="grey quote">{lang message_single_banned}</div>
  107. <!--{elseif $needhiddenreply}-->
  108. <div class="grey quote">{lang message_ishidden_hiddenreplies}</div>
  109. <!--{elseif $post['first'] && $_G['forum_threadpay']}-->
  110. <!--{template forum/viewthread_pay}-->
  111. <!--{else}-->
  112. <!--{if $_G['setting']['bannedmessages'] & 1 && (($post['authorid'] && !$post['username']) || ($post['groupid'] == 4 || $post['groupid'] == 5))}-->
  113. <div class="grey quote">{lang admin_message_banned}</div>
  114. <!--{elseif $post['status'] & 1}-->
  115. <div class="grey quote">{lang admin_message_single_banned}</div>
  116. <!--{/if}-->
  117. <!--{if $_G['forum_thread']['price'] > 0 && $_G['forum_thread']['special'] == 0}-->
  118. {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> <a href="forum.php?mod=misc&action=viewpayments&tid=$_G[tid]" >{lang pay_view}</a>
  119. <!--{/if}-->
  120. <!--{if $post['first'] && $threadsortshow}-->
  121. <!--{if $threadsortshow['optionlist'] && !($post['status'] & 1) && !$_G['forum_threadpay']}-->
  122. <!--{if $threadsortshow['optionlist'] == 'expire'}-->
  123. {lang has_expired}
  124. <!--{else}-->
  125. <div class="box_ex2 viewsort n5-flxx">
  126. <h4>$_G[forum][threadsorts][types][$_G[forum_thread][sortid]]</h4>
  127. <!--{loop $threadsortshow['optionlist'] $option}--><p><!--{if $option['type'] != 'info'}--><i>$option[title]: </i><!--{if $option['value']}-->$option[value] $option[unit]<!--{else}--><span class="xg1">--</span><!--{/if}--></p><!--{/if}--><!--{/loop}-->
  128. </div>
  129. <!--{/if}-->
  130. <!--{/if}-->
  131. <!--{/if}-->
  132. <!--{if $post['first']}-->
  133. <!--{if !$_G[forum_thread][special]}-->
  134. $post[message]
  135. <!--{elseif $_G[forum_thread][special] == 1}-->
  136. <!--{template forum/viewthread_poll}-->
  137. <!--{elseif $_G[forum_thread][special] == 2}-->
  138. <!--{template forum/viewthread_trade}-->
  139. <!--{elseif $_G[forum_thread][special] == 3}-->
  140. <!--{template forum/viewthread_reward}-->
  141. <!--{elseif $_G[forum_thread][special] == 4}-->
  142. <!--{template forum/viewthread_activity}-->
  143. <!--{elseif $_G[forum_thread][special] == 5}-->
  144. <!--{template forum/viewthread_debate}-->
  145. <!--{elseif $threadplughtml}-->
  146. $threadplughtml
  147. $post[message]
  148. <!--{else}-->
  149. $post[message]
  150. <!--{/if}-->
  151. <!--{else}-->
  152. $post[message]
  153. <!--{/if}-->
  154. <!--{/if}-->
  155. </div>
  156. <!--{if $_G['setting']['mobile']['mobilesimpletype'] == 0}-->
  157. <!--{if $post['attachment']}-->
  158. <div class="grey quote">
  159. {lang attachment}: <em><!--{if $_G['uid']}-->{lang attach_nopermission}<!--{else}-->{lang attach_nopermission_login}<!--{/if}--></em>
  160. </div>
  161. <!--{elseif $post['imagelist'] || $post['attachlist']}-->
  162. <!--{if $post['imagelist']}-->
  163. <!--{if count($post['imagelist']) == 1}-->
  164. <ul class="img_one">{echo showattach($post, 1)}</ul>
  165. <!--{else}-->
  166. <ul class="img_list cl vm">{echo showattach($post, 1)}</ul>
  167. <!--{/if}-->
  168. <!--{/if}-->
  169. <!--{if $post['attachlist']}-->
  170. <ul>{echo showattach($post)}</ul>
  171. <!--{/if}-->
  172. <!--{/if}-->
  173. <!--{/if}-->
  174. <!--{if $_G[uid] && $allowpostreply && !$post[first]}-->
  175. <div id="replybtn_$post[pid]" class="replybtn" display="true" style="display:none;position:absolute;right:0px;top:5px;">
  176. <input type="button" class="redirect button" href="forum.php?mod=post&action=reply&fid=$_G[fid]&tid=$_G[tid]&repquote=$post[pid]&extra=$_GET[extra]&page=$page" value="{lang reply}">
  177. </div>
  178. <!--{/if}-->
  179. </div>
  180. </div>
  181. <!--{hook/viewthread_postbottom_mobile $postcount}-->
  182. <!--{eval $postcount++;}-->
  183. <!--{/loop}-->
  184. <!--{subtemplate forum/forumdisplay_fastpost}-->
  185. </div>
  186. <!-- main postlist end -->
  187. $multipage
  188. <!--{hook/viewthread_bottom_mobile}-->
  189. <script type="text/javascript">
  190. $('.favbtn').on('click', function() {
  191. var obj = $(this);
  192. $.ajax({
  193. type:'POST',
  194. url:obj.attr('href') + '&handlekey=favbtn&inajax=1',
  195. data:{'favoritesubmit':'true', 'formhash':'{FORMHASH}'},
  196. dataType:'xml',
  197. })
  198. .success(function(s) {
  199. popup.open(s.lastChild.firstChild.nodeValue);
  200. evalscript(s.lastChild.firstChild.nodeValue);
  201. })
  202. .error(function() {
  203. window.location.href = obj.attr('href');
  204. popup.close();
  205. });
  206. return false;
  207. });
  208. </script>
  209. <a href="javascript:;" title="{lang scrolltop}" class="scrolltop bottom"></a>
  210. <!--底部菜单-->
  211. <div id="contactbar">
  212. <a href="forum.php?mod=guide&view=hot" class="bottom_index"></a>
  213. <a href="forum.php?forumlist=1" class="bottom_history_on"></a>
  214. <a href="forum.php?mod=misc&action=nav" class="bottom_post"></a>
  215. <a href="<!--{if $_G[uid]}-->home.php?mod=space&uid=$_G[uid]&do=profile&mycenter=1<!--{else}-->member.php?mod=logging&action=login<!--{/if}-->" class="bottom_member"></a>
  216. </div>
  217. <!--{template common/footer}-->