Changeset 21253 for branches/version-2_11-dev/data/Smarty
- Timestamp:
- 2011/09/24 18:32:09 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_11-dev/data/Smarty/templates/default/frontparts/bloc/recommend.tpl
r21240 r21253 21 21 *}--> 22 22 <!--{if count($arrBestProducts) > 0}--> 23 <div class="bloc_outer clearfix"> 24 <div id="recommend_area"> 25 <h2><img src="<!--{$TPL_URLPATH}-->img/title/tit_bloc_recommend.jpg" alt="*" class="title_icon" /></h2> 26 <!--{section name=cnt loop=$arrBestProducts step=2}--> 27 <div class="bloc_body clearfix"> 28 <div class="recommendleft clearfix"> 29 <div class="productImage"> 30 <a href="<!--{$smarty.const.P_DETAIL_URLPATH}--><!--{$arrBestProducts[cnt].product_id|u}-->"> 31 <img src="<!--{$smarty.const.ROOT_URLPATH}-->resize_image.php?image=<!--{$arrBestProducts[cnt].main_list_image|sfNoImageMainList|h}-->&width=80&height=80" alt="<!--{$arrBestProducts[cnt].name|h}-->" /></a> 32 </div> 33 <div class="productContents"> 34 <h3> 35 <a href="<!--{$smarty.const.P_DETAIL_URLPATH}--><!--{$arrBestProducts[cnt].product_id|u}-->"><!--{$arrBestProducts[cnt].name|h}--></a> 36 </h3> 37 <!--{assign var=price01 value=`$arrBestProducts[cnt].price01_min`}--> 38 <!--{assign var=price02 value=`$arrBestProducts[cnt].price02_min`}--> 39 <p class="sale_price"><!--{$smarty.const.SALE_PRICE_TITLE}-->(税込): 40 <span class="price"><!--{$price02|sfCalcIncTax:$arrInfo.tax:$arrInfo.tax_rule|number_format}--> 円</span> 41 </p> 42 <p class="mini comment"><!--{$arrBestProducts[cnt].comment|h|nl2br}--></p> 43 </div> 23 <div class="bloc_outer clearfix"> 24 <div id="recommend_area"> 25 <h2><img src="<!--{$TPL_URLPATH}-->img/title/tit_bloc_recommend.jpg" alt="*" class="title_icon" /></h2> 26 <div class="bloc_body clearfix"> 27 <!--{foreach from=$arrBestProducts item=arrProduct name="recommend_products"}--> 28 <div class="product_item clearfix"> 29 <div class="productImage"> 30 <a href="<!--{$smarty.const.P_DETAIL_URLPATH}--><!--{$arrProduct.product_id|u}-->"> 31 <img src="<!--{$smarty.const.ROOT_URLPATH}-->resize_image.php?image=<!--{$arrProduct.main_list_image|sfNoImageMainList|h}-->&width=80&height=80" alt="<!--{$arrProduct.name|h}-->" /> 32 </a> 33 </div> 34 <div class="productContents"> 35 <h3> 36 <a href="<!--{$smarty.const.P_DETAIL_URLPATH}--><!--{$arrProduct.product_id|u}-->"><!--{$arrProduct.name|h}--></a> 37 </h3> 38 <p class="sale_price"> 39 <!--{$smarty.const.SALE_PRICE_TITLE}-->(税込): <span class="price"><!--{$arrProduct.price02_min|sfCalcIncTax:$arrInfo.tax:$arrInfo.tax_rule|number_format}--> 円</span> 40 </p> 41 <p class="mini comment"><!--{$arrProduct.comment|h|nl2br}--></p> 42 </div> 43 </div> 44 <!--{if $smarty.foreach.recommend_products.iteration % 2 === 0}--> 45 <div class="clear"></div> 46 <!--{/if}--> 47 <!--{/foreach}--> 44 48 </div> 45 46 <div class="recommendright clearfix">47 <div class="productImage">48 <!--{assign var=cnt2 value=`$smarty.section.cnt.iteration*$smarty.section.cnt.step-1`}-->49 <!--{if $arrBestProducts[$cnt2]|count > 0}-->50 51 <a href="<!--{$smarty.const.P_DETAIL_URLPATH}--><!--{$arrBestProducts[$cnt2].product_id|u}-->">52 <img src="<!--{$smarty.const.ROOT_URLPATH}-->resize_image.php?image=<!--{$arrBestProducts[$cnt2].main_list_image|sfNoImageMainList|h}-->&width=80&height=80" alt="<!--{$arrBestProducts[$cnt2].name|h}-->" /></a>53 </div>54 <div class="productContents">55 <h3>56 <a href="<!--{$smarty.const.P_DETAIL_URLPATH}--><!--{$arrBestProducts[$cnt2].product_id|u}-->"><!--{$arrBestProducts[$cnt2].name|h}--></a>57 </h3>58 59 <!--{assign var=price01 value=`$arrBestProducts[$cnt2].price01_min`}-->60 <!--{assign var=price02 value=`$arrBestProducts[$cnt2].price02_min`}-->61 62 <p class="sale_price"><!--{$smarty.const.SALE_PRICE_TITLE}-->(税込):63 <span class="price"><!--{$price02|sfCalcIncTax:$arrInfo.tax:$arrInfo.tax_rule|number_format}--> 円</span>64 </p>65 <p class="mini comment"><!--{$arrBestProducts[$cnt2].comment|h|nl2br}--></p>66 <!--{/if}-->67 </div>68 </div>69 70 49 </div> 71 <!--{/section}-->72 50 </div> 73 </div>74 51 <!--{/if}-->
Note: See TracChangeset
for help on using the changeset viewer.
