帝国cms灵动标签输出带序号的列表
[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={"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
- 上一篇
请问在留言板里面如何去掉邮箱这个表单?
修改e/enews/gbookfun.php文件,搜索“if(empty($bid)||empty($name)||empty($email)||!trim($lytext))”把他改成“if(empty($bid)||empty($name)||!trim($lytext))”
- 下一篇
教你怎么写帝国cms搜索功能
<form action="[!--news.url--]e/search/index.php" method="post" name="searchform" id="searchform"><table border="0" cellspacing="6" cellpadding="0"><tr><td&