您当前的位置:首页 > 网站建设 > 帝国cms
| php | asp | css | H5 | javascript | Mysql | Dreamweaver | Delphi | 网站维护 | 帝国cms | React | 考试系统 | ajax | jQuery |

帝国cms灵动标签如何调用模板变量

51自学网 2020-03-15 21:41:21
  帝国cms

帝国cms灵动标签如何调用模板变量?

很多新手朋友们都不知道帝国灵动标签中如何调用模板变量,其实很简单的,下面有个简单的示例,感兴趣的朋友可以参考下

 

推荐学习《帝国cms教程

代码如下:

1

2

3

4

5

6

7

[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灵动标签如何调用模板变量的详细内容,更多请关注php中文网其它相关文章!


下载地址:
帝国CMS二次开发之fetch()和fetch1()怎么用
帝国CMS灵动标签怎么实现标签无限嵌套
51自学网,即我要自学网,自学EXCEL、自学PS、自学CAD、自学C语言、自学css3实例,是一个通过网络自主学习工作技能的自学平台,网友喜欢的软件自学网站。
京ICP备13026421号-1