Discuz教程网

[二次开发] Discuz X 图片列表文件forumdisplay_list.htm分析

[复制链接]
authicon dly 发表于 2012-8-17 17:55:07 | 显示全部楼层 |阅读模式
forum/forumdisplay_list.htm文件中
  1. <div id="threadlist" class="tl bm bmw"{if $_G['uid']} style="position: relative;"{/if}>
  2. <!--{if $quicksearchlist && !$_G['gp_archiveid']}-->
  3. <!--{subtemplate forum/search_sortoption}-->
  4. <!--{/if}-->
  5. <div class="th">
  6. <table cellspacing="0" cellpadding="0">
  7. <tr>
  8. <th colspan="{if !$_G['gp_archiveid'] && $_G['forum']['ismoderator']}3{else}2{/if}">
  9. <div class="tf">
  10. <span id="atarget" {if !empty($_G['cookie']['atarget'])}onclick="setatarget(0)" class="y atarget_1"{else}onclick="setatarget(1)" class="y"{/if} title="{lang new_window_thread}">{lang new_window}</span>
  11. {lang screening}:
  12. <a id="filter_special" href="javascript:;" class="showmenu xi2" onclick="showMenu(this.id)">
  13. <!--{if $_G['gp_specialtype'] == 'poll'}-->{lang thread_poll}<!--{elseif $_G['gp_specialtype'] == 'trade'}-->{lang thread_trade}<!--{elseif $_G['gp_specialtype'] == 'reward'}-->{lang thread_reward}<!--{elseif $_G['gp_specialtype'] == 'activity'}-->{lang thread_activity}<!--{elseif $_G['gp_specialtype'] == 'debate'}-->{lang thread_debate}<!--{else}-->{lang threads_all}<!--{/if}-->
  14. </a>
  15. <a id="filter_dateline" href="javascript:;" class="showmenu xi2" onclick="showMenu(this.id)">
  16. <!--{if $_G['gp_dateline'] == 86400}-->{lang last_1_days}<!--{elseif $_G['gp_dateline'] == 172800}-->{lang last_2_days}<!--{elseif $_G['gp_dateline'] == 604800}-->{lang list_one_week}<!--{elseif $_G['gp_dateline'] == 2592000}-->{lang list_one_month}<!--{elseif $_G['gp_dateline'] == 7948800}-->{lang list_three_month}<!--{else}-->{lang search_any_date}<!--{/if}-->
  17. </a>
  18. {lang orderby}:
  19. <a id="filter_orderby" href="javascript:;" class="showmenu xi2" onclick="showMenu(this.id)">
  20. <!--{if $_G['gp_orderby'] == 'dateline'}-->{lang list_post_time}<!--{elseif $_G['gp_orderby'] == 'replies'}-->{lang replies}<!--{elseif $_G['gp_orderby'] == 'views'}-->{lang views}<!--{elseif $_G['gp_orderby'] == 'lastpost'}-->{lang lastpost}<!--{elseif $_G['gp_orderby'] == 'heats'}-->{lang order_heats}<!--{else}-->{lang list_default_sort}<!--{/if}-->
  21. </a><span class="pipe">|</span><a href="forum.php?mod=forumdisplay&fid=$_G[fid]&filter=digest&digest=1$forumdisplayadd[digest]{if $_G['gp_archiveid']}&archiveid={$_G['gp_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 $_G['gp_archiveid']}&archiveid={$_G['gp_archiveid']}{/if}" class="xi2">{lang order_recommends}</a><!--{/if}-->
  22. <!--{if empty($_G['forum']['picstyle']) && $_G['gp_orderby'] == 'lastpost' && (!$_G['setting']['forumseparator'] || !$separatepos) && !$_G['gp_filter']}--><span class="pipe">|</span><a href="javascript:;" onclick="checkForumnew_btn('{$_G['fid']}')" title="{lang showupgrade}" class="forumrefresh"></a><!--{/if}-->
  23. </div>
  24. </th>
  25. <!--{if empty($_G['forum']['picstyle'])}-->
  26. <td class="by">{lang author}</td>
  27. <td class="num">{lang replies}</td>
  28. <td class="by">{lang lastpost}</td>
  29. <!--{else}-->
  30. <td class="by" colspan="3">
  31. <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>
  32. </td>
  33. <!--{/if}-->
  34. </tr>
  35. </table>
  36. </div>
  37. <div class="bm_c">
  38. <!--{if empty($_G['forum']['picstyle']) || $_G['cookie']['forumdefstyle']}-->
  39. <script type="text/javascript">var lasttime = $_G['timestamp'];</script>
  40. <!--{/if}-->
  41. <div id="forumnew" style="display:none"></div>
  42. <form method="post" autocomplete="off" name="moderate" id="moderate" action="forum.php?mod=topicadmin&action=moderate&fid=$_G[fid]&infloat=yes&nopost=yes">
  43. <input type="hidden" name="formhash" value="{FORMHASH}" />
  44. <input type="hidden" name="listextra" value="$extra" />
  45. <table summary="forum_$_G[fid]" {if !$separatepos}id="forum_$_G[fid]"{/if} cellspacing="0" cellpadding="0">
  46. <!--{if (!$simplestyle || !$_G['forum']['allowside'] && $page == 1) && !empty($announcement)}-->
  47. <tbody>
  48. <tr>
  49. <td class="icn"><img src="{IMGDIR}/ann_icon.gif" alt="{lang announcement}" /></td>
  50. <!--{if $_G['forum']['ismoderator'] && !$_G['gp_archiveid']}--><td class="o"> </td><!--{/if}-->
  51. <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>
  52. <td class="by">
  53. <cite><a href="home.php?mod=space&uid=$announcement[authorid]" c="1">$announcement[author]</a></cite>
  54. <em>$announcement[starttime]</em>
  55. </td>
  56. <td class="num"> </td>
  57. <td class="by"> </td>
  58. </tr>
  59. </tbody>
  60. <!--{/if}-->
  61. <!--{if !$separatepos}-->
  62. <tbody id="separatorline" class="emptb"><tr><td class="icn"></td><!--{if !$_G['gp_archiveid'] && $_G['forum']['ismoderator']}--><td class="o"></td><!--{/if}--><th></th><td class="by"></td><td class="num"></td><td class="by"></td></tr></tbody>
  63. <!--{/if}-->
  64. <!--{if $_G['forum_threadcount']}-->
  65. <!--{if empty($_G['forum']['picstyle']) || $_G['cookie']['forumdefstyle']}-->
  66. <!--{loop $_G['forum_threadlist'] $key $thread}-->
  67. <!--{if $_G[setting][forumseparator] == 1 && $separatepos == $key + 1}-->
  68. <tbody id="separatorline">
  69. <tr class="ts">
  70. <td> </td>
  71. <!--{if $_G['forum']['ismoderator'] && !$_G['gp_archiveid']}--><td> </td><!--{/if}-->
  72. <th><!--{if empty($_G['forum']['picstyle']) && $_G['gp_orderby'] == 'lastpost' && !$_G['gp_filter']}--><a href="javascript:;" onclick="checkForumnew_btn('{$_G['fid']}')" title="{lang showupgrade}" class="forumrefresh">{lang forum_thread}</a><!--{else}--> <!--{/if}--></th><td> </td><td> </td><td> </td>
  73. </tr>
  74. </tbody>
  75. <!--{/if}-->
  76. <!--{if $separatepos <= $key + 1}-->
  77. <!--{ad/threadlist}-->
  78. <!--{/if}-->
  79. <tbody id="$thread[id]">
  80. <tr>
  81. <td class="icn">
  82. <a href="forum.php?mod=viewthread&tid=$thread[icontid]&{if $_G['gp_archiveid']}archiveid={$_G['gp_archiveid']}&{/if}extra=$extra" title="{if $thread['displayorder'] == 1}{lang thread_type1} - {/if}
  83. {if $thread['displayorder'] == 2}{lang thread_type2} - {/if}
  84. {if $thread['displayorder'] == 3}{lang thread_type3} - {/if}
  85. {if $thread['displayorder'] == 4}{lang thread_type4} - {/if}
  86. {if $thread[folder] == 'lock'}{lang closed_thread} - {/if}
  87. {if $thread['special'] == 1}{lang thread_poll} - {/if}
  88. {if $thread['special'] == 2}{lang thread_trade} - {/if}
  89. {if $thread['special'] == 3}{lang thread_reward} - {/if}
  90. {if $thread['special'] == 4}{lang thread_activity} - {/if}
  91. {if $thread['special'] == 5}{lang thread_debate} - {/if}
  92. {if $thread[folder] == "new"}{lang have_newreplies} - {/if}
  93. {lang target_blank}" target="_blank">
  94. <!--{if $thread[folder] == 'lock'}-->
  95. <img src="{IMGDIR}/folder_lock.gif" />
  96. <!--{elseif $thread['special'] == 1}-->
  97. <img src="{IMGDIR}/pollsmall.gif" alt="{lang thread_poll}" />
  98. <!--{elseif $thread['special'] == 2}-->
  99. <img src="{IMGDIR}/tradesmall.gif" alt="{lang thread_trade}" />
  100. <!--{elseif $thread['special'] == 3}-->
  101. <img src="{IMGDIR}/rewardsmall.gif" alt="{lang thread_reward}" />
  102. <!--{elseif $thread['special'] == 4}-->
  103. <img src="{IMGDIR}/activitysmall.gif" alt="{lang thread_activity}" />
  104. <!--{elseif $thread['special'] == 5}-->
  105. <img src="{IMGDIR}/debatesmall.gif" alt="{lang thread_debate}" />
  106. <!--{elseif in_array($thread['displayorder'], array(1, 2, 3, 4))}-->
  107. <img src="{IMGDIR}/pin_$thread[displayorder].gif" alt="$_G[setting][threadsticky][3-$thread[displayorder]]" />
  108. <!--{else}-->
  109. <img src="{IMGDIR}/folder_$thread[folder].gif" />
  110. <!--{/if}-->
  111. </a>
  112. </td>
  113. <!--{if !$_G['gp_archiveid'] && $_G['forum']['ismoderator']}-->
  114. <td class="o">
  115. <!--{if $thread['fid'] == $_G[fid]}-->
  116. <!--{if $thread['displayorder'] <= 3 || $_G['adminid'] == 1}-->
  117. <input onclick="tmodclick(this)" type="checkbox" name="moderate[]" value="$thread[tid]" />
  118. <!--{else}-->
  119. <input type="checkbox" disabled="disabled" />
  120. <!--{/if}-->
  121. <!--{else}-->
  122. <input type="checkbox" disabled="disabled" />
  123. <!--{/if}-->
  124. </td>
  125. <!--{/if}-->
  126. <th class="$thread[folder]">
  127. <!--{hook/forumdisplay_thread $key}-->
  128. <!--{if !$thread['forumstick'] && $thread['closed'] > 1 && ($thread['isgroup'] == 1 || $thread['fid'] != $_G['fid'])}-->
  129. <!--{eval $thread[tid]=$thread[closed];}-->
  130. <!--{/if}-->
  131. $thread[typehtml] $thread[sorthtml]
  132. <!--{if $thread['moved']}-->
  133. {lang thread_moved}:<!--{eval $thread[tid]=$thread[closed];}-->
  134. <!--{/if}-->
  135. <a href="forum.php?mod=viewthread&tid=$thread[tid]&{if $_G['gp_archiveid']}archiveid={$_G['gp_archiveid']}&{/if}extra=$extra"$thread[highlight]{if $thread['isgroup'] == 1 || $thread['forumstick']} target="_blank"{else} onclick="atarget(this)"{/if} class="xst" >$thread[subject]</a>
  136. <!--{if $thread[icon] >= 0}-->
  137. <img src="{STATICURL}image/stamp/{$_G[cache][stamps][$thread[icon]][url]}" alt="{$_G[cache][stamps][$thread[icon]][text]}" align="absmiddle" />
  138. <!--{/if}-->
  139. <!--{if $stemplate && $sortid}-->$stemplate[$sortid][$thread[tid]]<!--{/if}-->
  140. <!--{if $thread['readperm']}--> - [{lang readperm} <span class="xw1">$thread[readperm]</span>]<!--{/if}-->
  141. <!--{if $thread['price'] > 0}-->
  142. <!--{if $thread['special'] == '3'}-->
  143. - <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>
  144. <!--{else}-->
  145. - [{lang price} <span class="xw1">$thread[price]</span> {$_G[setting][extcredits][$_G['setting']['creditstransextra'][1]][unit]}{$_G[setting][extcredits][$_G['setting']['creditstransextra'][1]][title]}]
  146. <!--{/if}-->
  147. <!--{elseif $thread['special'] == '3' && $thread['price'] < 0}-->
  148. - [{lang reward_solved}]
  149. <!--{/if}-->
  150. <!--{if $thread['attachment'] == 2}-->
  151. <img src="{STATICURL}image/filetype/image_s.gif" alt="attach_img" title="{lang attach_img}" align="absmiddle" />
  152. <!--{elseif $thread['attachment'] == 1}-->
  153. <img src="{STATICURL}image/filetype/common.gif" alt="attachment" title="{lang attachment}" align="absmiddle" />
  154. <!--{/if}-->
  155. <!--{if $thread['digest'] > 0 && $filter != 'digest'}-->
  156. <img src="{IMGDIR}/digest_$thread[digest].gif" align="absmiddle" alt="digest" title="{lang thread_digest} $thread[digest]" />
  157. <!--{/if}-->
  158. <!--{if $thread['displayorder'] == 0}-->
  159. <!--{if $thread[recommendicon] && $filter != 'recommend'}-->
  160. <img src="{IMGDIR}/recommend_$thread[recommendicon].gif" align="absmiddle" alt="recommend" title="{lang thread_recommend} $thread[recommends]" />
  161. <!--{/if}-->
  162. <!--{if $thread[heatlevel]}-->
  163. <img src="{IMGDIR}/hot_$thread[heatlevel].gif" align="absmiddle" alt="heatlevel" title="$thread[heatlevel] {lang heats}" />
  164. <!--{/if}-->
  165. <!--{if $thread['rate'] > 0}-->
  166. <img src="{IMGDIR}/agree.gif" align="absmiddle" alt="agree" title="{lang rate_credit_add}" />
  167. <!--{elseif $thread['rate'] < 0}-->
  168. <img src="{IMGDIR}/disagree.gif" align="absmiddle" alt="disagree" title="{lang posts_deducted}" />
  169. <!--{/if}-->
  170. <!--{/if}-->
  171. <!--{if $thread['replycredit'] > 0}-->
  172. - <span class="xi1">[{lang replycredit} <strong> $thread['replycredit']</strong> ]</span>
  173. <!--{/if}-->
  174. <!--{if $thread[multipage]}-->
  175. <span class="tps">$thread[multipage]</span>
  176. <!--{/if}-->
  177. <!--{if $thread['weeknew']}-->
  178. <a href="forum.php?mod=redirect&tid=$thread[tid]&goto=lastpost#lastpost" class="xi1">New</a>
  179. <!--{/if}-->
  180. <!--{if !$thread['forumstick'] && ($thread['isgroup'] == 1 || $thread['fid'] != $_G['fid'])}-->
  181. <!--{if $thread['related_group'] == 0 && $thread['closed'] > 1}-->
  182. <!--{eval $thread[tid]=$thread[closed];}-->
  183. <!--{/if}-->
  184. <!--{if $groupnames[$thread[tid]]}-->
  185. <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>
  186. <!--{/if}-->
  187. <!--{/if}-->
  188. </th>
  189. <td class="by">
  190. <!--{hook/forumdisplay_author $key}-->
  191. <cite>
  192. <!--{if $thread['authorid'] && $thread['author']}-->
  193. <a href="home.php?mod=space&uid=$thread[authorid]" c="1">$thread[author]</a><!--{if !empty($verify[$thread['authorid']])}--> $verify[$thread[authorid]]<!--{/if}-->
  194. <!--{else}-->
  195. $_G[setting][anonymoustext]
  196. <!--{/if}-->
  197. </cite>
  198. <em><span{if $thread['istoday']} class="xi1"{/if}>$thread[dateline]</span></em>
  199. </td>
  200. <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>
  201. <td class="by">
  202. <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>
  203. <em><a href="{if $thread[digest] != -2}forum.php?mod=redirect&tid=$thread[tid]&goto=lastpost$highlight#lastpost{else}forum.php?mod=viewthread&tid=$thread[tid]&page={echo max(1, $thread[pages]);}{/if}">$thread[lastpost]</a></em>
  204. </td>
  205. </tr>
  206. </tbody>
  207. <!--{/loop}-->
  208. </table><!-- end of table "forum_G[fid]" branch 1/3 -->
  209. <!--{else}-->
  210. </table><!-- end of table "forum_G[fid]" branch 2/3 -->
  211. <ul class="ml mlt mtw cl">
  212. <!--{loop $_G['forum_threadlist'] $key $thread}-->
  213. <!--{if !$thread['forumstick'] && ($thread['isgroup'] == 1 || $thread['fid'] != $_G['fid'])}-->
  214. <!--{if $thread['related_group'] == 0 && $thread['closed'] > 1}-->
  215. <!--{eval $thread[tid]=$thread[closed];}-->
  216. <!--{/if}-->
  217. <!--{/if}-->
  218. <li style="width:{$_G[setting][forumpicstyle][thumbwidth]}px;">
  219. <!--{if !$_G['gp_archiveid'] && $_G['forum']['ismoderator']}-->
  220. <div style="position: absolute;padding:2px;background:#FFF">
  221. <!--{if $thread['fid'] == $_G[fid]}-->
  222. <!--{if $thread['displayorder'] <= 3 || $_G['adminid'] == 1}-->
  223. <input onclick="tmodclick(this)" type="checkbox" name="moderate[]" value="$thread[tid]" />
  224. <!--{else}-->
  225. <input type="checkbox" disabled="disabled" />
  226. <!--{/if}-->
  227. <!--{else}-->
  228. <input type="checkbox" disabled="disabled" />
  229. <!--{/if}-->
  230. </div>
  231. <!--{/if}-->
  232. <div class="c cl">
  233. <a href="forum.php?mod=viewthread&tid=$thread[tid]&{if $_G['gp_archiveid']}archiveid={$_G['gp_archiveid']}&{/if}extra=$extra" {if $thread['isgroup'] == 1 || $thread['forumstick']} target="_blank"{else} onclick="atarget(this)"{/if} title="$thread[subject]" class="z">
  234. <!--{if $thread['cover']}-->
  235. <img src="$thread[coverpath]" alt="$thread[subject]" width="{$_G[setting][forumpicstyle][thumbwidth]}" height="{$_G[setting][forumpicstyle][thumbheight]}" />
  236. <!--{else}-->
  237. <span class="nopic" style="width:{$_G[setting][forumpicstyle][thumbwidth]}px; height:{$_G[setting][forumpicstyle][thumbheight]}px;"></span>
  238. <!--{/if}-->
  239. </a>
  240. </div>
  241. <h3 class="ptn" style="width: {$_G[setting][forumpicstyle][thumbwidth]}px;"><a href="forum.php?mod=viewthread&tid=$thread[tid]&{if $_G['gp_archiveid']}archiveid={$_G['gp_archiveid']}&{/if}extra=$extra"$thread[highlight]{if $thread['isgroup'] == 1 || $thread['forumstick']} target="_blank"{else} onclick="atarget(this)"{/if} title="$thread[subject]"><!--{if in_array($thread['displayorder'], array(1, 2, 3, 4))}-->[{lang thread_stick}] <!--{/if}-->$thread[subject]</a></h3>
  242. <div class="cl">
  243. <!--{if $thread['cover']}--><em class="sum y xs0 xi1 xw1" title="$thread[cover] {lang pics}">$thread[cover]</em><!--{/if}-->
  244. <!--{if $thread['authorid'] && $thread['author']}-->
  245. <a href="home.php?mod=space&uid=$thread[authorid]">$thread[author]</a><!--{if !empty($verify[$thread['authorid']])}--> $verify[$thread[authorid]]<!--{/if}-->
  246. <!--{else}-->
  247. $_G[setting][anonymoustext]
  248. <!--{/if}-->
  249. </div>
  250. <div class="cl">
  251. <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>
  252. <em class="xs0{if $thread['istoday']} xi1{/if}">$thread[dateline]</em>
  253. </div>
  254. </li>
  255. <!--{/loop}-->
  256. </ul>
  257. <!--{/if}-->
  258. <!--{else}-->
  259. <tbody class="bw0_all"><tr><th colspan="{if !$_G['gp_archiveid'] && $_G['forum']['ismoderator']}6{else}5{/if}"><p class="emp">{lang forum_nothreads}</p></th></tr></tbody>
  260. </table><!-- end of table "forum_G[fid]" branch 3/3 -->
  261. <!--{/if}-->
  262. <!--{if $_G['forum']['ismoderator'] && $_G['forum_threadcount']}-->
  263. <!--{template forum/topicadmin_modlayer}-->
  264. <!--{/if}-->
  265. </form>
  266. </div>
  267. </div>
