帝国cms手机端WAP中内容页模板调用栏目缩略图和栏目简介方法
这里介绍下在帝国cms手机端WAP中内容页模板调用栏目缩略图和栏目简介方法,代码如下:<?php$cr=$empire->fetch1("select&#160;classimg&#160;from&#160;{$dbtbpre}enewsclass&#160;where&#160;classid='".$r['classid'].……
这里介绍下在帝国cms手机端WAP中内容页模板调用栏目缩略图和栏目简介方法,代码如下:
<?php$cr=$empire->fetch1("select classimg from {$dbtbpre}enewsclass where classid='".$r['classid']."' limit 1");?>栏目缩放图:<img src="<?=$cr[classimg]?>"><?$classr=$empire->fetch1("select intro from {$dbtbpre}enewsclass where classid='".$navinfor[classid]."' limit 1");?>栏目简介:<?=DoWapRepNewstext($classr[intro])?>
- 上一篇
帝国CMS灵动标签SQL调用同时调用多条广告
这个方法并不是很实用,因为不如JS直接调用来的方便,但是用在一些特殊需求里是可以的,写以下代码留待有需要的小伙伴参考!用:select * from phome_enewsad where adid in (广告ID1,广告ID2,....)实例:[e:loop={"select * fro
- 下一篇
帝国cms模板中会员空间调用会员栏目投稿数量的方法!
帝国cms使用以下代码可以使会员空间调用会员栏目投稿数量的代码如下:<?php//teststartrequire("../data/dbcache/class.php");$class_total=array();foreach($class_ras$classid=>$v){//只列出终极栏目if($class_r[$cl