帝国cms模板中会员空间调用会员栏目投稿数量的方法!
帝国cms使用以下代码可以使会员空间调用会员栏目投稿数量的代码如下:<?php//teststartrequire("../data/dbcache/class.php");$class_total=array();foreach($class_ras$classid=>$v){//只列出终极栏目if($class_r[$cl……
帝国cms使用以下代码可以使会员空间调用会员栏目投稿数量的代码如下:
<?php//teststartrequire("../data/dbcache/class.php");$class_total=array();foreach($class_ras$classid=>$v){//只列出终极栏目if($class_r[$classid]){$class_total[$classid]=$empire->gettotal("selectcount(*)astotalfrom{$dbtbpre}ecms_".$class_r[$classid][tbname]."whereclassid='$classid'anduserid='$userid'andismember=1");if($class_total[$classid]==0){continue;}//现在直接输出测试你也可以用数组其他地方调用echo"栏目ID:$classid投稿数量:$class_total[$classid]<br>";}}//testend?>
- 上一篇
帝国cms手机端WAP中内容页模板调用栏目缩略图和栏目简介方法
这里介绍下在帝国cms手机端WAP中内容页模板调用栏目缩略图和栏目简介方法,代码如下:<?php$cr=$empire->fetch1("select classimg from {$dbtbpre}enewsclass where classid='".$r['classid'].
- 下一篇
帝国cms 7.0版返回首页带.index.html的解决办法
帝国CMS模板的 返回首页 会带有 index.html 后缀。通过以下方法修改可去掉index.html找到e/class/connect.php文件查找://返回首页地址function ReturnSiteIndexUrl(){ global $public_r; if($public_r['indexpa