最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

Discuz 7.2 主題列表頁模板(Forumdisplay.htm)修改教程

  發(fā)布時間:2011-11-30 17:18:50   作者:佚名   我要評論
Discuz 7.2 主題列表頁模板(Forumdisplay.htm)修改教程 ,需要修改的朋友可以參考下。子分類調用模板forumdisplay_subforum.htm

1. 釋版風格文件請勿直接用到站點中 因為注釋已經(jīng)把文件加大了
如果用在站點模版中 會造成不必要的拖速 注釋文件僅供本地學習與參考!
2. 您或多或少需要對基本的HTML代碼有所認識 不然這個注釋版可能對您沒有幫助。
3. 文件內因為注釋很多 如果使用一般的記事本打開閱讀的話 會很難閱讀
建議使用一些代碼編輯器打開閱讀 因為只有代碼編輯器 才會對注釋部分作出高亮
我個人推薦EditPlus 或者更高階的Dreamweaver 這樣能更好的閱讀里頭的注釋。
4. 歡迎轉載本帖內容和附件到任何網(wǎng)站
5. 本帖僅供發(fā)布 請不要在這里咨詢如何修改 自己研究 自己動手 豐衣足食!

文件說明
Forumdisplay.htm為Discuz!程序的主題列表頁模板文件
文件路徑:Discuz目錄/templates/default下


復制代碼
代碼如下:

