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

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

来源:帝国CMS模板网 作者:帝国CMS教程 时间:2014-06-27
浏览:3.7千+ 收藏 点赞(47)
简介: 灵动标签调用多个数据表信息的方法如下:[e:loop={select * from (select id,clasid,titleurl,filename,title,newstime,titlepic from phome_ecms_book where newstime union

灵动标签调用多个数据表信息的方法如下:

[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]
帝国CMS模板网 帝国CMS模板网(www.daixiao360.cn)长期承接帝国CMS模板定制,帝国CMS仿站,帝国CMS采集规则,帝国CMS插件,帝国CMS二次开发。