<?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