本文整理自网络,侵删。
使用帝国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
相关阅读 >>
phpcms和帝国CMS二次开发优缺点分析及站长如何适合自己的cms 推荐
更多相关阅读请进入《帝国CMS》频道 >>
相关推荐
评论
管理员已关闭评论功能...
- 欢迎访问木庄网络博客
- 可复制:代码框内的文字。
- 方法:Ctrl+C。