帝国cms遍历某个父栏目下所有的子栏目代码:
[e:loop={"select * from phome_enewsclass where bclassid in (2) order by classid asc",0,24,0}]
<li <?php if($GLOBALS[navclassid] == $bqr[classid]) {echo "class='addactive'";} ?>><a href="/<?=$bqr[classpath]?>"><h2><?=$bqr[classname]?> </h2><p>>></p></a></li>
[/e:loop]