帝国cms灵动标签中如何调用模板变量
代码如下:
[e:loop={"select * from [!db.pre!]ecms_show_every where sid=".$navinfor[id]." order by id DESC limit 100",100,24,0}]
<div>
<div><span ><a href="<?=$bqr[titleurl]?>" target="_blank" title="<?=$bqr[title]?>"><b> ◆ <?=$bqr[title]?></b></a></span><span><?=$bqr[author]?></span></div>
<a href="<?=$bqr[titleurl]?>" ><img src='<?=$bqr[titlepic]?>' /></a>
<div><span><span><span >点击:<span><?=$bqr[onclick]?></span></span></span><span><span >时间:<span><?=date("Y-m-d",$bqr[newstime])?></span></span></span></span></div>
</div>
[/e:loop]
本文由主机测评网发布,不代表主机测评网立场,转载联系作者并注明出处:https://zhuji.jb51.net/diguocms/6884.html