帝国CMS教程图集字段的大图,小图,说明的调用
2014-11-05 站长 站长日志
<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" />'; } ?>