Ignore:
Timestamp:
2007/10/24 15:45:22 (17 years ago)
Author:
nanasess
Message:

レイアウト修正

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/feature-module-update/data/Smarty/templates/default/detail.tpl

    r16546 r16547  
    274274  <div id="whoboughtarea"> 
    275275    <h2><img src="<!--{$TPL_DIR}-->img/products/title_recommend.jpg" width="580" height="30" alt="オススメ商品" /></h2> 
     276    <div class="whoboughtblock"> 
     277 
    276278    <!--{section name=cnt loop=$arrRecommend}--> 
    277     <!--{if ($smarty.section.cnt.index % 2) == 0}--> 
    278     <div class="whoboughtblock"> 
    279     <!--{/if}--> 
    280  
     279      <!--{if ($smarty.section.cnt.index % 2) == 0}--> 
    281280      <!--{if $arrRecommend[cnt].product_id}--> 
    282281      <!-- 左列 --> 
     
    306305      <!-- 左列 --> 
    307306      <!--{/if}--> 
    308  
    309       <!--{assign var=nextCnt value=$smarty.section.cnt.index+1}--> 
    310       <!--{if $arrRecommend[$nextCnt].product_id}--> 
     307      <!--{/if}--> 
     308 
     309      <!--{if ($smarty.section.cnt.index % 2) != 0}--> 
     310      <!--{* assign var=nextCnt value=$smarty.section.cnt.index+1 *}--> 
     311      <!--{if $arrRecommend[cnt].product_id}--> 
    311312      <!-- 右列 --> 
    312313      <div class="whoboughtright"> 
    313         <a href="<!--{$smarty.const.DETAIL_P_HTML}--><!--{$arrRecommend[$nextCnt].product_id}-->"> 
    314         <!--{if $arrRecommend[$nextCnt].main_list_image != ""}--> 
    315           <!--{assign var=image_path value="`$arrRecommend[$nextCnt].main_list_image`"}--> 
     314        <a href="<!--{$smarty.const.DETAIL_P_HTML}--><!--{$arrRecommend[cnt].product_id}-->"> 
     315        <!--{if $arrRecommend[cnt].main_list_image != ""}--> 
     316          <!--{assign var=image_path value="`$arrRecommend[cnt].main_list_image`"}--> 
    316317        <!--{else}--> 
    317318          <!--{assign var=image_path value="`$smarty.const.NO_IMAGE_DIR`"}--> 
    318319        <!--{/if}--> 
    319           <img src="<!--{$smarty.const.SITE_URL}-->resize_image.php?image=<!--{$image_path|sfRmDupSlash}-->&amp;width=65&amp;height=65" alt="<!--{$arrRecommend[$nextCnt].name|escape}-->" /> 
     320          <img src="<!--{$smarty.const.SITE_URL}-->resize_image.php?image=<!--{$image_path|sfRmDupSlash}-->&amp;width=65&amp;height=65" alt="<!--{$arrRecommend[cnt].name|escape}-->" /> 
    320321        </a> 
    321         <!--{assign var=price02_min value=`$arrRecommend[$nextCnt].price02_min`}--> 
    322         <!--{assign var=price02_max value=`$arrRecommend[$nextCnt].price02_max`}--> 
    323         <h3><a href="<!--{$smarty.const.DETAIL_P_HTML}--><!--{$arrRecommend[$nextCnt].product_id}-->"><!--{$arrRecommend[$nextCnt].name|escape}--></a></h3> 
     322        <!--{assign var=price02_min value=`$arrRecommend[cnt].price02_min`}--> 
     323        <!--{assign var=price02_max value=`$arrRecommend[cnt].price02_max`}--> 
     324        <h3><a href="<!--{$smarty.const.DETAIL_P_HTML}--><!--{$arrRecommend[cnt].product_id}-->"><!--{$arrRecommend[cnt].name|escape}--></a></h3> 
    324325 
    325326        <p>価格<span class="mini">(税込)</span>:<span class="price"> 
     
    330331          <!--{$price02_min|sfPreTax:$arrSiteInfo.tax:$arrSiteInfo.tax_rule|number_format}-->〜<!--{$price02_max|sfPreTax:$arrSiteInfo.tax:$arrSiteInfo.tax_rule|number_format}--> 
    331332        <!--{/if}-->円</span></p> 
    332         <p class="mini"><!--{$arrRecommend[$nextCnt].comment|escape|nl2br}--></p> 
     333        <p class="mini"><!--{$arrRecommend[cnt].comment|escape|nl2br}--></p> 
    333334      </div> 
    334335      <!-- 右列 --> 
    335336    <!--{/if}--> 
    336     <!--{if ($smarty.section.cnt.index % 2) == 0 || $smarty.section.cnt.last}--> 
     337    <!--{/if}--> 
     338 
     339    <!--{if $smarty.section.cnt.last}--> 
    337340    </div> 
    338341    <!--{/if}--> 
Note: See TracChangeset for help on using the changeset viewer.