在需要显示的get="_blank">页面模板里面添加以下代码

<?php
$bclassid=$GLOBALS[navclassid]; //取得本栏目id
//取得本栏目下的子栏目
?>
[e:loop={'select classid,classname,maxnum,classpath from [!db.pre!]enewsclass where bclassid=206 order by myorder',0,24,0}]
<?
$total=$empire->gettotal("select count(*) as total from phome_ecms_hudong where classid=$bqr[classid]");
$total3=$empire->gettotal("select count(*) as total from phome_ecms_hudong where classid=$bqr[classid] and hf<>''");
if($total==0)
{
   $out=0;
}
else
{
$out=$total3/$total;
}
$ss=$out*100;
$zz=$ss;
?>
<?=$bqr[classname]?>
<?=$bqr[maxnum]?>
<br /><?=$total?>
<br /><?=$total3?>
<br /><?=$zz?>%
[/e:loop]

 

声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。