使用帝国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 7 调用专题信息的方法的详细内容...
声明:本文来自网络,不代表【好得很程序员自学网】立场,转载请注明出处:http://www.haodehen.cn/did188227