帝国专题调用
方法一:
<div class="ztlist">
[e:loop={"select * from {$dbtbpre}enewszt order by myorder asc limit 2",0,24,0}]
<li>
<div class="absolute cfson_nav ">
<div class="cfson_imgbox"><a href="<?=$bqr['ztpath']?>"><img src="<?=$bqr['ztimg']?>" alt="<?=$bqr['ztname']?>"/></a></div>
<p class="p4"><a href="<?=$bqr['ztpath']?>"><?=$bqr['ztname']?> ——专题</a></p>
</div>
</li>
[/e:loop]
</div>
方法二:
1
2
3
|
[e:loop={ 'select ztid,ztname,ztpath from [!db.pre!]enewszt where showzt=0 order by ztid limit 10' ,10,24,0}] <li><a href= "<?=$public_r[newsurl]?><?=$bqr[ztpath]?>" title= "<?=$bqr[ztname]?>" ><?= $bqr [ztname]?></a></li> [/e:loop] |
专题路径:<?=$bqr[ztpath]?>
专题名称:<?=$bqr[ztname]?>
专题图片:<?=$bqr[ztimg]?>
专题介绍:<?=$bqr[intro]?>