Discuz!官方免费开源建站系统

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

[发布] 在父论坛显示子论坛的帖子

[复制链接]
amoshuang 发表于 2006-7-30 12:49:03 | 显示全部楼层
记号
回复

使用道具 举报

论坛的新主人 发表于 2006-7-30 13:29:05 | 显示全部楼层
5.0!
回复

使用道具 举报

amoshuang 发表于 2006-7-30 13:53:02 | 显示全部楼层
装上试了下,非常感谢

最好能够显示子版的分类标签
目前暂时不行
回复

使用道具 举报

论坛的新主人 发表于 2006-7-30 14:13:41 | 显示全部楼层

forumdisplay.php

我的怎么不行呢?
<?php

/*
        [Discuz!] (C)2001-2006 Comsenz Inc.
        This is NOT a freeware, use is subject to license terms

        $RCSfile: forumdisplay.php,v $
        $Revision: 1.41.2.2 $
        $Date: 2006/07/17 07:50:17 $
*/

define('CURSCRIPT', 'forumdisplay');

require_once './include/common.inc.php';
require_once DISCUZ_ROOT.'./include/forum.func.php';

$discuz_action = 2;

if($forum['redirect']) {
        header("Location: $forum[redirect]");
        exit();
}

if(isset($showoldetails)) {
        switch($showoldetails) {
                case 'no': dsetcookie('onlineforum', 0, 86400 * 365); break;
                case 'yes': dsetcookie('onlineforum', 1, 86400 * 365); break;
        }
} else {
        $showoldetails = false;
}

if(!$forum['fid'] || $forum['type'] == 'group') {
        showmessage('forum_nonexistence', NULL, 'HALTED');
}

if($forum['type'] == 'forum') {
        $navigation = "&raquo; $forum[name]";
        $navtitle = strip_tags($forum['name']);
} else {
        $forumup = $_DCACHE['forums'][$forum['fup']]['name'];
        $navigation = "&raquo; <a href=\"forumdisplay.php?fid=$forum[fup]\">$forumup</a> &raquo; $forum[name]";
        $navtitle = strip_tags($forum['name']).' - '.strip_tags($forumup);
}
$navtitle .= ' - ';

if($forum['password'] && $action == 'pwverify') {
        if($pw != $forum['password']) {
                showmessage('forum_passwd_incorrect', NULL, 'HALTED');
        } else {
                dsetcookie('fidpw'.$fid, $pw);
                showmessage('forum_passwd_correct', "forumdisplay.php?fid=$fid");
        }
}

if($forum['rules']) {
        if(empty($_COOKIE['discuz_collapse']) || strpos($_COOKIE['discuz_collapse'], 'rules_'.$forum['fid'].' ') === FALSE) {
                $rulescollapseimg = 'collapsed_no.gif';
                $collapserules = '';
        } else {
                $rulescollapseimg = 'collapsed_yes.gif';
                $collapserules = 'display: none';
        }
        $forum['rules'] = nl2br($forum['rules']);
}

if($forum['viewperm'] && !forumperm($forum['viewperm']) && !$forum['allowview']) {
        showmessage('forum_nopermission', NULL, 'NOPERM');
}

if(!empty($forum['password']) && $forum['password'] != $_DCOOKIE['fidpw'.$fid]) {
        include template('forumdisplay_passwd');
        exit();
}

$moderatedby = moddisplay($forum['moderators'], 'forumdisplay');

if($forum['autoclose']) {
        $closedby = $forum['autoclose'] > 0 ? 'dateline' : 'lastpost';
        $forum['autoclose'] = abs($forum['autoclose']) * 86400;
}

$subexists = 0;
foreach($_DCACHE['forums'] as $sub) {
        if($sub['type'] == 'sub' && $sub['fup'] == $fid && (!$hideprivate || !$sub['viewperm'] || forumperm($sub['viewperm']) || strstr($sub['users'], "\t$discuz_uid\t"))) {
                $subexists = 1;
                $sublist = array();
                $sql = $accessmasks ? "SELECT f.fid, f.fup, f.type, f.name, f.threads, f.posts, f.todayposts, f.lastpost, ff.description, ff.moderators, ff.icon, ff.viewperm, a.allowview FROM {$tablepre}forums f
                                                LEFT JOIN {$tablepre}forumfields ff ON ff.fid=f.fid
                                                LEFT JOIN {$tablepre}access a ON a.uid='$discuz_uid' AND a.fid=f.fid
                                                WHERE fup='$fid' AND status='1' AND type='sub' ORDER BY f.displayorder"
                                        : "SELECT f.fid, f.fup, f.type, f.name, f.threads, f.posts, f.todayposts, f.lastpost, ff.description, ff.moderators, ff.icon, ff.viewperm FROM {$tablepre}forums f
                                                LEFT JOIN {$tablepre}forumfields ff USING(fid)
                                                WHERE f.fup='$fid' AND f.status='1' AND f.type='sub' ORDER BY f.displayorder";
                $query = $db->query($sql);
                while($sub = $db->fetch_array($query)) {
                        if(forum($sub)) {
                                $sub['orderid'] = count($sublist);
                                $sublist[] = $sub;
                        }
                }
                break;
        }
}
// 父板块显示子版块内容
$subfid = $subname = array();
if($subexists) {
foreach($sublist as $subinfo) {
  $subname[$subinfo['fid']] = $subinfo['name'];
  $subfid[] = $subinfo['fid'];
}
}
$fidarr = $fid.($subexists ? ','.implode(',', $subfid) : '');
// 父板块显示子版块内容

if($subexists && $forum['forumcolumns']) {
        $forum['forumcolwidth'] = floor(100 / $forum['forumcolumns']).'%';
        $forum['subscount'] = count($sublist);
        $forum['endrows'] = '';
        if($colspan = $forum['subscount'] % $forum['forumcolumns']) {
                while(($forum['forumcolumns'] - $colspan) > 0) {
                        $forum['endrows'] .= '<td></td>';
                        $colspan ++;
                }
                $forum['endrows'] .= '</tr>';
        }
}

$page = empty($page) || !ispage($page) || ($threadmaxpages && $page > $threadmaxpages) ? 1 : $page;
$start_limit = ($page - 1) * $tpp;

if($page == 1) {
        if($_DCACHE['announcements_forum']) {
                $announcement = $_DCACHE['announcements_forum'];
                $announcement['starttime'] = gmdate($dateformat, $announcement['starttime'] + ($timeoffset * 3600));
        } else {
                $announcement = NULL;
        }
}

