viewthread.htm 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232
  1. <!--{eval $threadsort = $threadsorts = null;}-->
  2. <!--{template common/header}-->
  3. <!-- header start -->
  4. <div class="wk_header">
  5. <header class="width100">
  6. <h1 class="wk_fl"><a href="portal.php?mod=index"><img alt="$_G[setting][bbname]" src="$_G['style']['styleimgdir']/logo.png" class="width100"/></a></h1>
  7. <div class="wk_fr wk_nav"><div class="toggle-btn wk_hmenu"><span class="icon-i"></span><span class="icon-i"></span><span class="icon-i"></span></div></div>
  8. <div class="wk_fr wk_nav"><a href="#" title="{lang reply}" id="replyid"><img src="$_G['style']['styleimgdir']/icon_send.jpg" class="width100"/></a></div>
  9. <div class="wk_fr wk_nav"><a href="home.php?mod=spacecp&ac=favorite&type=thread&id=$_G[tid]" title="{lang favorite}" class="favbtn"><img src="$_G['style']['styleimgdir']/icon_fav.jpg" class="width100"/></a></div>
  10. </header>
  11. </div>
  12. <div class="clear"></div>
  13. <!-- header end -->
  14. <div class="wk_modn mt-mb">
  15. <div class="row">
  16. <a href="./" title="{lang homepage}"></a>
  17. <em>&rsaquo;</em>
  18. <a href="forum.php?forumlist=1">{$_G[setting][navs][2][navname]}</a> $navigation
  19. <em>&rsaquo;</em>
  20. <span>$touch_lang[33]</span>
  21. </div>
  22. </div>
  23. <!--{hook/viewthread_top_mobile}-->
  24. <!-- main postlist start -->
  25. <div class="postlist">
  26. <h2>
  27. <!--{if $_G['forum_thread']['typeid'] && $_G['forum']['threadtypes']['types'][$_G['forum_thread']['typeid']]}-->
  28. [{$_G['forum']['threadtypes']['types'][$_G['forum_thread']['typeid']]}]
  29. <!--{/if}-->
  30. <!--{if $threadsorts && $_G['forum_thread']['sortid']}-->
  31. [{$_G['forum']['threadsorts']['types'][$_G['forum_thread']['sortid']]}]
  32. <!--{/if}-->
  33. $_G[forum_thread][subject]
  34. <!--{if $_G['forum_thread'][displayorder] == -2}--> <span>({lang moderating})</span>
  35. <!--{elseif $_G['forum_thread'][displayorder] == -3}--> <span>({lang have_ignored})</span>
  36. <!--{elseif $_G['forum_thread'][displayorder] == -4}--> <span>({lang draft})</span>
  37. <!--{/if}-->
  38. </h2>
  39. <!--{eval $postcount = 0;}-->
  40. <!--{eval $wy=1}-->
  41. <!--{loop $postlist $post}-->
  42. <!--{eval $needhiddenreply = ($hiddenreplies && $_G['uid'] != $post['authorid'] && $_G['uid'] != $_G['forum_thread']['authorid'] && !$post['first'] && !$_G['forum']['ismoderator']);}-->
  43. <!--{hook/viewthread_posttop_mobile $postcount}-->
  44. <div class="plc cl {if is_int($wy/2)}wk_wye{/if}" id="pid$post[pid]">
  45. <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>
  46. <div class="display pi" href="#replybtn_$post[pid]">
  47. <ul class="authi">
  48. <li class="grey">
  49. <em>
  50. <!--{if isset($post[isstick])}-->
  51. <img src ="{IMGDIR}/settop.png" title="{lang replystick}" class="vm" /> {lang from} {$post[number]}{$postnostick}
  52. <!--{elseif $post[number] == -1}-->
  53. {lang recommend_post}
  54. <!--{else}-->
  55. <!--{if !empty($postno[$post[number]])}-->$postno[$post[number]]<!--{else}-->{$post[number]}{$postno[0]}<!--{/if}-->
  56. <!--{/if}-->
  57. </em><b>
  58. <!--{if $post['authorid'] && $post['username'] && !$post['anonymous']}-->
  59. <a href="home.php?mod=space&uid=$post[authorid]" class="blue">$post[author]</a></b>
  60. <!--{else}-->
  61. <!--{if !$post['authorid']}-->
  62. <a href="javascript:;">{lang guest} <em>$post[useip]{if $post[port]}:$post[port]{/if}</em></a>
  63. <!--{elseif $post['authorid'] && $post['username'] && $post['anonymous']}-->
  64. <!--{if $_G['forum']['ismoderator']}--><a href="home.php?mod=space&uid=$post[authorid]" target="_blank">{lang anonymous}</a><!--{else}-->{lang anonymous}<!--{/if}-->
  65. <!--{else}-->
  66. $post[author] <em>{lang member_deleted}</em>
  67. <!--{/if}-->
  68. <!--{/if}-->
  69. </li>
  70. <li class="grey rela">
  71. <!--{if $_G['forum']['ismoderator']}-->
  72. <!-- manage start -->
  73. <!--{if $post[first]}-->
  74. <em><a href="#moption_$post[pid]" class="popup blue">{lang manage}</a></em>
  75. <div id="moption_$post[pid]" popup="true" class="manage" style="display:none;">
  76. <!--{if !$_G['forum_thread']['special']}-->
  77. <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">
  78. <!--{/if}-->
  79. <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]}">
  80. <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">
  81. <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]}">
  82. <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]}">
  83. </div>
  84. <!--{else}-->
  85. <em><a href="#moption_$post[pid]" class="popup blue">{lang manage}</a></em>
  86. <div id="moption_$post[pid]" popup="true" class="manage" style="display:none;">
  87. <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">
  88. <!--{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}-->
  89. <!--{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}-->
  90. <!--{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}-->
  91. </div>
  92. <!--{/if}-->
  93. <!-- manage end -->
  94. <!--{/if}-->
  95. <!--{if $post[first]}-->
  96. <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>
  97. <!--{/if}-->
  98. $post[dateline]
  99. </li>
  100. </ul>
  101. <div class="message">
  102. <!--{if $post['warned']}-->
  103. <span class="grey quote">{lang warn_get}</span>
  104. <!--{/if}-->
  105. <!--{if !$post['first'] && !empty($post[subject])}-->
  106. <h2><strong>$post[subject]</strong></h2>
  107. <!--{/if}-->
  108. <!--{if $_G['adminid'] != 1 && $_G['setting']['bannedmessages'] & 1 && (($post['authorid'] && !$post['username']) || ($post['groupid'] == 4 || $post['groupid'] == 5) || $post['status'] == -1 || $post['memberstatus'])}-->
  109. <div class="grey quote">{lang message_banned}</div>
  110. <!--{elseif $_G['adminid'] != 1 && $post['status'] & 1}-->
  111. <div class="grey quote">{lang message_single_banned}</div>
  112. <!--{elseif $needhiddenreply}-->
  113. <div class="grey quote">{lang message_ishidden_hiddenreplies}</div>
  114. <!--{elseif $post['first'] && $_G['forum_threadpay']}-->
  115. <!--{template forum/viewthread_pay}-->
  116. <!--{else}-->
  117. <!--{if $_G['setting']['bannedmessages'] & 1 && (($post['authorid'] && !$post['username']) || ($post['groupid'] == 4 || $post['groupid'] == 5))}-->
  118. <div class="grey quote">{lang admin_message_banned}</div>
  119. <!--{elseif $post['status'] & 1}-->
  120. <div class="grey quote">{lang admin_message_single_banned}</div>
  121. <!--{/if}-->
  122. <!--{if $_G['forum_thread']['price'] > 0 && $_G['forum_thread']['special'] == 0}-->
  123. {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>
  124. <!--{/if}-->
  125. <!--{if $post['first'] && $threadsort && $threadsortshow}-->
  126. <!--{if $threadsortshow['optionlist'] && !($post['status'] & 1) && !$_G['forum_threadpay']}-->
  127. <!--{if $threadsortshow['optionlist'] == 'expire'}-->
  128. {lang has_expired}
  129. <!--{else}-->
  130. <div class="box_ex2 viewsort">
  131. <h4>$_G[forum][threadsorts][types][$_G[forum_thread][sortid]]</h4>
  132. <!--{loop $threadsortshow['optionlist'] $option}-->
  133. <!--{if $option['type'] != 'info'}-->
  134. $option[title]: <!--{if $option['value']}-->$option[value] $option[unit]<!--{else}--><span class="grey">--</span><!--{/if}--><br />
  135. <!--{/if}-->
  136. <!--{/loop}-->
  137. </div>
  138. <!--{/if}-->
  139. <!--{/if}-->
  140. <!--{/if}-->
  141. <!--{if $post['first']}-->
  142. <!--{if !$_G[forum_thread][special]}-->
  143. $post[message]
  144. <!--{elseif $_G[forum_thread][special] == 1}-->
  145. <!--{template forum/viewthread_poll}-->
  146. <!--{elseif $_G[forum_thread][special] == 2}-->
  147. <!--{template forum/viewthread_trade}-->
  148. <!--{elseif $_G[forum_thread][special] == 3}-->
  149. <!--{template forum/viewthread_reward}-->
  150. <!--{elseif $_G[forum_thread][special] == 4}-->
  151. <!--{template forum/viewthread_activity}-->
  152. <!--{elseif $_G[forum_thread][special] == 5}-->
  153. <!--{template forum/viewthread_debate}-->
  154. <!--{elseif $threadplughtml}-->
  155. $threadplughtml
  156. $post[message]
  157. <!--{else}-->
  158. $post[message]
  159. <!--{/if}-->
  160. <div class="bdsharebuttonbox"><a href="#" class="bds_more" data-cmd="more"></a><a href="#" class="bds_qzone" data-cmd="qzone" title=""></a><a href="#" class="bds_tsina" data-cmd="tsina" title=""></a><a href="#" class="bds_tqq" data-cmd="tqq" title=""></a><a href="#" class="bds_renren" data-cmd="renren" title=""></a><a href="#" class="bds_weixin" data-cmd="weixin" title=""></a></div>
  161. <script>window._bd_share_config={"common":{"bdSnsKey":{},"bdText":"","bdMini":"2","bdMiniList":false,"bdPic":"","bdStyle":"1","bdSize":"16"},"share":{}};with(document)0[(getElementsByTagName('head')[0]||body).appendChild(createElement('script')).src='http://bdimg.share.baidu.com/static/api/js/share.js?v=89860593.js?cdnversion='+~(-new Date()/36e5)];</script>
  162. <!--{else}-->
  163. $post[message]
  164. <!--{/if}-->
  165. <!--{/if}-->
  166. </div>
  167. <!--{if $_G['setting']['mobile']['mobilesimpletype'] == 0}-->
  168. <!--{if $post['attachment']}-->
  169. <div class="grey quote">
  170. {lang attachment}: <em><!--{if $_G['uid']}-->{lang attach_nopermission}<!--{else}-->{lang attach_nopermission_login}<!--{/if}--></em>
  171. </div>
  172. <!--{elseif $post['imagelist'] || $post['attachlist']}-->
  173. <!--{if $post['imagelist']}-->
  174. <!--{if count($post['imagelist']) == 1}-->
  175. <ul class="img_one">{echo showattach($post, 1)}</ul>
  176. <!--{else}-->
  177. <ul class="img_list cl vm">{echo showattach($post, 1)}</ul>
  178. <!--{/if}-->
  179. <!--{/if}-->
  180. <!--{if $post['attachlist']}-->
  181. <ul>{echo showattach($post)}</ul>
  182. <!--{/if}-->
  183. <!--{/if}-->
  184. <!--{/if}-->
  185. <!--{if $_G[uid] && $allowpostreply && !$post[first]}-->
  186. <div id="replybtn_$post[pid]" class="replybtn" display="true" style="display:none;position:absolute;right:0px;top:5px;">
  187. <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}">
  188. </div>
  189. <!--{/if}-->
  190. </div>
  191. </div>
  192. <!--{hook/viewthread_postbottom_mobile $postcount}-->
  193. <!--{eval $postcount++;}-->
  194. <!--{eval $wy++}-->
  195. <!--{/loop}-->
  196. <!--{subtemplate forum/forumdisplay_fastpost}-->
  197. </div>
  198. <!-- main postlist end -->
  199. $multipage
  200. <!--{hook/viewthread_bottom_mobile}-->
  201. <script type="text/javascript">
  202. $('.favbtn').on('click', function() {
  203. var obj = $(this);
  204. $.ajax({
  205. type:'POST',
  206. url:obj.attr('href') + '&handlekey=favbtn&inajax=1',
  207. data:{'favoritesubmit':'true', 'formhash':'{FORMHASH}'},
  208. dataType:'xml',
  209. })
  210. .success(function(s) {
  211. popup.open(s.lastChild.firstChild.nodeValue);
  212. evalscript(s.lastChild.firstChild.nodeValue);
  213. })
  214. .error(function() {
  215. window.location.href = obj.attr('href');
  216. popup.close();
  217. });
  218. return false;
  219. });
  220. </script>
  221. <!--{template common/footer}-->