帝国CMS自带有会员列表调用函数,点击查看,
不过有时调用不太方便,于是就想到使用万能的灵动标签来调用:示例代码如下:[e:loop={"select u.username,u.userid,userpic,mycall,ui.company from phome_enewsmember u LEFT JOI…
希望在会员中心首页,调用显示会员总共投稿发布了多少篇信息,以帝国CMS7.0为例,代码如下:<?=$empire->gettotal("select count(*) as total from phome_ecms_info where userid='$user[userid]' ")?>这是根据数据表查询调…
可以实现,调用最新300条信息中点中率最高的2条信息,而不是所有信息。[e:loop={'select * from (select a.id,a.title,a.newspath,a.newstime,b.classpath,b.classname,b.filetype,a.onclick,a.smalltext from '.$dbtbpr…
通过以下方法可以在帝国CMS子栏目页调用父栏目的自定义字段内容:<?phpglobal $empire;$r=$empire->fetch1("select * from phome_enewsclassadd where classid=".$class_r[$GLOBALS[navclassid]][bclassid]."");echo $…
因为帝国CMS 7.0信息页不再有ztid字段,所以直接是查询不到的,但是可以用灵动标签sql调用,具体调下方法如下:灵动标签sql调用:select ztid from phome_enewsztinfo where classid='$navinfor[classid]' and id='$navinfor[i…
软件总下载数: <?=$empire->gettotal("select sum(totaldown) as total from phome_ecms_download")?>文章总浏览数:
<?=$empire->gettotal("select sum(onclick) as total from phome_ecms_news")?>…