雷火电竞-中国电竞赛事及体育赛事平台

歡迎來(lái)到入門(mén)教程網(wǎng)!

dedecms

當(dāng)前位置:主頁(yè) > CMS教程 > dedecms >

織夢(mèng)后臺(tái)欄目怎么顯示沒(méi)有審核的文檔數(shù)量

來(lái)源:本站原創(chuàng)|時(shí)間:2021-08-05|欄目:dedecms|點(diǎn)擊:

在織夢(mèng)的后臺(tái)當(dāng)中如果是沒(méi)有審核的文章有很多,每次審核都要打開(kāi)待審核文檔,如果內(nèi)容有很多,就很麻煩,修改的方法:
打開(kāi)/include/typeunit.class.admin.php文件
找到
function ListAllType
在上面加上下面的代碼:
//獲取所有欄目的未審核文檔ID數(shù) 
    function UpdateCatalogNumw() 
    { 
        $this->dsql->SetQuery("SELECT typeid,count(typeid) as dd FROM `dede_arctiny` where arcrank =-1 group by typeid"); 
        $this->dsql->Execute(); 
        while($row = $this->dsql->GetArray()) 
        { 
            $this->CatalogNumsw[$row['typeid']] = $row['dd']; 
        } 
    } 
    function GetTotalArcw($tid) 
    { 
        if(!is_array($this->CatalogNumsw)) 
        { 
            $this->UpdateCatalogNumw(); 
        } 
        if(!isset($this->CatalogNumsw[$tid])) 
        { 
            return ""; 
        } 
        else 
        { 
            $totalnum = 0; 
            $ids = explode(',',GetSonIds($tid)); 
            foreach($ids as $tid) 
            { 
                if(isset($this->CatalogNumsw[$tid])) 
                { 
                    $totalnum += $this->CatalogNumsw[$tid]; 
                } 
            } 
            return " | <font color=red>".$totalnum."</font> | <a href='content_i_list.php?arcrank=-1&cid=".$tid."'>圖</a> | <a href='content_list.php?arcrank=-1&cid=".$tid."'>文</a>"; 
        } 
    }
將:
$this->GetTotalArc($id).
替換為:
$this->GetTotalArc($id).$this->GetTotalArcw($id).
注意有多個(gè)地方需要替換。這樣就會(huì)在列表頁(yè)顯示出文檔的數(shù)量,沒(méi)有審核的文檔數(shù)量就會(huì)在后面顯示出來(lái)
 

上一篇:織夢(mèng)DedeCMS調(diào)用三級(jí)欄目及欄目下的內(nèi)容

欄    目:dedecms

下一篇:織夢(mèng)dede上傳圖片之后會(huì)出現(xiàn)302或2038錯(cuò)誤

本文標(biāo)題:織夢(mèng)后臺(tái)欄目怎么顯示沒(méi)有審核的文檔數(shù)量

本文地址:http://www.jygsgssxh.com/a1/dedecms/16120.html

更多dedecms

您可能感興趣的文章

閱讀排行

本欄相關(guān)

隨機(jī)閱讀

網(wǎng)頁(yè)制作CMS教程網(wǎng)絡(luò)編程軟件編程腳本語(yǔ)言數(shù)據(jù)庫(kù)服務(wù)器

如果侵犯了您的權(quán)利,請(qǐng)與我們聯(lián)系,我們將在24小時(shí)內(nèi)進(jìn)行處理、任何非本站因素導(dǎo)致的法律后果,本站均不負(fù)任何責(zé)任。

聯(lián)系QQ:835971066 | 郵箱:835971066#qq.com(#換成@)

Copyright © 2002-2020 腳本教程網(wǎng) 版權(quán)所有