列表页显示图集三张图片php分割代码
2020-11-17 17:20:54
帝国CMS
人点赞
<?php
if(!($arr = $r['morepic'])){
$tbname=$class_r[$r[classid]][tbname];
$arr=$empire->gettotal("select morepic as total from {$dbtbpre}ecms_{$tbname}_
if(!($arr = $r['morepic'])){
$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.'你自己的代码';
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广告