帝国CMS图集字段的大图,小图,说明的方法!其实没那么复杂:
<b>morepic参数:</b><br /> <?php $arr = array(); $arr = $navinfor['morepic']; $newarr = explode(egetzy('rn'),$arr); $count = count(explode(egetzy('rn'),$navinfor[morepic]));//图集的图片数量 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 '<img src="'.$spic.'" data-large="'.$bpic.'" alt="'.$picinfo.'" width="65" height="65" />'; } ?>