温馨提示×

温馨提示×

您好,登录后才能下订单哦!

密码登录×
登录注册×
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》

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

发布时间:2020-08-17 15:48:42 来源:亿速云 阅读:141 作者:小新 栏目:建站服务器

这篇文章主要介绍了帝国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;"><b>&nbsp;&nbsp;◆&nbsp;<?=$bqr[title]?></b></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灵动标签调用模板变量的方法内容对大家有帮助,同时也希望大家多多支持亿速云,关注亿速云行业资讯频道,遇到问题就找亿速云,详细的解决方法等着你来学习!

向AI问一下细节

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

AI