<!--**********************Forumdisplay.htm模板注釋開始*********************************-->
<!--*載入頭部模板 header.htm*-->
{subtemplate header}
<!--*判斷如果當前用戶為本版版主或者超版以上 載入moderate.js.{$jspath}:后臺>全局>優(yōu)化設置>服務器優(yōu)化>JavaScript腳本目錄*-->
<!--{if $forum['ismoderator']}-->
<script type="text/javascript" src="{$jspath}moderate.js?{VERHASH}"></script>
<!--{/if}-->
<!--*頁面導航 例:Discuz! 論壇官方 》 首頁*-->
<div id="nav"><a id="fjump" href="$indexname"
<!--*判斷當前如果開啟了論壇跳轉菜單 鼠標移到站點名稱上時 彈出菜單*-->
{if $forumjump == 1} class="dropmenu" onmouseover="showMenu({'ctrlid':this.id})"{/if}>$bbname</a> $navigation</div>
<!--*頁內文字廣告位*-->
<!--{if $admode && !empty($advlist['text'])}-->
<div id="ad_text" class="ad_text" >
<table summary="Text Ad" cellpadding="0" cellspacing="0">$advlist[text]</table>
</div>
<!--{else}-->
<div id="ad_text"></div>
<!--{/if}-->
<!--*判斷邊欄是否開啟,class="wrap s_clear"為關閉邊欄樣式,class="wrap with_side s_clear"為開啟邊欄樣式*-->
<div id="wrap"{if $infosidestatus['allow'] < 2} class="wrap s_clear"{else} class="wrap with_side s_clear"{/if}>
<!--*這里是邊欄開關按鈕,$infosidestatus[allow] == 2為關閉邊欄按鈕,$infosidestatus[allow] == 1為開啟邊欄按鈕.*-->
<!--{if $infosidestatus[allow] == 2}-->
<a id="sidebar_img" href="javascript:;" onclick="sidebar_collapse(['{lang sidebar_collapsed_yes}', '{lang sidebar_collapsed_no}']);" class="$collapseimg[sidebar]"><!--{if $collapseimg[sidebar] == 'collapsed_yes'}-->{lang sidebar_collapsed_yes}<!--{else}-->{lang sidebar_collapsed_no}<!--{/if}--></a>
<!--{elseif $infosidestatus[allow] == 1}-->
<a id="sidebar_img" href="javascript:;" onclick="sidebar_collapse(['', '{lang sidebar_collapsed_no}']);" class="collapsed_yes">{lang sidebar_collapsed_yes}</a>
<!--{/if}-->
<!--*主體部分開始*-->
<div class="main">
<div class="content">
<!--*Discuz插件鉤子 詳見相關插件開發(fā)手冊*-->
$pluginhooks[forumdisplay_header]
<div id="forumheader" class="s_clear">
<!--*本版版塊名字*-->
<h1>$forum[name]</h1>
<!--*本版資訊 $forum[threads]:主題數(shù),{echo $forum[posts]-$forum[posts]}本版回復數(shù)}*-->
<p class="forumstats">[ <strong>$forum[threads]</strong> {lang thread} / {echo $forum[posts]-$forum[threads]} {lang reply} ]</p>
<div class="forumaction">
<div class="right">
$pluginhooks[forumdisplay_forumaction]
<!--*判斷當前瀏覽者是否已登錄*-->
<!--{if $discuz_uid}-->
<!--*關注*-->
<a href="my.php?item=attention&type=forum&action=add&fid=$fid" id="ajax_attention" class="attention" onclick="ajaxmenu(this);doane(event);">{lang attention_forum}</a>
<!--*收藏*-->
<a href="my.php?item=favorites&fid=$fid" id="ajax_favorite" onclick="ajaxmenu(this);doane(event);">{lang thread_favorite}</a>
<!--{/if}-->
<!--*如果開啟了RSS功能 顯示RSS訂閱鏈接*-->
<!--{if $rssstatus}--><a href="rss.php?fid=$fid&auth=$rssauth" target="_blank" class="feed">RSS</a><!--{/if}-->
</div>
<!--*如果本版開啟了回收站 就顯示回收站鏈接.(這部分有個bug 少了一個判斷 這里應該只有管理組可見才對 普通會員點了都是無權訪問的)*-->
<!--{if $forum['recyclebin']}-->
<a href="
<!--*如果當前用戶的管理組為管理員 進入的是系統(tǒng)設置里的回收站*-->
{if $adminid == 1}admincp.php?action=recyclebin&frames=yes
<!--*如果當前用戶為本版版主或超級版主 進入的則是版主管理中的回收站*-->
{elseif $forum['ismoderator']}modcp.php?action=recyclebins&fid=$fid{/if}" class="recyclebin" target="_blank">{lang forum_recyclebin}</a>
<!--{/if}-->
</div>
<!--*判斷本版是否設置了版塊簡介 存在則顯示*-->
<!--{if $forum[description]}--><p class="channelinfo">{lang forum_description}: $forum[description]</p><!--{/if}-->
<p id="modedby">
<!--*判斷當前用戶如果為本版版主或超級版主 顯示下面的鏈接*-->
<!--{if $forum['ismoderator']}-->
<div class="modlink">
<!--*Discuz插件鉤子 詳見相關插件開發(fā)手冊*-->
$pluginhooks[forumdisplay_modlink]
<!--*如果當前本版有用戶報告 則提示報告數(shù)量*-->
<!--{if $forum['modworks']}-->
<a href="modcp.php?action=report&fid=$fid" target="_blank">{lang mod_works_existence}</a> |
<!--{/if}-->
<!--*版主管理鏈接*-->
<a href="modcp.php?fid=$fid" target="_blank">{lang modcp}</a>
</div>
<!--{/if}-->
<!--*本版版主*-->
{lang forum_modedby}:
<!--*判斷本版版主 $moderatedby:本版版主用戶名,如果本版無版主 則顯示**空缺中***-->
<!--{if $moderatedby}-->$moderatedby<!--{else}-->{lang forum_opening}<!--{/if}-->
</p>
</div>
<!--*Discuz插件鉤子 詳見相關插件開發(fā)手冊*-->
$pluginhooks[forumdisplay_top]
<!--*判斷本版是否有推薦主題或版規(guī)*-->
<!--{if $forum['recommendlist'] || $forum['rules']}-->
<div id="modarea" class="s_clear">
<div class="list">
<!--*收起/展開的按鈕*-->
<span class="headactions"><img onclick="toggle_collapse('modarea_c');" alt="{lang spread}" title="{lang spread}" src="{IMGDIR}/$collapseimg[modarea_c].gif" id="modarea_c_img" class="toggle" /></span>
<h3>
<!--*如果存在推薦主題 則顯示"推薦主題字樣"*-->
<!--{if $forum['recommendlist']}-->
<a href="javascript:;" id="tab_1" class="current"
<!--*如果同時存在版塊規(guī)則 則加入切換按鈕*-->
{if $forum['rules']} onclick="switchTab('tab', 1, 2)"{/if}>{lang forum_recommend}</a>
<!--*如果當前用戶為本版版主或者超級版主以上 則顯示編輯推薦主題鏈接*-->
<!--{if $forum['ismoderator']}--><a href="modcp.php?action=forums&op=recommend&show=all&fid=$fid" target="_blank">[{lang edit}]</a><!--{/if}-->
<!--{/if}-->
<!--*如果同時存在推薦主題 則顯示一個間隔符*-->
<!--{if $forum['recommendlist'] && $forum['rules']}--><span class="pipe">|</span><!--{/if}-->
<!--*如果現(xiàn)在正在查看的是版塊規(guī)則 版塊規(guī)則字樣粗體顯示*-->
<!--{if $forum['rules']}--><a href="javascript:;" id="tab_2"{if !$forum['recommendlist']} class="current"{/if}
<!--*如果同時存在推薦主題 則加入切換按鈕*-->
{if $forum['recommendlist']} onclick="switchTab('tab', 2, 2)"{/if}>{lang forum_rules}</a><!--{/if}-->
</h3>
</div>
<div id="modarea_c" style="$collapse[modarea_c]">
<!--*如果存在推薦主題 載入推薦主題模板 recommend.htm*-->
<!--{if $forum['recommendlist']}-->
<div id="tab_c_1">
{subtemplate recommend}
</div>
<!--{/if}-->
<!--*如果存在版塊規(guī)則 顯示之.$forum[rules]:版規(guī)內容*-->
<!--{if $forum['rules']}-->
<div id="tab_c_2"{if $forum['recommendlist']} style="display:none"{/if} class="rule">$forum[rules]</div>
<!--{/if}-->
</div>
</div>
<!--{/if}-->
<!--*判斷如果本版存在子版塊 載入主題列表頁面子版塊模板 forumdisplay_subforum.htm*-->
<!--{if $subexists}-->
<div id="subforum" class="mainbox list">{template forumdisplay_subforum}</div>
<!--{/if}-->
$pluginhooks[forumdisplay_middle]
<div class="pages_btns s_clear">
<!--*頁數(shù)*-->
$multipage
<span
<!--*判斷如果啟用了顯示最近版塊訪問數(shù)量 當鼠標移到返回首頁的時候 彈出最近訪問版塊菜單*-->
<!--{if $visitedforums}-->id="visitedforums" onmouseover="$('visitedforums').id = 'visitedforumstmp';this.id = 'visitedforums';showMenu({'ctrlid':this.id})"<!--{/if}--> class="pageback"><a href="$indexname">{lang return_index}</a></span>
<!--*發(fā)新帖按鈕*-->
<span class="postbtn" id="newspecial" prompt="post_newthread" onmouseover="$('newspecial').id = 'newspecialtmp';this.id = 'newspecial';showMenu({'ctrlid':this.id})"><a href="post.php?action=newthread&fid=$fid" onclick="showWindow('newthread', this.href);return false;">{lang send_posts}</a></span>
</div>
<!--*判斷如果本版啟用了主題分類并且允許按類別瀏覽 或者 啟用了分類信息并且允許按類別瀏覽*-->
<!--{if $forum['threadtypes'] && $forum['threadtypes']['listable'] || $forum['threadsorts'] && $forum['threadsorts']['listable']}-->
<div class="threadtype">
<!--*主題分類*-->
<!--{if $forum['threadtypes'] && $forum['threadtypes']['listable']}-->
<p>
<!--*當前如果已選中分類瀏覽 "全部"字樣則為超鏈接并粗體*-->
<!--{if $typeid || $sortid}--><a href="forumdisplay.php?fid=$fid">{lang forum_viewall}</a><!--{else}--><strong>{lang forum_viewall}</strong><!--{/if}-->
<!--*這里是平板樣式的分類列表 如果已選中 此分類名則粗體顯示*-->
<!--{loop $forum['threadtypes']['flat'] $id $name}--><!--{if $typeid != $id}--><a href="forumdisplay.php?fid=$fid&filter=type&typeid=$id$sortadd">$name</a><!--{else}--><strong>$name</strong><!--{/if}--> <!--{/loop}-->
<!--*下拉菜單式的分類列表 其他地方和平板樣式略同 不重復解釋*-->
<!--{if $forum['threadtypes']['selectbox']}-->
<span id="threadtypesmenu" class="dropmenu" onmouseover="showMenu({'ctrlid':this.id})">{lang admin_type_more}</span>
<div class="popupmenu_popup headermenu_popup" id="threadtypesmenu_menu" style="display: none">
<ul>
<!--{loop $forum['threadtypes']['selectbox'] $id $name}-->
<li>
<!--{if $typeid != $id}-->
<a href="forumdisplay.php?fid=$fid&filter=type&typeid=$id$sortadd">$name</a>
<!--{else}-->
<strong>$name</strong>
<!--{/if}-->
</li>
<!--{/loop}-->
</ul>
</div>
<!--{/if}-->
</p>
<!--{/if}-->
<!--*這里是分類信息 下面部分和主題分類部分一樣 不重復解釋*-->
<!--{if $forum['threadsorts'] && $forum['threadsorts']['listable']}-->
<p>
<!--{if !$forum['threadtypes']['listable']}--><!--{if $sortid}--><a href="forumdisplay.php?fid=$fid">{lang forum_viewall}</a><!--{else}--><strong>{lang forum_viewall}</strong><!--{/if}--><!--{/if}-->
<!--{loop $forum['threadsorts']['flat'] $id $name}--><!--{if $sortid != $id}--><a href="forumdisplay.php?fid=$fid&filter=sort&sortid=$id$typeadd">$name</a><!--{else}--><strong>$name</strong><!--{/if}--> <!--{/loop}-->
<!--{if $forum['threadsorts']['selectbox']}-->
<span id="threadsortsmenu" class="dropmenu" onmouseover="showMenu({'ctrlid':this.id})">{lang admin_type_more}</span>
<div class="popupmenu_popup headermenu_popup" id="threadsortsmenu_menu" style="display: none">
<ul>
<!--{loop $forum['threadsorts']['selectbox'] $id $name}-->
<li>
<!--{if $sortid != $id}-->
<a href="forumdisplay.php?fid=$fid&filter=sort&sortid=$id$typeadd">$name</a>
<!--{else}-->
<strong>$name</strong>
<!--{/if}-->
</li>
<!--{/loop}-->
</ul>
</div>
<!--{/if}-->
</p>
<!--{/if}-->
</div>
<!--{/if}-->
<!--*主題列表部分*-->
<div id="threadlist" class="threadlist datalist" style="position: relative;">
<!--*管理操作提交*-->
<form method="post" name="moderate" id="moderate" action="topicadmin.php?action=moderate&fid=$fid&infloat=yes&nopost=yes">
<input type="hidden" name="formhash" value="{FORMHASH}" />
<input type="hidden" name="listextra" value="$extra" />
<table summary="forum_$fid" {if !$separatepos}id="forum_$fid"{/if} cellspacing="0" cellpadding="0" class="datatable">
<thead class="colplural">
<tr>
<!--*主題類型選擇菜單*-->
<td colspan="2"> <a href="javascript:;" id="filtertype" class="dropmenu" onclick="showMenu({'ctrlid':this.id});">
<!--*投票貼*-->
<!--{if $filter == poll}-->{lang thread_poll}
<!--*交易帖*-->
<!--{elseif $filter == trade}-->{lang thread_trade}
<!--*活動貼*-->
<!--{elseif $filter == activity}-->{lang thread_activity}
<!--*辯論帖*-->
<!--{elseif $filter == debate}-->{lang thread_debate}
<!--*懸賞帖*-->
<!--{elseif $filter == reward}-->{lang thread_reward}
<!--*這個應該是存在特殊主題插件時顯示的"其他"*-->
<!--{else}-->{lang type}<!--{/if}--></a></td>
<!--*判斷當前用戶如果為本版版主/超級版主以上 這里多一個表格給主題管理選定*-->
<!--{if $forum['ismoderator']}--><td class="icon"> </td><!--{/if}-->
<!--*這里開始為主題過濾索引(不懂怎么解釋它 暫時這么命名吧 呵呵)*-->
<th>
<ul class="itemfilter s_clear">
<!--*主題*-->
<li>{lang thread}:</li>
<!--*這里做一個說明 class="current"這個類的用途是當選中這個類型后 這個類型的字樣背景高亮顯示.比如你選中查看本版精華 那么"精華"字樣就會有灰色背景.這里做個統(tǒng)一解釋 下面不重復 不然更亂*-->
<!--*全部*-->
<li{if !$filter} class="current"{/if}><a href="forumdisplay.php?fid=$fid"><span>{lang all}</span></a></li>
<!--*精華*-->
<li{if $filter == 'digest'} class="current"{/if}><a class="filter" href="forumdisplay.php?fid=$fid&filter=digest"><span>{lang digestposts}</span></a></li>
<!--*判斷本版如果存在推薦主題 就加入"推薦"鏈接*-->
<!--{if $recommendthread[status]}--><li{if $filter == 'recommend'} class="current"{/if}><a class="filter" href="forumdisplay.php?fid={$fid}&filter=recommend&orderby=recommends"><span>{lang order_recommends}</span></a></li><!--{/if}-->
<li class="pipe">|</li>
<!--*按時間查看*-->
<li>{lang dateline_range}:</li>
<!--*一天*-->
<li{if $filter == 86400} class="current"{/if}><a href="forumdisplay.php?fid=$fid&orderby=$orderby&filter=86400$typeadd$sortadd"><span>{lang last_1_days}</span></a></li>
<!--*2天*-->
<li{if $filter == 172800} class="current"{/if}><a href="forumdisplay.php?fid=$fid&orderby=$orderby&filter=172800$typeadd$sortadd"><span>{lang last_2_days}</span></a></li>
<!--*周*-->
<li{if $filter == 604800} class="current"{/if}><a href="forumdisplay.php?fid=$fid&orderby=$orderby&filter=604800$typeadd$sortadd"><span>{lang last_7_days}</span></a></li>
<!--*月*-->
<li{if $filter == 2592000} class="current"{/if}><a href="forumdisplay.php?fid=$fid&orderby=$orderby&filter=2592000$typeadd$sortadd"><span>{lang last_30_days}</span></a></li>
<!--*季*-->
<li{if $filter == 7948800} class="current"{/if}><a href="forumdisplay.php?fid=$fid&orderby=$orderby&filter=7948800$typeadd$sortadd"><span>{lang last_90_days}</span></a></li>
<!--*如果開啟了主題熱度 加入"熱門"鏈接*-->
<li class="pipe">|</li>
<li><a class="order {if $orderby == 'heats' || $orderby == 'recommends'}order_active{/if}" href="forumdisplay.php?fid={$fid}&filter=$filter&orderby={if $filter == 'recommend'}recommends{else}heats{/if}$typeadd$sortadd">{lang order_heats}</a></li>
</ul>
</th>
<!--*作者/時間字樣部分 點擊的話 為按發(fā)表時間排序本版主題*-->
<td class="author"><a href="forumdisplay.php?fid={$fid}&filter=$filter&orderby=dateline$typeadd$sortadd" class="order {if $orderby == 'dateline'}order_active{/if}">{lang author}/{lang time}</a></td>
<!--*最后回復字樣部分 點擊的話 為按回復數(shù)量排序本版主題*-->
<td class="nums"><a href="forumdisplay.php?fid={$fid}&filter=$filter&orderby=replies$typeadd$sortadd" class="order {if $orderby == 'replies'}order_active{/if}">{lang replies}</a>
<!--*查看字樣部分 點擊的話 為按瀏覽次數(shù)排序本版主題*-->
<a href="forumdisplay.php?fid={$fid}&filter=$filter&orderby=views$typeadd$sortadd" class="order {if $orderby == 'views'}order_active{/if}">{lang views}</a></td>
<!--*最后回復字樣部分 點擊的話 按最后回復排序本版主題*-->
<td class="lastpost"><cite><a href="forumdisplay.php?fid={$fid}&filter=$filter&orderby=lastpost$typeadd$sortadd" class="order {if $orderby == 'lastpost'}order_active{/if}">{lang lastpost}</a></cite></td>
</tr>
</thead>
<!--*判斷如果當前為本版第一頁并且存在公告 就載入公告表格和內容*-->
<!--{if $page == 1 && !empty($announcement)}-->
<tbody>
<tr>
<!--*公告圖標*-->
<td class="folder"><img src="{IMGDIR}/ann_icon.gif" alt="{lang announcement}" /></td>
<td class="icon"> </td>
<!--{if $forum['ismoderator']}--><td class="icon"> </td><!--{/if}-->
<!--*公告字樣*-->
<th class="subject"><strong>{lang announcement}:
<!--*如果公告類型為文字公告 就鏈接到announcement.php查看 $announcement[id]:公告編號,$announcement[subject]為公告標題*-->
<!--{if empty($announcement['type'])}--><a href="announcement.php?id=$announcement[id]#$announcement[id]" target="_blank">$announcement[subject]</a>
<!--*公告類型為網(wǎng)址鏈接*-->
<!--{else}--><a href="$announcement[message]" target="_blank">$announcement[subject]</a><!--{/if}--></strong></th>
<td class="author">
<!--*公告作者*-->
<cite><a href="space.php?uid=$announcement[authorid]">$announcement[author]</a></cite>
<!--*公告發(fā)布時間*-->
<em>$announcement[starttime]</em>
</td>
<td class="nums"> </td>
<td class="lastpost"> </td>
</tr>
</tbody>
<!--{/if}-->
<!--*主題列表開始*-->
<!--{if $threadcount}-->
<!--{loop $threadlist $key $thread}-->
<!--{if $separatepos == $key + 1}-->
<tbody>
<tr>
<td class="folder"></td><td> </td>
<!--{if $forum['ismoderator']}--><td> </td><!--{/if}-->
<th class="subject">{lang forum_thread}</th><td> </td><td> </td><td> </td>
</tr>
</tbody>
<!--{/if}-->
<tbody id="$thread[id]">
<tr>
<!--*主題狀態(tài)圖標*-->
<td class="folder">
<!--*如果點擊這里的圖標 主題鏈接就在新窗口打開*-->
<a href="viewthread.php?tid=$thread[tid]&extra=$extra" title="{lang target_blank}" target="_blank">
<!--*如果主題已被關閉 顯示鎖頭圖標*-->
<!--{if $thread[folder] == 'lock'}-->
<img src="{IMGDIR}/folder_lock.gif" /></a>
<!--*如果為置頂帖 就按置頂?shù)燃壿d入置頂圖標 $thread['displayorder']為置頂?shù)燃?-->
<!--{elseif in_array($thread['displayorder'], array(1, 2, 3))}-->
<img src="{IMGDIR}/pin_$thread[displayorder].gif" alt="$threadsticky[3-$thread[displayorder]]" /></a>
<!--{else}-->
<!--*新/舊帖圖標*-->
<img src="{IMGDIR}/folder_$thread[folder].gif" /></a>
<!--{/if}-->
</td>
<!--*主題圖標*-->
<td class="icon">
<!--*如果本帖為投票帖 這里顯示投票圖標 下面以此類推*-->
<!--{if $thread['special'] == 1}-->
<a href="forumdisplay.php?fid=$fid&filter=poll"><img src="{IMGDIR}/pollsmall.gif" alt="{lang thread_poll}" /></a>
<!--*交易帖*-->
<!--{elseif $thread['special'] == 2}-->
<a href="forumdisplay.php?fid=$fid&filter=trade"><img src="{IMGDIR}/tradesmall.gif" alt="{lang thread_trade}" /></a>
<!--*懸賞帖*-->
<!--{elseif $thread['special'] == 3}-->
<a href="forumdisplay.php?fid=$fid&filter=reward"><img src="{IMGDIR}/rewardsmall.gif" alt="{lang thread_reward}"
<!--*如果懸賞已結束 圖標顯示暗色*-->
<!--{if $thread['price'] < 0}-->class="solved"<!--{/if}--> /></a>
<!--*活動貼*-->
<!--{elseif $thread['special'] == 4}-->
<a href="forumdisplay.php?fid=$fid&filter=activity"><img src="{IMGDIR}/activitysmall.gif" alt="{lang thread_activity}" /></a>
<!--*辯論帖*-->
<!--{elseif $thread['special'] == 5}-->
<a href="forumdisplay.php?fid=$fid&filter=debate"><img src="{IMGDIR}/debatesmall.gif" alt="{lang thread_debate}" /></a>
<!--{else}-->
<!--*普通主題則顯示用戶發(fā)帖時選擇的圖標*-->
$thread['icon']
<!--{/if}-->
</td>
<!--*判斷當前用戶的如果為本版版主或者超級版主以上 則顯示主題管理的復選框*-->
<!--{if $forum['ismoderator']}-->
<td class="icon">
<!--{if $thread['fid'] == $fid && $thread['digest'] >= 0}-->
<input onclick="tmodclick(this)" class="checkbox" type="checkbox" name="moderate[]" value="$thread[tid]" />
<!--{else}-->
<input class="checkbox" type="checkbox" disabled="disabled" />
<!--{/if}-->
</td>
<!--{/if}-->
<th class="subject $thread[folder]">
<label>{$pluginhooks[forumdisplay_thread][$key]} </label>
<!--*如果主題被移動并保留轉向 顯示"移動"字樣*-->
<!--{if $thread['moved']}-->
<!--{if $forum['ismoderator']}-->
<a href="topicadmin.php?action=moderate&optgroup=3&operation=delete&tid=$thread[moved]" onclick="showWindow('mods', this.href);return false">{lang thread_moved}:</a>
<!--{else}-->
{lang thread_moved}:
<!--{/if}-->
<!--{/if}-->
<!--*主題分類前綴*-->
$thread[sortid] $thread[typeid]
<span id="thread_$thread[tid]">
<!--*帖子地址.$thread[subject]為主題標題*-->
<a href="viewthread.php?tid=$thread[tid]&extra=$extra"$thread[highlight]>$thread[subject]</a></span>
<!--*判斷本帖是否設置了閱讀權限 如果設置了 顯示之*-->
<!--{if $thread['readperm']}--> - [{lang readperm} <span class="bold">$thread[readperm]</span>]<!--{/if}-->
<!--{if $thread['price'] > 0}-->
<!--*如果本帖為懸賞帖 則顯示懸賞金額數(shù)目*-->
<!--{if $thread['special'] == '3'}-->
- <span style="color: #C60">[{lang thread_reward}{$extcredits[$creditstransextra[2]][title]} <span class="bold">$thread[price]</span> {$extcredits[$creditstransextra[2]][unit]}]</span>
<!--{else}-->
- [{lang price} {$extcredits[$creditstransextra[1]][title]} <span class="bold">$thread[price]</span> {$extcredits[$creditstransextra[1]][unit]}]
<!--{/if}-->
<!--*如果懸賞帖已解決 則顯示"已解決"字樣*-->
<!--{elseif $thread['special'] == '3' && $thread['price'] < 0}-->
- <span style="color: #269F11">[{lang reward_solved}]</span>
<!--{/if}-->
<!--*如果本帖存在圖片附件 則顯示圖片附件圖標*-->
<!--{if $thread['attachment'] == 2}-->
<img src="images/attachicons/image_s.gif" alt="{lang attach_img}" class="attach" />
<!--*如果附件類型為其他 則顯示回形針圖標*-->
<!--{elseif $thread['attachment'] == 1}-->
<img src="images/attachicons/common.gif" alt="{lang attachment}" class="attach" />
<!--{/if}-->
<!--{if $thread['displayorder'] == 0}-->
<!--*如果本帖為推薦主題 則顯示推薦圖標*-->
<!--{if $thread[recommendicon]}-->
<img src="{IMGDIR}/recommend_$thread[recommendicon].gif" class="attach" alt="{lang thread_recommend}" title="{lang thread_recommend}" />
<!--{/if}-->
<!--*如果本帖已經(jīng)達到要求的熱點 則顯示熱點圖標*-->
<!--{if $thread[heatlevel]}-->
<img src="{IMGDIR}/hot_$thread[heatlevel].gif" class="attach" alt="$thread[heatlevel] {lang heats}" title="$thread[heatlevel] {lang heats}" />
<!--{/if}-->
<!--*如果本帖為精華帖 則顯示精華圖標 $thread[digest]為精華等級*-->
<!--{if $thread['digest'] > 0}-->
<img src="{IMGDIR}/digest_$thread[digest].gif" class="attach" alt="{lang thread_digest} $thread[digest]" title="{lang thread_digest} $thread[digest]" />
<!--{/if}-->
<!--*如果本帖被評分 則顯示被評分圖標*-->
<!--{if $thread['rate'] > 0}-->
<img src="{IMGDIR}/agree.gif" class="attach" alt="{lang rate_credit_add}" title="{lang rate_credit_add}" />
<!--{/if}-->
<!--{/if}-->
<!--*帖子頁數(shù)*-->
<!--{if $thread[multipage]}-->
<span class="threadpages">$thread[multipage]</span>
<!--{/if}-->
</th>
<!--*帖子作者*-->
<td class="author">
<cite>
<!--*正常狀態(tài)下 顯示作者用戶名和個人資料頁鏈接*-->
<!--{if $thread['authorid'] && $thread['author']}-->
<a href="space.php?uid=$thread[authorid]">$thread[author]</a>
<!--{else}-->
<!--*如果用戶匿名或開啟了游客發(fā)帖 則顯示為"匿名" 本版版主以上可點擊"匿名"字樣得知其身份*-->
<!--{if $forum['ismoderator']}-->
<a href="space.php?uid=$thread[authorid]">{lang anonymous}</a>
<!--{else}-->
<!--*如果用戶匿名發(fā)帖或開啟了游客發(fā)帖 則顯示為匿名*-->
{lang anonymous}
<!--{/if}-->
<!--{/if}-->
</cite>
<!--*帖子發(fā)布時間*-->
<em>$thread[dateline]</em>
</td>
<!--*帖子回復次數(shù)和瀏覽次數(shù)*-->
<td class="nums"><strong>$thread[replies]</strong>/<em>$thread[views]</em></td>
<!--*最后回復*-->
<td class="lastpost">
<!--*最后回復作者 如果用戶匿名發(fā)帖則顯示匿名 **這里有個判斷條件有待確認 $thread[digest] != -2 暫時保留 歡迎指點***-->
<cite><!--{if $thread['lastposter']}--><a href="{if $thread[digest] != -2}space.php?username=$thread[lastposterenc]{else}viewthread.php?tid=$thread[tid]&page={echo max(1, $thread[pages]);}{/if}">$thread[lastposter]</a><!--{else}-->{lang anonymous}<!--{/if}--></cite>
<!--*最后回復時間 **這里有個判斷條件有待確認$thread[digest] != -2 暫時保留 歡迎指點***-->
<em><a href="{if $thread[digest] != -2}redirect.php?tid=$thread[tid]&goto=lastpost$highlight#lastpost{else}viewthread.php?tid=$thread[tid]&page={echo max(1, $thread[pages]);}{/if}">$thread[lastpost]</a></em>
</td>
</tr>
</tbody>
<!--{/loop}-->
<!--{else}-->
<!--*如果本版無主題 則顯示"本版尚無主題"*-->
<tbody><tr><th colspan="6"><p class="nodata">{lang forum_nothreads}</p></th></tr></tbody>
<!--{/if}-->
</table>
<!--*如果選中主題管理的復選框 載入管理操作模板 topicadmin_modlayer.htm*-->
<!--{if $forum['ismoderator'] && $threadcount}-->
{template topicadmin_modlayer}
<!--{/if}-->
</form>
</div>
<div class="pages_btns s_clear">
<!--*頁數(shù)*-->
$multipage
<!--*判斷如果啟用了顯示最近版塊訪問數(shù)量 當鼠標移到返回首頁的時候 彈出最近訪問版塊菜單*-->
<span <!--{if $visitedforums}-->id="visitedforums" onmouseover="$('visitedforums').id = 'visitedforumstmp';this.id = 'visitedforums';showMenu({'ctrlid':this.id})"<!--{/if}--> class="pageback"><a href="$indexname">{lang return_index}</a></span>
<!--*發(fā)新帖按鈕*-->
<span class="postbtn" id="newspecialtmp" onmouseover="$('newspecial').id = 'newspecialtmp';this.id = 'newspecial';showMenu({'ctrlid':this.id})"><a href="post.php?action=newthread&fid=$fid" onclick="showWindow('newthread', this.href);return false;">{lang send_posts}</a></span>
</div>
<!--*本版在線會員 可以參考discuz.htm注釋版中的在線會員列表注釋部分 這里不重復了*-->
<!--{if $whosonlinestatus}-->
<dl id="onlinelist">
<!--{if $detailstatus}-->
<dd>
<span class="headactions"><a href="forumdisplay.php?fid=$fid&page=$page&showoldetails=no#online"><img src="{IMGDIR}/collapsed_no.gif" alt="" /></a></span>
<h3>{lang forum_activeusers}</h3>
</dd>
<dd>
<ul class="s_clear">
<!--{loop $whosonline $key $online}-->
<li title="{lang time}: $online[lastactivity]{LF} {lang action}: $online[action]{LF} {lang forum}: $forumname">
<img src="images/common/$online[icon]" alt="" />
<!--{if $online['uid']}-->
<a href="space.php?uid=$online[uid]">$online[username]</a>
<!--{else}-->
$online[username]
<!--{/if}-->
</li>
<!--{/loop}-->
</ul>
</dd>
<!--{else}-->
<dt>
<span class="headactions"><a href="forumdisplay.php?fid=$fid&page=$page&showoldetails=yes#online" class="nobdr"><img src="{IMGDIR}/collapsed_yes.gif" alt="" /></a></span>
<h3>{lang forum_activeusers}</h3>
</dt>
<!--{/if}-->
</dl>
<!--{/if}-->
$pluginhooks[forumdisplay_bottom]
</div>
</div>
<!--*Discuz和qihoo合作的邊欄搜索 可以不理會*-->
<!--{if $infosidestatus[allow] == 2}-->
<div id="sidebar" class="side" style="$collapse[sidebar]">
<!--{if !empty($qihoo['status']) && ($qihoo['searchbox'] & 2)}-->
<div id="qihoosearch" class="sidebox">
<form method="post" action="search.php?srchtype=qihoo" onSubmit="this.target='_blank';">
<input type="hidden" name="searchsubmit" value="yes" />
<input type="text" class="txt" name="srchtxt" size="20" value="$qihoo_searchboxtxt" />
<button type="submit">{lang search}</button>
</form>
</div>
<!--{/if}-->
<!--{if $infosidestatus[0]}-->
<!--{if !empty($qihoo['status']) && ($qihoo['searchbox'] & 2)}-->
<hr class="shadowline"/>
<!--{/if}-->
<!--*邊欄*-->
<div id="infoside">
{eval request($infosidestatus, 1, 0);}
</div>
<!--{/if}-->
</div>
<!--{/if}-->
<!--*下面都是發(fā)帖類型相關的 不復雜 相關的可以參考上面的主題類型*-->
<!--{if $allowpost && ($allowposttrade || $allowpostpoll || $allowpostreward || $allowpostactivity || $allowpostdebate || $threadplugins || $forum['threadsorts'])}-->
<ul class="popupmenu_popup postmenu" id="newspecial_menu" style="display: none">
<!--{if !$forum['allowspecialonly']}--><li><a href="post.php?action=newthread&fid=$fid" onclick="showWindow('newthread', this.href);doane(event)">{lang post_newthread}</a></li><!--{/if}-->
<!--{if $allowpostpoll}--><li class="poll"><a href="post.php?action=newthread&fid=$fid&special=1">{lang post_newthreadpoll}</a></li><!--{/if}-->
<!--{if $allowpostreward}--><li class="reward"><a href="post.php?action=newthread&fid=$fid&special=3">{lang post_newthreadreward}</a></li><!--{/if}-->
<!--{if $allowpostdebate}--><li class="debate"><a href="post.php?action=newthread&fid=$fid&special=5">{lang post_newthreaddebate}</a></li><!--{/if}-->
<!--{if $allowpostactivity}--><li class="activity"><a href="post.php?action=newthread&fid=$fid&special=4">{lang post_newthreadactivity}</a></li><!--{/if}-->
<!--{if $allowposttrade}--><li class="trade"><a href="post.php?action=newthread&fid=$fid&special=2">{lang post_newthreadtrade}</a></li><!--{/if}-->
<!--{if $threadplugins}-->
<!--{loop $forum['threadplugin'] $tpid}-->
<!--{if array_key_exists($tpid, $threadplugins) && @in_array($tpid, $allowthreadplugin)}-->
<li class="popupmenu_option"{if $threadplugins[$tpid][icon]} style="background-image:url($threadplugins[$tpid][icon])"{/if}><a href="post.php?action=newthread&fid=$fid&specialextra=$tpid">{$threadplugins[$tpid][name]}</a></li>
<!--{/if}-->
<!--{/loop}-->
<!--{/if}-->
<!--{if $forum['threadsorts'] && !$forum['allowspecialonly']}-->
<!--{loop $forum['threadsorts']['types'] $id $threadsorts}-->
<!--{if $forum['threadsorts']['show'][$id]}-->
<li class="popupmenu_option"><a href="post.php?action=newthread&fid=$fid&extra=$extra&sortid=$id">$threadsorts</a></li>
<!--{/if}-->
<!--{/loop}-->
<!--{loop $forum['typemodels'] $id $model}-->
<li class="popupmenu_option"><a href="post.php?action=newthread&fid=$fid&extra=$extra&modelid=$id">$model[name]</a></li>
<!--{/loop}-->
<!--{/if}-->
</ul>
<!--{/if}-->
<ul class="popupmenu_popup headermenu_popup filter_popup" id="filtertype_menu" style="display: none;">
<li><a href="forumdisplay.php?fid=$fid">{lang forum_viewall}</a></li>
<!--{if $showpoll}--><li {if $filter == 'poll'}class="active"{/if}><a href="forumdisplay.php?fid=$fid&filter=poll">{lang thread_poll}</a></li><!--{/if}-->
<!--{if $showtrade}--><li {if $filter == 'trade'}class="active"{/if}><a href="forumdisplay.php?fid=$fid&filter=trade">{lang thread_trade}</a></li><!--{/if}-->
<!--{if $showreward}--><li {if $filter == 'reward'}class="active"{/if}><a href="forumdisplay.php?fid=$fid&filter=reward">{lang thread_reward}</a></li><!--{/if}-->
<!--{if $showactivity}--><li {if $filter == 'activity'}class="active"{/if}><a href="forumdisplay.php?fid=$fid&filter=activity">{lang thread_activity}</a></li><!--{/if}-->
<!--{if $showdebate}--><li {if $filter == 'debate'}class="active"{/if}><a href="forumdisplay.php?fid=$fid&filter=debate">{lang thread_debate}</a></li><!--{/if}-->
<!--{if $threadplugins}-->
<!--{loop $forum['threadplugin'] $tpid}-->
<!--{if array_key_exists($tpid, $threadplugins) && @in_array($tpid, $allowthreadplugin)}-->
<li {if $filter == 'special' && $extraid == $tpid}class="active"{/if}><a href="forumdisplay.php?fid=$fid&filter=special&extraid=$tpid">{$threadplugins[$tpid][name]}</a></li>
<!--{/if}-->
<!--{/loop}-->
<!--{/if}-->
</ul>
<!--*最近訪問版塊的彈出菜單*-->
<!--{if $visitedforums}-->
<ul class="popupmenu_popup" id="visitedforums_menu" style="display: none">
$visitedforums
</ul>
<!--{/if}-->
<!--*論壇跳轉菜單*-->
<!--{if $forumjump}-->
<div class="popupmenu_popup" id="fjump_menu" style="display: none">
$forummenu
</div>
<!--{/if}-->
<!--*如果設置了主題列表最大頁數(shù)值 當用戶要訪問的頁數(shù)超出最大限制的時候 只能跳轉到設置的最大值頁數(shù)上*-->
<!--{if $maxpage > 1}-->
<script type="text/javascript">document.onkeyup = function(e){keyPageScroll(e, {if $page > 1}1{else}0{/if}, {if $page < $maxpage}1{else}0{/if}, 'forumdisplay.php?fid=$fid$forumdisplayadd', $page);}</script>
<!--{/if}-->
<!--*載入尾部模板 footer.htm*-->
{subtemplate footer}
<!--**********************Forumdisplay.htm模板注釋結束*********************************-->

相關文章

最新評論

武隆县| 探索| 静乐县| 丰都县| 剑阁县| 齐河县| 东兴市| 彭泽县| 武平县| 勐海县| 喀喇沁旗| 庆云县| 商都县| 浠水县| 辽源市| 南昌县| 榆中县| 宁都县| 西乌| 咸阳市| 东方市| 历史| 临武县| 大邑县| 江津市| 伊宁县| 社会| 越西县| 太原市| 诸暨市| 广东省| 蓝田县| 敦煌市| 高邑县| 秦皇岛市| 砚山县| 临西县| 金平| 遵义市| 沛县| 旬阳县|