帝国CMS模板内容页上下翻页页码调用方法集合
帝国CMS自带模板变量上一篇:&#091;!--info.pre--]下一篇:&#091;!--info.next--]缺点:&#091;!--info.pre--] 和 &#091;!--info.next--] 中封装的 <a>标签的内容无法定制灵动标签+SQL语句[e:loop={"select*from[!db.pre!]e……
帝国CMS自带模板变量
上一篇:[!--info.pre--]
下一篇:[!--info.next--]
缺点:[!--info.pre--] 和 [!--info.next--] 中封装的 <a>标签的内容无法定制
灵动标签+SQL语句
[e:loop={"select*from[!db.pre!]ecms_newswhereid<'$navinfor[id]'andclassid='$navinfor[classid]'orderbyiddesclimit1",1,24,0}]上一篇:<ahref="<?=$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}]下一篇:<ahref="<?=$bqsr[titleurl]?>"title="下一篇<?=$bqr[title]?>"target="_blank">☞</a>[/e:loop]
纯灵动标签
[e:loop={'selfinfo',1,0,0,'id<'.$navinfor[id].'','iddesc'}]<ahref="<?phpecho$bqsr[titleurl];$pre='true';?>">上一篇:<?=$bqr[title]?></a>[/e:loop]<?phpif(empty($pre)){echo"上一篇:很抱歉没有了";}?>[e:loop={'selfinfo',1,0,0,'id>'.$navinfor[id].'','idasc'}]<ahref="<?phpecho$bqsr[titleurl];$next='true';?>">下一篇:<?=$bqr[title]?></a>[/e:loop]<?phpif(empty($next)){echo"下一篇:很抱歉没有了";}?>
动态调用
<ahref="/e/public/GotoNext?classid=[!--self.classid--]&id=[!--id--]&enews=pre">上一篇文章</a><ahref="/e/public/GotoNext?classid=[!--self.classid--]&id=[!--id--]&enews=next">下一篇文章</a>
- 上一篇
phome_enewsnotcj 数据表字段解释(防采集字符表)
字段名类型解释附加说明idsmallint(5)ID wordtext防采集字符内容
- 下一篇
帝国CMS灵动标签调用昨天、今天、某天、某天以前、某天以后发布的文章
昨天发布的10篇文章<?php$beginYesterday=mktime(0,0,0,date('m'),date('d')-1,date('Y'));$endYesterday=mktime(0,0,0,date('m'),date('d'),date('Y'))-1;?>[e:lo