在織夢的后臺(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ì)在列表頁顯示出文檔的數(shù)量,沒有審核的文檔數(shù)量就會(huì)在后面顯示出來 |
免責(zé)聲明:本站部分文章和圖片均來自用戶投稿和網(wǎng)絡(luò)收集,旨在傳播知識(shí),文章和圖片版權(quán)歸原作者及原出處所有,僅供學(xué)習(xí)與參考,請(qǐng)勿用于商業(yè)用途,如果損害了您的權(quán)利,請(qǐng)聯(lián)系我們及時(shí)修正或刪除。謝謝!
始終以前瞻性的眼光聚焦站長、創(chuàng)業(yè)、互聯(lián)網(wǎng)等領(lǐng)域,為您提供最新最全的互聯(lián)網(wǎng)資訊,幫助站長轉(zhuǎn)型升級(jí),為互聯(lián)網(wǎng)創(chuàng)業(yè)者提供更加優(yōu)質(zhì)的創(chuàng)業(yè)信息和品牌營銷服務(wù),與站長一起進(jìn)步!讓互聯(lián)網(wǎng)創(chuàng)業(yè)者不再孤獨(dú)!
掃一掃,關(guān)注站長網(wǎng)微信