本文整理自网络,侵删。
大家好,来自木庄网络博客分享
使用帝国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]
测试可用
更多内容尽在木庄网络博客(www.1000zx.cn)
标签:帝国CMS
相关阅读 >>
帝国CMS7.0实现微博群发功能插件教程(支持28个微博平台支持定时发布)
在php代码中调用帝国CMS头部变量temp.header的方法
更多相关阅读请进入《帝国CMS》频道 >>
相关推荐
评论
管理员已关闭评论功能...
- 欢迎访问木庄网络博客
- 可复制:代码框内的文字。
- 方法:Ctrl+C。