复制代码

以上代码为主题列表的控制代码



上一篇:最全discuz!X2.5去除forum.php尾巴的方法
下一篇:[1314]Discuz X SEO内链关键字插件

相关帖子

authicon  楼主| dly 发表于 2012-8-17 17:59:16 | 显示全部楼层
  1. <div class="th">
  2. <table cellspacing="0" cellpadding="0">
  3. <tr>
  4. <th colspan="{if !$_G['gp_archiveid'] && $_G['forum']['ismoderator']}3{else}2{/if}">
  5. <div class="tf">
  6. <span id="atarget" {if !empty($_G['cookie']['atarget'])}onclick="setatarget(0)" class="y atarget_1"{else}onclick="setatarget(1)" class="y"{/if} title="{lang new_window_thread}">{lang new_window}</span>
  7. {lang screening}:
  8. <a id="filter_special" href="javascript:;" class="showmenu xi2" onclick="showMenu(this.id)">
  9. <!--{if $_G['gp_specialtype'] == 'poll'}-->{lang thread_poll}<!--{elseif $_G['gp_specialtype'] == 'trade'}-->{lang thread_trade}<!--{elseif $_G['gp_specialtype'] == 'reward'}-->{lang thread_reward}<!--{elseif $_G['gp_specialtype'] == 'activity'}-->{lang thread_activity}<!--{elseif $_G['gp_specialtype'] == 'debate'}-->{lang thread_debate}<!--{else}-->{lang threads_all}<!--{/if}-->
  10. </a>
  11. <a id="filter_dateline" href="javascript:;" class="showmenu xi2" onclick="showMenu(this.id)">
  12. <!--{if $_G['gp_dateline'] == 86400}-->{lang last_1_days}<!--{elseif $_G['gp_dateline'] == 172800}-->{lang last_2_days}<!--{elseif $_G['gp_dateline'] == 604800}-->{lang list_one_week}<!--{elseif $_G['gp_dateline'] == 2592000}-->{lang list_one_month}<!--{elseif $_G['gp_dateline'] == 7948800}-->{lang list_three_month}<!--{else}-->{lang search_any_date}<!--{/if}-->
  13. </a>
  14. {lang orderby}:
  15. <a id="filter_orderby" href="javascript:;" class="showmenu xi2" onclick="showMenu(this.id)">
  16. <!--{if $_G['gp_orderby'] == 'dateline'}-->{lang list_post_time}<!--{elseif $_G['gp_orderby'] == 'replies'}-->{lang replies}<!--{elseif $_G['gp_orderby'] == 'views'}-->{lang views}<!--{elseif $_G['gp_orderby'] == 'lastpost'}-->{lang lastpost}<!--{elseif $_G['gp_orderby'] == 'heats'}-->{lang order_heats}<!--{else}-->{lang list_default_sort}<!--{/if}-->
  17. </a><span class="pipe">|</span><a href="forum.php?mod=forumdisplay&fid=$_G[fid]&filter=digest&digest=1$forumdisplayadd[digest]{if $_G['gp_archiveid']}&archiveid={$_G['gp_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 $_G['gp_archiveid']}&archiveid={$_G['gp_archiveid']}{/if}" class="xi2">{lang order_recommends}</a><!--{/if}-->
  18. <!--{if empty($_G['forum']['picstyle']) && $_G['gp_orderby'] == 'lastpost' && (!$_G['setting']['forumseparator'] || !$separatepos) && !$_G['gp_filter']}--><span class="pipe">|</span><a href="javascript:;" onclick="checkForumnew_btn('{$_G['fid']}')" title="{lang showupgrade}" class="forumrefresh"></a><!--{/if}-->
  19. </div>
  20. </th>
  21. <!--{if empty($_G['forum']['picstyle'])}-->
  22. <td class="by">{lang author}</td>
  23. <td class="num">{lang replies}</td>
  24. <td class="by">{lang lastpost}</td>
  25. <!--{else}-->
  26. <td class="by" colspan="3">
  27. <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>
  28. </td>
  29. <!--{/if}-->
  30. </tr>
  31. </table>
  32. </div>
