联系官方销售客服
1835022288
028-61286886
{if $searchid} {search module=$dirname order=$params.order id=$searchid total=$sototal catid=$catid page=1 pagesize=6 urlrule=$urlrule more=1 return=s} <li class="pd_list_item"> <div class="pd_i_tit"> <h3><a href="{$s.url}">{$s.title}</a></h3> <div class="subtit"> <a class="tit_factory" href=""><img src="img/ww1.gif" alt="">千千色家纺源头厂家</a> <a class="tit_report" href=""><i class="iconfont"></i> 查看报告</a> </div> </div> <div class="pd_i_data"> <div class="tag_wrap cls"> <strong><i class="iconfont"></i>服务</strong> <span> <em>{$cat.name}{php $field = dr_field_options_id(26);$names=array();} {loop $field $value $name}{if in_array($value, $s.fuwu)}{php $names[]=$name;}{/if}{/loop}{php echo implode("、", $names);}</em> </span> </div> <div class="data_wrap cls"> <div class="data_attr"> <div class="line"><em>类 目</em>: <span>{php $s.field = dr_field_options_id(22);} {$s.field[$s.lb]}</span></div> <div class="line"><em>所 在 地</em>: <span>{php $s.top = dr_linkage('address', $s.diqu, 1);}{$s.top.name} </span></div> <div class="line"><em>经营模式</em>: <span>{php $s.field = dr_field_options_id(125);} {$s.field[$s.jyms]}</span></div> </div> <div class="data_attr"> <div class="line"><em>发布时间</em>: <span>{dr_fdate($s._updatetime)}</span></div> <div class="line"><em>浏览次数</em>: <span>{$s.hits} 次</span></div> <div class="line"><em>图片数量</em>: <span>{count($s.images)} 张</span></div> </div> </div> </div> <div class="pd_i_info"> <div class="tit"><em>下面是三张图</em><a href="" class="more">更多</a></div> <div class="imgs"> <a href=""><img src="images/img_7.jpg" alt=""></a> <a href=""><img src="images/img_7.jpg" alt=""></a> <a href=""><img src="images/img_7.jpg" alt=""></a> </div> </div> </li> {/search} {/if}
以上代码中 ,三张图片的位置 如何循环出来 多图字段:images的 三张图片呢?
求具体代码,谢谢大神赐教。