欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

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

  發(fā)布時(shí)間:2020-01-26 20:59:01   作者:佚名   我要評(píng)論
這篇文章主要為大家詳細(xì)介紹了織夢(mèng)后臺(tái)欄目怎么顯示沒有審核的文檔數(shù)量,具有一定的參考價(jià)值,感興趣的小伙伴們可以參考一下,有需要的朋友可以收藏方便以后借鑒

在織夢(mèng)的后臺(tái)當(dāng)中如果是沒有審核的文章有很多,每次審核都要打開待審核文檔,如果內(nè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ù)量,沒有審核的文檔數(shù)量就會(huì)在后面顯示出來。

相關(guān)文章

最新評(píng)論