精華 帝國PHP系統CMS如何用靈動標簽調用當前文章的上下篇文章
<p>用帝國靈動標簽調用上下篇的方法:</p>
上一篇的標簽:
[e:loop={"select * from phome_ecms_news where id<'$navinfor[id]' and classid='$navinfor[classid]' and checked=1 order by id desc limit 1",1,24,0}] <a href="http://www.viagraonlinego.com/<?=$bqsr[titleurl]?>" title="<?=$bqr[title]?>" target="_blank"><?=$bqr[title]?></a> [/e:loop] 下一篇靈動標簽:
[e:loop={"select * from phome_ecms_news where id>'$navinfor[id]' and classid='$navinfor[classid]' and checked=1 order by id limit 1",1,24,0}] <a href="http://www.viagraonlinego.com/<?=$bqsr[titleurl]?>" title="<?=$bqr[title]?>" target="_blank"><?=$bqr[title]?></a> [/e:loop] 這個就是按當前文章的ID來判斷上下篇,大于當前信息ID就是下一篇,小于就是上一篇。表前綴可以改成自己的,然后這個是調用的新聞表的,其它表可以作相應的更改。 以上就是帝國系統用靈動標簽調用當前文章的上下篇文章的方法。