$forumdisplayadd = $filteradd = '';
if(isset($filter)) {
        if($filter == 'digest') {
                $forumdisplayadd .= '&filter=digest';
                $filteradd = "AND digest>'0'";
        } elseif($filter == 'type' && $forum['threadtypes']['listable'] && $typeid && isset($forum['threadtypes']['types'][$typeid])) {
                $forumdisplayadd .= "&filter=type&typeid=$typeid";
                $filteradd = "AND typeid='$typeid'";
        } elseif(preg_match("/^\d+$/", $filter)) {
                $forumdisplayadd .= "&filter=$filter";
                $filteradd = $filter ? "AND lastpost>='".($timestamp - $filter)."'" : '';
        } elseif($filter == 'poll') {
                $forumdisplayadd .= "&filter=$filter";
                $filteradd = 'AND special = 1';
        } elseif($filter == 'trade') {
                $forumdisplayadd .= "&filter=$filter";
                $filteradd = 'AND special = 2';
        } elseif($filter == 'reward') {
                $forumdisplayadd .= "&filter=$filter";
                $filteradd = 'AND special = 3';
        } elseif($filter == 'activity') {
                $forumdisplayadd .= "&filter=$filter";
                $filteradd = 'AND special = 4';
        } else {
                $filter = '';
        }
} else {
        $filter = '';
}

isset($orderby) && in_array($orderby, array('dateline', 'replies', 'views')) ? $forumdisplayadd .= "&orderby=$orderby" : $orderby = 'lastpost';
isset($ascdesc) && $ascdesc == 'ASC' ? $forumdisplayadd .= '&ascdesc=ASC' : $ascdesc = 'DESC';

$dotadd1 = $dotadd2 = '';
if($dotfolders && $discuz_uid) {
        $dotadd1 = 'DISTINCT p.authorid AS dotauthor, ';
        $dotadd2 = "LEFT JOIN {$tablepre}posts p ON (t.tid=p.tid AND p.authorid='$discuz_uid')";
}

if($whosonlinestatus == 2 || $whosonlinestatus == 3) {
        $whosonlinestatus = 1;
        $onlineinfo = explode("\t", $onlinerecord);
        $detailstatus = ((!isset($_DCOOKIE['onlineforum']) && $onlineinfo[0] < 500) || (!empty($_DCOOKIE['onlineforum']) || $showoldetails == 'yes')) && $showoldetails != 'no';

        if($detailstatus) {
                updatesession();
                @include language('actions');
                $whosonline = array();
                $forumname = strip_tags($forum['name']);
                $guestwhere = isset($_DCACHE['onlinelist'][7]) ? '' : "uid>'0' AND";

                $query = $db->query("SELECT uid, groupid, username, invisible, lastactivity, action FROM {$tablepre}sessions WHERE $guestwhere fid='$fid' AND invisible='0'");
                if($db->num_rows($query)) {
                        $whosonlinestatus = 1;
                        while($online = $db->fetch_array($query)) {
                                if($online['uid']) {
                                        $online['icon'] = isset($_DCACHE['onlinelist'][$online['groupid']]) ? $_DCACHE['onlinelist'][$online['groupid']] : $_DCACHE['onlinelist'][0];
                                        $online['action'] = $actioncode[$online['action']];
                                        $online['lastactivity'] = gmdate($timeformat, $online['lastactivity'] + ($timeoffset * 3600));
                                        $whosonline[] = $online;
                                } else {
                                        if(isset($_DCACHE['onlinelist'][7])) {
                                                $online['icon'] = $_DCACHE['onlinelist'][7];
                                                $online['username'] = 'Guest';
                                                $online['fid'] = $online['fid'] ? $forumname[$online['fid']] : 0;
                                                $online['action'] = $actioncode[$online['action']];
                                                $online['lastactivity'] = gmdate($timeformat, $online['lastactivity'] + ($timeoffset * 3600));
                                                $whosonline[] = $online;
                                        }
                                }
                        }
                }
                unset($online);
        }
} else {
        $whosonlinestatus = 0;
}

if($discuz_uid && $newpm) {
        require_once DISCUZ_ROOT.'./include/pmprompt.inc.php';
}

if(empty($filter)) {
        $threadcount = $forum['threads'];
} else {
// 父板块显示子版块
// 把 fid='$fid' 改成 fid IN ($fidarr)
$query = $db->query("SELECT COUNT(*) FROM {$tablepre}threads WHERE fid IN ($fidarr) $filteradd AND displayorder>='0'");
// 父板块显示子版块

        $threadcount = $db->result($query, 0);
}
if($globalstick) {
        $thisgid = $forum['type'] == 'forum' ? $forum['fup'] : $_DCACHE['forums'][$forum['fup']]['fup'];
        $stickytids = $_DCACHE['globalstick']['global']['tids'].(empty($_DCACHE['globalstick']['categories'][$thisgid]['count']) ? '' : ','.$_DCACHE['globalstick']['categories'][$thisgid]['tids']);

        $stickycount = $_DCACHE['globalstick']['global']['count'] + $_DCACHE['globalstick']['categories'][$thisgid]['count'];
} else {
        $thisgid = $stickycount = $stickytids = 0;
}

$filterbool = !empty($filter) && in_array($filter, array('digest', 'type', 'activity', 'poll', 'trade', 'reward'));
$threadcount += $filterbool ? 0 : $stickycount;
$multipage = multi($threadcount, $tpp, $page, "forumdisplay.php?fid=$fid$forumdisplayadd", $threadmaxpages);
$extra = rawurlencode("page=$page$forumdisplayadd");

$separatepos = 0;
$threadlist = array();
$colorarray = array('', 'red', 'orange', 'yellow', 'green', 'cyan', 'blue', 'purple', 'gray');

$displayorderadd = !$filterbool && $stickycount ? 't.displayorder IN (0, 1)' : 't.displayorder>=0';

