帝国CMS内容页获取图集图片数量代码
<?php$sl=empty($navinfor[morepic])?0:count(explode(chr(13),$navinfor[morepic]));echo $sl;?>……
<?php$sl=empty($navinfor[morepic])?0:count(explode(chr(13),$navinfor[morepic]));echo $sl;?>
- 上一篇
帝国CMS灵动标签调用多表多模型调用文章
灵动标签调用多表多模型调用文章1、调用多模型的最新文章[e:loop={'select * from (select id,classid,titleurl,filename,title,newstime,titlepic from phome_ecms_movie where newstime unionselect id,classi
- 下一篇
帝国CMS模板调用最新最多评论文章的方法
码如下:[e:loop={'select*from[!db.pre!]ecms_newswherechecked=1orderbyplnumdesc,iddesclimit8',10,24,0}]<li><small><ahref="<?=$bqsr[titleurl]?>"class="title"><?=sub($bqr[title],0,30,false)?></