帝国cms模板中调用指定关键词的文章
亲测,帝国CMS任意版本可以通用!属于SQL查询直接输出!话不多说,下面直接贴实例代码:[e:loop={"select*fromphome_ecms_newswheretitlelike&#39;%免费资源网%&#39;andchecked=1orderbynewstimedesclimit10",10,24,0}]<ahre……
亲测,帝国CMS任意版本可以通用!属于SQL查询直接输出!话不多说,下面直接贴实例代码:
[e:loop={"select*fromphome_ecms_newswheretitlelike'%免费资源网%'andchecked=1orderbynewstimedesclimit10",10,24,0}]<ahref="<?=$bqsr[titleurl]?>"target="_blank"><?=$bqr[title]?></a><br>[/e:loop]标签关键词指定文章
- 上一篇
帝国cms调用会员发布相关信息列表
介绍下帝国cms会员发布相关信息列表的调用方法以下是调用标签代码<?php$sql=$empire->query("select * from phome_ecms_recruitment where userid='$navinfor[userid]' and classid=29 order by newstime as
- 下一篇
帝国CMS灵动标签判断字段为某值
帝国CMS灵动标签判断字段为某值,然后在做对应处理。<?if($navinfor[dj]=="A+"){echo'<imgsrc="[!--news.url--]images/ylc_pro_level_AJ.png"alt="A+级认证">';}elseif($navinfor[dj]=="A"){echo'<im