帝国CMS模板判断当前页面是否为首页列表页和内容页的方法
<?php
if($navinfor['id'])
{
?>
这是内容页
<?php
}
elseif($GLOBALS['navclassid']==0)
{
?>
这是首页
<?php
}
elseif($GLOBALS['navclassid'])
{
?>
这是栏目页
<?php
}
else
{
?>
其它页面
<?php
}
?>
<?php
if($navinfor['id'])
{
?>
这是内容页
<?php
}
elseif($GLOBALS['navclassid']==0)
{
?>
这是首页
<?php
}
elseif($GLOBALS['navclassid'])
{
?>
这是栏目页
<?php
}
else
{
?>
其它页面
<?php
}
?> 帝国cms伪静态 nginxrewrite ^([^\.]*)/listinfo-(.+?)-(.+?)\.html$ $1/e/action/ListInfo/index.php?classid=$1&page=$2 last; rewrite ^...
帝国CMS内容页模板加环饶广告代码方法!一起来看看吧: <div id="ad">[phomead]广告ID[/phomead]</div><style type="text/css"><!--#ad {float: right;}--></s...
帝国cms专题页面点击率统计代码 专题访问浏览点击统计 <script src=[!--news.url--]e/public/onclick/?ztid=[!--self.classid--]&enews=dozt></script> 普通内容页 <scr...
帝国CMS更新整站内容提示:Table 'www_123_com.***_ecms_news_data_' doesn't exist...的解决办法! 相信很多使用帝国cms模板建站的朋友,都有遇到过类似的问题,那么这个是什么问题呢?其实这个是我们后台:871 文章id为871的文章删除了,但是表...
帝国cms模板里面怎么用灵动标签调用同级的栏目导航呢?同时判断显示当前栏目导航高亮! 调用代码:(注意:hover为判断当前高亮css样式) [e:loop={"select classname,classpath,classid from phome_enewsclass where bclas...
帝国cms模板里面不同会员组显示不同内容怎么实现? 具体调用代码如下: <?php if(getcvar('mlgroupid')<1) { ?> //游客看到的内容 <?php } elseif(getcvar('mlgroupid')==1) { ?&...