帝国cms关于自带样式的上一篇下一篇灵动标签调用方法
2024-05-25 08:51:45
建站教程
41
上一篇:[!--info.pre--] 下一篇:[!--info.next--] 缺点:[!--info.pre--] 和 [!--info.next--] 中封装的 标签的内容无法定制
|
1
2
3
4
5
6
7 |
[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}]上一篇:<li><a href="<?=$bqsr[titleurl]?>" title="上一篇:<?=$bqr[title]?>" target="_blank"><?=$bqr[title]?></a></li>[/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}]下一篇:<li><a href="<?=$bqsr[titleurl]?>" title="下一篇<?=$bqr[title]?>" target="_blank"><?=$bqr[title]?></a></li>[/e:loop] |
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26 |
纯灵动标签(来自网络未验证)[e:loop={'selfinfo',1,0,0,'id<'.$navinfor[id].'','id desc'}]<a href="<?php echo $bqsr[titleurl];$pre='true';?>">上一篇:<?=$bqr[title]?></a>[/e:loop]<?php if(empty($pre)){echo "上一篇:很抱歉没有了";}?>[e:loop={'selfinfo',1,0,0,'id>'.$navinfor[id].'','id asc'}]<a href="<?php echo $bqsr[titleurl];$next='true';?>">下一篇:<?=$bqr[title]?></a>[/e:loop]<?php if(empty($next)){echo "下一篇:很抱歉没有了";}?> |
赞一个
()
相关文章
广告

微信收款码
支付宝收款码