帝国CMS自带模板变量
1 2 | 上一篇:[!--info.pre--] 下一篇:[!--info.next--] |
缺点:[!--info.pre--] 和 [!--info.next--] 中封装的 <a>标签的内容无法定制
灵动标签+SQL语句
1 2 3 4 5 6 | [e:loop={ "select*from[!db.pre!]ecms_newswhereid<'$navinfor[id]'andclassid='$navinfor[classid]'orderbyiddesclimit1" ,1,24,0}] 上一篇:<arel= "nofollow noopener noreferrer" href= "<?=$bqsr[titleurl]?>" title= "上一篇:<?=$bqr[title]?>" target= "_blank" >☜ </a> [/e:loop] [e:loop={ "select*from[!db.pre!]ecms_newswhereid>'$navinfor[id]'andclassid='$navinfor[classid]'orderbyidlimit1" ,1,24,0}] 下一篇:<arel= "nofollow noopener noreferrer" href= "<?=$bqsr[titleurl]?>" title= "下一篇<?=$bqr[title]?>" target= "_blank" >☞</a> [/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 | [e:loop={ 'selfinfo' ,1,0,0, 'id<' . $navinfor [id]. '' , 'iddesc' }] <arel= "nofollow noopener noreferrer" 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]. '' , 'idasc' }] <arel= "nofollow noopener noreferrer" href="<?php echo $bqsr [titleurl]; $next = 'true' ; ?>">下一篇:<?= $bqr [title]?> </a> [/e:loop] <?php if ( empty ( $next )){ echo "下一篇:很抱歉没有了" ; } ?> |
动态调用
1 2 | <arel= "nofollow noopener noreferrer" href= "/e/public/GotoNext?classid=[!--self.classid--]&id=[!--id--]&enews=pre" >上一篇文章</a> <arel= "nofollow noopener noreferrer" href= "/e/public/GotoNext?classid=[!--self.classid--]&id=[!--id--]&enews=next" >下一篇文章</a> |
本文帝国CMS翻页 上一页下一页调用方法集合到此结束。气不和时少说话,出言必失;心不顺时莫处事,行事必败。事莫虚应,应则必办,不办便怨;愿莫轻许,许愿必还,不还成债。万物为说法,关键在着眼;一切是考验,用心才有为。知足是富人,平常是高人,无心是圣人。想开了自然微笑,看破了肯定放下。小编再次感谢大家对我们的支持!