建站教学网,让你建站更便捷和轻松!
您当前的位置:首页 > 帝国CMS建站

帝国cms 内容页调用图片集图片的方法

来源:  时间:2018-11-28 21:46:25

 <div class="container">

<div class="row">
<div class="col-md-9">
<div class="owl-carousel1">
 
 
<?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];
echo '<a><img src="'.$bpic.'"><p>'.$navinfor['title'].'</p></a>';
?>
 
</div>
</div>
 
[e:loop={"select * from {$dbtbpre}ecms_news where id='$navinfor[aa]' and classid='11'  order by id desc limit 0,1",1,24,1}]
<div class="col-md-3 cp-sjs">
<img src="<?=$bqr[titlepic]?>"  data-index="380" width="100%" class="shejishi-pic"/>
<ul>
<li>设计师:<span id="shejishi-name"><?=$bqr[title]?></span></li>
<li>楼&emsp;盘:[!--title--]</li>
<li>区&emsp;域:[!--ab--]</li>
<li>面&emsp;积:[!--ac--]m<sup>2</sup></li>
<li>风&emsp;格:[!--ad--]</li>
<li>房&emsp;型:[!--class.name--]</li>
</ul>
<a href="<?=$bqsr[titleurl]?>" id="shejishi-link">
<i class="iconfont icon-fangdajing"></i>了解该设计师
</a>
</div>
[/e:loop]
 
</div>
<div class="yuyue flex">
<a href="tel:028-61157895">
<h2>028-61157895</h2>
<h2><i class="iconfont icon-lianxi"></i> 立即预约</h2>
<p>免费获取设计方案</p>
</a>
<div class="yuyue_txt">
<h4><b>设计理念</b> /Design Notes</h4>
[!--newstext--]
</div>
</div>
 
 
 
<h4 class="tit"><b>相关案例</b><span>/ Related Cases</span></h4>
 
 
<div class="row xiangguan-case">
 
[e:loop={"select * from {$dbtbpre}ecms_news where aa='$navinfor[aa]' and  classid in(3,4,5,6,7,8,9,10)  order by id desc limit 0,8",8,24,1}]
<a class="col-lg-3 col-md-4 col-sm-6 xgzp" data-sjs="" href="<?=$bqsr[titleurl]?>">
<img src="<?=$bqr[titlepic]?>"/>
<p><?=esub($bqr[title],50)?></p>
<p>房型:<?=$bqsr[classname]?><span>|</span>风格:<?=$bqr[ad]?><span>|</span>面积:<?=$bqr[ac]?>m<sup>2</sup></p>
</a>
[/e:loop]
 
 
</div>
 
<a href="/case/" class="more-case">更多案例+</a>
 
</div>

责任编辑:

发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表
CopyRight 2008-2019, JZREAD.COM, Inc. All Rights Reserved
皖ICP备09015033号