复制代码

此段为列表上的菜单,如下2图
142310btgowhznkf5z5yuw.png
142312mlz5zwx5m51zoxka.png

  1. <!--{if empty($_G['forum']['picstyle'])}-->
  2. <td class="by">{lang author}</td>
  3. <td class="num">{lang replies}</td>
  4. <td class="by">{lang lastpost}</td>
  5. <!--{else}-->
  6. <td class="by" colspan="3">
  7. <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>
  8. </td>
  9. <!--{/if}-->
复制代码
此段就是判断是否启用了图片列表模式,,如果开启的话,,,就显示图片列表并打勾
如果没有启用图片列表,,就显示  作者      回复/查看    最后发表

  1. <div class="tf">
  2. <span id="atarget" {if !empty($_G['cookie']['atarget'])}onclick="setatarget(0)" class="y atarget_1"{else}onclick="setatarget(1)" class="y"{/if} title="{lang new_window_thread}">{lang new_window}</span>
  3. {lang screening}:
  4. <a id="filter_special" href="javascript:;" class="showmenu xi2" onclick="showMenu(this.id)">
  5. <!--{if $_G['gp_specialtype'] == 'poll'}-->{lang thread_poll}<!--{elseif $_G['gp_specialtype'] == 'trade'}-->{lang thread_trade}<!--{elseif $_G['gp_specialtype'] == 'reward'}-->{lang thread_reward}<!--{elseif $_G['gp_specialtype'] == 'activity'}-->{lang thread_activity}<!--{elseif $_G['gp_specialtype'] == 'debate'}-->{lang thread_debate}<!--{else}-->{lang threads_all}<!--{/if}-->
  6. </a>
  7. <a id="filter_dateline" href="javascript:;" class="showmenu xi2" onclick="showMenu(this.id)">
  8. <!--{if $_G['gp_dateline'] == 86400}-->{lang last_1_days}<!--{elseif $_G['gp_dateline'] == 172800}-->{lang last_2_days}<!--{elseif $_G['gp_dateline'] == 604800}-->{lang list_one_week}<!--{elseif $_G['gp_dateline'] == 2592000}-->{lang list_one_month}<!--{elseif $_G['gp_dateline'] == 7948800}-->{lang list_three_month}<!--{else}-->{lang search_any_date}<!--{/if}-->
  9. </a>
  10. {lang orderby}:
  11. <a id="filter_orderby" href="javascript:;" class="showmenu xi2" onclick="showMenu(this.id)">
  12. <!--{if $_G['gp_orderby'] == 'dateline'}-->{lang list_post_time}<!--{elseif $_G['gp_orderby'] == 'replies'}-->{lang replies}<!--{elseif $_G['gp_orderby'] == 'views'}-->{lang views}<!--{elseif $_G['gp_orderby'] == 'lastpost'}-->{lang lastpost}<!--{elseif $_G['gp_orderby'] == 'heats'}-->{lang order_heats}<!--{else}-->{lang list_default_sort}<!--{/if}-->
  13. </a><span class="pipe">|</span><a href="forum.php?mod=forumdisplay&fid=$_G[fid]&filter=digest&digest=1$forumdisplayadd[digest]{if $_G['gp_archiveid']}&archiveid={$_G['gp_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 $_G['gp_archiveid']}&archiveid={$_G['gp_archiveid']}{/if}" class="xi2">{lang order_recommends}</a><!--{/if}-->
  14. <!--{if empty($_G['forum']['picstyle']) && $_G['gp_orderby'] == 'lastpost' && (!$_G['setting']['forumseparator'] || !$separatepos) && !$_G['gp_filter']}--><span class="pipe">|</span><a href="javascript:;" onclick="checkForumnew_btn('{$_G['fid']}')" title="{lang showupgrade}" class="forumrefresh"></a><!--{/if}-->
  15. </div>
