<{foreach from=$list.data item=oc name=ou}>
<div class="item-list <{if $smarty.foreach.ou.last}> item-list-last<{/if}> " >
<{foreach from=$oc item=oa name=c}>
<{if $smarty.foreach.ou.last && $smarty.foreach.c.first}>
<div class="item">
<div class="ad-pic">
<a href="#" target="_blank"><img data-src="holder.js/300x600" src="" width="300" height="600" /></a>
<div class="mask"></div>
</div>
</div>
<{/if}>
<{include file="front/inc/groupItem.html"}>
<{/foreach}>
</div>
<{/foreach}>
本文出自 “web学习linux学习” 博客,请务必保留此出处http://jinjiang2009.blog.51cto.com/6625258/1395930
原文:http://jinjiang2009.blog.51cto.com/6625258/1395930