这里介绍下在帝国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])?>
|