1. 程式人生 > >ecshop首頁增加商品樓層

ecshop首頁增加商品樓層

" -->

<style>
.sub-list a{
float: left;
width: 50%;
font-size: 14px;
}
.sub-list a:hover {
color:#ff0000;
}
</style>
<div class="xm-box" id="floor-{$goods_cat.sort_order}" style="clear:both;">
<div class="title">
     <h2 style="">3F&nbsp;&nbsp;&nbsp;&nbsp;商品</h2>
    <a class="more" href="category.php?id=25">更多</a>
  </div>
<div class="row show-grid content">
<div class="col-lg-6 left-img left-{$goods_cat.sort_order}" style="float:left;position:relative;margin-top: 10px;">
{insert name='ads' id=15 num=1}
<div class="category" style="position: absolute;top: 15px;left: 20px; width: 30%;height: 387px;padding: 20px 15px;">
<h3 style=" font-weight:bold;font-size: 24px; margin-top: 35px;margin-bottom: 5px;text-align: center;width:100px">精選分類</h3></br>
<div class="sub-list">
<!--{foreach from=$childcat3 item=cat name=foo}--> 
<!--{if $smarty.foreach.foo.iteration<10}-->

    <a title="{$cat.cat_name}" target="_blank" href="category.php?id={$cat.cat_id}">{$cat.cat_name}</a>
           

  <!--{/if}--> 
<!--{/foreach}-->
</div>
</div>
</div>
<ul style="float:right;width:698px;">
<!--{foreach from=$jy item=goods name=name}-->
<!--{if $smarty.foreach.name.iteration<7}-->
<li style="width:220px;float:left;margin-right:12px;">
<div class="goodsItem goodsItems"  > <a href="{$goods.url}"><img src="{$goods.goods_thumb}" style="margin-top:-10px;height:200px;width: 200px;margin-left: 11px;" alt="{$goods.goods_name|escape:html}" class="goodsimg" /></a><br />
  <p class="f1"><a href="{$goods.url}" title="{$goods.goods_name|escape:html}">{$goods.goods_name}</a></p>
   <p class="all-prices">市場價:<font class="market">{$goods.market_price}</font> <br/>
  本店價:<font class="f1"> 
  <!-- {if $goods.promote_price neq 0} --> 
  {$goods.promote_price} 
  <!-- {else}--> 
  {$goods.shop_price} 
  <!--{/if}--> 
  </font>
  </p>
        </div>
</li>
<!-- {/if} -->
<!-- {/foreach} -->
</ul>
    </div>
    <div class="row show-grid"> </div>
</div>