Home  >  Article  >  CMS Tutorial  >  Detailed explanation of the calling method of large pictures, small pictures and descriptions of the Empire CMS atlas field

Detailed explanation of the calling method of large pictures, small pictures and descriptions of the Empire CMS atlas field

silencement
silencementforward
2019-11-28 13:17:402814browse

Detailed explanation of the calling method of large pictures, small pictures and descriptions of the Empire CMS atlas field

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[&#39;morepic&#39;];
$newarr = explode(egetzy(&#39;rn&#39;),$arr);
$count = count(explode(egetzy(&#39;rn&#39;),$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 &#39;<img src="&#39;.$spic.&#39;" data-large="&#39;.$bpic.&#39;" alt="&#39;.$picinfo.&#39;
" width="65" height="65" />&#39;;
}
?>

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!

Statement:
This article is reproduced at:www.word666.com. If there is any infringement, please contact admin@php.cn delete