<? $bclassid = $class_r[$GLOBALS[navclassid]][bclassid]; //获取当前父栏目ID ?> [e:loop={"select classid,classname,classpath from [!db.pre!]enewsclass where bclassid = ‘$bclassid’ order by classid”,0,24,0}]<!-取得父栏目下的子栏目-> <li><a href=”&l…
[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]?>&q…
所有一级栏目遍历,如果有子栏目的话,遍历出来. 注意下方的bclassid是可以改变的.可以改成自己想要设置的父栏目id. 遍历所有栏目,如果有二级栏目的话显示 [e:loop={"select classid,classname,islast,bname from {$dbtbpre}enewsclass where bclassid='0' order by myorder,classid ASC limit 11",0,24,0}] <?php $classurl=sys_…