<?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}] 这里加想循环的子栏目信息 子栏目名称:<?=$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] [/e:loop]