[e:loop={'select classid,classname,classpath from [!db.pre!]enewsclass where bclassid=2 and showclass=0 order by myorder,classid desc',0,24,0}]
<li><a href="<?=$public_r[newsurl]?><?=$bqr[classpath]?>" ><?=$bqr[classname]?></a></li>
[/e:loop]
调用当前栏目下的所有子栏目:
包括子栏目链接,子栏目名称,子栏目图片
[e:loop={"select classname,classpath,classid,classimg from phome_enewsclass where bclassid='$GLOBALS[navclassid]' and showclass=0 order by myorder,classid desc",0,24,0}]
<li class="tab-head-item"><a href="/<?=$bqr[classpath]?>/"><?=$bqr[classname]?></a></li>
[/e:loop]
毒药 2020-11-01 23:31:34
1