帝国cms首页调用图集morepic实例制作轮播图实例:
<div id="swipe-slide" class="swipe">
<ul class="swipe-wrap">
<?php
$arr = array();
$fr=$empire->fetch1("select morepic from {$dbtbpre}ecms_photo_data_1 where id=1");
$arr = $fr[morepic];
$newarr = explode(egetzy('rn'),$arr);
$count = count(explode(egetzy('rn'),$fr[morepic]));//图集的图片数量
print_r($count);
for($i=0;$i<$count;$i++)
{
$s_arr = array();
$s_arr[] = $newarr[$i];
$str = $s_arr[0];
$bot_arr = explode("::::::", $str);
$spic = $bot_arr[0];//小图
$bpic = $bot_arr[1];//大图
$picinfo = $bot_arr[2];//图片说明
echo '<li><img src="'.$bpic.'" alt="'.$picinfo.'" /></li>';
}
?>
</ul>
</div>