帝国cms首页调用专题及专题下的信息数量
[e:loop={"select * from phome_enewszt where ztimg<>'' order by onclick desc limit 4",10,24,0}] <li> <a href="/<?=$bqr['ztpath']?>/" target="_blank" title="<?=$bqr['ztname']?>"> <img src="<?=$bqr['ztimg']?>" alt="<?=$bqr['ztname']?>"> <p><?=$bqr['ztname']?><span>共 <i><?$num=$empire->gettotal("select count(*) as total from {$dbtbpre}enewsztinfo where ztid='$bqr[ztid]'"); echo $num;?></i> 款</span></p> </a> </li> [/e:loop]