温馨提醒

如果文章内容或图片资源失效,请留言反馈,我们会及时处理,谢谢!

本文最后更新于2020年12月16日,已超过 30天没有更新

帝国CMS自带模板变量

上一篇:[!--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]?>" title="上一篇:<?=$bqr[title]?>" target="_blank">  &#9756;&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]?>" title="下一篇<?=$bqr[title]?>" target="_blank">&#9758;</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 "下一篇:很抱歉没有了";  }  ?>

动态调用

  <a href="/e/public/GotoNext?classid=[!--self.classid--]&id=[!--id--]&enews=pre">上一篇文章</a>  <a href="/e/public/GotoNext?classid=[!--self.classid--]&id=[!--id--]&enews=next">下一篇文章</a>
版权声明:原创作品,未经允许不得转载,否则将追究法律责任。
本站资源有的自互联网收集整理,如果侵犯了您的合法权益,请联系本站我们会及时删除。
本站资源仅供研究、学习交流之用,若使用商业用途,请购买正版授权,否则产生的一切后果将由下载用户自行承担。
本文链接:悟空资源网https://www.wkzyw.com/3018.html
许可协议:《署名-非商业性使用-相同方式共享 4.0 国际 (CC BY-NC-SA 4.0)》许可协议授权