易仿帝国yfdiguo.com

您当前的位置:首页 > 问题库

帝国CMS灵动标签调用专题信息

zcmcss发表于2017-12-11问题库
帝国CMS内置的专题调用标签总是不理想,调用不方便,还是灵动标签调用来得方便实在。
代码:
[e:loop={'select ztid,ztname,ztimg,maxnum,intro,onclick,ztpath from [!db.pre!]enewszt where showzt=1 order by ztid limit 8',10,24,0}]
<li>
<div class="i"><a href="<?=$public_r[newsurl]?><?=$bqr[ztpath]?>" target="_blank"><img src="<?=$bqr[ztimg]?>" alt="<?=$bqr[ztname]?>" width="150px" height="100px" /></a></div>
<div class="t"><a href="<?=$public_r[newsurl]?><?=$bqr[ztpath]?>" target="_blank"><?=$bqr[ztname]?></a></div>
<div class="s"><?=$bqr[intro]?></div>
<div class="s"><span class="l"><?=$bqr[onclick]?>次点击</span><span class="fr"><?=$bqr[maxnum]?>首</span></div>
</li>
[/e:loop]

 enewszt 为专题表,要调用专题什么信息就查询什么字段。
showzt=1 为专题分类ID,如要调用多个专类分类, showzt=1 改成:showzt in(1,2,3,4,5,6,7)

热门问题

©2017 易仿帝国yfdiguo.com


友情链接: 阿里云优惠网| 阿里云推荐码| 阿里云教程| 莫愁博客|
♥ www.yfdiguo.com
联系作者QQ: