判断会员是否登录
<?php if(!$_COOKIE[ecmsmlusername]){ $srr="登录可见"; }else{ $srr="[]"; } ?>
[]skin/default/ [e:loop={"select classid,classname,bname from phome_enewsclass where classid='$GLOBALS[navclassid]'",1,24,0}]<title><?=$bqr[bname]?></title>[/e:loop] [e:loop={"select * from phome_enewsclass where classid='$GLOBALS[navclassid]'",1,24,0}]<title><?=$bqr[bname]?></title>[/e:loop] <?php $fcr=explode('|',$class_r[$GLOBALS[navclassid]][featherclass]); $topbclassid=$fcr[1]?$fcr[1]:$GLOBALS[navclassid];//取得当前栏目的顶级栏目ID $rs=$empire->fetch1("select * from phome_enewsclass where classid=$topbclassid"); ?> _<?=$rs['bname']?>_<?=$public_r[sitename]?> 顶级栏目名称+网站标题 <?=$class_r[$GLOBALS[navclassid]][bname]?> 得到当前栏目的名称 <title>[] </title> 或 <title><?=$class_r[$GLOBALS[navclassid]][bname]?></title> <meta name="keywords" content="[]" /> <meta name="description" content="[]" />
isgood=1 一级推荐 firsttitle=1 一级头条 [e:loop={10,3,0,0}] 10当前栏目,3显示条数, [e:loop={4,1000,0,1,'leib="楼市快讯"','id DESC'}] 1有图片的显示。 [e:loop={"select * from phome_ecms_xtgg where firsttitle=1 order by id DESC limit 20",6,24,0}] <?=$bqno?> [] 循环序号 <?=$bqsr['titleurl']?> <?=$bqr[title]?> <?=esub($bqr[title],8)?> [/e:loop]
<?=DoWapRepNewstext($r[newstext])?>
时间调用标签:<",$bqr['newstime'])?>
列表页
您当前的位置:[]
[]
[]
内容页
[]下一篇 []上一篇
万能标签用[] 灵动标签用<?=$bqr[onclick]?> 点击量
复制代码 代码如下:
$titleurl=sys_ReturnBqTitleLink($navinfor); 获得当前页面的网址
$url = "http://".$_SERVER ['HTTP_HOST'].$_SERVER['PHP_SELF']; 获得当前页面的网址
sql语句
复制代码 代码如下:
<?php
//报名人数
$num=$empire->gettotal("select count(*) as total from phome_enewsfeedback where kft='".$navinfor[title]."'");
?>
帝国CMS经常用到的调用sql语句:
请注意,如果是帝国7.0版本的,需要将checked=1去掉
复制代码 代码如下:
1,根据最新文章 select * from [!db.pre!]ecms_news where checked=1 order by newstime desc limit 10