Home > CMS Tutorial > Empire CMS > body text

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

silencement
Release: 2019-11-28 13:17:40
forward
2794 people have browsed it

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;;
}
?>
Copy after login

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]?>
Copy after login

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!

Related labels:
source:www.word666.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!