space_thread.htm
13.8 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
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
{eval
$filter = array( 'common' => '{lang have_posted}', 'save' => '{lang draft}', 'close' => '{lang closed}', 'aduit' => '{lang pending}', 'ignored' => '{lang ignored}', 'recyclebin' => '{lang recyclebin}');
$_G[home_tpl_spacemenus][] = "<a href=\"home.php?mod=space&uid=$space[uid]&do=thread&view=me\">{lang they_thread}</a>";
}
<!--{if $diymode}-->
<!--{if $_G[setting][homepagestyle]}-->
<!--{subtemplate home/space_header}-->
<div id="ct" class="ct2 wp cl">
<div class="mn">
<div class="bm">
<div class="bm_h">
<!--{if $space[self]}--><span class="xi2 y"><a href="forum.php?mod=misc&action=nav" onclick="showWindow('nav', this.href, 'get', 0)" class="addnew">{lang posted}</a></span><!--{/if}-->
<h1 class="mt">
<!--{if $_GET[type] == 'reply'}-->
<span class="xs1 xw0"><a href="home.php?mod=space&do=thread&view=me&type=thread&uid=$space[uid]&from=space">{lang topic}</a><span class="pipe">|</span></span>{lang reply}
<!--{else}-->
{lang topic}<span class="xs1 xw0"><span class="pipe">|</span><a href="home.php?mod=space&do=thread&view=me&type=reply&uid=$space[uid]&from=space">{lang reply}</a></span>
<!--{/if}-->
</h1>
</div>
<div class="bm_c">
<!--{else}-->
<!--{template common/header}-->
<div id="pt" class="bm cl">
<div class="z">
<a href="./" class="nvhm" title="{lang homepage}">$_G[setting][bbname]</a> <em>›</em>
<a href="home.php?mod=space&uid=$space[uid]">{$space[username]}</a> <em>›</em>
<a href="home.php?mod=space&uid=$space[uid]&do=blog&view=me">{lang thread}</a>
</div>
</div>
<style id="diy_style" type="text/css"></style>
<div class="wp">
<!--[diy=diy1]--><div id="diy1" class="area"></div><!--[/diy]-->
</div>
<!--{template home/space_menu}-->
<div id="ct" class="ct1 wp cl">
<div class="mn">
<!--[diy=diycontenttop]--><div id="diycontenttop" class="area"></div><!--[/diy]-->
<div class="bm bw0">
<div class="bm_c">
<!--{/if}-->
<!--{else}-->
<!--{template common/header}-->
<div id="pt" class="bm cl">
<div class="z">
<a href="./" class="nvhm" title="{lang homepage}">$_G[setting][bbname]</a> <em>›</em>
<!--{if $_G[setting][homestyle]}--><a href="home.php">$_G[setting][navs][4][navname]</a> <em>›</em> <!--{/if}-->
<a href="home.php?mod=space&do=blog">{lang thread}</a>
</div>
</div>
<style id="diy_style" type="text/css"></style>
<div class="wp">
<!--[diy=diy1]--><div id="diy1" class="area"></div><!--[/diy]-->
</div>
<div id="ct" class="ct2_a wp cl">
<!--{if $_G[setting][homestyle]}-->
<div class="appl">
<!--{subtemplate common/userabout}-->
</div>
<div class="mn pbw">
<!--[diy=diycontenttop]--><div id="diycontenttop" class="area"></div><!--[/diy]-->
<div class="bm bw0">
<ul class="tb cl">
<li$actives[we]><a href="home.php?mod=space&do=thread&view=we">{lang friend_post}</a></li>
<li$actives[me]><a href="home.php?mod=space&do=thread&view=me">{lang my_post}</a></li>
</ul>
</div>
<!--{else}-->
<div class="appl">
<div class="tbn">
<h2 class="mt bbda">{lang thread}</h2>
<ul>
<li$actives[we]><a href="home.php?mod=space&do=thread&view=we">{lang friend_post}</a></li>
<li$actives[me]><a href="home.php?mod=space&do=thread&view=me">{lang my_post}</a></li>
</ul>
</div>
</div>
<div class="mn pbw">
<!--[diy=diycontenttop]--><div id="diycontenttop" class="area"></div><!--[/diy]-->
<!--{/if}-->
<!--{/if}-->
<!--{if !$diymode && $space[self]}-->
<!--{if $_GET['view'] == 'me'}-->
<p class="tbmu bw0">
<!--{if $viewtype != 'postcomment'}-->
<span class="y">
<a href="home.php?mod=space&uid=$space[uid]&do=thread&view=me&type=$viewtype&from=$_GET[from]&filter=" {if !$_GET[filter]}class="a"{/if}>{lang all}</a>
<!--{loop $filter $key $name}--><span class="pipe">|</span><a href="home.php?mod=space&do=thread&view=me&type=$viewtype&from=$_GET[from]&filter=$key" {if $key == $_GET[filter]}class="a"{/if}>$name</a><!--{/loop}-->
<select name="forumlist" id="forumlist" class="ps vm" onchange="viewforumthread(this.value);" style="width: 120px; word-wrap: normal;">
<option value="0">{lang follow_select_forum}</option>
$forumlist
</select>
</span>
<!--{/if}-->
<a href="home.php?mod=space&do=thread&view=me&type=thread" $orderactives[thread]>{lang topic}</a><span class="pipe">|</span>
<a href="home.php?mod=space&do=thread&view=me&type=reply" $orderactives[reply]>{lang reply}</a><span class="pipe">|</span>
<a href="home.php?mod=space&do=thread&view=me&type=postcomment" $orderactives[postcomment]>{lang post_comment}</a>
<!--{if $viewtype != 'reply' && $viewtype != 'postcomment'}--> <input type="text" id="searchmypost" class="px vm" size="15" /> <button class="pn vm" onclick="searchpostbyusername($('searchmypost').value, '$_G[username]');"><em>{lang search}</em></button><!--{/if}-->
</p>
<!--{elseif $_GET['view'] == 'all'}-->
<p class="tbmu bw0">
<a href="home.php?mod=space&do=thread&view=all&order=dateline" $orderactives[dateline]>{lang newest_thread}</a><span class="pipe">|</span>
<a href="home.php?mod=space&do=thread&view=all&order=hot" $orderactives[hot]>{lang top_thread}</a>
</p>
<!--{/if}-->
<!--{/if}-->
<!--{if $diymode && !$_G[setting][homepagestyle] }-->
<p class="tbmu">
<a href="home.php?mod=space&uid=$space[uid]&do=thread&view=me&from=space&type=thread" $orderactives[thread]>{lang topic}</a>
<span class="pipe">|</span>
<a href="home.php?mod=space&uid=$space[uid]&do=thread&view=me&from=space&type=reply" $orderactives[reply]>{lang reply}</a>
</p>
<!--{/if}-->
<!--{if $userlist}-->
<p class="tbmu bw0">
{lang view_by_friend}
<select name="fuidsel" onchange="fuidgoto(this.value);" class="ps">
<option value="">{lang all_friends}</option>
<!--{loop $userlist $value}-->
<option value="$value[fuid]"{$fuid_actives[$value[fuid]]}>$value[fusername]</option>
<!--{/loop}-->
</select>
</p>
<!--{/if}-->
<div class="tl">
<form method="post" autocomplete="off" name="delform" id="delform" action="home.php?mod=space&do=thread&view=all&order=dateline" onsubmit="showDialog('{lang del_select_thread_confirm}', 'confirm', '', '$(\'delform\').submit();'); return false;">
<input type="hidden" name="formhash" value="{FORMHASH}" />
<input type="hidden" name="delthread" value="true" />
<table cellspacing="0" cellpadding="0">
<tr class="th">
<td class="icn"> </td>
<!--{if $_GET['view'] == 'all' && $pruneperm && !$_GET['archiveid']}-->
<td class="o"> </td>
<!--{/if}-->
<th><!--{if $viewtype == 'reply' || $viewtype == 'postcomment'}-->{lang post}<!--{else}-->{lang topic}<!--{/if}--></th>
<td class="frm">{lang forum}<!--{if $actives[me] && $space['uid'] == $_G['uid']}-->/{lang group}<!--{/if}--></td>
<!--{if $viewtype != 'postcomment'}-->
<!--{if !$actives[me]}-->
<td class="by">{lang author}</td>
<!--{/if}-->
<td class="num">{lang replies}</td>
<!--{if $actives[me]}-->
<td class="by"><cite>{lang last_post}</cite></td>
<!--{/if}-->
<!--{/if}-->
</tr>
<!--{if $list}-->
<!--{loop $list $stid $thread}-->
<tr{if $actives[me] && $viewtype=='reply' || $viewtype=='postcomment'} class="bw0_all"{/if}>
<td class="icn">
<a href="forum.php?mod=viewthread&tid=$thread[tid]&highlight=$index[keywords]" title="{lang open_new_window}" target="_blank">
<!--{if $thread[folder] == 'lock'}-->
<img src="{IMGDIR}/folder_lock.gif" />
<!--{elseif $thread['special'] == 1}-->
<img src="{IMGDIR}/pollsmall.gif" alt="{lang poll}" />
<!--{elseif $thread['special'] == 2}-->
<img src="{IMGDIR}/tradesmall.gif" alt="{lang trade}" />
<!--{elseif $thread['special'] == 3}-->
<img src="{IMGDIR}/rewardsmall.gif" alt="{lang reward}" />
<!--{elseif $thread['special'] == 4}-->
<img src="{IMGDIR}/activitysmall.gif" alt="{lang activity}" />
<!--{elseif $thread['special'] == 5}-->
<img src="{IMGDIR}/debatesmall.gif" alt="{lang debate}" />
<!--{elseif in_array($thread['displayorder'], array(1, 2, 3, 4))}-->
<img src="{IMGDIR}/pin_$thread[displayorder].gif" alt="$_G[setting][threadsticky][3-$thread[displayorder]]" />
<!--{else}-->
<img src="{IMGDIR}/folder_$thread[folder].gif" />
<!--{/if}-->
</a>
</td>
<!--{if $_GET['view'] == 'all' && $pruneperm && !$_GET['archiveid']}-->
<td class="o">
<!--{if $thread['digest'] == 0}-->
<!--{if $thread['displayorder'] == 0}-->
<input type="checkbox" name="moderate[]" value="$thread[tid]" class="pc" />
<!--{else}-->
<input type="checkbox" class="pc" disabled="disabled" />
<!--{/if}-->
<!--{else}-->
<input type="checkbox" class="pc" disabled="disabled" />
<!--{/if}-->
</td>
<!--{/if}-->
<th>
<!--{if $viewtype == 'reply' || $viewtype == 'postcomment'}-->
<a href="forum.php?mod=redirect&goto=findpost&ptid=$thread[tid]&pid=$thread[pid]" target="_blank">$thread[subject]</a>
<!--{else}-->
<a href="forum.php?mod=viewthread&tid=$thread[tid]" target="_blank" {if $thread['displayorder'] == -1}class="recy"{/if}>$thread[subject]</a>
<!--{/if}-->
<!--{if $thread['digest'] > 0}-->
<img src="{IMGDIR}/digest_$thread[digest].gif" alt="{lang digest} $thread[digest]" align="absmiddle" />
<!--{/if}-->
<!--{if $thread['attachment'] == 2}-->
<img src="{STATICURL}image/filetype/image_s.gif" alt="{lang photo_accessories}" align="absmiddle" />
<!--{elseif $thread['attachment'] == 1}-->
<img src="{STATICURL}image/filetype/common.gif" alt="{lang accessory}" align="absmiddle" />
<!--{/if}-->
<!--{if $thread[multipage]}--><span class="tps">$thread[multipage]</span><!--{/if}-->
<!--{if !$_GET['filter']}-->
<!--{if $thread[$statusfield] == -1}--><span class="xg1">$filter[recyclebin]</span>
<!--{elseif $thread[$statusfield] == -2}--><span class="xg1">$filter[aduit]</span>
<!--{elseif $thread[$statusfield] == -3 && $thread[displayorder] != -4}--><span class="xg1">$filter[ignored]</span>
<!--{elseif $thread[displayorder] == -4}--><span class="xg1">$filter[save]</span>
<!--{elseif $thread['closed'] == 1}--><span class="xg1">$filter[close]</span>
<!--{/if}-->
<!--{/if}-->
</th>
<td>
<a href="forum.php?mod=forumdisplay&fid=$thread[fid]" class="xg1" target="_blank">$forums[$thread[fid]]</a>
</td>
<!--{if $viewtype != 'postcomment'}-->
<!--{if !$actives[me]}-->
<td>
<cite><a href="home.php?mod=space&uid=$thread[authorid]" target="_blank">$thread[author]</a></cite>
<em>$thread[dateline]</em>
</td>
<!--{/if}-->
<td class="num">
<a href="forum.php?mod=viewthread&tid=$thread[tid]" class="xi2" target="_blank">$thread[replies]</a>
<em>$thread[views]</em>
</td>
<!--{if $actives[me]}-->
<td class="by">
<cite><a href="home.php?mod=space&username=$thread[lastposterenc]" target="_blank">$thread[lastposter]</a></cite>
<em><a href="forum.php?mod=redirect&tid=$thread[tid]&goto=lastpost#lastpost" target="_blank">$thread[lastpost]</a></em>
</td>
<!--{/if}-->
<!--{/if}-->
</tr>
<!--{if $actives[me] && $viewtype=='reply'}-->
<!--{loop $tids[$stid] $pid}-->
<!--{eval $post = $posts[$pid];}-->
<tr>
<td colspan="5" class="xg1"> <img src="{IMGDIR}/icon_quote_m_s.gif" style="vertical-align:middle;" /> <a href="forum.php?mod=redirect&goto=findpost&ptid=$thread[tid]&pid=$pid" target="_blank"><!--{if $post[message]}-->{$post[message]}<!--{else}-->......<!--{/if}--></a> <img src="{IMGDIR}/icon_quote_m_e.gif" style="vertical-align:middle;" /></td>
</tr>
<!--{/loop}-->
<!--{/if}-->
<!--{if $actives[me] && $viewtype=='postcomment'}-->
<tr>
<td class="icn"> </td>
<td colspan="2" class="xg1">$thread[comment]</td>
</tr>
<!--{/if}-->
<!--{/loop}-->
<!--{else}-->
<tr>
<td colspan="{if $viewtype != 'postcomment'}{if ($_GET['view'] == 'all' && $pruneperm && !$_GET['archiveid'])}6{else}5{/if}{else}3{/if}"><p class="emp">{lang no_related_posts}</p></td>
</tr>
<!--{/if}-->
</table>
<!--{if $_GET['view'] == 'all' && $pruneperm && !$_GET['archiveid'] && $list}-->
<p class="mtm pns">
<label for="chkall" onclick="checkall(this.form, 'moderate')"><input type="checkbox" name="chkall" id="chkall" class="pc vm" />{lang select_all}</label>
<button type="submit" name="delsubmit" value="true" class="pn vm"><em>{lang del_select_thread}</em></button>
</p>
<!--{/if}-->
</form>
<!--{if $hiddennum}-->
<p class="mtm">{lang hide_thread}</p>
<!--{/if}-->
</div>
<!--{if $multi}--><div class="pgs cl mtm">$multi</div><!--{/if}-->
<script type="text/javascript">
function fuidgoto(fuid) {
window.location.href = 'home.php?mod=space&do=thread&view=we&fuid='+fuid;
}
function viewforumthread(fid) {
window.location.href = '{$forumurl}&fid='+fid;
}
</script>
<!--{if !$_G[setting][homepagestyle]}--><!--[diy=diycontentbottom]--><div id="diycontentbottom" class="area"></div><!--[/diy]--><!--{/if}-->
<!--{if $diymode}-->
</div>
</div>
<!--{if $_G[setting][homepagestyle]}-->
</div>
<div class="sd">
<!--{subtemplate home/space_userabout}-->
<!--{/if}-->
<!--{/if}-->
</div>
</div>
<!--{if !$_G[setting][homepagestyle]}-->
<div class="wp mtn">
<!--[diy=diy3]--><div id="diy3" class="area"></div><!--[/diy]-->
</div>
<!--{/if}-->
<!--{template common/footer}-->