首页循环图片集标题图
首页循环图片集标题图/缩略图
注意:本次调用为“ecms_photo”图片系统模型,
select * from {$dbtbpre}ecms_photo_data_{$r[stb]} where id='$r[id]'
为副表:_data_{$r[stb]}
万能标签调用
<!-- 图片展示-->
[ecmsinfo]5,5,12,0,0,17,0[/ecmsinfo]
<!-- 图片展示END-->
标签 模板:
页面模板内容代码:
<div class="">//你的css
<ul>
[!--empirenews.listtemp--]
<td><!--list.var1--></td>
[!--empirenews.listtemp--]
</ul>
</div>
页面内容模板(list.var) (*)代码:
注意:一定要勾选“使用程序代码”
$fr=$empire->fetch1("select * from {$dbtbpre}ecms_photo_data_{$r[stb]} where id='$r[id]'");
$mynum=count(explode(egetzy("rn"),$fr[morepic]));
$listtemp='
<li> <a href="[!--titleurl--]"target="_blank"> <i> <img src="[!--titlepic--]" alt="[!--title--]" width="212" ></i>
<section>
<p> [!--title--] </p>
<span> '.$mynum.' </span> </section>
</a> </li>
';
其中代码中的'.$mynum.'为图片的总数量
显示当前信息有多少张图片的代码了。