复制代码

此段为下图的控制代码
143444c44aadtsksnwsl33.png
authicon  楼主| dly 发表于 2012-8-17 18:02:22 | 显示全部楼层
  1. <div class="bm_c">
  2. <!--{if empty($_G['forum']['picstyle']) || $_G['cookie']['forumdefstyle']}-->
  3. <script type="text/javascript">var lasttime = $_G['timestamp'];</script>
  4. <!--{/if}-->
  5. <div id="forumnew" style="display:none"></div>
  6. <form method="post" autocomplete="off" name="moderate" id="moderate" action="forum.php?mod=topicadmin&action=moderate&fid=$_G[fid]&infloat=yes&nopost=yes">
  7. <input type="hidden" name="formhash" value="{FORMHASH}" />
  8. <input type="hidden" name="listextra" value="$extra" />
  9. <table summary="forum_$_G[fid]" {if !$separatepos}id="forum_$_G[fid]"{/if} cellspacing="0" cellpadding="0">
  10. <!--{if (!$simplestyle || !$_G['forum']['allowside'] && $page == 1) && !empty($announcement)}-->
  11. <tbody>
  12. <tr>
  13. <td class="icn"><img src="{IMGDIR}/ann_icon.gif" alt="{lang announcement}" /></td>
  14. <!--{if $_G['forum']['ismoderator'] && !$_G['gp_archiveid']}--><td class="o"> </td><!--{/if}-->
  15. <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>
  16. <td class="by">
  17. <cite><a href="home.php?mod=space&uid=$announcement[authorid]" c="1">$announcement[author]</a></cite>
  18. <em>$announcement[starttime]</em>
  19. </td>
  20. <td class="num"> </td>
  21. <td class="by"> </td>
  22. </tr>
  23. </tbody>
  24. <!--{/if}-->
  25. <!--{if !$separatepos}-->
  26. <tbody id="separatorline" class="emptb"><tr><td class="icn"></td><!--{if !$_G['gp_archiveid'] && $_G['forum']['ismoderator']}--><td class="o"></td><!--{/if}--><th></th><td class="by"></td><td class="num"></td><td class="by"></td></tr></tbody>
  27. <!--{/if}-->
  28. <!--{if $_G['forum_threadcount']}-->
  29. <!--{if empty($_G['forum']['picstyle']) || $_G['cookie']['forumdefstyle']}-->
  30. <!--{loop $_G['forum_threadlist'] $key $thread}-->
  31. <!--{if $_G[setting][forumseparator] == 1 && $separatepos == $key + 1}-->
  32. <tbody id="separatorline">
  33. <tr class="ts">
  34. <td> </td>
  35. <!--{if $_G['forum']['ismoderator'] && !$_G['gp_archiveid']}--><td> </td><!--{/if}-->
  36. <th><!--{if empty($_G['forum']['picstyle']) && $_G['gp_orderby'] == 'lastpost' && !$_G['gp_filter']}--><a href="javascript:;" onclick="checkForumnew_btn('{$_G['fid']}')" title="{lang showupgrade}" class="forumrefresh">{lang forum_thread}</a><!--{else}--> <!--{/if}--></th><td> </td><td> </td><td> </td>
  37. </tr>
  38. </tbody>
  39. <!--{/if}-->
  40. <!--{if $separatepos <= $key + 1}-->
  41. <!--{ad/threadlist}-->
  42. <!--{/if}-->
  43. <tbody id="$thread[id]">
  44. <tr>
  45. <td class="icn">
  46. <a href="forum.php?mod=viewthread&tid=$thread[icontid]&{if $_G['gp_archiveid']}archiveid={$_G['gp_archiveid']}&{/if}extra=$extra" title="{if $thread['displayorder'] == 1}{lang thread_type1} - {/if}
  47. {if $thread['displayorder'] == 2}{lang thread_type2} - {/if}
  48. {if $thread['displayorder'] == 3}{lang thread_type3} - {/if}
  49. {if $thread['displayorder'] == 4}{lang thread_type4} - {/if}
  50. {if $thread[folder] == 'lock'}{lang closed_thread} - {/if}
  51. {if $thread['special'] == 1}{lang thread_poll} - {/if}
  52. {if $thread['special'] == 2}{lang thread_trade} - {/if}
  53. {if $thread['special'] == 3}{lang thread_reward} - {/if}
  54. {if $thread['special'] == 4}{lang thread_activity} - {/if}
  55. {if $thread['special'] == 5}{lang thread_debate} - {/if}
  56. {if $thread[folder] == "new"}{lang have_newreplies} - {/if}
  57. {lang target_blank}" target="_blank">
  58. <!--{if $thread[folder] == 'lock'}-->
  59. <img src="{IMGDIR}/folder_lock.gif" />
  60. <!--{elseif $thread['special'] == 1}-->
  61. <img src="{IMGDIR}/pollsmall.gif" alt="{lang thread_poll}" />
  62. <!--{elseif $thread['special'] == 2}-->
  63. <img src="{IMGDIR}/tradesmall.gif" alt="{lang thread_trade}" />
  64. <!--{elseif $thread['special'] == 3}-->
  65. <img src="{IMGDIR}/rewardsmall.gif" alt="{lang thread_reward}" />
  66. <!--{elseif $thread['special'] == 4}-->
  67. <img src="{IMGDIR}/activitysmall.gif" alt="{lang thread_activity}" />
  68. <!--{elseif $thread['special'] == 5}-->
  69. <img src="{IMGDIR}/debatesmall.gif" alt="{lang thread_debate}" />
  70. <!--{elseif in_array($thread['displayorder'], array(1, 2, 3, 4))}-->
  71. <img src="{IMGDIR}/pin_$thread[displayorder].gif" alt="$_G[setting][threadsticky][3-$thread[displayorder]]" />
  72. <!--{else}-->
  73. <img src="{IMGDIR}/folder_$thread[folder].gif" />
  74. <!--{/if}-->
  75. </a>
  76. </td>
  77. <!--{if !$_G['gp_archiveid'] && $_G['forum']['ismoderator']}-->
  78. <td class="o">
  79. <!--{if $thread['fid'] == $_G[fid]}-->
  80. <!--{if $thread['displayorder'] <= 3 || $_G['adminid'] == 1}-->
  81. <input onclick="tmodclick(this)" type="checkbox" name="moderate[]" value="$thread[tid]" />
  82. <!--{else}-->
  83. <input type="checkbox" disabled="disabled" />
  84. <!--{/if}-->
  85. <!--{else}-->
  86. <input type="checkbox" disabled="disabled" />
  87. <!--{/if}-->
  88. </td>
  89. <!--{/if}-->
  90. <th class="$thread[folder]">
  91. <!--{hook/forumdisplay_thread $key}-->
  92. <!--{if !$thread['forumstick'] && $thread['closed'] > 1 && ($thread['isgroup'] == 1 || $thread['fid'] != $_G['fid'])}-->
  93. <!--{eval $thread[tid]=$thread[closed];}-->
  94. <!--{/if}-->
  95. $thread[typehtml] $thread[sorthtml]
  96. <!--{if $thread['moved']}-->
  97. {lang thread_moved}:<!--{eval $thread[tid]=$thread[closed];}-->
  98. <!--{/if}-->
  99. <a href="forum.php?mod=viewthread&tid=$thread[tid]&{if $_G['gp_archiveid']}archiveid={$_G['gp_archiveid']}&{/if}extra=$extra"$thread[highlight]{if $thread['isgroup'] == 1 || $thread['forumstick']} target="_blank"{else} onclick="atarget(this)"{/if} class="xst" >$thread[subject]</a>
  100. <!--{if $thread[icon] >= 0}-->
  101. <img src="{STATICURL}image/stamp/{$_G[cache][stamps][$thread[icon]][url]}" alt="{$_G[cache][stamps][$thread[icon]][text]}" align="absmiddle" />
  102. <!--{/if}-->
  103. <!--{if $stemplate && $sortid}-->$stemplate[$sortid][$thread[tid]]<!--{/if}-->
  104. <!--{if $thread['readperm']}--> - [{lang readperm} <span class="xw1">$thread[readperm]</span>]<!--{/if}-->
  105. <!--{if $thread['price'] > 0}-->
  106. <!--{if $thread['special'] == '3'}-->
  107. - <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>
  108. <!--{else}-->
  109. - [{lang price} <span class="xw1">$thread[price]</span> {$_G[setting][extcredits][$_G['setting']['creditstransextra'][1]][unit]}{$_G[setting][extcredits][$_G['setting']['creditstransextra'][1]][title]}]
  110. <!--{/if}-->
  111. <!--{elseif $thread['special'] == '3' && $thread['price'] < 0}-->
  112. - [{lang reward_solved}]
  113. <!--{/if}-->
  114. <!--{if $thread['attachment'] == 2}-->
  115. <img src="{STATICURL}image/filetype/image_s.gif" alt="attach_img" title="{lang attach_img}" align="absmiddle" />
  116. <!--{elseif $thread['attachment'] == 1}-->
  117. <img src="{STATICURL}image/filetype/common.gif" alt="attachment" title="{lang attachment}" align="absmiddle" />
  118. <!--{/if}-->
  119. <!--{if $thread['digest'] > 0 && $filter != 'digest'}-->
  120. <img src="{IMGDIR}/digest_$thread[digest].gif" align="absmiddle" alt="digest" title="{lang thread_digest} $thread[digest]" />
  121. <!--{/if}-->
  122. <!--{if $thread['displayorder'] == 0}-->
  123. <!--{if $thread[recommendicon] && $filter != 'recommend'}-->
  124. <img src="{IMGDIR}/recommend_$thread[recommendicon].gif" align="absmiddle" alt="recommend" title="{lang thread_recommend} $thread[recommends]" />
  125. <!--{/if}-->
  126. <!--{if $thread[heatlevel]}-->
  127. <img src="{IMGDIR}/hot_$thread[heatlevel].gif" align="absmiddle" alt="heatlevel" title="$thread[heatlevel] {lang heats}" />
  128. <!--{/if}-->
  129. <!--{if $thread['rate'] > 0}-->
  130. <img src="{IMGDIR}/agree.gif" align="absmiddle" alt="agree" title="{lang rate_credit_add}" />
  131. <!--{elseif $thread['rate'] < 0}-->
  132. <img src="{IMGDIR}/disagree.gif" align="absmiddle" alt="disagree" title="{lang posts_deducted}" />
  133. <!--{/if}-->
  134. <!--{/if}-->
  135. <!--{if $thread['replycredit'] > 0}-->
  136. - <span class="xi1">[{lang replycredit} <strong> $thread['replycredit']</strong> ]</span>
  137. <!--{/if}-->
  138. <!--{if $thread[multipage]}-->
  139. <span class="tps">$thread[multipage]</span>
  140. <!--{/if}-->
  141. <!--{if $thread['weeknew']}-->
  142. <a href="forum.php?mod=redirect&tid=$thread[tid]&goto=lastpost#lastpost" class="xi1">New</a>
  143. <!--{/if}-->
  144. <!--{if !$thread['forumstick'] && ($thread['isgroup'] == 1 || $thread['fid'] != $_G['fid'])}-->
  145. <!--{if $thread['related_group'] == 0 && $thread['closed'] > 1}-->
  146. <!--{eval $thread[tid]=$thread[closed];}-->
  147. <!--{/if}-->
  148. <!--{if $groupnames[$thread[tid]]}-->
  149. <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>
  150. <!--{/if}-->
  151. <!--{/if}-->
  152. </th>
  153. <td class="by">
  154. <!--{hook/forumdisplay_author $key}-->
  155. <cite>
  156. <!--{if $thread['authorid'] && $thread['author']}-->
  157. <a href="home.php?mod=space&uid=$thread[authorid]" c="1">$thread[author]</a><!--{if !empty($verify[$thread['authorid']])}--> $verify[$thread[authorid]]<!--{/if}-->
  158. <!--{else}-->
  159. $_G[setting][anonymoustext]
  160. <!--{/if}-->
  161. </cite>
  162. <em><span{if $thread['istoday']} class="xi1"{/if}>$thread[dateline]</span></em>
  163. </td>
  164. <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>
  165. <td class="by">
  166. <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>
  167. <em><a href="{if $thread[digest] != -2}forum.php?mod=redirect&tid=$thread[tid]&goto=lastpost$highlight#lastpost{else}forum.php?mod=viewthread&tid=$thread[tid]&page={echo max(1, $thread[pages]);}{/if}">$thread[lastpost]</a></em>
  168. </td>
  169. </tr>
  170. </tbody>
  171. <!--{/loop}-->
  172. </table><!-- end of table "forum_G[fid]" branch 1/3 -->
  173. <!--{else}-->
  174. </table><!-- end of table "forum_G[fid]" branch 2/3 -->
  175. <ul class="ml mlt mtw cl">
  176. <!--{loop $_G['forum_threadlist'] $key $thread}-->
  177. <!--{if !$thread['forumstick'] && ($thread['isgroup'] == 1 || $thread['fid'] != $_G['fid'])}-->
  178. <!--{if $thread['related_group'] == 0 && $thread['closed'] > 1}-->
  179. <!--{eval $thread[tid]=$thread[closed];}-->
  180. <!--{/if}-->
  181. <!--{/if}-->
  182. <li style="width:{$_G[setting][forumpicstyle][thumbwidth]}px;">
  183. <!--{if !$_G['gp_archiveid'] && $_G['forum']['ismoderator']}-->
  184. <div style="position: absolute;padding:2px;background:#FFF">
  185. <!--{if $thread['fid'] == $_G[fid]}-->
  186. <!--{if $thread['displayorder'] <= 3 || $_G['adminid'] == 1}-->
  187. <input onclick="tmodclick(this)" type="checkbox" name="moderate[]" value="$thread[tid]" />
  188. <!--{else}-->
  189. <input type="checkbox" disabled="disabled" />
  190. <!--{/if}-->
  191. <!--{else}-->
  192. <input type="checkbox" disabled="disabled" />
  193. <!--{/if}-->
  194. </div>
  195. <!--{/if}-->
  196. <div class="c cl">
  197. <a href="forum.php?mod=viewthread&tid=$thread[tid]&{if $_G['gp_archiveid']}archiveid={$_G['gp_archiveid']}&{/if}extra=$extra" {if $thread['isgroup'] == 1 || $thread['forumstick']} target="_blank"{else} onclick="atarget(this)"{/if} title="$thread[subject]" class="z">
  198. <!--{if $thread['cover']}-->
  199. <img src="$thread[coverpath]" alt="$thread[subject]" width="{$_G[setting][forumpicstyle][thumbwidth]}" height="{$_G[setting][forumpicstyle][thumbheight]}" />
  200. <!--{else}-->
  201. <span class="nopic" style="width:{$_G[setting][forumpicstyle][thumbwidth]}px; height:{$_G[setting][forumpicstyle][thumbheight]}px;"></span>
  202. <!--{/if}-->
  203. </a>
  204. </div>
  205. <h3 class="ptn" style="width: {$_G[setting][forumpicstyle][thumbwidth]}px;"><a href="forum.php?mod=viewthread&tid=$thread[tid]&{if $_G['gp_archiveid']}archiveid={$_G['gp_archiveid']}&{/if}extra=$extra"$thread[highlight]{if $thread['isgroup'] == 1 || $thread['forumstick']} target="_blank"{else} onclick="atarget(this)"{/if} title="$thread[subject]"><!--{if in_array($thread['displayorder'], array(1, 2, 3, 4))}-->[{lang thread_stick}] <!--{/if}-->$thread[subject]</a></h3>
  206. <div class="cl">
  207. <!--{if $thread['cover']}--><em class="sum y xs0 xi1 xw1" title="$thread[cover] {lang pics}">$thread[cover]</em><!--{/if}-->
  208. <!--{if $thread['authorid'] && $thread['author']}-->
  209. <a href="home.php?mod=space&uid=$thread[authorid]">$thread[author]</a><!--{if !empty($verify[$thread['authorid']])}--> $verify[$thread[authorid]]<!--{/if}-->
  210. <!--{else}-->
  211. $_G[setting][anonymoustext]
  212. <!--{/if}-->
  213. </div>
  214. <div class="cl">
  215. <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>
  216. <em class="xs0{if $thread['istoday']} xi1{/if}">$thread[dateline]</em>
  217. </div>
  218. </li>
  219. <!--{/loop}-->
  220. </ul>
  221. <!--{/if}-->
  222. <!--{else}-->
  223. <tbody class="bw0_all"><tr><th colspan="{if !$_G['gp_archiveid'] && $_G['forum']['ismoderator']}6{else}5{/if}"><p class="emp">{lang forum_nothreads}</p></th></tr></tbody>
  224. </table><!-- end of table "forum_G[fid]" branch 3/3 -->
  225. <!--{/if}-->
  226. <!--{if $_G['forum']['ismoderator'] && $_G['forum_threadcount']}-->
  227. <!--{template forum/topicadmin_modlayer}-->
  228. <!--{/if}-->
  229. </form>
  230. </div>
