source: branches/version-2_5-dev/data/Smarty/templates/mobile/products/detail.tpl @ 20475

Revision 20475, 5.2 KB checked in by nanasess, 10 years ago (diff)

#703(URLパラメータでは実体参照を用いるべき)

  • Property svn:eol-style set to LF
  • Property svn:keywords set to Id
  • Property svn:mime-type set to text/x-smarty-template; charset=UTF-8
Line 
1<!--{*
2/*
3 * This file is part of EC-CUBE
4 *
5 * Copyright(c) 2000-2010 LOCKON CO.,LTD. All Rights Reserved.
6 *
7 * http://www.lockon.co.jp/
8 *
9 * This program is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU General Public License
11 * as published by the Free Software Foundation; either version 2
12 * of the License, or (at your option) any later version.
13 *
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17 * GNU General Public License for more details.
18 *
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, write to the Free Software
21 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
22 */
23*}-->
24<!--★商品画像★-->
25<!--{if $smarty.get.image != ''}-->
26<!--{assign var=key value="`$smarty.get.image`"}-->
27<!--{else}-->
28<!--{assign var=key value="main_image"}-->
29<!--{/if}-->
30<center><img src="<!--{$arrFile[$key].filepath}-->"></center>
31
32<!--★商品サブ画像★-->
33<!--{if $subImageFlag == true}-->
34<br>画像
35  <!--{if ($smarty.get.image == "" || $smarty.get.image == "main_image")}-->
36[1]
37  <!--{else}-->
38[<a href="?product_id=<!--{$smarty.get.product_id}-->&amp;image=main_image">1</a>]
39  <!--{/if}-->
40 
41  <!--{assign var=num value="2"}-->
42  <!--{section name=cnt loop=$smarty.const.PRODUCTSUB_MAX}-->
43  <!--{assign var=key value="sub_image`$smarty.section.cnt.iteration`"}-->
44  <!--{if $arrFile[$key].filepath != ""}-->
45    <!--{if $key == $smarty.get.image}-->
46[<!--{$num}-->]
47    <!--{else}-->
48[<a href="?product_id=<!--{$smarty.get.product_id}-->&amp;image=<!--{$key}-->"><!--{$num}--></a>]
49    <!--{/if}-->
50    <!--{assign var=num value="`$num+1`"}-->
51  <!--{/if}-->
52  <!--{/section}-->
53<br>
54<!--{/if}-->
55<br>
56
57<!--{* オペビルダー用 *}-->
58<!--{if "sfViewDetailOpe"|function_exists === TRUE}-->
59<!--{include file=`$smarty.const.MODULE_REALDIR`mdl_opebuilder/detail_ope_mb_view.tpl}-->
60<!--{/if}-->
61
62<!--★詳細メインコメント★-->
63[emoji:76]<!--{$arrProduct.main_comment|nl2br_html}--><br>
64<br>
65
66<!--★商品コード★-->
67商品コード:
68<!--{if $arrProduct.product_code_min == $arrProduct.product_code_max}-->
69<!--{$arrProduct.product_code_min|h}-->
70<!--{else}-->
71<!--{$arrProduct.product_code_min|h}-->~<!--{$arrProduct.product_code_max|h}-->
72<!--{/if}-->
73<br>
74
75<!--★販売価格★-->
76<font color="#FF0000"><!--{$smarty.const.SALE_PRICE_TITLE}-->(税込):
77<!--{if $arrProduct.price02_min == $arrProduct.price02_max}-->
78    <!--{$arrProduct.price02_min|sfCalcIncTax:$arrSiteInfo.tax:$arrSiteInfo.tax_rule|number_format}-->
79<!--{else}-->
80    <!--{$arrProduct.price02_min|sfCalcIncTax:$arrSiteInfo.tax:$arrSiteInfo.tax_rule|number_format}-->~<!--{$arrProduct.price02_max|sfCalcIncTax:$arrSiteInfo.tax:$arrSiteInfo.tax_rule|number_format}-->
81<!--{/if}-->
82円</font>
83<br/>
84
85<!--{if $arrProduct.price01_max > 0}-->
86<!--★通常価格★-->
87<font color="#FF0000"><!--{$smarty.const.NORMAL_PRICE_TITLE}-->:
88<!--{if $arrProduct.price01_min == $arrProduct.price01_max}-->
89<!--{$arrProduct.price01_min|number_format}-->
90<!--{else}-->
91<!--{$arrProduct.price01_min|number_format}-->~<!--{$arrProduct.price01_max|number_format}-->
92<!--{/if}-->
93円</font>
94<br>
95<!--{/if}-->
96
97<!--★ポイント★-->
98<!--{if $smarty.const.USE_POINT !== false}-->
99ポイント:
100<!--{if $arrProduct.price02_min == $arrProduct.price02_max}-->
101    <!--{$arrProduct.price02_min|sfPrePoint:$arrProduct.point_rate:$smarty.const.POINT_RULE:$arrProduct.product_id}-->
102<!--{else}-->
103    <!--{if $arrProduct.price02_min|sfPrePoint:$arrProduct.point_rate:$smarty.const.POINT_RULE:$arrProduct.product_id == $arrProduct.price02_max|sfPrePoint:$arrProduct.point_rate:$smarty.const.POINT_RULE:$arrProduct.product_id}-->
104        <!--{$arrProduct.price02_min|sfPrePoint:$arrProduct.point_rate:$smarty.const.POINT_RULE:$arrProduct.product_id}-->
105    <!--{else}-->
106        <!--{$arrProduct.price02_min|sfPrePoint:$arrProduct.point_rate:$smarty.const.POINT_RULE:$arrProduct.product_id}-->~<!--{$arrProduct.price02_max|sfPrePoint:$arrProduct.point_rate:$smarty.const.POINT_RULE:$arrProduct.product_id}-->
107    <!--{/if}-->
108<!--{/if}-->
109Pt<br>
110<!--{/if}-->
111<br>
112
113<!--★関連カテゴリ★-->
114関連カテゴリ:<br>
115<!--{section name=r loop=$arrRelativeCat}-->
116<!--{section name=s loop=$arrRelativeCat[r]}-->
117<a href="<!--{$smarty.const.ROOT_URLPATH}-->products/list.php?category_id=<!--{$arrRelativeCat[r][s].category_id}-->"><!--{$arrRelativeCat[r][s].category_name}--></a>
118<!--{if !$smarty.section.s.last}--><!--{$smarty.const.SEPA_CATNAVI}--><!--{/if}-->
119<!--{/section}-->
120<br>
121<!--{/section}-->
122<br>
123
124<form name="form1" method="post" action="<!--{$smarty.server.REQUEST_URI|h}-->">
125    <input type="hidden" name="mode" value="select">
126  <input type="hidden" name="<!--{$smarty.const.TRANSACTION_ID_NAME}-->" value="<!--{$transactionid}-->" />
127
128    <input type="hidden" name="product_id" value="<!--{$tpl_product_id}-->">
129<!--{if $tpl_stock_find}-->
130    <!--★商品を選ぶ★-->
131    <center><input type="submit" name="select" id="cart" value="この商品を選ぶ"></center>
132<!--{else}-->
133    <font color="#FF0000">申し訳ございませんが、只今品切れ中です。</font>
134<!--{/if}-->
135</form>
Note: See TracBrowser for help on using the repository browser.