技术湾

您现在的位置是:首页 > 学习笔记 > 帝国CMS

帝国CMS

列表页显示图集三张图片php分割代码

2020-11-17 17:20:54 帝国CMS 人点赞
<?php
if(!($arr = $r[&#39;morepic&#39;])){
$tbname=$class_r[$r[classid]][tbname];
$arr=$empire->gettotal("select morepic as total from {$dbtbpre}ecms_{$tbname}_
<?php
if(!($arr = $r['morepic'])){
$tbname=$class_r[$r[classid]][tbname];
$arr=$empire->gettotal("select morepic as total from {$dbtbpre}ecms_{$tbname}_data_$r[stb] where id=$r[id] limit 1");
}
$newarr = explode(egetzy('rn'),$arr);
$count = count($newarr);
if($count>3)$count=3;
$santu='';
for($i=0;$i<$count;$i++)
{

$bot_arr = explode("::::::", $newarr[$i]);
$spic = $bot_arr[0];//小图
$bpic = $bot_arr[1];//大图
$picinfo = $bot_arr[2];//图片说明
$santu.= '<img src="'.$spic.'" data-large="'.$bpic.'" alt="'.$picinfo.'" width="65" height="65" />';
}
?>

$santu='上面的代码';


$listtemp='你自己的代码'.$santu.'你自己的代码';

830*140广告

文章评论