复制代码

此段为列表内容控制

其中
  1. <table summary="forum_$_G[fid]" {if !$separatepos}id="forum_$_G[fid]"{/if} cellspacing="0" cellpadding="0">
  2. <!--{if (!$simplestyle || !$_G['forum']['allowside'] && $page == 1) && !empty($announcement)}-->
  3. <tbody>
  4. <tr>
  5. <td class="icn"><img src="{IMGDIR}/ann_icon.gif" alt="{lang announcement}" /></td>
  6. <!--{if $_G['forum']['ismoderator'] && !$_G['gp_archiveid']}--><td class="o"> </td><!--{/if}-->
  7. <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>
  8. <td class="by">
  9. <cite><a href="home.php?mod=space&uid=$announcement[authorid]" c="1">$announcement[author]</a></cite>
  10. <em>$announcement[starttime]</em>
  11. </td>
  12. <td class="num"> </td>
  13. <td class="by"> </td>
  14. </tr>
  15. </tbody>
  16. <!--{/if}-->
  17. <!--{if !$separatepos}-->
  18. <tbody id="separatorline" class="emptb"><tr><td class="icn"></td><!--{if !$_G['gp_archiveid'] && $_G['forum']['ismoderator']}--><td class="o"></td><!--{/if}--><th></th><td class="by"></td><td class="num"></td><td class="by"></td></tr></tbody>
  19. <!--{/if}-->
  20. <!--{if $_G['forum_threadcount']}-->
  21. <!--{if empty($_G['forum']['picstyle']) || $_G['cookie']['forumdefstyle']}-->
  22. <!--{loop $_G['forum_threadlist'] $key $thread}-->
  23. <!--{if $_G[setting][forumseparator] == 1 && $separatepos == $key + 1}-->
  24. <tbody id="separatorline">
  25. <tr class="ts">
  26. <td> </td>
  27. <!--{if $_G['forum']['ismoderator'] && !$_G['gp_archiveid']}--><td> </td><!--{/if}-->
  28. <th><!--{if empty($_G['forum']['picstyle']) && $_G['gp_orderby'] == 'lastpost' && !$_G['gp_filter']}--><a href="javascript:;" onclick="checkForumnew_btn('{$_G['fid']}')" title="{lang showupgrade}" class="forumrefresh">{lang forum_thread}</a><!--{else}--> <!--{/if}--></th><td> </td><td> </td><td> </td>
  29. </tr>
  30. </tbody>
  31. <!--{/if}-->
  32. <!--{if $separatepos <= $key + 1}-->
  33. <!--{ad/threadlist}-->
  34. <!--{/if}-->
  35. <tbody id="$thread[id]">
  36. <tr>
  37. <td class="icn">
  38. <a href="forum.php?mod=viewthread&tid=$thread[icontid]&{if $_G['gp_archiveid']}archiveid={$_G['gp_archiveid']}&{/if}extra=$extra" title="{if $thread['displayorder'] == 1}{lang thread_type1} - {/if}
  39. {if $thread['displayorder'] == 2}{lang thread_type2} - {/if}
  40. {if $thread['displayorder'] == 3}{lang thread_type3} - {/if}
  41. {if $thread['displayorder'] == 4}{lang thread_type4} - {/if}
  42. {if $thread[folder] == 'lock'}{lang closed_thread} - {/if}
  43. {if $thread['special'] == 1}{lang thread_poll} - {/if}
  44. {if $thread['special'] == 2}{lang thread_trade} - {/if}
  45. {if $thread['special'] == 3}{lang thread_reward} - {/if}
  46. {if $thread['special'] == 4}{lang thread_activity} - {/if}
  47. {if $thread['special'] == 5}{lang thread_debate} - {/if}
  48. {if $thread[folder] == "new"}{lang have_newreplies} - {/if}
  49. {lang target_blank}" target="_blank">
  50. <!--{if $thread[folder] == 'lock'}-->
  51. <img src="{IMGDIR}/folder_lock.gif" />
  52. <!--{elseif $thread['special'] == 1}-->
  53. <img src="{IMGDIR}/pollsmall.gif" alt="{lang thread_poll}" />
  54. <!--{elseif $thread['special'] == 2}-->
  55. <img src="{IMGDIR}/tradesmall.gif" alt="{lang thread_trade}" />
  56. <!--{elseif $thread['special'] == 3}-->
  57. <img src="{IMGDIR}/rewardsmall.gif" alt="{lang thread_reward}" />
  58. <!--{elseif $thread['special'] == 4}-->
  59. <img src="{IMGDIR}/activitysmall.gif" alt="{lang thread_activity}" />
  60. <!--{elseif $thread['special'] == 5}-->
  61. <img src="{IMGDIR}/debatesmall.gif" alt="{lang thread_debate}" />
  62. <!--{elseif in_array($thread['displayorder'], array(1, 2, 3, 4))}-->
  63. <img src="{IMGDIR}/pin_$thread[displayorder].gif" alt="$_G[setting][threadsticky][3-$thread[displayorder]]" />
  64. <!--{else}-->
  65. <img src="{IMGDIR}/folder_$thread[folder].gif" />
  66. <!--{/if}-->
  67. </a>
  68. </td>
  69. <!--{if !$_G['gp_archiveid'] && $_G['forum']['ismoderator']}-->
  70. <td class="o">
  71. <!--{if $thread['fid'] == $_G[fid]}-->
  72. <!--{if $thread['displayorder'] <= 3 || $_G['adminid'] == 1}-->
  73. <input onclick="tmodclick(this)" type="checkbox" name="moderate[]" value="$thread[tid]" />
  74. <!--{else}-->
  75. <input type="checkbox" disabled="disabled" />
  76. <!--{/if}-->
  77. <!--{else}-->
  78. <input type="checkbox" disabled="disabled" />
  79. <!--{/if}-->
  80. </td>
  81. <!--{/if}-->
  82. <th class="$thread[folder]">
  83. <!--{hook/forumdisplay_thread $key}-->
  84. <!--{if !$thread['forumstick'] && $thread['closed'] > 1 && ($thread['isgroup'] == 1 || $thread['fid'] != $_G['fid'])}-->
  85. <!--{eval $thread[tid]=$thread[closed];}-->
  86. <!--{/if}-->
  87. $thread[typehtml] $thread[sorthtml]
  88. <!--{if $thread['moved']}-->
  89. {lang thread_moved}:<!--{eval $thread[tid]=$thread[closed];}-->
  90. <!--{/if}-->
  91. <a href="forum.php?mod=viewthread&tid=$thread[tid]&{if $_G['gp_archiveid']}archiveid={$_G['gp_archiveid']}&{/if}extra=$extra"$thread[highlight]{if $thread['isgroup'] == 1 || $thread['forumstick']} target="_blank"{else} onclick="atarget(this)"{/if} class="xst" >$thread[subject]</a>
  92. <!--{if $thread[icon] >= 0}-->
  93. <img src="{STATICURL}image/stamp/{$_G[cache][stamps][$thread[icon]][url]}" alt="{$_G[cache][stamps][$thread[icon]][text]}" align="absmiddle" />
  94. <!--{/if}-->
  95. <!--{if $stemplate && $sortid}-->$stemplate[$sortid][$thread[tid]]<!--{/if}-->
  96. <!--{if $thread['readperm']}--> - [{lang readperm} <span class="xw1">$thread[readperm]</span>]<!--{/if}-->
  97. <!--{if $thread['price'] > 0}-->
  98. <!--{if $thread['special'] == '3'}-->
  99. - <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>
  100. <!--{else}-->
  101. - [{lang price} <span class="xw1">$thread[price]</span> {$_G[setting][extcredits][$_G['setting']['creditstransextra'][1]][unit]}{$_G[setting][extcredits][$_G['setting']['creditstransextra'][1]][title]}]
  102. <!--{/if}-->
  103. <!--{elseif $thread['special'] == '3' && $thread['price'] < 0}-->
  104. - [{lang reward_solved}]
  105. <!--{/if}-->
  106. <!--{if $thread['attachment'] == 2}-->
  107. <img src="{STATICURL}image/filetype/image_s.gif" alt="attach_img" title="{lang attach_img}" align="absmiddle" />
  108. <!--{elseif $thread['attachment'] == 1}-->
  109. <img src="{STATICURL}image/filetype/common.gif" alt="attachment" title="{lang attachment}" align="absmiddle" />
  110. <!--{/if}-->
  111. <!--{if $thread['digest'] > 0 && $filter != 'digest'}-->
  112. <img src="{IMGDIR}/digest_$thread[digest].gif" align="absmiddle" alt="digest" title="{lang thread_digest} $thread[digest]" />
  113. <!--{/if}-->
  114. <!--{if $thread['displayorder'] == 0}-->
  115. <!--{if $thread[recommendicon] && $filter != 'recommend'}-->
  116. <img src="{IMGDIR}/recommend_$thread[recommendicon].gif" align="absmiddle" alt="recommend" title="{lang thread_recommend} $thread[recommends]" />
  117. <!--{/if}-->
  118. <!--{if $thread[heatlevel]}-->
  119. <img src="{IMGDIR}/hot_$thread[heatlevel].gif" align="absmiddle" alt="heatlevel" title="$thread[heatlevel] {lang heats}" />
  120. <!--{/if}-->
  121. <!--{if $thread['rate'] > 0}-->
  122. <img src="{IMGDIR}/agree.gif" align="absmiddle" alt="agree" title="{lang rate_credit_add}" />
  123. <!--{elseif $thread['rate'] < 0}-->
  124. <img src="{IMGDIR}/disagree.gif" align="absmiddle" alt="disagree" title="{lang posts_deducted}" />
  125. <!--{/if}-->
  126. <!--{/if}-->
  127. <!--{if $thread['replycredit'] > 0}-->
  128. - <span class="xi1">[{lang replycredit} <strong> $thread['replycredit']</strong> ]</span>
  129. <!--{/if}-->
  130. <!--{if $thread[multipage]}-->
  131. <span class="tps">$thread[multipage]</span>
  132. <!--{/if}-->
  133. <!--{if $thread['weeknew']}-->
  134. <a href="forum.php?mod=redirect&tid=$thread[tid]&goto=lastpost#lastpost" class="xi1">New</a>
  135. <!--{/if}-->
  136. <!--{if !$thread['forumstick'] && ($thread['isgroup'] == 1 || $thread['fid'] != $_G['fid'])}-->
  137. <!--{if $thread['related_group'] == 0 && $thread['closed'] > 1}-->
  138. <!--{eval $thread[tid]=$thread[closed];}-->
  139. <!--{/if}-->
  140. <!--{if $groupnames[$thread[tid]]}-->
  141. <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>
  142. <!--{/if}-->
  143. <!--{/if}-->
  144. </th>
  145. <td class="by">
  146. <!--{hook/forumdisplay_author $key}-->
  147. <cite>
  148. <!--{if $thread['authorid'] && $thread['author']}-->
  149. <a href="home.php?mod=space&uid=$thread[authorid]" c="1">$thread[author]</a><!--{if !empty($verify[$thread['authorid']])}--> $verify[$thread[authorid]]<!--{/if}-->
  150. <!--{else}-->
  151. $_G[setting][anonymoustext]
  152. <!--{/if}-->
  153. </cite>
  154. <em><span{if $thread['istoday']} class="xi1"{/if}>$thread[dateline]</span></em>
  155. </td>
  156. <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>
  157. <td class="by">
  158. <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>
  159. <em><a href="{if $thread[digest] != -2}forum.php?mod=redirect&tid=$thread[tid]&goto=lastpost$highlight#lastpost{else}forum.php?mod=viewthread&tid=$thread[tid]&page={echo max(1, $thread[pages]);}{/if}">$thread[lastpost]</a></em>
  160. </td>
  161. </tr>
  162. </tbody>
  163. <!--{/loop}-->
  164. </table>
