帝国CMS内容页模板用灵动标签实现上一页下一页调用的方法!
帝国内容页里的默认上下页调用标签,不能单独的设置独立的样式,经过分析好在可以用灵动标签实现!话不多说,直接贴实例,大家自行套用即可!
上一页:
[e:loop={"select * from [!db.pre!]ecms_news where id<'$navinfor[id]' and classid='$navinfor[classid]' order by id desc limit 1",1,24,0}]
<a href='<?=$bqsr[titleurl]?>'><?=$bqr[title]?></a>
[/e:loop]下一页:
[e:loop={"select * from [!db.pre!]ecms_news where id>'$navinfor[id]' and classid='$navinfor[classid]' order by id limit 1",1,24,0}]
<a href='<?=$bqsr[titleurl]?>' ><?=$bqr[title]?></a>
[/e:loop]© 版权声明
文章版权归作者所有,未经允许请勿转载。
THE END
喜欢就支持以下吧





