我是靠谱客的博主 优雅猫咪,这篇文章主要介绍【discuzx2】forumdisplay_list.htm模板文件深入分析,现在分享给大家,希望可以做个参考。

复制代码
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
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
<div id="threadlist" class="tl bm bmw"{if $_G['uid']} style="position: relative;"{/if}> <!--{if $quicksearchlist && !$_GET['archiveid']}--> <!--{subtemplate forum/search_sortoption}--> <!--{/if}--> <div class="th"> <table cellspacing="0" cellpadding="0"> <tr> <th colspan="{if !$_GET['archiveid'] && $_G['forum']['ismoderator']}3{else}2{/if}"> <!-- guide:导读 --> <!--{if CURMODULE != 'guide'}--> <div class="tf"> <!-- 新窗口 --> <span id="atarget" {if $_G['cookie']['atarget'] > 0}οnclick="setatarget(-1)" class="y atarget_1"{else}οnclick="setatarget(1)" class="y"{/if} title="{lang new_window_thread}">{lang new_window}</span> <!-- 筛选 --> {lang screening}: <!-- 全部主题 --> <a id="filter_special" href="javascript:;" class="showmenu xi2" οnclick="showMenu(this.id)"> <!--{if $_GET['specialtype'] == 'poll'}-->{lang thread_poll}<!--{elseif $_GET['specialtype'] == 'trade'}-->{lang thread_trade}<!--{elseif $_GET['specialtype'] == 'reward'}-->{lang thread_reward}<!--{elseif $_GET['specialtype'] == 'activity'}-->{lang thread_activity}<!--{elseif $_GET['specialtype'] == 'debate'}-->{lang thread_debate}<!--{else}-->{lang threads_all}<!--{/if}--> </a> <!--{if $_GET['specialtype'] == 'reward'}--> <a id="filter_reward" href="javascript:;" class="showmenu xi2" οnclick="showMenu(this.id)"> <!--{if $_GET['rewardtype'] == ''}-->{lang all_reward}<!--{elseif $_GET['rewardtype'] == '1'}-->{lang rewarding}<!--{elseif $_GET['rewardtype'] == '2'}-->{lang reward_solved}<!--{/if}--> </a> <!--{/if}--> <!-- 全部时间 --> <a id="filter_dateline" href="javascript:;" class="showmenu xi2" οnclick="showMenu(this.id)"> <!-- 全部时间、一天、两天、一周、一个月、两个月 --> <!--{if $_GET['dateline'] == 86400}-->{lang last_1_days}<!--{elseif $_GET['dateline'] == 172800}-->{lang last_2_days}<!--{elseif $_GET['dateline'] == 604800}-->{lang list_one_week}<!--{elseif $_GET['dateline'] == 2592000}-->{lang list_one_month}<!--{elseif $_GET['dateline'] == 7948800}-->{lang list_three_month}<!--{else}-->{lang search_any_date}<!--{/if}--> </a> <!--{if !$_G['setting']['closeforumorderby']}--> <!-- 排序 --> {lang orderby}: <a id="filter_orderby" href="javascript:;" class="showmenu xi2" οnclick="showMenu(this.id)"> <!-- 默认排序、发帖时间、回复/查看、查看、最后发表、热门 --> <!--{if $_GET['orderby'] == 'dateline'}-->{lang list_post_time}<!--{elseif $_GET['orderby'] == 'replies'}-->{lang replies}<!--{elseif $_GET['orderby'] == 'views'}-->{lang views}<!--{elseif $_GET['orderby'] == 'lastpost'}-->{lang lastpost}<!--{elseif $_GET['orderby'] == 'heats'}-->{lang order_heats}<!--{else}-->{lang list_default_sort}<!--{/if}--> <!--{/if}--> <!-- 精华、查看更新 --> </a><span class="pipe">|</span><a href="forum.php?mod=forumdisplay&fid=$_G[fid]&filter=digest&digest=1$forumdisplayadd[digest]{if $_GET['archiveid']}&archiveid={$_GET['archiveid']}{/if}" class="xi2">{lang digest_posts}</a><!--{if !empty($_G[setting][recommendthread][status])}--><span class="pipe">|</span><a href="forum.php?mod=forumdisplay&fid=$_G[fid]&filter=recommend&orderby=recommends&recommend=1$forumdisplayadd[recommend]{if $_GET['archiveid']}&archiveid={$_GET['archiveid']}{/if}" class="xi2">{lang order_recommends}</a><!--{/if}--> <!--{if empty($_G['forum']['picstyle']) && $_GET['orderby'] == 'lastpost' && (!$_G['setting']['forumseparator'] || !$separatepos) && !$_GET['filter']}--><span class="pipe">|</span><a href="javascript:;" οnclick="checkForumnew_btn('{$_G['fid']}')" title="{lang showupgrade}" class="forumrefresh"></a><!--{/if}--> <!--{hook/forumdisplay_filter_extra}--> </div> <!--{else}--> {lang title} <!--{/if}--> </th> <!--{if empty($_G['forum']['picstyle'])}--> <!--{if CURMODULE == 'guide'}--> <td class="by">{lang forum_group}</td> <!--{/if}--> <!-- 作者 --> <td class="by">{lang author}</td> <!-- 回复/查看 --> <td class="num">{lang replies}</td> <!-- 最后发表 --> <td class="by">{lang lastpost}</td> <!--{else}--> <td class="by" colspan="3"> <a{if empty($_G['cookie']['forumdefstyle'])} href="forum.php?mod=forumdisplay&fid=$_G[fid]&forumdefstyle=yes" class="chked"{else} href="forum.php?mod=forumdisplay&fid=$_G[fid]&forumdefstyle=no" class="unchk"{/if} title="{lang view_thread_imagemode}{lang view_thread}">{lang view_thread_imagemode}</a> </td> <!--{/if}--> </tr> </table> </div> <div class="bm_c"> <!--{if empty($_G['forum']['picstyle']) || $_G['cookie']['forumdefstyle']}--> <script type="text/javascript">var lasttime = $_G['timestamp'];</script> <!--{/if}--> <div id="forumnew" style="display:none"></div> <form method="post" autocomplete="off" name="moderate" id="moderate" action="forum.php?mod=topicadmin&action=moderate&fid=$_G[fid]&infloat=yes&nopost=yes"> <input type="hidden" name="formhash" value="{FORMHASH}" /> <input type="hidden" name="listextra" value="$extra" /> <table summary="forum_$_G[fid]" cellspacing="0" cellpadding="0"> <!--{if (!$simplestyle || !$_G['forum']['allowside'] && $page == 1) && !empty($announcement)}--> <tbody> <tr> <td class="icn"><img src="{IMGDIR}/ann_icon.gif" alt="{lang announcement}" /></td> <!--{if $_G['forum']['ismoderator'] && !$_GET['archiveid']}--><td class="o"> </td><!--{/if}--> <!-- 公告 --> <th><strong class="xst">{lang announcement}: <!--{if empty($announcement['type'])}--><a href="forum.php?mod=announcement&id=$announcement[id]#$announcement[id]" target="_blank">$announcement[subject]</a><!--{else}--><a href="$announcement[message]" target="_blank">$announcement[subject]</a><!--{/if}--></strong></th> <!-- 公告发布者及开始时间,如:admin --> <td class="by"> <cite><a href="home.php?mod=space&uid=$announcement[authorid]" c="1">$announcement[author]</a></cite> <em>$announcement[starttime]</em> </td> <td class="num"> </td> <td class="by"> </td> </tr> </tbody> <!--{/if}--> <!--{if !$separatepos || !$_G['setting']['forumseparator']}--> <tbody id="separatorline" class="emptb"><tr><td class="icn"></td><!--{if !$_GET['archiveid'] && $_G['forum']['ismoderator']}--><td class="o"></td><!--{/if}--><th></th><!--{if CURMODULE == 'guide'}--><td class="by"></td><!--{/if}--><td class="by"></td><td class="num"></td><td class="by"></td></tr></tbody> <!--{/if}--> <!-- 如果主题数量不为空,开始循环列表显示 --> <!--{if $_G['forum_threadcount']}--> <!--{if empty($_G['forum']['picstyle']) || $_G['cookie']['forumdefstyle']}--> <!-- start-循环主题标题开始 --> <!--{loop $_G['forum_threadlist'] $key $thread}--> <!--{if $_G[setting][forumseparator] == 1 && $separatepos == $key + 1}--> <tbody id="separatorline"> <tr class="ts"> <td> </td> <!--{if $_G['forum']['ismoderator'] && !$_GET['archiveid']}--><td> </td><!--{/if}--> <th><!--{if empty($_G['forum']['picstyle']) && $_GET['orderby'] == 'lastpost' && !$_GET['filter']}--><a href="javascript:;" οnclick="checkForumnew_btn('{$_G['fid']}')" title="{lang showupgrade}" class="forumrefresh">{lang forum_thread}</a><!--{else}--> <!--{/if}--></th><td> </td><td> </td><td> </td> </tr> </tbody> <!--{/if}--> <!--{if $separatepos <= $key + 1}--> <!-- 内置广告位 --> <!--{ad/threadlist}--> <!--{/if}--> <!-- $thread[id]:"normalthread_5" --> <tbody id="$thread[id]"> <tr> <!-- start-主题图标:标题前图标 --> <td class="icn"> <!-- displayorder:是否置顶 0=普通 1=置顶 2=分类置顶 3=全局置顶 -1=回收站 --> <!-- special:特殊主题ID 0=普通 1=投票 2=商品 3=悬赏 4=活动 5=辩论 --> <!-- folder:帖子图标 lock=锁定图标 new=新帖图标 --> <a href="forum.php?mod=viewthread&tid=$thread[icontid]&{if $_GET['archiveid']}archiveid={$_GET['archiveid']}&{/if}extra=$extra" title="{if $thread['displayorder'] == 1}{lang thread_type1} - {/if} {if $thread['displayorder'] == 2}{lang thread_type2} - {/if} {if $thread['displayorder'] == 3}{lang thread_type3} - {/if} {if $thread['displayorder'] == 4}{lang thread_type4} - {/if} {if $thread[folder] == 'lock'}{lang closed_thread} - {/if} {if $thread['special'] == 1}{lang thread_poll} - {/if} {if $thread['special'] == 2}{lang thread_trade} - {/if} {if $thread['special'] == 3}{lang thread_reward} - {/if} {if $thread['special'] == 4}{lang thread_activity} - {/if} {if $thread['special'] == 5}{lang thread_debate} - {/if} {if $thread[folder] == "new"}{lang have_newreplies} - {/if} {lang target_blank}" target="_blank"> <!--{if $thread[folder] == 'lock'}--><!-- 锁定图标:"/static/image/common/folder_lock.gif" --> <img src="{IMGDIR}/folder_lock.gif" /> <!--{elseif $thread['special'] == 1}--><!-- 投票图标:"/static/image/common/pollsmall.gif" --> <img src="{IMGDIR}/pollsmall.gif" alt="{lang thread_poll}" /> <!--{elseif $thread['special'] == 2}--><!-- 商品图标:"/static/image/common/tradesmall.gif" --> <img src="{IMGDIR}/tradesmall.gif" alt="{lang thread_trade}" /> <!--{elseif $thread['special'] == 3}--><!-- 悬赏图标:"/static/image/common/rewardsmall.gif" --> <img src="{IMGDIR}/rewardsmall.gif" alt="{lang thread_reward}" /> <!--{elseif $thread['special'] == 4}--><!-- 活动图标:"/static/image/common/activitysmall.gif" --> <img src="{IMGDIR}/activitysmall.gif" alt="{lang thread_activity}" /> <!--{elseif $thread['special'] == 5}--><!-- 辩论图标:"/static/image/common/debatesmall.gif" --> <img src="{IMGDIR}/debatesmall.gif" alt="{lang thread_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}--><!-- 主题图标:"/static/image/common/folder_common.gif" --> <img src="{IMGDIR}/folder_$thread[folder].gif" /> <!--{/if}--> </a> </td> <!-- end-主题图标:标题前图标 --> <!--{if !$_GET['archiveid'] && $_G['forum']['ismoderator']}--> <!-- start-主题排序:标题前的checkbox选择框 --> <td class="o"> <!--{if $thread['fid'] == $_G[fid]}--> <!--{if $thread['displayorder'] <= 3 || $_G['adminid'] == 1}--> <input οnclick="tmodclick(this)" type="checkbox" name="moderate[]" value="$thread[tid]" /> <!--{else}--> <input type="checkbox" disabled="disabled" /> <!--{/if}--> <!--{else}--> <input type="checkbox" disabled="disabled" /> <!--{/if}--> </td> <!-- end-主题排序:标题前的checkbox选择框 --> <!--{/if}--> <!-- start-主题标题及标题后图标,$thread[folder]:common --> <th class="$thread[folder]"> <!--{hook/forumdisplay_thread $key}--> <!-- forumstick=置顶标识 --> <!-- closed:是否关闭 1-关闭 --> <!-- isgroup:是否为群组贴 0=否 1=是 --> <!--{if !$thread['forumstick'] && $thread['closed'] > 1 && ($thread['isgroup'] == 1 || $thread['fid'] != $_G['fid'])}--> <!--{eval $thread[tid]=$thread[closed];}--> <!--{/if}--> <!-- typehtml:主题分类名(以HTML输出[xxx]) --> <!-- sorthtml:分类信息名(以HTML输出[xxx]) --> $thread[typehtml] $thread[sorthtml] <!--{if $thread['moved']}--> <!-- moved:是否为移动或复制(0=否 1=是) --> {lang thread_moved}:<!--{eval $thread[tid]=$thread[closed];}--> <!--{/if}--> <!-- 主题标题 --> <a href="forum.php?mod=viewthread&tid=$thread[tid]&{if $_GET['archiveid']}archiveid={$_GET['archiveid']}&{/if}extra=$extra"$thread[highlight]{if $thread['isgroup'] == 1 || $thread['forumstick']} target="_blank"{else} οnclick="atarget(this)"{/if} class="xst" >$thread[subject]</a> <!-- icon:主题图标,即:主题后的图标 --> <!--{if $thread[icon] >= 0}--> <!-- 标题后图标 --> <img src="{STATICURL}image/stamp/{$_G[cache][stamps][$thread[icon]][url]}" alt="{$_G[cache][stamps][$thread[icon]][text]}" align="absmiddle" /> <!--{/if}--> <!-- rushreply:是否为抢楼贴(1=是 0=否) --> <!--{if $thread['rushreply']}--> <img src="{IMGDIR}/rushreply_s.png" alt="{lang rushreply}" align="absmiddle" /> <!--{/if}--> <!--{if $stemplate && $sortid}-->$stemplate[$sortid][$thread[tid]]<!--{/if}--> <!-- readperm:阅读权限 --> <!--{if $thread['readperm']}--> - [{lang readperm} <span class="xw1">$thread[readperm]</span>]<!--{/if}--> <!--{if $thread['price'] > 0}--> <!--悬赏--> <!--{if $thread['special'] == '3'}--> - <a href="forum.php?mod=forumdisplay&fid=$_G[fid]&filter=specialtype&specialtype=reward$forumdisplayadd[specialtype]{if $_GET['archiveid']}&archiveid={$_GET['archiveid']}{/if}&rewardtype=1" title="{lang show_rewarding_only}"><span class="xi1">[{lang thread_reward} <span class="xw1">$thread[price]</span> {$_G[setting][extcredits][$_G['setting']['creditstransextra'][2]][unit]}{$_G[setting][extcredits][$_G['setting']['creditstransextra'][2]][title]}]</span></a> <!--{else}--> <!-- price:主题售价 --> - [{lang price} <span class="xw1">$thread[price]</span> {$_G[setting][extcredits][$_G['setting']['creditstransextra'][1]][unit]}{$_G[setting][extcredits][$_G['setting']['creditstransextra'][1]][title]}] <!--{/if}--> <!--{elseif $thread['special'] == '3' && $thread['price'] < 0}--> - <a href="forum.php?mod=forumdisplay&fid=$_G[fid]&filter=specialtype&specialtype=reward$forumdisplayadd[specialtype]{if $_GET['archiveid']}&archiveid={$_GET['archiveid']}{/if}&rewardtype=2" title="{lang show_rewarded_only}">[{lang reward_solved}]</a> <!--{/if}--> <!-- attachment:附件数量 --> <!--{if $thread['attachment'] == 2}--> <img src="{STATICURL}image/filetype/image_s.gif" alt="attach_img" title="{lang attach_img}" align="absmiddle" /> <!--{elseif $thread['attachment'] == 1}--> <img src="{STATICURL}image/filetype/common.gif" alt="attachment" title="{lang attachment}" align="absmiddle" /> <!--{/if}--> <!-- mobile:是否手机发布(1=是 0=否) --> <!--{if $thread['mobile']}--> <img src="{IMGDIR}/mobile-attach-$thread['mobile'].png" alt="{lang post_mobile}" align="absmiddle" /> <!--{/if}--> <!-- digest:是否精华 1=是 --> <!--{if $thread['digest'] > 0 && $filter != 'digest'}--> <img src="{IMGDIR}/digest_$thread[digest].gif" align="absmiddle" alt="digest" title="{lang thread_digest} $thread[digest]" /> <!--{/if}--> <!-- displayorder:是否置顶 0=普通 1=置顶 2=分类置顶 3=全局置顶 -1=回收站 --> <!--{if $thread['displayorder'] == 0}--> <!-- recommendicon: 推荐图标 --> <!--{if $thread[recommendicon] && $filter != 'recommend'}--> <img src="{IMGDIR}/recommend_$thread[recommendicon].gif" align="absmiddle" alt="recommend" title="{lang thread_recommend} $thread[recommends]" /> <!--{/if}--> <!-- heatlevel: 热度标识(图标:火1 火2) --> <!--{if $thread[heatlevel]}--> <img src="{IMGDIR}/hot_$thread[heatlevel].gif" align="absmiddle" alt="heatlevel" title="$thread[heatlevel] {lang heats}" /> <!--{/if}--> <!-- rate:是否评分 --> <!--{if $thread['rate'] > 0}--> <img src="{IMGDIR}/agree.gif" align="absmiddle" alt="agree" title="{lang rate_credit_add}" /> <!--{elseif $thread['rate'] < 0}--> <img src="{IMGDIR}/disagree.gif" align="absmiddle" alt="disagree" title="{lang posts_deducted}" /> <!--{/if}--> <!--{/if}--> <!-- replycredit:回帖奖励积分主题记录积分值 --> <!--{if $thread['replycredit'] > 0}--> - <span class="xi1">[{lang replycredit} <strong> $thread['replycredit']</strong> ]</span> <!--{/if}--> <!--{hook/forumdisplay_thread_subject $key}--> <!-- multipage:主题迷你分页 --> <!--{if $thread[multipage]}--> <span class="tps">$thread[multipage]</span> <!--{/if}--> <!-- weeknew:是否为本周新帖(1=是 0=否) --> <!--{if $thread['weeknew']}--> <a href="forum.php?mod=redirect&tid=$thread[tid]&goto=lastpost#lastpost" class="xi1">New</a> <!--{/if}--> <!--{if !$thread['forumstick'] && ($thread['isgroup'] == 1 || $thread['fid'] != $_G['fid'])}--> <!--{if $thread['related_group'] == 0 && $thread['closed'] > 1}--> <!--{eval $thread[tid]=$thread[closed];}--> <!--{/if}--> <!--{if $groupnames[$thread[tid]]}--> <span class="fromg xg1"> [{lang from}: <a href="forum.php?mod=forumdisplay&fid={$groupnames[$thread[tid]][fid]}" target="_blank" class="xg1">{$groupnames[$thread[tid]][name]}</a>]</span> <!--{/if}--> <!--{/if}--> </th> <!-- end-主题标题及主题标题后图标,$thread[folder]:common --> <!--{if CURMODULE == 'guide'}--> <td class="by"><a href="forum.php?mod=forumdisplay&fid=$thread[fid]" target="_blank">$forumnames[$thread[fid]]['name']</a></td> <!--{/if}--> <!-- 主题发布者、发布时间 --> <td class="by"> <!--{hook/forumdisplay_author $key}--> <cite> <!-- 作者用户名、作者UID --> <!--{if $thread['authorid'] && $thread['author']}--> <!-- 发布者名称 --> <a href="home.php?mod=space&uid=$thread[authorid]" c="1">$thread[author]</a><!--{if !empty($verify[$thread['authorid']])}--> $verify[$thread[authorid]]<!--{/if}--> <!--{else}--> <!-- 匿名名称 --> $_G[setting][anonymoustext] <!--{/if}--> </cite> <!-- 发布时间 --> <em><span{if $thread['istoday']} class="xi1"{/if}>$thread[dateline]</span></em> </td> <!-- 主题 查看/回复 数量 --> <!-- 回复数、点击数 --> <td class="num"><a href="forum.php?mod=viewthread&tid=$thread[tid]&extra=$extra" class="xi2">$thread[replies]</a><em><!--{if $thread['isgroup'] != 1}-->$thread[views]<!--{else}-->{$groupnames[$thread[tid]][views]}<!--{/if}--></em></td> <!-- 最后发表 --> <td class="by"> <!-- 最后发表者姓名 --> <cite><!--{if $thread['lastposter']}--><a href="{if $thread[digest] != -2}home.php?mod=space&username=$thread[lastposterenc]{else}forum.php?mod=viewthread&tid=$thread[tid]&page={echo max(1, $thread[pages]);}{/if}" c="1">$thread[lastposter]</a><!--{else}-->$_G[setting][anonymoustext]<!--{/if}--></cite> <!-- 最后回复时间 --> <em><a href="{if $thread[digest] != -2 && !$thread[ordertype]}forum.php?mod=redirect&tid=$thread[tid]&goto=lastpost$highlight#lastpost{else}forum.php?mod=viewthread&tid=$thread[tid]{if !$thread[ordertype]}&page={echo max(1, $thread[pages]);}{/if}{/if}">$thread[lastpost]</a></em> </td> </tr> </tbody> <!--{/loop}--><!--end-循环主题标题--> </table><!-- end of table "forum_G[fid]" branch 1/3 --> <!--{else}--> </table><!-- end of table "forum_G[fid]" branch 2/3 --> <ul class="ml mlt mtw cl"> <!--{loop $_G['forum_threadlist'] $key $thread}--> <!--{if !$thread['forumstick'] && ($thread['isgroup'] == 1 || $thread['fid'] != $_G['fid'])}--> <!--{if $thread['related_group'] == 0 && $thread['closed'] > 1}--> <!--{eval $thread[tid]=$thread[closed];}--> <!--{/if}--> <!--{/if}--> <li style="width:{$_G[setting][forumpicstyle][thumbwidth]}px;"> <!--{if !$_GET['archiveid'] && $_G['forum']['ismoderator']}--> <div style="position: absolute;padding:2px;background:#FFF"> <!--{if $thread['fid'] == $_G[fid]}--> <!--{if $thread['displayorder'] <= 3 || $_G['adminid'] == 1}--> <input οnclick="tmodclick(this)" type="checkbox" name="moderate[]" value="$thread[tid]" /> <!--{else}--> <input type="checkbox" disabled="disabled" /> <!--{/if}--> <!--{else}--> <input type="checkbox" disabled="disabled" /> <!--{/if}--> </div> <!--{/if}--> <div class="c cl"> <a href="forum.php?mod=viewthread&tid=$thread[tid]&{if $_GET['archiveid']}archiveid={$_GET['archiveid']}&{/if}extra=$extra" {if $thread['isgroup'] == 1 || $thread['forumstick'] || CURMODULE == 'guide'} target="_blank"{else} οnclick="atarget(this)"{/if} title="$thread[subject]" class="z"> <!--{if $thread['cover']}--> <img src="$thread[coverpath]" alt="$thread[subject]" width="{$_G[setting][forumpicstyle][thumbwidth]}" height="{$_G[setting][forumpicstyle][thumbheight]}" /> <!--{else}--> <span class="nopic" style="width:{$_G[setting][forumpicstyle][thumbwidth]}px; height:{$_G[setting][forumpicstyle][thumbheight]}px;"></span> <!--{/if}--> </a> </div> <h3 class="ptn" style="width: {$_G[setting][forumpicstyle][thumbwidth]}px;"> <!--{hook/forumdisplay_thread $key}--> <!--{if in_array($thread['displayorder'], array(1, 2, 3, 4))}--><em class="sum pin">{lang thread_stick}</em> <!--{/if}--><!--{if in_array($thread['digest'], array(1, 2, 3))}--><em class="sum digest">{lang thread_digest}</em> <!--{/if}--><a href="forum.php?mod=viewthread&tid=$thread[tid]&{if $_GET['archiveid']}archiveid={$_GET['archiveid']}&{/if}extra=$extra"$thread[highlight]{if $thread['isgroup'] == 1 || $thread['forumstick']} target="_blank"{else} οnclick="atarget(this)"{/if} title="$thread[subject]">$thread[subject]</a> </h3> <div class="cl"> <!--{hook/forumdisplay_author $key}--> <!--{if $thread['cover']}--><em class="sum y xs0 xi1 xw1" title="$thread[cover] {lang pics}">$thread[cover]</em><!--{/if}--> <!--{if $thread['authorid'] && $thread['author']}--> <a href="home.php?mod=space&uid=$thread[authorid]">$thread[author]</a><!--{if !empty($verify[$thread['authorid']])}--> $verify[$thread[authorid]]<!--{/if}--> <!--{else}--> $_G[setting][anonymoustext] <!--{/if}--> </div> <div class="cl"> <em class="y xs0"><a href="forum.php?mod=viewthread&tid=$thread[tid]&extra=$extra" class="xi2" title="$thread[replies] {lang reply}">$thread[replies]</a> / <em title="{if $thread['isgroup'] != 1}$thread[views]{else}{$groupnames[$thread[tid]][views]}{/if} {lang show}"><!--{if $thread['isgroup'] != 1}-->$thread[views]<!--{else}-->{$groupnames[$thread[tid]][views]}<!--{/if}--></em></em> <em class="xs0{if $thread['istoday']} xi1{/if}">$thread[dateline]</em> </div> </li> <!--{/loop}--> </ul> <!--{/if}--> <!--{else}--> <tbody class="bw0_all"><tr><th colspan="{if !$_GET['archiveid'] && $_G['forum']['ismoderator']}6{else}5{/if}"><p class="emp">{lang forum_nothreads}</p></th></tr></tbody> </table><!-- end of table "forum_G[fid]" branch 3/3 --> <!--{/if}--> <!--{if $_G['forum']['ismoderator'] && $_G['forum_threadcount']}--> <!--{template forum/topicadmin_modlayer}--> <!--{/if}--> </form> </div> <!--{hook/forumdisplay_threadlist_bottom}--> </div> <!--{if !IS_ROBOT}--> <!--全部主题下拉菜单--> <div id="filter_special_menu" class="p_pop" style="display:none" change="location.href='forum.php?mod=forumdisplay&fid=$_G[fid]&filter='+$('filter_special').value"> <ul> <li><a href="forum.php?mod=forumdisplay&fid=$_G[fid]{if $_GET['archiveid']}&archiveid={$_GET['archiveid']}{/if}">{lang threads_all}</a></li> <!--{if $showpoll}--><li><a href="forum.php?mod=forumdisplay&fid=$_G[fid]&filter=specialtype&specialtype=poll$forumdisplayadd[specialtype]{if $_GET['archiveid']}&archiveid={$_GET['archiveid']}{/if}">{lang thread_poll}</a></li><!--{/if}--> <!--{if $showtrade}--><li><a href="forum.php?mod=forumdisplay&fid=$_G[fid]&filter=specialtype&specialtype=trade$forumdisplayadd[specialtype]{if $_GET['archiveid']}&archiveid={$_GET['archiveid']}{/if}">{lang thread_trade}</a></li><!--{/if}--> <!--{if $showreward}--><li><a href="forum.php?mod=forumdisplay&fid=$_G[fid]&filter=specialtype&specialtype=reward$forumdisplayadd[specialtype]{if $_GET['archiveid']}&archiveid={$_GET['archiveid']}{/if}">{lang thread_reward}</a></li><!--{/if}--> <!--{if $showactivity}--><li><a href="forum.php?mod=forumdisplay&fid=$_G[fid]&filter=specialtype&specialtype=activity$forumdisplayadd[specialtype]{if $_GET['archiveid']}&archiveid={$_GET['archiveid']}{/if}">{lang thread_activity}</a></li><!--{/if}--> <!--{if $showdebate}--><li><a href="forum.php?mod=forumdisplay&fid=$_G[fid]&filter=specialtype&specialtype=debate$forumdisplayadd[specialtype]{if $_GET['archiveid']}&archiveid={$_GET['archiveid']}{/if}">{lang thread_debate}</a></li><!--{/if}--> </ul> </div> <!--全部悬赏下拉菜单--> <div id="filter_reward_menu" class="p_pop" style="display:none" change="forum.php?mod=forumdisplay&fid=$_G[fid]&filter=specialtype&specialtype=reward$forumdisplayadd[specialtype]{if $_GET['archiveid']}&archiveid={$_GET['archiveid']}{/if}&rewardtype='+$('filter_reward').value"> <ul> <li><a href="forum.php?mod=forumdisplay&fid=$_G[fid]&filter=specialtype&specialtype=reward$forumdisplayadd[specialtype]{if $_GET['archiveid']}&archiveid={$_GET['archiveid']}{/if}">{lang all_reward}</a></li> <!--{if $showpoll}--><li><a href="forum.php?mod=forumdisplay&fid=$_G[fid]&filter=specialtype&specialtype=reward$forumdisplayadd[specialtype]{if $_GET['archiveid']}&archiveid={$_GET['archiveid']}{/if}&rewardtype=1">{lang rewarding}</a></li><!--{/if}--> <!--{if $showtrade}--><li><a href="forum.php?mod=forumdisplay&fid=$_G[fid]&filter=specialtype&specialtype=reward$forumdisplayadd[specialtype]{if $_GET['archiveid']}&archiveid={$_GET['archiveid']}{/if}&rewardtype=2">{lang reward_solved}</a></li><!--{/if}--> </ul> </div> <!-- 全部时间下拉菜单 --> <div id="filter_dateline_menu" class="p_pop" style="display:none"> <ul> <li><a href="forum.php?mod=forumdisplay&fid=$_G[fid]&orderby={$_GET['orderby']}&filter=dateline$forumdisplayadd[dateline]{if $_GET['archiveid']}&archiveid={$_GET['archiveid']}{/if}">{lang search_any_date}</a></li> <li><a href="forum.php?mod=forumdisplay&fid=$_G[fid]&orderby={$_GET['orderby']}&filter=dateline&dateline=86400$forumdisplayadd[dateline]{if $_GET['archiveid']}&archiveid={$_GET['archiveid']}{/if}">{lang last_1_days}</a></li> <li><a href="forum.php?mod=forumdisplay&fid=$_G[fid]&orderby={$_GET['orderby']}&filter=dateline&dateline=172800$forumdisplayadd[dateline]{if $_GET['archiveid']}&archiveid={$_GET['archiveid']}{/if}">{lang last_2_days}</a></li> <li><a href="forum.php?mod=forumdisplay&fid=$_G[fid]&orderby={$_GET['orderby']}&filter=dateline&dateline=604800$forumdisplayadd[dateline]{if $_GET['archiveid']}&archiveid={$_GET['archiveid']}{/if}">{lang list_one_week}</a></li> <li><a href="forum.php?mod=forumdisplay&fid=$_G[fid]&orderby={$_GET['orderby']}&filter=dateline&dateline=2592000$forumdisplayadd[dateline]{if $_GET['archiveid']}&archiveid={$_GET['archiveid']}{/if}">{lang list_one_month}</a></li> <li><a href="forum.php?mod=forumdisplay&fid=$_G[fid]&orderby={$_GET['orderby']}&filter=dateline&dateline=7948800$forumdisplayadd[dateline]{if $_GET['archiveid']}&archiveid={$_GET['archiveid']}{/if}">{lang list_three_month}</a></li> </ul> </div> <!--{if !$_G['setting']['closeforumorderby']}--> <!--排序下拉菜单--> <div id="filter_orderby_menu" class="p_pop" style="display:none"> <ul> <li><a href="forum.php?mod=forumdisplay&fid=$_G[fid]{if $_GET['archiveid']}&archiveid={$_GET['archiveid']}{/if}">{lang list_default_sort}</a></li> <li><a href="forum.php?mod=forumdisplay&fid=$_G[fid]&filter=author&orderby=dateline$forumdisplayadd[author]{if $_GET['archiveid']}&archiveid={$_GET['archiveid']}{/if}">{lang list_post_time}</a></li> <li><a href="forum.php?mod=forumdisplay&fid=$_G[fid]&filter=reply&orderby=replies$forumdisplayadd[reply]{if $_GET['archiveid']}&archiveid={$_GET['archiveid']}{/if}">{lang replies}</a></li> <li><a href="forum.php?mod=forumdisplay&fid=$_G[fid]&filter=reply&orderby=views$forumdisplayadd[view]{if $_GET['archiveid']}&archiveid={$_GET['archiveid']}{/if}">{lang views}</a></li> <li><a href="forum.php?mod=forumdisplay&fid=$_G[fid]&filter=lastpost&orderby=lastpost$forumdisplayadd[lastpost]{if $_GET['archiveid']}&archiveid={$_GET['archiveid']}{/if}">{lang lastpost}</a></li> <li><a href="forum.php?mod=forumdisplay&fid=$_G[fid]&filter=heat&orderby=heats$forumdisplayadd[heat]{if $_GET['archiveid']}&archiveid={$_GET['archiveid']}{/if}">{lang order_heats}</a></li> <ul> </div> <!--{/if}--> <!--{/if}--> <!--发帖按钮及返回--> <div class="bm bw0 pgs cl"> <!-- 分页代码 --> <span id="fd_page_bottom">$multipage</span> <!-- 返回按钮 --> <span {if $_G[setting][visitedforums]}id="visitedforumstmp" οnmοuseοver="$('visitedforums').id = 'visitedforumstmp';this.id = 'visitedforums';showMenu({'ctrlid':this.id,'pos':'21'})"{/if} class="pgb y"><a href="forum.php">{lang return_index}</a></span> <!-- 发帖按钮 --> <!--{if !$_GET['archiveid']}--><a href="javascript:;" id="newspecialtmp" οnmοuseοver="$('newspecial').id = 'newspecialtmp';this.id = 'newspecial';showMenu({'ctrlid':this.id})"{if !$_G['forum']['allowspecialonly'] && empty($_G['forum']['picstyle']) && !$_G['forum']['threadsorts']['required']} οnclick="showWindow('newthread', 'forum.php?mod=post&action=newthread&fid=$_G[fid]')"{else} οnclick="location.href='forum.php?mod=post&action=newthread&fid=$_G[fid]';return false;"{/if} title="{lang send_posts}"><img src="{IMGDIR}/pn_post.png" alt="{lang send_posts}" /></a><!--{/if}--> <!--{hook/forumdisplay_postbutton_bottom}--> </div>


其中跟弹窗有关的js文件是:

复制代码
1
<script src="static/js/forum_moderate.js?6Z3" type="text/javascript"></script>


跟js触发事件相关的样式id是"threadlist"

复制代码
1
<div id="threadlist" class="tl bm bmw"{if $_G['uid']} style="position: relative;"{/if}>


如图所示:




最后

以上就是优雅猫咪最近收集整理的关于【discuzx2】forumdisplay_list.htm模板文件深入分析的全部内容,更多相关【discuzx2】forumdisplay_list内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(64)

评论列表共有 0 条评论

立即
投稿
返回
顶部