<?php $bclassid=$GLOBALS[navclassid]; //取得本栏目id //取得本栏目下的子栏目 ?> [e:loop={"select classid,classimg,classname, classpath from `[!db.pre!]enewsclass` where bclassid='$bclassid' order by `classid`",7,24,0}] <li><a href="<?=$bqsr[classurl]?>" title="<?=$class_r[$bqr[classid]]['classname']?>"><?=$class_r[$bqr[classid]]['classname']?></a></li> [/e:loop]列表模板获取方式
[e:loop={"select classname,classpath,classid from `[!db.pre!]enewsclass` where bclassid='".$class_r[$GLOBALS[navclassid]][bclassid]."' order by classid ",0,24,0}] <li><a href="<?=$bqsr[classurl]?>" title="<?=$class_r[$bqr[classid]]['classname']?>"><?=$class_r[$bqr[classid]]['classname']?></a></li> [/e:loop]
Copyright © 2009-2019 Ywcms.Com All Right Reserved. 湘ICP备16006489号-2