1. 释版风格文件请勿直接用到站点中 因为注释已经把文件加大了
如果用在站点模版中 会造成不必要的拖速 注释文件仅供本地学习与参考!
2. 您或多或少需要对基本的HTML代码有所认识 不然这个注释版可能对您没有帮助。
3. 文件内因为注释很多 如果使用一般的记事本打开阅读的话 会很难阅读
建议使用一些代码编辑器打开阅读 因为只有代码编辑器 才会对注释部分作出高亮
我个人推荐EditPlus 或者更高阶的Dreamweaver 这样能更好的阅读里头的注释。
4. 欢迎转载本帖内容和附件到任何网站
5. 本帖仅供发布 请不要在这里咨询如何修改 自己研究 自己动手 丰衣足食!
文件说明
Forumdisplay.htm为Discuz!程序的主题列表页模板文件
文件路径:Discuz目录/templates/default下
<>
<>
{subtemplate header}
<>
<>
<script type="text/javascript" src="{$jspath}moderate.js?{VERHASH}"></script>
<>
<>
<div id="nav"><a id="fjump" href="$indexname"
<>
{if $forumjump == 1} onmouseover="showMenu({'ctrlid':this.id})"{/if}>$bbname</a> $navigation</div>
<>
<>
<div id="ad_text" >
<table summary="Text Ad" cellpadding="0" cellspacing="0">$advlist[text]</table>
</div>
<>
<div id="ad_text"></div>
<>
<>
<div id="wrap"{if $infosidestatus['allow'] < 2}{else}{/if}>
<>
<>
<a id="sidebar_img" href="javascript:;"><>{lang sidebar_collapsed_yes}<>{lang sidebar_collapsed_no}<></a>
<>
<a id="sidebar_img" href="javascript:;">{lang sidebar_collapsed_yes}</a>
<>
<>
<div>
<div>
<>
$pluginhooks[forumdisplay_header]
<div id="forumheader">
<>
<h1>$forum[name]</h1>
<>
<p>[ <strong>$forum[threads]</strong> {lang thread} / {echo $forum[posts]-$forum[threads]} {lang reply} ]</p>
<div>
<div>
$pluginhooks[forumdisplay_forumaction]
<>
<>
<>
<a href="my.php?item=attention&type=forum&action=add&fid=$fid" id="ajax_attention">{lang attention_forum}</a>
<>
<a href="my.php?item=favorites&fid=$fid" id="ajax_favorite">{lang thread_favorite}</a>
<>
<>
<><a href="rss.php?fid=$fid&auth=$rssauth" target="_blank">RSS</a><>
</div>
<>
<>
<a href="
<>
{if $adminid == 1}admincp.php?action=recyclebin&frames=yes
<>
{elseif $forum['ismoderator']}modcp.php?action=recyclebins&fid=$fid{/if}" target="_blank">{lang forum_recyclebin}</a>
<>
</div>
<>
<><p>{lang forum_description}: $forum[description]</p><>
<p id="modedby">
<>
<>
<div>
<>
$pluginhooks[forumdisplay_modlink]
<>
<>
<a href="modcp.php?action=report&fid=$fid" target="_blank">{lang mod_works_existence}</a> |
<>
<>
<a href="modcp.php?fid=$fid" target="_blank">{lang modcp}</a>
</div>
<>
<>
{lang forum_modedby}:
<>
<>$moderatedby<>{lang forum_opening}<>
</p>
</div>
<>
$pluginhooks[forumdisplay_top]
<>
<>
<div id="modarea">
<div>
<>
<span><img alt="{lang spread}" title="{lang spread}" src="{IMGDIR}/$collapseimg[modarea_c].gif" id="modarea_c_img" /></span>
<h3>
<>
<>
<a href="javascript:;" id="tab_1"
<>
{if $forum['rules']}{/if}>{lang forum_recommend}</a>
<>
<><a href="modcp.php?action=forums&op=recommend&show=all&fid=$fid" target="_blank">[{lang edit}]</a><>
<>
<>
<><span>|</span><>
<>
<><a href="javascript:;" id="tab_2"{if !$forum['recommendlist']}{/if}
<>
{if $forum['recommendlist']}{/if}>{lang forum_rules}</a><>
</h3>
</div>
<div id="modarea_c">
<>
<>
<div id="tab_c_1">
{subtemplate recommend}
</div>
<>
<>
<>
<div id="tab_c_2"{if $forum['recommendlist']}{/if}>$forum[rules]</div>
<>
</div>
</div>
<>
<>
<>
<div id="subforum">{template forumdisplay_subforum}</div>
<>
$pluginhooks[forumdisplay_middle]
<div>
<>
$multipage
<span
<>
<>id="visitedforums" onmouseover="$('visitedforums').id = 'visitedforumstmp';this.id = 'visitedforums';showMenu({'ctrlid':this.id})"<>><a href="$indexname">{lang return_index}</a></span>
<>
<span id="newspecial" prompt="post_newthread" onmouseover="$('newspecial').id = 'newspecialtmp';this.id = 'newspecial';showMenu({'ctrlid':this.id})"><a href="post.php?action=newthread&fid=$fid">{lang send_posts}</a></span>
</div>
<>
<>
<div>
<>
<>
<p>
<>
<><a href="forumdisplay.php?fid=$fid">{lang forum_viewall}</a><><strong>{lang forum_viewall}</strong><>
<>
<><><a href="forumdisplay.php?fid=$fid&filter=type&typeid=$id$sortadd">$name</a><><strong>$name</strong><> <>
<>
<>
<span id="threadtypesmenu" onmouseover="showMenu({'ctrlid':this.id})">{lang admin_type_more}</span>
<div id="threadtypesmenu_menu">
<ul>
<>
<li>
<>
<a href="forumdisplay.php?fid=$fid&filter=type&typeid=$id$sortadd">$name</a>
<>
<strong>$name</strong>
<>
</li>
<>
</ul>
</div>
<>
</p>
<>
<>
<>
<p>
<><><a href="forumdisplay.php?fid=$fid">{lang forum_viewall}</a><><strong>{lang forum_viewall}</strong><><>
<><><a href="forumdisplay.php?fid=$fid&filter=sort&sortid=$id$typeadd">$name</a><><strong>$name</strong><> <>
<>
<span id="threadsortsmenu" onmouseover="showMenu({'ctrlid':this.id})">{lang admin_type_more}</span>
<div id="threadsortsmenu_menu">
<ul>
<>
<li>
<>
<a href="forumdisplay.php?fid=$fid&filter=sort&sortid=$id$typeadd">$name</a>
<>
<strong>$name</strong>
<>
</li>
<>
</ul>
</div>
<>
</p>
<>
</div>
<>
<>
<div id="threadlist">
<>
<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">
<thead>
<tr>
<>
<td colspan="2"> <a href="javascript:;" id="filtertype">
<>
<>{lang thread_poll}
<>
<>{lang thread_trade}
<>
<>{lang thread_activity}
<>
<>{lang thread_debate}
<>
<>{lang thread_reward}
<>
<>{lang type}<></a></td>
<>
<><td> </td><>
<>
<th>
<ul>
<>
<li>{lang thread}:</li>
<>
<>
<li{if !$filter}{/if}><a href="forumdisplay.php?fid=$fid"><span>{lang all}</span></a></li>
<>
<li{if $filter == 'digest'}{/if}><a href="forumdisplay.php?fid=$fid&filter=digest"><span>{lang digestposts}</span></a></li>
<>
<><li{if $filter == 'recommend'}{/if}><a href="forumdisplay.php?fid={$fid}&filter=recommend&orderby=recommends"><span>{lang order_recommends}</span></a></li><>
<li>|</li>
<>
<li>{lang dateline_range}:</li>
<>
<li{if $filter == 86400}{/if}><a href="forumdisplay.php?fid=$fid&orderby=$orderby&filter=86400$typeadd$sortadd"><span>{lang last_1_days}</span></a></li>
<>
<li{if $filter == 172800}{/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}{/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}{/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}{/if}><a href="forumdisplay.php?fid=$fid&orderby=$orderby&filter=7948800$typeadd$sortadd"><span>{lang last_90_days}</span></a></li>
<>
<li>|</li>
<li><aheats' || $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>
<>
<td><a href="forumdisplay.php?fid={$fid}&filter=$filter&orderby=dateline$typeadd$sortadd"dateline'}order_active{/if}">{lang author}/{lang time}</a></td>
<>
<td><a href="forumdisplay.php?fid={$fid}&filter=$filter&orderby=replies$typeadd$sortadd"replies'}order_active{/if}">{lang replies}</a>
<>
<a href="forumdisplay.php?fid={$fid}&filter=$filter&orderby=views$typeadd$sortadd"views'}order_active{/if}">{lang views}</a></td>
<>
<td><cite><a href="forumdisplay.php?fid={$fid}&filter=$filter&orderby=lastpost$typeadd$sortadd"lastpost'}order_active{/if}">{lang lastpost}</a></cite></td>
</tr>
</thead>
<>
<>
<tbody>
<tr>
<>
<td><img src="{IMGDIR}/ann_icon.gif" alt="{lang announcement}" /></td>
<td> </td>
<><td> </td><>
<>
<th><strong>{lang announcement}:
<>
<><a href="announcement.php?id=$announcement[id]#$announcement[id]" target="_blank">$announcement[subject]</a>
<>
<><a href="$announcement[message]" target="_blank">$announcement[subject]</a><></strong></th>
<td>
<>
<cite><a href="space.php?uid=$announcement[authorid]">$announcement[author]</a></cite>
<>
<em>$announcement[starttime]</em>
</td>
<td> </td>
<td> </td>
</tr>
</tbody>
<>
<>
<>
<>
<>
<tbody>
<tr>
<td></td><td> </td>
<><td> </td><>
<th>{lang forum_thread}</th><td> </td><td> </td><td> </td>
</tr>
</tbody>
<>
<tbody id="$thread[id]">
<tr>
<>
<td>
<>
<a href="viewthread.php?tid=$thread[tid]&extra=$extra" title="{lang target_blank}" target="_blank">
<>
<>
<img src="{IMGDIR}/folder_lock.gif" /></a>
<>
<>
<img src="{IMGDIR}/pin_$thread[displayorder].gif" alt="$threadsticky[3-$thread[displayorder]]" /></a>
<>
<>
<img src="{IMGDIR}/folder_$thread[folder].gif" /></a>
<>
</td>
<>
<td>
<>
<>
<a href="forumdisplay.php?fid=$fid&filter=poll"><img src="{IMGDIR}/pollsmall.gif" alt="{lang thread_poll}" /></a>
<>
<>
<a href="forumdisplay.php?fid=$fid&filter=trade"><img src="{IMGDIR}/tradesmall.gif" alt="{lang thread_trade}" /></a>
<>
<>
<a href="forumdisplay.php?fid=$fid&filter=reward"><img src="{IMGDIR}/rewardsmall.gif" alt="{lang thread_reward}"
<>
<>class="solved"<> /></a>
<>
<>
<a href="forumdisplay.php?fid=$fid&filter=activity"><img src="{IMGDIR}/activitysmall.gif" alt="{lang thread_activity}" /></a>
<>
<>
<a href="forumdisplay.php?fid=$fid&filter=debate"><img src="{IMGDIR}/debatesmall.gif" alt="{lang thread_debate}" /></a>
<>
<>
$thread['icon']
<>
</td>
<>
<>
<td>
<>
<input type="checkbox" name="moderate[]" value="$thread[tid]" />
<>
<input type="checkbox" disabled="disabled" />
<>
</td>
<>
<th>
<label>{$pluginhooks[forumdisplay_thread][$key]} </label>
<>
<>
<>
<a href="topicadmin.php?action=moderate&optgroup=3&operation=delete&tid=$thread[moved]">{lang thread_moved}:</a>
<>
{lang thread_moved}:
<>
<>
<>
$thread[sortid] $thread[typeid]
<span id="thread_$thread[tid]">
<>
<a href="viewthread.php?tid=$thread[tid]&extra=$extra"$thread[highlight]>$thread[subject]</a></span>
<>
<> - [{lang readperm} <span>$thread[readperm]</span>]<>
<>
<>
<>
- <span>[{lang thread_reward}{$extcredits[$creditstransextra[2]][title]} <span>$thread[price]</span> {$extcredits[$creditstransextra[2]][unit]}]</span>
<>
<>
- [{lang price} {$extcredits[$creditstransextra[1]][title]} <span>$thread[price]</span> {$extcredits[$creditstransextra[1]][unit]}]
<>
<>
<>
- <span>[{lang reward_solved}]</span>
<>
<>
<>
<img src="images/attachicons/image_s.gif" alt="{lang attach_img}" />
<>
<>
<img src="images/attachicons/common.gif" alt="{lang attachment}" />
<>
<>
<>
<>
<img src="{IMGDIR}/recommend_$thread[recommendicon].gif" alt="{lang thread_recommend}" title="{lang thread_recommend}" />
<>
<>
<>
<img src="{IMGDIR}/hot_$thread[heatlevel].gif" alt="$thread[heatlevel] {lang heats}" title="$thread[heatlevel] {lang heats}" />
<>
<>
<>
<img src="{IMGDIR}/digest_$thread[digest].gif" alt="{lang thread_digest} $thread[digest]" title="{lang thread_digest} $thread[digest]" />
<>
<>
<>
<img src="{IMGDIR}/agree.gif" alt="{lang rate_credit_add}" title="{lang rate_credit_add}" />
<>
<>
<>
<>
<span>$thread[multipage]</span>
<>
</th>
<>
<td>
<cite>
<>
<>
<a href="space.php?uid=$thread[authorid]">$thread[author]</a>
<>
<>
<>
<a href="space.php?uid=$thread[authorid]">{lang anonymous}</a>
<>
<>
{lang anonymous}
<>
<>
</cite>
<>
<em>$thread[dateline]</em>
</td>
<>
<td><strong>$thread[replies]</strong>/<em>$thread[views]</em></td>
<>
<td>
<>
<cite><><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><>{lang anonymous}<></cite>
<>
<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>
<>
<>
<>
<tbody><tr><th colspan="6"><p>{lang forum_nothreads}</p></th></tr></tbody>
<>
</table>
<>
<>
{template topicadmin_modlayer}
<>
</form>
</div>
<div>
<>
$multipage
<>
<span <>id="visitedforums" onmouseover="$('visitedforums').id = 'visitedforumstmp';this.id = 'visitedforums';showMenu({'ctrlid':this.id})"<>><a href="$indexname">{lang return_index}</a></span>
<>
<span id="newspecialtmp" onmouseover="$('newspecial').id = 'newspecialtmp';this.id = 'newspecial';showMenu({'ctrlid':this.id})"><a href="post.php?action=newthread&fid=$fid">{lang send_posts}</a></span>
</div>
<>
<>
<dl id="onlinelist">
<>
<dd>
<span><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>
<>
<li title="{lang time}: $online[lastactivity]{LF} {lang action}: $online[action]{LF} {lang forum}: $forumname">
<img src="images/common/$online[icon]" alt="" />
<>
<a href="space.php?uid=$online[uid]">$online[username]</a>
<>
$online[username]
<>
</li>
<>
</ul>
</dd>
<>
<dt>
<span><a href="forumdisplay.php?fid=$fid&page=$page&showoldetails=yes#online"><img src="{IMGDIR}/collapsed_yes.gif" alt="" /></a></span>
<h3>{lang forum_activeusers}</h3>
</dt>
<>
</dl>
<>
$pluginhooks[forumdisplay_bottom]
</div>
</div>
<>
<>
<div id="sidebar">
<>
<div id="qihoosearch">
<form method="post" action="search.php?srchtype=qihoo" onSubmit="this.target='_blank';">
<input type="hidden" name="searchsubmit" value="yes" />
<input type="text" name="srchtxt" size="20" value="$qihoo_searchboxtxt" />
<button type="submit">{lang search}</button>
</form>
</div>
<>
<>
<>
<hr/>
<>
<>
<div id="infoside">
{eval request($infosidestatus, 1, 0);}
</div>
<>
</div>
<>
<>
<>
<ul id="newspecial_menu">
<><li><a href="post.php?action=newthread&fid=$fid">{lang post_newthread}</a></li><>
<><li><a href="post.php?action=newthread&fid=$fid&special=1">{lang post_newthreadpoll}</a></li><>
<><li><a href="post.php?action=newthread&fid=$fid&special=3">{lang post_newthreadreward}</a></li><>
<><li><a href="post.php?action=newthread&fid=$fid&special=5">{lang post_newthreaddebate}</a></li><>
<><li><a href="post.php?action=newthread&fid=$fid&special=4">{lang post_newthreadactivity}</a></li><>
<><li><a href="post.php?action=newthread&fid=$fid&special=2">{lang post_newthreadtrade}</a></li><>
<>
<>
<>
<li{if $threadplugins[$tpid][icon]}{/if}><a href="post.php?action=newthread&fid=$fid&specialextra=$tpid">{$threadplugins[$tpid][name]}</a></li>
<>
<>
<>
<>
<>
<>
<li><a href="post.php?action=newthread&fid=$fid&extra=$extra&sortid=$id">$threadsorts</a></li>
<>
<>
<>
<li><a href="post.php?action=newthread&fid=$fid&extra=$extra&modelid=$id">$model[name]</a></li>
<>
<>
</ul>
<>
<ul id="filtertype_menu">
<li><a href="forumdisplay.php?fid=$fid">{lang forum_viewall}</a></li>
<><li {if $filter == 'poll'}class="active"{/if}><a href="forumdisplay.php?fid=$fid&filter=poll">{lang thread_poll}</a></li><>
<><li {if $filter == 'trade'}class="active"{/if}><a href="forumdisplay.php?fid=$fid&filter=trade">{lang thread_trade}</a></li><>
<><li {if $filter == 'reward'}class="active"{/if}><a href="forumdisplay.php?fid=$fid&filter=reward">{lang thread_reward}</a></li><>
<><li {if $filter == 'activity'}class="active"{/if}><a href="forumdisplay.php?fid=$fid&filter=activity">{lang thread_activity}</a></li><>
<><li {if $filter == 'debate'}class="active"{/if}><a href="forumdisplay.php?fid=$fid&filter=debate">{lang thread_debate}</a></li><>
<>
<>
<>
<li {if $filter == 'special' && $extraid == $tpid}class="active"{/if}><a href="forumdisplay.php?fid=$fid&filter=special&extraid=$tpid">{$threadplugins[$tpid][name]}</a></li>
<>
<>
<>
</ul>
<>
<>
<ul id="visitedforums_menu">
$visitedforums
</ul>
<>
<>
<>
<div id="fjump_menu">
$forummenu
</div>
<>
<>
<>
<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>
<>
<>
{subtemplate footer}
<>