source: branches/comu-ver2/data/Smarty/templates/default/bloc/best5.tpl @ 18397

Revision 18397, 3.4 KB checked in by Seasoft, 12 years ago (diff)
  • フロント機能での定数「DETAIL_P_HTML」「MOBILE_DETAIL_P_HTML」利用の徹底。
  • 用語統一 「商品購入詳細」→「商品詳細」
  • 念のためにエスケープを追加
  • Property svn:eol-style set to LF
  • Property svn:mime-type set to text/x-smarty-template; charset=UTF-8
Line 
1<!--{*
2 * This file is part of EC-CUBE
3 *
4 * Copyright(c) 2000-2007 LOCKON CO.,LTD. All Rights Reserved.
5 *
6 * http://www.lockon.co.jp/
7 *
8 * This program is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU General Public License
10 * as published by the Free Software Foundation; either version 2
11 * of the License, or (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
21 *}-->
22<!--▼おすすめ商品-->
23<!--{if count($arrBestProducts) > 0}-->
24<div id="recomendarea">
25  <h2>
26    <img src="<!--{$TPL_DIR}-->img/top/osusume.jpg" width="400" height="29" alt="おすすめ商品" />
27  </h2>
28  <!--{section name=cnt loop=$arrBestProducts step=2}-->
29  <div class="recomendblock">
30    <div class="recomendleft">
31
32      <a href="<!--{$smarty.const.DETAIL_P_HTML}--><!--{$arrBestProducts[cnt].product_id|escape:url}-->">
33        <img src="<!--{$smarty.const.SITE_URL}-->resize_image.php?image=<!--{$arrBestProducts[cnt].main_list_image|sfNoImageMainList|escape}-->&amp;width=48&amp;height=48" alt="<!--{$arrBestProducts[cnt].name|escape}-->" /></a>
34
35      <h3>
36        <a href="<!--{$smarty.const.DETAIL_P_HTML}--><!--{$arrBestProducts[cnt].product_id|escape:url}-->"><!--{$arrBestProducts[cnt].name|escape}--></a>
37      </h3>
38
39<!--{assign var=price01 value=`$arrBestProducts[cnt].price01_min`}-->
40<!--{assign var=price02 value=`$arrBestProducts[cnt].price02_min`}-->
41
42      <p class="sale_price"><!--{$smarty.const.SALE_PRICE_TITLE}--><span class="mini">(税込)</span>:
43        <span class="price"><!--{$price02|sfPreTax:$arrInfo.tax:$arrInfo.tax_rule|number_format}--> 円</span>
44      </p>
45
46      <p class="mini comment"><!--{$arrBestProducts[cnt].comment|escape|nl2br}--></p>
47    </div>
48
49    <div class="recomendright">
50      <!--{assign var=cnt2 value=`$smarty.section.cnt.iteration*$smarty.section.cnt.step-1` }-->
51      <!--{if $arrBestProducts[$cnt2]|count > 0}-->
52
53      <a href="<!--{$smarty.const.DETAIL_P_HTML}--><!--{$arrBestProducts[$cnt2].product_id|escape:url}-->">
54        <img src="<!--{$smarty.const.SITE_URL}-->resize_image.php?image=<!--{$arrBestProducts[$cnt2].main_list_image|sfNoImageMainList|escape}-->&amp;width=48&amp;height=48" alt="<!--{$arrBestProducts[$cnt2].name|escape}-->" /></a>
55
56      <h3>
57      <a href="<!--{$smarty.const.DETAIL_P_HTML}--><!--{$arrBestProducts[$cnt2].product_id|escape:url}-->"><!--{$arrBestProducts[$cnt2].name|escape}--></a>
58      </h3>
59
60<!--{assign var=price01 value=`$arrBestProducts[$cnt2].price01_min`}-->
61<!--{assign var=price02 value=`$arrBestProducts[$cnt2].price02_min`}-->
62
63      <p class="sale_price"><!--{$smarty.const.SALE_PRICE_TITLE}--><span class="mini">(税込)</span>:
64        <span class="price"><!--{$price02|sfPreTax:$arrInfo.tax:$arrInfo.tax_rule|number_format}--> 円</span>
65      </p>
66
67      <p class="mini comment"><!--{$arrBestProducts[$cnt2].comment|escape|nl2br}--></p>
68      <!--{/if}-->
69    </div>
70  </div>
71  <!--{/section}-->
72</div>
73<!--{/if}-->
74<!--▲おすすめ商品-->
Note: See TracBrowser for help on using the repository browser.