欢迎光临
我们一直在努力

帝国cms用灵动标签调用全站所有数据表最新信息的方法

[e:loop={'select * from (
select id,classid,titleurl,filename,title,newstime,titlepic from phome_ecms_book where newstime union
select id,classid,titleurl,filename,title,newstime,titlepic from phome_ecms_course where newstime union
select id,classid,titleurl,filename,title,newstime,titlepic from phome_ecms_soft where newstime union
select id,classid,titleurl,filename,title,newstime,titlepic from phome_ecms_game where newstime union
select id,classid,titleurl,filename,title,newstime,titlepic from phome_ecms_js where newstime union
select id,classid,titleurl,filename,title,newstime,titlepic from phome_ecms_templet where newstime union
select id,classid,titleurl,filename,title,newstime,titlepic from phome_ecms_mv where newstime union
select id,classid,titleurl,filename,title,newstime,titlepic from phome_ecms_news where newstime) a order by newstime desc limit 7',7,24,0}]
<li><b><?=$bqno?></b><div><a href="<?=$bqsr[classurl]?>" target="_blank">[<?=$bqsr[classname]?>]</a></div><a href="<?=$bqsr['titleurl']?>" class="gxone" target="_blank"><?=$bqr['title']?></a></li>
[/e:loop]

 

调用所有的模型,也可以指定某个模型字段。

赞(0) 打赏
未经允许不得转载:新起点博客 » 帝国cms用灵动标签调用全站所有数据表最新信息的方法


关注公众号『新起点软件管家』

获取最新网络资源及破解软件!
带你玩转各样软件...

评论 抢沙发

评论前必须登录!

 

觉得文章有用就打赏一下文章作者

非常感谢你的打赏,我们将继续给力更多优质内容,让我们一起创建更加美好的网络世界!

支付宝扫一扫打赏

微信扫一扫打赏