要实现排行榜,基本逻辑是现在的时间减去以前的时间,然后其中的时间段就是我们所需要的排序时间,代码如下:年榜的实现方法:[e:loop={"select * from phome_ecms_news where newstime>UNIX_TIMESTAMP()-86400*365 order by onclick desc limit 10",10,24,0}]
...
帝国cms灵动标签同时调用头条(1级、2级)、推荐(1级、2级)方法1、同时调用头条(1级、2级)、推荐(1级、2级)[e:loop={0,10,3,0,'isgood=1 or firsttitle=1 orisgood=2 or firsttitle=2'}]
<a href="<?=$bqsr['titleurl']?>" target="...
帝国CMS,万能标签或者灵动标签,调用某一栏目,指定时间内的所有信息。例如调用2020年的所有信息,SQL语句如下:select * from [!db.pre!]ecms_news where newstime>=UNIX_TIMESTAMP('2020-01-01 00:00:01') and newstime<=UNIX_TIMESTAMP('2020-12-31 23:5...