错误报告全部统计 =$empire->gettotal("select count(*) as total from {$dbtbpre}enewsdownerror")?> 注释:统计enewsdownerror表的记录总数
当前列表页页统计(列表页) =$empire->gettotal("select count(*) as total from {$dbtbpre}enewsdownerror where classid='$GLOBALS[navclassid]'")?> 注释:只能统计终极栏目,一级栏目不能统计
指定列表页页统计(首页、列表页) 如:"影视频道"下的"动作片" =$empire->gettotal("select count(*) as total from {$dbtbpre}enewsdownerror where classid='42' ")?> 注释:1、多个栏目时用:classid in('栏目ID1','栏目ID2','栏目ID3') 2、只能统计终极栏目,一级栏目不能统计
当前内容页统计(内容页) =$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"); ?>