大家都知道帝國CMS有一個自訂JS的功能,常應用於如搜尋頁面或其他時時動態顯示,雖然有這項功能但由於許多盆友不知道
SQL語句,根本無法使用,為此在這裡列出常用的幾種,希望對大家有幫助!
1,根据最新文章 select * from [!db.pre!]ecms_news where checked=1 order by newstime desc limit 10 2,根据推荐文章 select * from [!db.pre!]ecms_news where checked=1 and isgood=1 order by newstime desc limit 10 3,根据热门文章 select * from [!db.pre!]ecms_news where checked=1 order by onclick desc limit 10 4,根据头条新闻 select * from [!db.pre!]ecms_news where checked=1 and firsttitle=1 order by newstime desc limit 10 5,根据评论排行 select * from [!db.pre!]ecms_news where checked=1 order by plnum desc limit 10 6,根据digg排行 select * from [!db.pre!]ecms_news where checked=1 order by diggtop desc limit 10 7,根据投票排行 select * from [!db.pre!]ecms_news where checked=1 order by votenum desc limit 10 8,根据下载排行 select * from [!db.pre!]ecms_news where checked=1 order by totaldown desc limit 10 9,根据评分排行 select * from [!db.pre!]ecms_news where checked=1 order by infopfen desc limit 10
推薦學習《帝國cms教程》。
以上是分享帝國CMS自訂JS語句詳細整理的詳細內容。更多資訊請關注PHP中文網其他相關文章!