if(($start_limit && $start_limit > $stickycount) || !$stickycount || $filterbool) {


//主题加分
                $querysticky = '';
        $query = $db->query("SELECT $dotadd1 t.*, p.rate FROM {$tablepre}threads t $dotadd2
                 LEFT JOIN {$tablepre}posts p USING(tid, dateline)
                WHERE t.fid IN ($fidarr) $filteradd AND $displayorderadd
                ORDER BY t.displayorder DESC, t.$orderby $ascdesc
                LIMIT ".($filter == 'digest' || $filter == 'type' ? $start_limit : $start_limit - $stickycount).", $tpp");

} else {

        $querysticky = $db->query("SELECT $dotadd1 t.*, p.rate FROM {$tablepre}threads t $dotadd2
                LEFT JOIN {$tablepre}posts p USING(tid, dateline)
                WHERE t.tid IN ($stickytids) AND t.displayorder IN (2, 3)
                ORDER BY displayorder DESC, $orderby $ascdesc
                LIMIT $start_limit, ".($stickycount - $start_limit < $tpp ? $stickycount - $start_limit : $tpp));

        if($tpp - $stickycount + $start_limit > 0) {
                $query = $db->query("SELECT $dotadd1 t.*, p.rate FROM {$tablepre}threads t $dotadd2
                      LEFT JOIN {$tablepre}posts p USING(tid, dateline)
                        WHERE t.fid IN ($fidarr) $filteradd AND $displayorderadd
                        ORDER BY displayorder DESC, $orderby $ascdesc
                        LIMIT ".($tpp - $stickycount + $start_limit));
        } else {
                $query = '';
//主题加分
        }

}

while(($querysticky && $thread = $db->fetch_array($querysticky)) || ($query && $thread = $db->fetch_array($query))) {
        $thread['icon'] = isset($_DCACHE['icons'][$thread['iconid']]) ? '<img src="'.SMDIR.'/'.$_DCACHE['icons'][$thread['iconid']].'"  alt="" />' : ' ';
        $thread['lastposterenc'] = rawurlencode($thread['lastposter']);

        $thread['typeid'] = $thread['typeid'] && !empty($forum['threadtypes']['prefix']) && isset($forum['threadtypes']['types'][$thread['typeid']]) ?
                '['.$forum['threadtypes']['types'][$thread['typeid']].'] ' : '';

        $topicposts = $thread['replies'] + 1;
        if($topicposts > $ppp) {
                $pagelinks = '';
                $topicpages = ceil($topicposts / $ppp);
                for($i = 1; $i <= $topicpages; $i++) {
                        $pagelinks .= "<a href=\"viewthread.php?tid=$thread[tid]&extra=$extra&page=$i\">$i</a> ";
                        if($i == 6) {
                                $i = $topicpages + 1;
                        }
                }
                if($topicpages > 6) {
                        $pagelinks .= " .. <a href=\"viewthread.php?tid=$thread[tid]&page=$topicpages&extra=$extra\">$topicpages</a> ";
                }
                $thread['multipage'] = '   ( <img src="'.IMGDIR.'/multipage.gif"  border="0" alt="" /> '.$pagelinks.')';
        } else {
                $thread['multipage'] = '';
        }

        if($thread['highlight']) {
                $string = sprintf('%02d', $thread['highlight']);
                $stylestr = sprintf('%03b', $string[0]);

                $thread['highlight'] = ' style="';
                $thread['highlight'] .= $stylestr[0] ? 'font-weight: bold;' : '';
                $thread['highlight'] .= $stylestr[1] ? 'font-style: italic;' : '';
                $thread['highlight'] .= $stylestr[2] ? 'text-decoration: underline;' : '';
                $thread['highlight'] .= $string[1] ? 'color: '.$colorarray[$string[1]] : '';
                $thread['highlight'] .= '"';
        } else {
                $thread['highlight'] = '';
        }

        $thread['moved'] = 0;
        if($thread['closed'] || ($forum['autoclose'] && $timestamp - $thread[$closedby] > $forum['autoclose'])) {
                $thread['new'] = 0;
                if($thread['closed'] > 1) {
                        $thread['moved'] = $thread['tid'];
                        $thread['tid'] = $thread['closed'];
                        $thread['replies'] = '-';
                        $thread['views'] = '-';
                }
                $thread['folder'] = 'lock_folder.gif';
        } else {
                $thread['folder'] = 'folder.gif';
                if($lastvisit < $thread['lastpost'] && (empty($_DCOOKIE['oldtopics']) || strpos($_DCOOKIE['oldtopics'], 'D'.$thread['tid'].'D') === FALSE)) {
                        $thread['new'] = 1;
                        $thread['folder'] = 'red_'.$thread['folder'];
                } else {
                        $thread['new'] = 0;
                }
                if($thread['replies'] > $thread['views']) {
                        $thread['views'] = $thread['replies'];
                }
                if($thread['replies'] >= $hottopic) {
                        $thread['folder'] = 'hot_'.$thread['folder'];
                }
                if($dotfolders && $thread['dotauthor'] == $discuz_uid && $discuz_uid) {
                        $thread['folder'] = 'dot_'.$thread['folder'];
                }
        }

        $thread['dateline'] = gmdate($dateformat, $thread['dateline'] + $timeoffset * 3600);
        $thread['lastpost'] = gmdate("$dateformat $timeformat", $thread['lastpost'] + $timeoffset * 3600);

        if($thread['displayorder'] > 0) {
                $separatepos++;
        }

        $threadlist[] = $thread;

}

$separatepos = $separatepos ? $separatepos + 1 : ($announcement ? 1 : 0);

$check = array();
$check[$filter] = $check[$orderby] = $check[$ascdesc] = 'selected="selected"';

$visitedforums = $visitedforums ? visitedforums() : '';
$forumselect = $forummenu = '';
if($forumjump && empty($jsmenu[1])) {
        $forumselect = forumselect();
}
$typeselect = typeselect($typeid);

$usesigcheck = $discuz_uid && $sigstatus ? 'checked' : '';
$allowpost = (!$forum['postperm'] && $allowpost) || ($forum['postperm'] && forumperm($forum['postperm'])) || !empty($forum['allowpost']);

$allowpostpoll = $allowpost && $allowpostpoll && substr(sprintf('%04b', $forum['allowpostspecial']), -1, 1);
$allowposttrade = $allowpost && $allowposttrade && substr(sprintf('%04b', $forum['allowpostspecial']), -2, 1);
$allowpostreward = $allowpost && $allowpostreward && substr(sprintf('%04b', $forum['allowpostspecial']), -3, 1) && isset($extcredits[$creditstrans]);
$allowpostactivity = $allowpost && $allowpostactivity && substr(sprintf('%04b', $forum['allowpostspecial']), -4, 1);

$searchboxstatus = substr(sprintf('%03b', $qihoo_searchbox), -2, 1);

if($fastpost && $allowpost) {
        $editorid = 'fastpost';
        $smcols = $smcols ? $smcols : 3;
        $smileyinsert = $smileyinsert && is_array($_DCACHE['smilies_display']) ? 1 : 0;
        $smilies = $smileyinsert ? smiliestable($_DCACHE['smilies_display'], $smcols, 3, $editorid) : '';
        $moresmilies = $smileyinsert && count($_DCACHE['smilies_display']) > $smcols * 3 ? 1 : 0;
}

$threadsticky = explode(',', $threadsticky);

include template('forumdisplay');

?>

[ 本帖最后由 论坛的新主人 于 2006-7-30 14:19 编辑 ]
回复

使用道具 举报

论坛的新主人 发表于 2006-7-30 14:15:37 | 显示全部楼层
{template header}
<div class="subtable nav" style="width:{TABLEWIDTH}">
<div class="right">

<!--{if $supe_status && $discuz_uid}-->
        <img src="images/common/icon_signinxspace.gif" border="0" class="absmiddle" alt="" />
        <!--{if !$xspacestatus}-->
                <a href="$supe_siteurl/index.php?action/register" target="_blank">{lang supe_signin_xspace}</a>
        <!--{else}-->
                <a href="$supe_siteurl/index.php?action/space/uid/$discuz_uid" target="_blank">{lang supe_myxspace}</a>
        <!--{/if}-->
<!--{/if}-->

<!--{if $rssstatus}--><a href="rss.php?fid=$fid&amp;auth=$rssauth" target="_blank"><img src="images/common/xml.gif" border="0" class="absmiddle" alt="{lang rss_subscribe_all}" /></a><!--{/if}-->
&nbsp;<a href="#bottom"><img src="{IMGDIR}/arrow_dw.gif" border="0" class="absmiddle" alt="" /></a></div>
<!--{if $forumjump && $jsmenu[1]}--><span id="forumlist"><a href="discuz.php">$bbname</a><script type="text/javascript">menuregister(false, "forumlist")</script></span><!--{else}--><a href="discuz.php">$bbname</a><!--{/if}--> $navigation
</div></div>

<div class="maintable">
<div class="subtable outertxt" style="width:{TABLEWIDTH};">
<div class="right">
        <img src="{IMGDIR}/showall.gif" border="0" class="absmiddle" alt="" /> <a href="forumdisplay.php?fid=$fid">{lang forum_viewall}</a>
        &nbsp;<img src="{IMGDIR}/showdigest.gif" border="0" class="absmiddle" alt="" /> <a href="forumdisplay.php?fid=$fid&amp;filter=digest">{lang thread_digest}</a>
        <!--{if $allowpostpoll || !$discuz_uid}-->&nbsp;<img src="{IMGDIR}/showpoll.gif" border="0" class="absmiddle" alt="" /> <a href="forumdisplay.php?fid=$fid&amp;filter=poll">{lang thread_poll}</a><!--{/if}-->
        <!--{if ($allowposttrade && $ec_id) || !$discuz_uid}-->&nbsp;<img src="{IMGDIR}/showtrade.gif" border="0" class="absmiddle" alt="" /> <a href="forumdisplay.php?fid=$fid&amp;filter=trade">{lang thread_trade}</a><!--{/if}-->
        <!--{if $allowpostreward || !$discuz_uid}-->&nbsp;<img src="{IMGDIR}/showreward.gif" border="0" class="absmiddle" alt="" /> <a href="forumdisplay.php?fid=$fid&amp;filter=reward">{lang thread_reward}</a><!--{/if}-->
        <!--{if $allowpostactivity || !$discuz_uid}-->&nbsp;<img src="{IMGDIR}/showactivity.gif" border="0" class="absmiddle" alt="" /> <a href="forumdisplay.php?fid=$fid&amp;filter=activity">{lang thread_activity}</a><!--{/if}-->

&nbsp; <img src="{IMGDIR}/favorite.gif" border="0" class="absmiddle" alt="" /> <a href="my.php?item=favorites&amp;favadd=$fid&amp;type=forum">{lang forum_favorite}</a>
&nbsp; <img src="{IMGDIR}/mytopic.gif" border="0" class="absmiddle" alt="" /> <a href="my.php?item=threads&amp;srchfid=$fid">{lang show_mytopics}</a>
<!--{if $allowmodpost && $forum['modnewposts']}-->
        &nbsp; <img src="{IMGDIR}/moderate.gif" border="0" class="absmiddle" alt="" /> {lang forum_moderate}
        <a href="admincp.php?action=modthreads&amp;frames=yes" target="_blank">[{lang forum_moderate_threads}]</a>
        <!--{if $forum['modnewposts'] == 2}--><a href="admincp.php?action=modreplies&amp;frames=yes" target="_blank">[{lang forum_moderate_replies}]</a><!--{/if}-->
<!--{/if}-->
<!--{if $adminid == 1 && $forum['recyclebin']}-->
        &nbsp; <img src="{IMGDIR}/recyclebin.gif" border="0"  alt="" /> <a href="admincp.php?action=recyclebin&amp;frames=yes" target="_blank">{lang forum_recyclebin}</a>
<!--{/if}-->
</div>
({lang forum_modedby}: <span class="bold">
<!--{if $moderatedby}-->$moderatedby<!--{else}-->{lang forum_opening}<!--{/if}-->
</span>)
</div><br></div>

<!--{if $forum['rules']}-->
        <div class="maintable">
        <table cellspacing="{INNERBORDERWIDTH}" cellpadding="{TABLESPACE}" width="{TABLEWIDTH}" align="center" class="tableborder">
        <tr class="header"><td><a href="###" onclick="toggle_collapse('rules_$fid');"><img id="rules_{$fid}_img" src="{IMGDIR}/$rulescollapseimg" align="right" border="0" alt="" /></a>{lang forum_rules}</td></tr>
        <tbody id="rules_$fid" style="$collapserules">
        <tr><td class="altbg2" colspan="2" onMouseOver="this.className='altbg1'" onMouseOut="this.className='altbg2'">$forum[rules]</td></tr>
        </tbody></table><br>
        </div>
<!--{/if}-->

<!--{if !empty($newpmexists)}-->
        <div class="maintable">
        {template pmprompt}
        </div>
<!--{/if}-->

<!--{if $subexists}-->
        <div class="maintable">
        {template forumdisplay_subforum}
        </div>
<!--{/if}-->

<!--{if !empty($advlist['text'])}--><div class="maintable"><table cellspacing="{INNERBORDERWIDTH}" cellpadding="{TABLESPACE}" width="{TABLEWIDTH}" align="center" class="tableborder">$advlist[text]</table><br></div><!--{/if}-->

<div class="maintable">
<table width="{TABLEWIDTH}" cellspacing="0" cellpadding="0" align="center">
<tr><td valign="bottom">$multipage</td>
<td align="right" valign="bottom">
<!--{if $allowpost || !$discuz_uid}-->&nbsp;<a href="post.php?action=newthread&amp;fid=$fid&amp;extra=$extra"><img src="{IMGDIR}/newtopic.gif" border="0" alt="" /></a><!--{/if}-->
<!--{if $allowpostpoll || !$discuz_uid}-->&nbsp;<a href="post.php?action=newthread&amp;fid=$fid&amp;extra=$extra&amp;poll=yes"><img src="{IMGDIR}/poll.gif" border="0" alt="" /></a><!--{/if}-->
<!--{if ($allowposttrade && $ec_id) || !$discuz_uid}-->&nbsp;<a href="post.php?action=newthread&amp;fid=$fid&amp;extra=$extra&amp;trade=yes"><img src="{IMGDIR}/trade.gif" border="0" alt="" /></a><!--{/if}-->
<!--{if $allowpostreward || !$discuz_uid}-->&nbsp;<a href="post.php?action=newthread&amp;fid=$fid&amp;extra=$extra&amp;reward=yes"><img src="{IMGDIR}/reward.gif" border="0" alt="" /></a><!--{/if}-->
<!--{if $allowpostactivity || !$discuz_uid}-->&nbsp;<a href="post.php?action=newthread&amp;fid=$fid&amp;extra=$extra&amp;activity=yes"><img src="{IMGDIR}/activity.gif" border="0" alt="" /></a><!--{/if}-->
<!--{if $forum['threadtypes'] && $forum['threadtypes']['listable']}-->
        <br><table cellspacing="0" cellpadding="0" border="0"><tr><td>
        <table cellspacing="{INNERBORDERWIDTH}" cellpadding="2" class="tableborder"><tr class="smalltxt">
        <!--{loop $forum['threadtypes']['flat'] $id $name}-->
                <!--{if $typeid != $id}-->
                        <td class="altbg1">&nbsp;<a href="forumdisplay.php?fid=$fid&amp;filter=type&amp;typeid=$id">$name</a>&nbsp;</td>
                <!--{else}-->
                        <td class="header">&nbsp;<span class="bold">$name</span>&nbsp;</td>
                <!--{/if}-->
        <!--{/loop}-->
        <!--{if $forum['threadtypes']['selectbox']}-->
                <!--{if !$forum['threadtypes']['flat']}--><td class="altbg1">{lang admin_type}</td><!--{/if}-->
                <td id="threadtypebox" class="altbg1">
                <select id="threadtypesselect" style='border: 1px;'onchange="if(this.options[this.selectedIndex].value != '') {
        var thisurl = document.URL.replace(/[&?]filter=type[&?]typeid=.+?&amp;sid=.+?$/i, '');
        window.location=(thisurl.replace(/\#.+$/, '')+(thisurl.match(/\?/) ? '&amp;' : '?')+'filter=type&amp;typeid='+this.options[this.selectedIndex].value+'&amp;sid=$sid') }">
                <option value="">{lang admin_type_more} ...</option>
                <!--{loop $forum['threadtypes']['selectbox'] $id $name}-->
                        <!--{if $typeid != $id}-->
                                <option value="$id">$name</option>
                        <!--{else}-->
                                <option value="$id" selected class="header">$name</option>
                        <!--{/if}-->
                <!--{/loop}-->
                <!--{if $typeid}--><option value="0">{lang all}</option><!--{else}--><option value="0" selected class="header">{lang all}</option><!--{/if}-->
                </select></td>
        <!--{else}-->
                <!--{if $typeid}--><td class="altbg1">&nbsp;<a href="forumdisplay.php?fid=$fid">{lang all}</a>&nbsp;</td><!--{else}--><td class="header">&nbsp;<span class="bold">{lang all}</span>&nbsp;</td><!--{/if}-->
        <!--{/if}-->
        </tr></table></td></tr><tr><td height="3"></td></tr></table>
<!--{/if}-->
</td></tr></table></div>

<div class="maintable">
<table cellspacing="{INNERBORDERWIDTH}" cellpadding="{TABLESPACE}" width="{TABLEWIDTH}" align="center" class="tableborder" style="border-bottom:none;">
<tr class="header"><td colspan="7">
<!--{if $searchboxstatus}-->
        <div class="right">
        <form method="post" action="search.php?srchtype=qihoo" onSubmit="this.target='_blank';">
        <input type="hidden" name="searchsubmit" value="yes">
        <input type="text" name="srchtxt" value="$qihoo_searchboxtxt" size="20" class="altbg2" onmouseover="this.focus();this.value=''" onfocus="this.select()">
        <select name="stype"><option value="" selected>{lang qihoo_search_filltext}</option><option value="1">{lang qihoo_search_title}</option><option value="2">{lang qihoo_search_author}</option></select>
        <!--{if $qihoo_allsearch != '2'}--><input name="searchsubmit" type="submit" style="height: 1.8em" value="{lang search}"><!--{/if}-->
        <!--{if $qihoo_allsearch}-->
                <input name="allsearchsubmit" type="submit" style="height: 1.8em" value="{lang qihoo_search}">
        <!--{/if}-->
        </form>
        </div>
<!--{/if}-->
<div class="smalltxt" style="padding: {TABLESPACE}px 0px"><a href="forumdisplay.php?fid=$fid" class="bold">$forum[name]</a></div>
</td></tr>
<tr class="category">
<td width="4%">&nbsp;</td>
<td width="4%">&nbsp;</td>
<td width="47%" align="center">{lang subject}</td>
<td width="14%" align="center" nowrap>{lang author}</td>
<td width="6%" align="center" nowrap>{lang replies}</td>
<td width="6%" align="center" nowrap>{lang views}</td>
<td width="19%" align="center">{lang lastpost}</td>
</tr>

<!--{if $page == 1 && !empty($announcement)}-->
        <tr>
        <td class="altbg2" align="center"><!--{if empty($announcement['redirect'])}--><a href="announcement.php?id=$announcement[id]#$announcement[id]" target="_blank"><!--{else}--><a href="$announcement[message]" target="_blank"><!--{/if}-->
        <img src="{IMGDIR}/lock_folder.gif" border="0" alt="" /></a></td>
        <td class="altbg2" colspan="2" onMouseOver="this.className='altbg1'" onMouseOut="this.className='altbg2'">{lang announcement}:
        <!--{if empty($announcement['redirect'])}--><a href="announcement.php?id=$announcement[id]#$announcement[id]" target="_blank">$announcement[subject]</a><!--{else}--><a href="$announcement[message]" target="_blank">$announcement[subject]</a><!--{/if}--></td>
        <td class="altbg1" align="center"><a href="viewpro.php?uid=$announcement[authorid]">$announcement[author]</a><br><span class="smalltxt">$announcement[starttime]</span></td>
        <td class="altbg2" align="center">-</td>
        <td class="altbg1" align="center">-</td>
        <td class="altbg2" align="center">-</td>
        </tr>
<!--{/if}-->
</table></div>

<form method="post" name="moderate" action="topicadmin.php?action=moderate&amp;fid=$fid">
<input type="hidden" name="formhash" value="{FORMHASH}">
<!--{if $threadcount}-->
        <div class="maintable">
        <!--{loop $threadlist $key $thread}-->
                <table cellspacing="{INNERBORDERWIDTH}" class="f_row">
                <!--{if $separatepos == $key + 1}-->
                        <tr class="category"><td>&nbsp;</td><td colspan="6"><span class="bold">{lang forum_normal_threads}</span></td></tr>
                <!--{/if}-->
                <tr>
                <td class="f_folder"><a href="viewthread.php?tid=$thread[tid]" target="_blank"><img src="{IMGDIR}/$thread[folder]" border="0" alt="" /></a></td>
                <td class="f_icon">$thread['icon']</td>
                <td class="altbg2" onMouseOver="this.className='altbg1'" onMouseOut="this.className='altbg2'">
                <!--{if $thread['rate'] > 0}--><img src="{IMGDIR}/agree.gif" align="right" alt="" /><!--{elseif $thread['rate'] < 0}--><img src="{IMGDIR}/disagree.gif" align="right" alt="" /><!--{/if}-->
                <!--{if $forum['ismoderator']}--><!--{if $thread['fid'] == $fid}--><input type="checkbox" name="moderate[]" value="$thread[tid]"><!--{else}--><input type="checkbox" disabled><!--{/if}--><!--{/if}-->

                <!--{if $thread['moved']}--><!--{if $forum['ismoderator']}--><a href="topicadmin.php?action=delete&amp;tid=$thread[moved]">{lang thread_moved}:</a><!--{else}-->{lang thread_moved}:<!--{/if}-->
                <!--{elseif $thread['digest']}--><img src="{IMGDIR}/digest.gif" class="absmiddle" alt="" /> {lang thread_digest}<b>{echo substr('III', - $thread['digest'])}</b>:&nbsp;
                <!--{elseif $thread['displayorder']}--><img src="{IMGDIR}/pin.gif" class="absmiddle" alt="" />
                        <!--{if $thread['displayorder'] == 3}-->
                                $threadsticky[0]:
                        <!--{elseif $thread['displayorder'] == 2}-->
                                $threadsticky[1]:
                        <!--{elseif $thread['displayorder'] == 1}-->
                                $threadsticky[2]:
                        <!--{/if}-->&nbsp;
                <!--{elseif $thread['special'] == 1}--><img src="{IMGDIR}/pollsmall.gif" class="absmiddle" alt="" /> {lang thread_poll}:&nbsp;
                <!--{elseif $thread['special'] == 2}--><img src="{IMGDIR}/tradesmall.gif" class="absmiddle" alt="" /> {lang thread_trade}:&nbsp;
                <!--{elseif $thread['special'] == 3}-->
                        <!--{if $thread['price'] > 0}-->
                                 <img src="{IMGDIR}/rewardsmall.gif" class="absmiddle" alt="" />
                        <!--{elseif $thread['special'] == '3' && $thread['price'] < 0}-->
                                <img src="{IMGDIR}/rewardsmallend.gif" class="absmiddle" alt="" />
                        <!--{/if}-->
                 {lang thread_reward}:&nbsp;
                <!--{elseif $thread['special'] == 4}--><img src="{IMGDIR}/activitysmall.gif" class="absmiddle" alt="" /> {lang thread_activity}:&nbsp;
                <!--{/if}-->$thread[typeid]
                <!--{if $thread['attachment']}--><img src="images/attachicons/common.gif" class="absmiddle" alt="" /><!--{/if}-->
                <a href="viewthread.php?tid=$thread[tid]&amp;extra=$extra"$thread[highlight]>$thread[subject]</a>
                <!--{if $thread['new']}--><a href="redirect.php?tid=$thread[tid]&amp;goto=newpost$highlight#newpost"><img src="{IMGDIR}/firstnew.gif" border="0" class="absmiddle" alt="" /></a> <!--{/if}-->
                <!--{if $thread['rate'] > 0}-->[<b><font color=red>+$thread['rate']</font></b>]<!--{elseif $thread['rate'] < 0}-->[<b><font color=red>$thread['rate']</font></b>]<!--{/if}-->
  <!-- 父论坛显示子论坛帖子 -->
  <!--{if $thread['fid'] != $fid}--> - [{lang forum_subforums} <a href="forumdisplay.php?fid=$thread[fid]" class="bold">$subname[$thread[fid]]</a>]<!--{/if}-->

                <!--{if $thread['readperm']}--> - [{lang readperm} <span class="bold">$thread[readperm]</span>]<!--{/if}-->
                <!--{if $thread['price'] > 0}-->
                        <!--{if $thread['special'] == '3'}-->
                         - [{lang thread_reward}
                        <!--{else}-->
                         - [{lang price}
                         <!--{/if}-->
                         {$extcredits[$creditstrans][title]} <span class="bold">$thread[price]</span> {$extcredits[$creditstrans][unit]}]
                <!--{elseif $thread['special'] == '3' && $thread['price'] < 0}-->
                        - [{lang reward_solved}]
                <!--{/if}-->
                $thread[multipage]
                </td><td class="f_author">
                <!--{if $thread['authorid'] && $thread['author']}-->
                        <a href="viewpro.php?uid=$thread[authorid]">$thread[author]</a>
                <!--{else}-->
                         <!--{if $forum['ismoderator']}-->
                                <a href="viewpro.php?uid=$thread[authorid]">{lang anonymous}</a>
                        <!--{else}-->
                                {lang anonymous}
                        <!--{/if}-->
                <!--{/if}-->
                <br><span class="smalltxt">$thread[dateline]</span></td>
                <td class="f_replies">$thread[replies]</td>
                <td class="f_views">$thread[views]</td>
                <td class="f_last" nowrap>$thread[lastpost]<br>{lang forum_lastpost_by}
                <!--{if $thread['lastposter']}--><a href="viewpro.php?username=$thread[lastposterenc]">$thread[lastposter]</a><!--{else}-->{lang anonymous}<!--{/if}-->
                &nbsp;<a href="redirect.php?tid=$thread[tid]&amp;goto=lastpost$highlight#lastpost"><img src="{IMGDIR}/lastpost.gif" border="0" class="absmiddle" alt="" /></a>
                </td></tr></table>
        <!--{/loop}-->
        </div>
<!--{else}-->
        <div class="maintable">
        <table cellspacing="{INNERBORDERWIDTH}" cellpadding="{TABLESPACE}" width="{TABLEWIDTH}" align="center" style="margin-top:-1px;border-top:none" class="tableborder">
        <tr><td colspan="7" class="altbg1">{lang forum_nothreads}</td></tr>
        </table>
        </div>
<!--{/if}-->

<!--{if $forum['ismoderator'] && $threadcount}-->
        <div class="maintable">
        <table cellspacing="{INNERBORDERWIDTH}" cellpadding="{TABLESPACE}" width="{TABLEWIDTH}" align="center" style="border-top:none;" class="tableborder">
        <tr><td align="center" class="altbg1">
        <span class="bold">{lang admin_moderate}</span>
        <input type="checkbox" name="chkall" onclick="checkall(this.form, 'moderate')">{lang checkall}
        <!--{if $allowdelpost}--><input type="radio" name="operation" value="delete">{lang admin_delthread} <!--{/if}-->
        <input type="radio" name="operation" value="move">{lang admin_move}
        <input type="radio" name="operation" value="highlight">{lang admin_highlight}
        <input type="radio" name="operation" value="type">{lang admin_type}
        <input type="radio" name="operation" value="close">{lang admin_openclose}
        <!--{if $allowstickthread}--><input type="radio" name="operation" value="stick">{lang admin_stick_unstick} <!--{/if}-->
        <input type="radio" name="operation" value="digest">{lang admin_digest_addremove} &nbsp;
        {if $supe_status && $forum['supe_pushsetting']['status'] == 2}
                <input type="radio" name="operation" value="supe_push">{lang admin_supe_push_addremove} &nbsp;
        {/if}
        <a href="###" onclick="javascript: document.moderate.submit()" class="bold">[{lang submit}]</a>
        </td></tr></table></div>
<!--{else}-->
        <div class="maintable">
        <table width="{TABLEWIDTH}" cellspacing="0" cellpadding="0" border="0" align="center">
        <tr><td bgcolor="{BORDERCOLOR}"></td></tr>
        </table></div>
<!--{/if}-->
</form>
<div class="maintable">
<table width="{TABLEWIDTH}" cellspacing="0" cellpadding="0" align="center">
<tr><td valign="top">$multipage</td><td align="right">
<!--{if $allowpost || !$discuz_uid}-->&nbsp;<a href="post.php?action=newthread&amp;fid=$fid&amp;extra=$extra"><img src="{IMGDIR}/newtopic.gif" border="0" alt="" /></a><!--{/if}-->
<!--{if $allowpostpoll || !$discuz_uid}-->&nbsp;<a href="post.php?action=newthread&amp;fid=$fid&amp;extra=$extra&amp;poll=yes"><img src="{IMGDIR}/poll.gif" border="0" alt="" /></a><!--{/if}-->
<!--{if ($allowposttrade && $ec_id) || !$discuz_uid}-->&nbsp;<a href="post.php?action=newthread&amp;fid=$fid&amp;extra=$extra&amp;trade=yes"><img src="{IMGDIR}/trade.gif" border="0" alt="" /></a><!--{/if}-->
<!--{if $allowpostreward || !$discuz_uid}-->&nbsp;<a href="post.php?action=newthread&amp;fid=$fid&amp;extra=$extra&amp;reward=yes"><img src="{IMGDIR}/reward.gif" border="0" alt="" /></a><!--{/if}-->
<!--{if $allowpostactivity || !$discuz_uid}-->&nbsp;<a href="post.php?action=newthread&amp;fid=$fid&amp;extra=$extra&amp;activity=yes"><img src="{IMGDIR}/activity.gif" border="0" alt="" /></a><!--{/if}-->
</td></tr></table><br></div>

<!--{if $fastpost && $allowpost}-->
        <script type="text/javascript">
        var postminchars = parseInt('$minpostsize');
        var postmaxchars = parseInt('$maxpostsize');
        var disablepostctrl = parseInt('$disablepostctrl');
        var typerequired = parseInt('$forum[threadtypes][required]');
        function validate(theform) {
                if (theform.typeid && theform.typeid.options[theform.typeid.selectedIndex].value == 0 && typerequired) {
                        alert("{lang post_type_isnull}");
                        return false;
                } else if (theform.subject.value == "" || theform.message.value == "") {
                        alert("{lang post_subject_or_message_isnull}");
                        return false;
                } else if (theform.subject.value.length > 80) {
                        alert("{lang post_subject_toolong}");
                        return false;
                }
                if (!disablepostctrl && ((postminchars != 0 && theform.message.value.length < postminchars) || (postmaxchars != 0 && theform.message.value.length > postmaxchars))) {
                        alert("{lang post_message_length_invalid}\n\n{lang post_curlength}: "+theform.message.value.length+" {lang bytes}\n{lang board_allowed}: "+postminchars+" {lang to} "+postmaxchars+" {lang bytes}");
                        return false;
                }
                theform.topicsubmit.disabled = true;
                return true;
        }
        </script>
        <form method="post" name="input" action="post.php?action=newthread&amp;fid=$fid&amp;extra=$extra&amp;topicsubmit=yes" onSubmit="return validate(this)">
        <input type="hidden" name="formhash" value="{FORMHASH}">
        <div class="maintable">
        <table cellspacing="{INNERBORDERWIDTH}" cellpadding="{TABLESPACE}" width="{TABLEWIDTH}" align="center" class="tableborder">
        <tr><td colspan="2" class="header"><a href="member.php?action=credits&amp;view=forum_post&amp;fid=$fid" target="_blank"><img src="{IMGDIR}/credits.gif" alt="{lang credits_policy_view}" align="right" border="0" /></a>{lang post_fastpost}</td></tr>
        <tr>
        <td width="18%" class="altbg1">{lang subject}:</td>
        <td width="82%" class="altbg2">$typeselect <input type="text" name="subject" size="80" value="" tabindex="1"></td>
        </tr>
        <tr>
        <td width="18%" class="altbg1" valign="top">{lang options}:<br>
        <input type="checkbox" name="parseurloff" value="1"> {lang disable} {lang post_parseurl}<br>
        <input type="checkbox" name="smileyoff" value="1"> {lang disable} <a href="faq.php?page=messages#6" target="_blank">{lang post_smilies}</a><br>
        <input type="checkbox" name="bbcodeoff" value="1"> {lang disable} <a href="faq.php?page=misc#1" target="_blank">{lang post_discuzcode}</a><br>
        <!--{if $allowanonymous || $forum['allowanonymous']}--><input type="checkbox" name="isanonymous" value="1"> {lang post_anonymous}<br><!--{/if}-->
        <input type="checkbox" name="usesig" value="1" $usesigcheck> {lang post_show_sig}<br>
        <input type="checkbox" name="emailnotify" value="1"> {lang post_email_notify}
        <!--{if $allowuseblog && $forum['allowshare']}--><br><input type="checkbox" name="addtoblog" value="1"> {lang post_blog_thread}<!--{/if}-->
        </td>
        <td width="82%" class="altbg2" valign="middle">
        <div style="width:80%; float:left;"><span class="smalltxt">
        <textarea rows="7" cols="30" style="width: 100%; height:120px; word-break: break-all" name="message" onKeyDown="ctlent(event);" tabindex="2"></textarea><br>
        <input type="submit" name="topicsubmit" value="{lang post_topicsubmit}" tabindex="3">&nbsp; &nbsp;
        <input type="submit" name="previewpost" value="{lang post_previewpost}" tabindex="4">&nbsp; &nbsp;
        <input type="reset" name="topicsreset" value="{lang post_topicreset}" tabindex="5">&nbsp; &nbsp;{lang post_submit_hotkey}</span></div>

        <!--{if $smileyinsert}-->
                <div id="{$editorid}_smiliebox" style="width:20%; float:left">
                <table cellpadding="3" cellspacing="0" width="80%" border="0" align="center">
                $smilies
                <!--{if $moresmilies}-->
                        <tr>
                        <td colspan="$smcols" align="center"><br>
                        <a href="#" onclick="opensmiliewindow(200, 500);  return false">
                        <span class="bold">{lang post_smilies_more}</span></a></td>
                        </tr>
                <!--{/if}-->
                </table>
                </div>
                <script type="text/javascript">initSmilies('{$editorid}_smiliebox');</script>
        <!--{/if}-->

        </td></tr></table><br></div></form>
<!--{/if}-->

<!--{if $whosonlinestatus}-->
        <div class="maintable">
        <table cellspacing="{INNERBORDERWIDTH}" cellpadding="{TABLESPACE}" width="{TABLEWIDTH}" align="center" class="tableborder">
        <!--{if $detailstatus}-->
                <tr class="header"><td width="100%">
                <a name="online"></a><a href="forumdisplay.php?fid=$fid&amp;page=$page&amp;showoldetails=no#online"><img src="{IMGDIR}/collapsed_no.gif" align="right" border="0" alt="" /></a>{lang forum_activeusers}
                </td></tr>
                <tr><td class="altbg2" onMouseOver="this.className='altbg1'" onMouseOut="this.className='altbg2'">
                <table cellspacing="0" cellpadding="0" border="0" width="98%" align="center">
                <tr><td nowrap>
                <!--{loop $whosonline $key $online}-->
                        <!--{if $key % 7 == 0}--></td></tr><tr><td width="15%" nowrap><!--{else}--></td><td width="15%" nowrap><!--{/if}-->
                        <img src="images/common/$online[icon]"  alt="" />
                        <a href="viewpro.php?uid=$online[uid]" title="{lang time}: $online[lastactivity]{LF}
                        {lang action}: $online[action]{LF}
                        {lang forum}: $forumname">$online[username]</a>
                <!--{/loop}-->
                </td></tr></table></td></tr>
        <!--{else}-->
                <tr class="header"><td width="100%">
                <a name="online"></a><a href="forumdisplay.php?fid=$fid&amp;page=$page&amp;showoldetails=yes#online"><img src="{IMGDIR}/collapsed_yes.gif" align="right" border="0" alt="" /></a>{lang forum_activeusers}
                </td></tr>
        <!--{/if}-->
        </table><br></div>
<!--{/if}-->

<div class="maintable">
<form method="get" action="forumdisplay.php">
<input type="hidden" name="fid" value="$fid">
<div class="subtable outertxt" style="width:{TABLEWIDTH}">
<div class="right smalltxt">
<!--{if $filter == 'digest' || $filter == 'type'}-->
        <input type="hidden" name="filter" value="$filter">
        <input type="hidden" name="typeid" value="$typeid">
<!--{else}-->
        {lang show} <select name="filter">
        <option value="0" $check[0]>{lang threads_all}</option>
        <option value="86400" $check[86400]>{lang last_1_days}</option>
        <option value="172800" $check[172800]>{lang last_2_days}</option>
        <option value="604800" $check[604800]>{lang last_7_days}</option>
        <option value="2592000" $check[2592000]>{lang last_30_days}</option>
        <option value="7948800" $check[7948800]>{lang last_90_days}</option>
        <option value="15897600" $check[15897600]>{lang last_180_days}</option>
        <option value="31536000" $check[31536000]>{lang last_356_days}</option>
        </select>&nbsp;
<!--{/if}-->
{lang orderby}&nbsp;
<select name="orderby">
<option value="lastpost" $check[lastpost]>{lang order_lastpost}</option>
<option value="dateline" $check[dateline]>{lang order_starttime}</option>
<option value="replies" $check[replies]>{lang order_replies}</option>
<option value="views" $check[views]>{lang order_views}</option>
</select>&nbsp;
<select name="ascdesc">
<option value="ASC" $check[ASC]>{lang order_asc}</option>
<option value="DESC" $check[DESC]>{lang order_desc}</option>
</select>&nbsp;
<input type="submit" value="{lang submit}">
</div>
<span class="smalltxt">
<!--{if $forumjump && !$jsmenu[1]}-->
        <select onchange="if(this.options[this.selectedIndex].value != '') {
        window.location=('forumdisplay.php?fid='+this.options[this.selectedIndex].value+'&amp;sid=$sid') }">
        <option value="">{lang forum_jump}</option>
        $forumselect
        </select>
<!--{/if}-->
<!--{if $visitedforums}-->
        <select onchange="if(this.options[this.selectedIndex].value != '')
        window.location=('forumdisplay.php?fid='+this.options[this.selectedIndex].value+'&amp;sid=$sid')">
        <option value="">{lang visited_forums}</option>
        $visitedforums
        </select>
<!--{/if}-->
</span>
</div></form>

<br><table cellspacing="0" cellpadding="0" border="0" width="500" align="center" class="outertxt">
<tr class="smalltxt"><td><img src="{IMGDIR}/red_folder.gif" class="absmiddle" alt="{lang thread_newposts}"  />&nbsp; {lang thread_newposts}</td><td class="smalltxt">(&nbsp;<img src="{IMGDIR}/hot_red_folder.gif" class="absmiddle" alt="{lang thread_more_replies}"  />&nbsp; {lang thread_more_replies} )</td><td class="smalltxt"><img src="{IMGDIR}/lock_folder.gif" class="absmiddle" alt="{lang thread_closed}"  />&nbsp; {lang thread_closed}</td></tr>
<tr class="smalltxt"><td><img src="{IMGDIR}/folder.gif" class="absmiddle" alt="{lang thread_nonewpost}"  />&nbsp; {lang thread_nonewpost}</td><td class="smalltxt">(&nbsp;<img src="{IMGDIR}/hot_folder.gif" class="absmiddle" alt="{lang thread_more_replies}"  />&nbsp; {lang thread_more_replies} )</td><td class="smalltxt">&nbsp;</td></tr>
</table>
{template footer}
回复

使用道具 举报

amoshuang 发表于 2006-7-30 15:25:41 | 显示全部楼层
更新缓存
回复

使用道具 举报

论坛的新主人 发表于 2006-7-30 16:05:23 | 显示全部楼层
原帖由 amoshuang 于 2006-7-30 15:25 发表
更新缓存


更新了无数遍了,不显示
回复

使用道具 举报

论坛的新主人 发表于 2006-7-30 16:13:34 | 显示全部楼层
原帖由 amoshuang 于 2006-7-30 15:25 发表
更新缓存

如何说明你成功了,你的论坛连个子论坛都没有呀?也是置顶帖子后面显示了     - [子论坛 ]
你成功了?
回复

使用道具 举报

全球通 发表于 2006-7-30 16:21:09 | 显示全部楼层
回复

使用道具 举报

 楼主| 魔焰男孩 发表于 2006-7-30 16:32:31 | 显示全部楼层
原帖由 论坛的新主人 于 2006年7月30日 16:13 发表 如何说明你成功了,你的论坛连个子论坛都没有呀?也是置顶帖子后面显示了 - 你成功了?

改了下模板, 你参照一楼的重新修改模板. 现在置顶帖不显示子版块了.
我的测试论坛没有安装, 我是本地测试.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2024-12-23 07:17 , Processed in 0.028990 second(s), 3 queries , Gzip On, Redis On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

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