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