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

Revision 22957, 6.2 KB checked in by Seasoft, 11 years ago (diff)

#2044 (無駄な処理を改善する for 2.13.0)

  • プラグインで対応可能との理解
  • 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-2013 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<!--{strip}-->
26    <!--★商品画像★-->
27    <!--{if $smarty.get.image != ''}-->
28        <!--{assign var=key value="`$smarty.get.image`"}-->
29    <!--{else}-->
30        <!--{assign var=key value="main_image"}-->
31    <!--{/if}-->
32    <center><img src="<!--{$arrFile[$key].filepath}-->"></center>
33    <br>
34
35    <!--★商品サブ画像★-->
36    <!--{if $subImageFlag == true}-->
37        <center>
38            画像
39            <!--{if ($smarty.get.image == "" || $smarty.get.image == "main_image")}-->
40                [1]
41            <!--{else}-->
42                [<a href="?product_id=<!--{$smarty.get.product_id}-->&amp;image=main_image">1</a>]
43            <!--{/if}-->
44
45            <!--{assign var=num value="2"}-->
46            <!--{section name=cnt loop=$smarty.const.PRODUCTSUB_MAX}-->
47                <!--{assign var=key value="sub_image`$smarty.section.cnt.iteration`"}-->
48                <!--{if $arrFile[$key].filepath != ""}-->
49                    <!--{if $key == $smarty.get.image}-->
50                        [<!--{$num}-->]
51                    <!--{else}-->
52                        [<a href="?product_id=<!--{$smarty.get.product_id}-->&amp;image=<!--{$key}-->"><!--{$num}--></a>]
53                    <!--{/if}-->
54                    <!--{assign var=num value="`$num+1`"}-->
55                <!--{/if}-->
56            <!--{/section}-->
57        </center>
58        <br>
59    <!--{/if}-->
60
61    <!--★詳細メインコメント★-->
62    [emoji:76]<!--{$arrProduct.main_comment|nl2br_html}--><br>
63    <br>
64
65    <!--▼商品ステータス-->
66    <!--{assign var=ps value=$productStatus[$tpl_product_id]}-->
67    <!--{if count($ps) > 0}-->
68        <!--{foreach from=$ps item=status}-->
69            ★<!--{$arrSTATUS[$status]}--><br>
70        <!--{/foreach}-->
71        <br>
72    <!--{/if}-->
73    <!--▲商品ステータス-->
74
75    <!--★商品コード★-->
76    商品コード:
77    <!--{if $arrProduct.product_code_min == $arrProduct.product_code_max}-->
78        <!--{$arrProduct.product_code_min|h}-->
79    <!--{else}-->
80        <!--{$arrProduct.product_code_min|h}-->~<!--{$arrProduct.product_code_max|h}-->
81    <!--{/if}-->
82    <br>
83
84    <!--★販売価格★-->
85    <font color="#FF0000"><!--{$smarty.const.SALE_PRICE_TITLE}-->(税込):
86        <!--{if $arrProduct.price02_min_inctax == $arrProduct.price02_max_inctax}-->
87            <!--{$arrProduct.price02_min_inctax|number_format}-->
88        <!--{else}-->
89            <!--{$arrProduct.price02_min_inctax|number_format}-->~<!--{$arrProduct.price02_max_inctax|number_format}-->
90        <!--{/if}-->
91        円</font>
92    <br>
93
94    <!--{if $arrProduct.price01_max_inctax > 0}-->
95        <!--★通常価格★-->
96        <font color="#FF0000"><!--{$smarty.const.NORMAL_PRICE_TITLE}-->(税込):
97            <!--{if $arrProduct.price01_min_inctax == $arrProduct.price01_max_inctax}-->
98                <!--{$arrProduct.price01_min_inctax|number_format}-->
99            <!--{else}-->
100                <!--{$arrProduct.price01_min_inctax|number_format}-->~<!--{$arrProduct.price01_max_inctax|number_format}-->
101            <!--{/if}-->
102            円</font>
103        <br>
104    <!--{/if}-->
105
106    <!--★ポイント★-->
107    <!--{if $smarty.const.USE_POINT !== false}-->
108        ポイント:
109        <!--{if $arrProduct.price02_min == $arrProduct.price02_max}-->
110            <!--{$arrProduct.price02_min|sfPrePoint:$arrProduct.point_rate|number_format}-->
111        <!--{else}-->
112            <!--{if $arrProduct.price02_min|sfPrePoint:$arrProduct.point_rate == $arrProduct.price02_max|sfPrePoint:$arrProduct.point_rate}-->
113                <!--{$arrProduct.price02_min|sfPrePoint:$arrProduct.point_rate|number_format}-->
114            <!--{else}-->
115                <!--{$arrProduct.price02_min|sfPrePoint:$arrProduct.point_rate|number_format}-->~<!--{$arrProduct.price02_max|sfPrePoint:$arrProduct.point_rate|number_format}-->
116            <!--{/if}-->
117        <!--{/if}-->
118        Pt<br>
119    <!--{/if}-->
120    <br>
121
122    <!--★メーカー★-->
123    <!--{if $arrProduct.maker_name|strlen >= 1}-->
124        メーカー:<!--{$arrProduct.maker_name|h}--><br>
125    <!--{/if}-->
126
127    <!--★メーカーURL★-->
128    <!--{if $arrProduct.comment1|strlen >= 1}-->
129        メーカーURL:<a href="<!--{$arrProduct.comment1|h}-->"><!--{$arrProduct.comment1|h}--></a><br>
130    <!--{/if}-->
131
132    <!--★関連カテゴリ★-->
133    関連カテゴリ:<br>
134    <!--{section name=r loop=$arrRelativeCat}-->
135        <!--{section name=s loop=$arrRelativeCat[r]}-->
136            <a href="<!--{$smarty.const.ROOT_URLPATH}-->products/list.php?category_id=<!--{$arrRelativeCat[r][s].category_id}-->"><!--{$arrRelativeCat[r][s].category_name}--></a>
137            <!--{if !$smarty.section.s.last}--><!--{$smarty.const.SEPA_CATNAVI}--><!--{/if}-->
138        <!--{/section}-->
139        <br>
140    <!--{/section}-->
141    <br>
142
143    <form name="form1" method="post" action="?">
144        <input type="hidden" name="mode" value="select">
145        <input type="hidden" name="<!--{$smarty.const.TRANSACTION_ID_NAME}-->" value="<!--{$transactionid}-->">
146
147        <input type="hidden" name="product_id" value="<!--{$tpl_product_id}-->">
148        <!--{if $tpl_stock_find}-->
149            <!--★商品を選ぶ★-->
150            <center><input type="submit" name="select" id="cart" value="この商品を選ぶ"></center>
151        <!--{else}-->
152            <font color="#FF0000">申し訳ございませんが、只今品切れ中です。</font>
153        <!--{/if}-->
154    </form>
155<!--{/strip}-->
Note: See TracBrowser for help on using the repository browser.