本文整理自网络,侵删。
使用帝国cms默认的调用不了推荐信息
就直接写个sql来调用吧
代码如下:
[e:indexloop={'select a.* from phome_ecms_movie a,phome_enewsztinfo b where a.id=b.id and a.isgood>0 and (b.ztid=2 or b.ztid=3) order by newstime desc limit 10',10,11,'','',''}]
<li><p class="cover"><a class="pic"><img src="/loading.gif"" _src="<?=$bqr['titlepic']?>" alt="<?=$bqr['title']?>" /></a><span><a target="_blank" class="yellow"><?=$bqr['state']?></a></span></p><a title="<?=$bqr['title']?>"><?=$bqr['title']?></a></li>
[/e:indexloop]
[e:indexloop={'select a.* from phome_ecms_movie a,phome_enewsztinfo b where a.id=b.id and a.isgood>0 and (b.ztid=2 or b.ztid=3) order by newstime desc limit 10',10,11,'','',''}]
<li><p class="cover"><a class="pic"><img src="/loading.gif"" _src="<?=$bqr['titlepic']?>" alt="<?=$bqr['title']?>" /></a><span><a target="_blank" class="yellow"><?=$bqr['state']?></a></span></p><a title="<?=$bqr['title']?>"><?=$bqr['title']?></a></li>
[/e:indexloop]
测试可用
更多技术内容来自木庄网络博客
标签:帝国CMS
相关阅读 >>
帝国CMS后台fckeditor编辑器兼容ie10的方法汇总
帝国CMS内容页模板把当前文章发布时间改成年月号星期几显示方式
帝国CMS灵动标签调用昨天、今天、某天、某天以前、某天以后发布的文章
更多相关阅读请进入《帝国CMS》频道 >>