使用灵动标签SQL调用: 示例代码: [e:loop={'select * from 前缀_cn_enewsfile_1 order by fileid desc limit 10',10,24,0}] 文件名:<<...
[e:loop={'news',10,18,0,"title like '%".$class_r[$GLOBALS['navclassid']]['classname']."%'",""}] <a target="_blank"...
判断内容页正文是否包含图片,若无图片则显示广告: <?php $string = $navinfor['newstext']; // 内容字段 $some = "<img "; $num = explode($some,...
插入PHP代码: 在模板对应位置插入以下代码: <?php include(ECMS_PATH.'header.html'); ?> 文件路径: header.html是HTML页面的名称,根据实际情...
[e:loop={'select * from [!db.pre!]ecms_news where id=5',1,24,0}] <a href="<?=$bqsr['titleurl']?>" target="_blan...