帝国cms程序e:loop标签输出带序号的列表

时间:2023年07月15日

/

来源:网络

/

编辑:佚名

当然万能标签也可以做到。但输出栏目列表的时候万能标签就做不到了。
[e:loop={"select * from phome_enewsclass where bclassid=0 order by classid limit 20 ",20,24,0}]
<DIV id=menu<?=$bqno?>><A class=white href="/<?=$bqr[classpath]?>/"><?=$bqr[classname]?></A></DIV>
[/e:loop]
其中的 $bqno 就是序列号。默认从1开始
要从2开始就 $bqno+1
要从3开始就 $bqno+2
猜你需要

豫ICP备2021026617号-1  豫公网安备:41172602000185   Copyright © 2021-2028 www.78moban.com/ All Rights Reserved

本站作品均来自互联网,转载目的在于传递更多信息,并不代表本站赞同其观点和对其真实性负责。如有侵犯您的版权,请联系 1565229909#qq.com(把#改成@),我们将立即处理。