錯誤報告全部統(tǒng)計 =$empire->gettotal("select count(*) as total from {$dbtbpre}enewsdownerror")?> 注釋:統(tǒng)計enewsdownerror表的記錄總數(shù)
當前列表頁頁統(tǒng)計(列表頁) =$empire->gettotal("select count(*) as total from {$dbtbpre}enewsdownerror where classid='$GLOBALS[navclassid]'")?> 注釋:只能統(tǒng)計終極欄目,一級欄目不能統(tǒng)計
指定列表頁頁統(tǒng)計(首頁、列表頁) 如:"影視頻道"下的"動作片" =$empire->gettotal("select count(*) as total from {$dbtbpre}enewsdownerror where classid='42' ")?> 注釋:1、多個欄目時用:classid in('欄目ID1','欄目ID2','欄目ID3') 2、只能統(tǒng)計終極欄目,一級欄目不能統(tǒng)計
當前內(nèi)容頁統(tǒng)計(內(nèi)容頁) =$empire->gettotal("select count(*) as total from {$dbtbpre}enewsdownerror where classid='$navinfor[classid]' and id='$navinfor[id]'")?>
============================================================================================== 方法2、單選方式 在etemplatepublicreport.php 中的"信息標題:"下面加入以下代碼(在"信息標題:"以上添加時,信息標題會不顯示) $sql=$empire->query("select classid,classname from {$dbtbpre}enewserrorclass order by classid desc"); ?>