The example in this article describes the calling method of the large picture, small picture, and description of the Empire CMS atlas field. Share it with everyone for your reference. The specific method is as follows:
The code is as follows:
<?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];//图片说明 </p> <p>echo '<img src="'.$spic.'" data-large="'.$bpic.'" alt="'.$picinfo.' " width="65" height="65" />'; } ?>
Recommended to study "Empire cms tutorial"
Empire CMS tutorial-content page displays download Points, the code is as follows:
The code is as follows:
<?php $down=explode("::::::",$navinfor[downpath]); ?> 点数:<?=$down[3]?>
I hope this article will be helpful to everyone’s Imperial CMS website building.
The above is the detailed content of Detailed explanation of the calling method of large pictures, small pictures and descriptions of the Empire CMS atlas field. For more information, please follow other related articles on the PHP Chinese website!