复制代码
为未开启图片列表的主题列表显示样式


  1. <ul class="ml mlt mtw cl">
  2. <!--{loop $_G['forum_threadlist'] $key $thread}-->
  3. <!--{if !$thread['forumstick'] && ($thread['isgroup'] == 1 || $thread['fid'] != $_G['fid'])}-->
  4. <!--{if $thread['related_group'] == 0 && $thread['closed'] > 1}-->
  5. <!--{eval $thread[tid]=$thread[closed];}-->
  6. <!--{/if}-->
  7. <!--{/if}-->
  8. <li style="width:{$_G[setting][forumpicstyle][thumbwidth]}px;">
  9. <!--{if !$_G['gp_archiveid'] && $_G['forum']['ismoderator']}-->
  10. <div style="position: absolute;padding:2px;background:#FFF">
  11. <!--{if $thread['fid'] == $_G[fid]}-->
  12. <!--{if $thread['displayorder'] <= 3 || $_G['adminid'] == 1}-->
  13. <input onclick="tmodclick(this)" type="checkbox" name="moderate[]" value="$thread[tid]" />
  14. <!--{else}-->
  15. <input type="checkbox" disabled="disabled" />
  16. <!--{/if}-->
  17. <!--{else}-->
  18. <input type="checkbox" disabled="disabled" />
  19. <!--{/if}-->
  20. </div>
  21. <!--{/if}-->
  22. <div class="c cl">
  23. <a href="forum.php?mod=viewthread&tid=$thread[tid]&{if $_G['gp_archiveid']}archiveid={$_G['gp_archiveid']}&{/if}extra=$extra" {if $thread['isgroup'] == 1 || $thread['forumstick']} target="_blank"{else} onclick="atarget(this)"{/if} title="$thread[subject]" class="z">
  24. <!--{if $thread['cover']}-->
  25. <img src="$thread[coverpath]" alt="$thread[subject]" width="{$_G[setting][forumpicstyle][thumbwidth]}" height="{$_G[setting][forumpicstyle][thumbheight]}" />
  26. <!--{else}-->
  27. <span class="nopic" style="width:{$_G[setting][forumpicstyle][thumbwidth]}px; height:{$_G[setting][forumpicstyle][thumbheight]}px;"></span>
  28. <!--{/if}-->
  29. </a>
  30. </div>
  31. <h3 class="ptn" style="width: {$_G[setting][forumpicstyle][thumbwidth]}px;"><a href="forum.php?mod=viewthread&tid=$thread[tid]&{if $_G['gp_archiveid']}archiveid={$_G['gp_archiveid']}&{/if}extra=$extra"$thread[highlight]{if $thread['isgroup'] == 1 || $thread['forumstick']} target="_blank"{else} onclick="atarget(this)"{/if} title="$thread[subject]"><!--{if in_array($thread['displayorder'], array(1, 2, 3, 4))}-->[{lang thread_stick}] <!--{/if}-->$thread[subject]</a></h3>
  32. <div class="cl">
  33. <!--{if $thread['cover']}--><em class="sum y xs0 xi1 xw1" title="$thread[cover] {lang pics}">$thread[cover]</em><!--{/if}-->
  34. <!--{if $thread['authorid'] && $thread['author']}-->
  35. <a href="home.php?mod=space&uid=$thread[authorid]">$thread[author]</a><!--{if !empty($verify[$thread['authorid']])}--> $verify[$thread[authorid]]<!--{/if}-->
  36. <!--{else}-->
  37. $_G[setting][anonymoustext]
  38. <!--{/if}-->
  39. </div>
  40. <div class="cl">
  41. <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>
  42. <em class="xs0{if $thread['istoday']} xi1{/if}">$thread[dateline]</em>
  43. </div>
  44. </li>
  45. <!--{/loop}-->
  46. </ul>
