帝国CMS自带模板变量 上一篇:

帝国CMS自带模板变量

上一篇:[!--info.pre--]
下一篇:[!--info.next--]
上一篇:[!--info.pre--] 下一篇:[!--info.next--]

缺点:[!–info.pre–] 和 [!–info.next–] 中封装的 <a>标签的内容无法定制
灵动标签+SQL语句

[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]?>" rel="external nofollow" rel="external nofollow" title="上一篇:<?=$bqr[title]?>" target="_blank"></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]?>" rel="external nofollow" rel="external nofollow" title="下一篇<?=$bqr[title]?>" target="_blank"></a>
[/e:loop]
[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]?>" rel="external nofollow" rel="external nofollow" title="上一篇:<?=$bqr[title]?>" target="_blank"> ☜&nbsp; </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]?>" rel="external nofollow" rel="external nofollow" title="下一篇<?=$bqr[title]?>" target="_blank">☞</a> [/e:loop]

纯灵动标签

[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 "下一篇:很抱歉没有了";
}
?>
[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 "下一篇:很抱歉没有了"; } ?>

动态调用

<a href="/e/public/GotoNext?classid=[!--self.classid--]&id=[!--id--]&enews=pre" rel="external nofollow" >上一篇文章</a>
<a href="/e/public/GotoNext?classid=[!--self.classid--]&id=[!--id--]&enews=next" rel="external nofollow" >下一篇文章</a>
<a href="/e/public/GotoNext?classid=[!--self.classid--]&id=[!--id--]&enews=pre" rel="external nofollow" >上一篇文章</a> <a href="/e/public/GotoNext?classid=[!--self.classid--]&id=[!--id--]&enews=next" rel="external nofollow" >下一篇文章</a>

 

温馨提示:本文最后更新于 2022-03-02 10:47 ,某些文章具有时效性,若有错误或已失效,请在下方留言或联系QQ:5288293
声明:
1.本站大部分内容均收集于网络!若内容若侵犯到您的权益,请发送邮件至:5288293@qq.com,我们将第一时间处理!
2.资源所需价格并非资源售卖价格,是收集、整理、编辑详情以及本站运营的适当补贴,并且本站不提供任何免费技术支持
3.所有资源仅限于参考和学习,版权归原作者所有,更多请阅读网站声明
帝国CMS教程

帝国CMS导航栏js高亮当前栏目,使用JS方法修改改造适用于分类写死的模板

2022-3-2 5:47:22

帝国CMS教程

帝国cms灵动标签调用时间日期显示格式

2022-3-2 10:47:21

  • 0 条回复 A文章作者 M管理员
    欢迎您,新朋友,感谢参与互动!
      暂无讨论,说说你的看法吧
    购物车
    优惠劵
    今日签到
    私信列表
    搜索

    夕阳无别事,等风也等你

    联系我们