Home > Article > CMS Tutorial > How to call template variables in imperial cms smart tags
How do empire cms smart tags call template variables?
Many novice friends don’t know how to call template variables in the Empire Smart tag. In fact, it is very simple. Here is a simple example. Interested friends can refer to it
It is recommended to study "Empire cms tutorial"
The code is as follows:
[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> ◆ <?=$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]
The above is the detailed content of How to call template variables in imperial cms smart tags. For more information, please follow other related articles on the PHP Chinese website!