复制代码

这一段则为开启图片列表后,,显示的图片列表样式

两种样式,,,有判断语句于后台控制
authicon  楼主| dly 发表于 2012-8-17 18:05:26 | 显示全部楼层
  1. <li style="width:{$_G[setting][forumpicstyle][thumbwidth]}px;">
复制代码

这句用来控制图片列表的宽度,{$_G[setting][forumpicstyle][thumbwidth]}即是宽度,可以后台中填写


  1. <!--{if !$_G['gp_archiveid'] && $_G['forum']['ismoderator']}-->
  2. <div style="position: absolute;padding:2px;background:#FFF">
  3. <!--{if $thread['fid'] == $_G[fid]}-->
  4. <!--{if $thread['displayorder'] <= 3 || $_G['adminid'] == 1}-->
  5. <input onclick="tmodclick(this)" type="checkbox" name="moderate[]" value="$thread[tid]" />
  6. <!--{else}-->
  7. <input type="checkbox" disabled="disabled" />
  8. <!--{/if}-->
  9. <!--{else}-->
  10. <input type="checkbox" disabled="disabled" />
  11. <!--{/if}-->
  12. </div>
  13. <!--{/if}-->
复制代码
帖子管理选项,,,<!--{if !$_G['gp_archiveid'] && $_G['forum']['ismoderator']}-->表示如果用户登陆则显示

  1. <!--{if $thread['fid'] == $_G[fid]}-->
  2. <!--{if $thread['displayorder'] <= 3 || $_G['adminid'] == 1}-->
  3. <input onclick="tmodclick(this)" type="checkbox" name="moderate[]" value="$thread[tid]" />
  4. <!--{else}-->
  5. <input type="checkbox" disabled="disabled" />
  6. <!--{/if}-->
  7. <!--{else}-->
  8. <input type="checkbox" disabled="disabled" />
  9. <!--{/if}-->
复制代码

为不同用户,显示不同的管理菜单
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

1314学习网 ( 浙ICP备10214163号 )

GMT+8, 2024-5-12 01:56

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表