5分钟搞懂帝国cms 7调用专题信息的方法

使用帝国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 href="<?=$bqsr['titleurl']?>/" class="pic"><img src="/loading.gif"" _src="<?=$bqr
['titlepic'
]?>" alt="<?=$bqr['title']?>" /></a><span><a href="<?=$bqsr['titleurl']?>/" target="_blank" class="yellow">
<?=$bqr
['state']?></a></span></p><a href="<?=$bqsr['titleurl']?>/" title="<?=$bqr['title']?>"><?=$bqr['title']?></a>
</li>
[/e:indexloop]

测试可用

推荐学习《帝国cms教程》


5分钟搞懂帝国cms 7调用专题信息的方法

声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。