一: 动态调用上一篇下一篇链接
<a href=”[!–news.url–]e/public/GotoNext?classid=[!–classid–]&id=[!–id–]&enews=pre”>上一篇</a> 动态调用上一篇链接 <a href=”[!–news.url–]e/public/GotoNext?classid=[!–classid–]&id=[!–id–]&enews=next”>下一篇</a> 动态调用下一篇链接 二: 运用灵动标签和SQl语句调用(感谢 平凡妹子) 上一篇链接: [e:loop={“select id,classid,newspath,filename,groupid,titleurl from [!db.pre!]ecms_”.$class_r[$navinfor[classid]][‘tbname’].” where id<“.$navinfor[id].” and classid=”.$navinfor[classid].” and checked=1 order by id desc limit 1″,1,24,0}] <?php $titleurl=sys_ReturnBqTitleLink($bqr); echo $titleurl; [/e:loop] 下一篇链接:(把小于号改成大于号) [e:loop={“select id,classid,newspath,filename,groupid,titleurl from [!db.pre!]ecms_”.$class_r[$navinfor[classid]][‘tbname’].” where id>”.$navinfor[id].” and classid=”.$navinfor[classid].” and checked=1 order by id desc limit 1″,1,24,0}] <?php $titleurl=sys_ReturnBqTitleLink($bqr); echo $titleurl; [/e:loop] 三: 运用灵动标签调用,比较简洁的方式(感谢 落木萧萧) <!–上一篇–> [e:loop={‘selfinfo’,1,0,0,’id<‘.$navinfor[id].”,’id desc’}] <a href=”<?php %20echo%20$bqsr[titleurl]; %20$pre=’true’; %20?>”>上一篇:<?=$bqr[title]?> </a> [/e:loop] <?php if(empty($pre)){ echo “上一篇:很抱歉没有了”; } ?> <!–下一篇–> [e:loop={‘selfinfo’,1,0,0,’id>’.$navinfor[id].”,’id asc’}] <a href=”<?php %20echo%20$bqsr[titleurl]; %20$next=’true’; %20?>”>下一篇:<?=$bqr[title]?> </a> [/e:loop] <?php if(empty($next)){ echo “下一篇:很抱歉没有了”; } ?> 四: 控制上一篇下一篇标题字数截取30个字符为例 运用:<?=esub($bqr[title],30)?> <!–上一篇–> [e:loop={‘selfinfo’,1,0,0,’id<‘.$navinfor[id].”,’id desc’}] <a href=”<?php %20echo%20$bqsr[titleurl]; %20$pre=’true’; %20?>”>上一篇: <?=esub($bqr[title],30)?></a> [/e:loop] <?php if(empty($pre)){ echo “上一篇:很抱歉没有了”; } ?> <!–下一篇–> [e:loop={‘selfinfo’,1,0,0,’id>’.$navinfor[id].”,’id asc’}] <a href=”<?php %20echo%20$bqsr[titleurl]; %20$next=’true’; %20?>”>下一篇:<?=esub($bqr[title],30)?> </a> [/e:loop] <?php if(empty($next)){ echo “下一篇:很抱歉没有了”; } ?>
常见问题FAQ
- 免费下载或者VIP会员专享资源能否直接商用?
- 本站所有资源版权均属于原作者所有,这里所提供资源均只能用于参考学习用,请勿直接商用。若由于商用引起版权纠纷,一切责任均由使用者承担。更多说明请参考 VIP介绍。
- 提示下载完但解压或打开不了?
- 找不到素材资源介绍文章里的示例图片?
- 晴天seo