<?php
$bclassid=$GLOBALS[navclassid]; //取得本栏目id
//取得本栏目下的子栏目
?>
[e:loop={"select classid, classname, classpath from `[!db.pre!]enewsclass` where bclassid='$bclassid' order by `classid` desc ",5,24,0,0,0}]
<div class="proclass_nav" class="<?=$class?>"> <a href="[!--news.url--]<?=esub($bqr[classpath],200)?>"><?=esub($bqr[classname],18)?></a> </div>
[/e:loop]
这里加想循环的子栏目信息
子栏目名称:
<?=$class_r[$bqr[classid]]['classname']?>
子栏目链接:
<?=$class_r[$bqr[classid]]['classpath']?>
子栏目id:$bqr[classid]
标签调用信息:
[ecmsinfo] $bqr[classid] ,8,12,0,0,15,0,0,0[/ecmsinfo]
帝国CMS内容页获取当前栏目ID及父栏目ID
<?php
$cid = $navinfor['classid'];
$fid = $class_r[$cid]['bclassid'];
?>