帝国CMS内容上下页页码调用方法集合
帝国CMS自带的内容页上下页模板变量上一篇:&#091;!--info.pre--]下一篇:&#091;!--info.next--]缺点:&#091;!--info.pre--] 和 &#091;!--info.next--] 中封装的 <a>标签的内容无法定制灵动标签+SQL语句[e:loop={"select ……
帝国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"> <?=$bqr[title]?></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"><?=$bqr[title]?></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>
- 上一篇
帝国cms搜索页模板关键字结果标题加红的方法
在搜索列表模板列表内容模板(list.var) (*)加上以下代码$searchid = $_GET['searchid'];$search=$empire->fetch1("select keyboard from {$dbtbpre}enewssearch where searchid=
- 下一篇
帝国7.5整合discuzX3.2同时登陆退出
帝国CMS7.5整合DiscuzX3.2完美实现同步登陆和退出1、首先参照下载帝国CMS7.5安装在网站根目录,同时安装完毕,另外在下载DiscuzX3.2到网站目录club文件夹。并安装完毕2、按照帝国论坛教程https://www.daixiao360.cn/jc/4