欢迎光临
我们一直在努力

帝国cms灵动标签中调用模板变量的方法

这篇文章主要介绍了帝国cms灵动标签中调用模板变量的方法,具有一定借鉴价值,需要的朋友可以参考下。希望大家阅读完这篇文章后大有收获。下面让小编带着大家一起了解一下。

帝国cms灵动标签中调用模板变量的方法

代码如下:

[e:loop={"select * from [!db.pre!]ecms_show_every where sid=".$navinfor[id]." order by id DESC limit 
100",100,24,0}]
<div class="pb_pic" style="display:none;width:310px;margin-left:2px;margin-right:2px;margin-bottom:4px;;height:
auto;
overflow:hidden;">
<div class="hid" style="display:none;position:absolute;margin-top:0px;z-index:2;width:310px;background:black;
color:
white;filter:alpha(opacity=80);-moz-opacity:0.8;opacity: 0.8;"><span class="title" ><a href="<?=$bqr
[titleurl]?>" 
target="_blank" title="<?=$bqr[title]?>" style="font-family:微软雅黑;font-size:15px;color:white;">&nbsp;&nbsp;
◆&nbsp;<?=$bqr[title]?></a></span><span style="float:right;font-size:15px;font-family:微软雅黑;color:white;">
<?=$bqr[author]?></span></div>
<a href="<?=$bqr[titleurl]?>" ><img style="width:310px;max-width:310px;" src='<?=$bqr[titlepic]?>' /></a>
<div class="hid2" style="display:none;position:absolute;margin-top:-20px;z-index:2;height:20px;line-height:20px;
width:310px;background:black;color:white;filter:alpha(opacity=80);-moz-opacity:0.8;opacity: 0.8;"><span 
class="info infoText" style="font-family:微软雅黑;font-size:15px;color:white;"><span style="float:left;
margin-left:5px;"><span >点击:<span><?=$bqr[onclick]?></span></span></span><span style="float:right;margin-right:
5px;"><span >时间:<span><?=date("Y-m-d",$bqr[newstime])?></span></span></span></span></div>
</div>
[/e:loop]

感谢你能够认真阅读完这篇文章,希望小编分享帝国cms灵动标签中调用模板变量的方法内容对大家有帮助,同时也希望大家多多支持云搜网,关注云搜网行业资讯频道,遇到问题就找云搜网,详细的解决方法等着你来学习!

赞(0)
【声明】:本博客不参与任何交易,也非中介,仅记录个人感兴趣的主机测评结果和优惠活动,内容均不作直接、间接、法定、约定的保证。访问本博客请务必遵守有关互联网的相关法律、规定与规则。一旦您访问本博客,即表示您已经知晓并接受了此声明通告。