帝国CMS列表页及内容页调用显示收藏数量
更新时间:2015年12月29日 19:35 点击:1609
帝国CMS列表页及内容页,是没有收藏数量调用标签的,但万能的帝国CMS,使用PHP代码就能调用出来。
列表页:
$scs=$empire->gettotal("select count(*) as total from phome_enewsfava where id='$r[id]' and classid='$r[classid]'"); $listtemp='收藏数:'.$scs;
内容页:
gettotal("select count(*) as total from phome_enewsfava where id='$navinfor[id]' and classid='$navinfor[classid]'");?>
相关文章
- <?phprequire("class/connect.php");include("class/db_sql.php");include("config/config.php");include("data/dbcache/class.php");$link=db_connect();$empire=new mysq...2016-05-19
- 帝国CMS一直以来升级没有提供内容分页的上一页标签功能,只有一个:内容页下一页[!--next.page--] 标签!所以下面就是要改造一下这个标签,实现内容页上一页的功能! 步骤如下:...2016-05-08
- ...2015-12-29
- 将下面代码复制到列表内容模板(list.var),记得要选列表页:使用程序代码 复制代码代码如下: $nsmalltext=$r[smalltext]; $ntext=strip_tags($nsmalltext);//去除内容简介...2015-12-30
- 如何在内容页调用该会员所发的文章数?<?=$empire->gettotal(“select count(*) as total from phome_ecms_news where userid=’$navinfor[userid]‘ and ismember=1″)?>...2015-12-30