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

Revision 20478, 21.9 KB checked in by nanasess, 13 years ago (diff)

#1084([フロント]ポイント表示部分で number_format されていないページがある)

  • 商品詳細ページを対応
  • 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 * This file is part of EC-CUBE
3 *
4 * Copyright(c) 2000-2010 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<script type="text/javascript" src="<!--{$smarty.const.ROOT_URLPATH}-->js/products.js"></script>
23<script type="text/javascript">//<![CDATA[
24// 規格2に選択肢を割り当てる。
25function fnSetClassCategories(form, classcat_id2_selected) {
26    var $form = $(form);
27    var product_id = $form.find('input[name=product_id]').val();
28    var $sele1 = $form.find('select[name=classcategory_id1]');
29    var $sele2 = $form.find('select[name=classcategory_id2]');
30    setClassCategories($form, product_id, $sele1, $sele2, classcat_id2_selected);
31}
32//]]>
33</script>
34
35<!--▼CONTENTS-->
36<div id="undercolumn" class="product product_detail">
37
38    <!--★タイトル★-->
39    <h2 class="title"><!--{$tpl_subtitle|h}--></h2>
40
41    <div id="detailarea">
42        <div id="detailphotoblock">
43
44            <!--{assign var=key value="main_image"}-->
45
46            <!--★画像★-->
47            <a
48                <!--{if $arrProduct.main_large_image|strlen >= 1}-->
49                    href="<!--{$smarty.const.IMAGE_SAVE_URLPATH}--><!--{$arrProduct.main_large_image|h}-->"
50                    class="expansion"
51                    onmouseover="chgImg('<!--{$TPL_URLPATH}-->img/button/btn_expansion_on.gif','expansion01');"
52                    onmouseout="chgImg('<!--{$TPL_URLPATH}-->img/button/btn_expansion.gif','expansion01');"
53                    target="_blank"
54                <!--{/if}-->
55            >
56                <img src="<!--{$smarty.const.IMAGE_SAVE_URLPATH}--><!--{$arrProduct.main_large_image|h}-->" width="<!--{$arrFile[$key].width}-->" height="<!--{$arrFile[$key].height}-->" alt="<!--{$arrProduct.name|h}-->" class="picture" /><br />
57                <!--★拡大する★-->
58                <!--{if $arrProduct.main_large_image|strlen >= 1}-->
59                    <img src="<!--{$TPL_URLPATH}-->img/button/btn_expansion.gif" width="85" height="13" alt="画像を拡大する" name="expansion01" id="expansion01" />
60                <!--{/if}-->
61            </a>
62        </div>
63
64        <div id="detailrightblock">
65            <!--▼商品ステータス-->
66            <!--{assign var=ps value=$productStatus[$smarty.get.product_id]}-->
67            <!--{if count($ps) > 0}-->
68                <ul class="status_icon">
69                    <!--{foreach from=$ps item=status}-->
70                    <li>
71                        <img src="<!--{$TPL_URLPATH}--><!--{$arrSTATUS_IMAGE[$status]}-->" width="65" height="17" alt="<!--{$arrSTATUS[$status]}-->" id="icon<!--{$status}-->" />
72                    </li>
73                    <!--{/foreach}-->
74                </ul>
75            <!--{/if}-->
76            <!--▲商品ステータス-->
77
78            <!--★ダウンロード販売★-->
79            <!--{if $arrProduct.down == 2}-->
80                <div><font color="red">本商品はダウンロード販売となります。<br /> 購入後はMYページの購入履歴からダウンロード可能です。</font></div><br />
81            <!--{/if}-->
82
83            <table>
84                <tr>
85                    <th colspan="2">
86                        <!--★商品名★-->
87                        <h2><!--{$arrProduct.name|h}--></h2>
88                    </th>
89                </tr>
90                 <tr>
91                    <th>
92                        <div class="product_code">商品コード:</div>
93                    </th>
94                     <td>
95                     <span id="product_code_default">
96                    <!--{if $arrProduct.product_code_min == $arrProduct.product_code_max}-->
97                        <!--{$arrProduct.product_code_min|h}-->
98                    <!--{else}-->
99                        <!--{$arrProduct.product_code_min|h}-->~<!--{$arrProduct.product_code_max|h}-->
100                    <!--{/if}-->
101                </span><span id="product_code_dynamic"></span>
102                     </td>
103                </tr>
104                <tr>
105                    <th>
106                        <!--★販売価格★-->
107                        <div class="sale_price"><!--{$smarty.const.SALE_PRICE_TITLE}--><span class="mini">(税込)</span></div>
108                    </th>
109                    <td>
110                        <span class="price">
111                            <span id="price02_default">
112                                <!--{if $arrProduct.price02_min == $arrProduct.price02_max}-->
113                                    <!--{$arrProduct.price02_min|sfCalcIncTax:$arrSiteInfo.tax:$arrSiteInfo.tax_rule|number_format}-->
114                                <!--{else}-->
115                                    <!--{$arrProduct.price02_min|sfCalcIncTax:$arrSiteInfo.tax:$arrSiteInfo.tax_rule|number_format}-->~<!--{$arrProduct.price02_max|sfCalcIncTax:$arrSiteInfo.tax:$arrSiteInfo.tax_rule|number_format}-->
116                                <!--{/if}-->
117                            </span><span id="price02_dynamic"></span>
118                            円
119                        </span>
120                    </td>
121                </tr>
122                <!--★通常価格★-->
123                <!--{if $arrProduct.price01_max > 0}-->
124                <tr>
125                    <th>
126                        <div class="normal_price">
127                        <!--{$smarty.const.NORMAL_PRICE_TITLE}-->:
128                        </div>
129                    </th>
130                    <td>
131                        <span class="price">
132                            <span id="price01_default">
133                                <!--{if $arrProduct.price01_min == $arrProduct.price01_max}-->
134                                    <!--{$arrProduct.price01_min|number_format}-->
135                                <!--{else}-->
136                                    <!--{$arrProduct.price01_min|number_format}-->~<!--{$arrProduct.price01_max|number_format}-->
137                                <!--{/if}-->
138                            </span><span id="price01_dynamic"></span>
139                            円
140                        </span>
141                    </td>
142                </tr>   
143                <!--{/if}-->
144
145           
146                <!--★ポイント★-->
147                <!--{if $smarty.const.USE_POINT !== false}-->
148                <tr>
149                    <th>
150                        <span class="price">ポイント:</span>
151                    </th>
152                    <td>
153                        <span id="point_default">
154                            <!--{if $arrProduct.price02_min == $arrProduct.price02_max}-->
155                                <!--{$arrProduct.price02_min|sfPrePoint:$arrProduct.point_rate:$smarty.const.POINT_RULE:$arrProduct.product_id|number_format}-->
156                            <!--{else}-->
157                                <!--{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}-->
158                                    <!--{$arrProduct.price02_min|sfPrePoint:$arrProduct.point_rate:$smarty.const.POINT_RULE:$arrProduct.product_id|number_format}-->
159                                <!--{else}-->
160                                    <!--{$arrProduct.price02_min|sfPrePoint:$arrProduct.point_rate:$smarty.const.POINT_RULE:$arrProduct.product_id|number_format}-->~<!--{$arrProduct.price02_max|sfPrePoint:$arrProduct.point_rate:$smarty.const.POINT_RULE:$arrProduct.product_id|number_format}-->
161                                <!--{/if}-->
162                            <!--{/if}-->
163                            </span><span id="point_dynamic">
164                            Pt
165                        </span>
166                    </td>
167                </tr>
168                <!--{/if}-->
169
170                <!--▼メーカーURL-->
171                <!--{if $arrProduct.comment1|strlen >= 1}-->
172                <tr>
173                    <th>
174                        <span class="comment1">メーカーURL:
175                    </th>
176                    <td>
177                            <a href="<!--{$arrProduct.comment1|h}-->">
178                                <!--{$arrProduct.comment1|h}--></a>
179                    </td>
180                </tr>
181                <!--{/if}-->
182                <!--▲メーカーURL-->
183
184                <!--★関連カテゴリ★-->
185                <tr>
186                    <th>
187                        <div class="relative_cat">関連カテゴリ:</div>
188                    </th>
189                    <td>
190                        <!--{section name=r loop=$arrRelativeCat}-->
191                        <p>
192                            <!--{section name=s loop=$arrRelativeCat[r]}-->
193                            <a href="<!--{$smarty.const.ROOT_URLPATH}-->products/list.php?category_id=<!--{$arrRelativeCat[r][s].category_id}-->"><!--{$arrRelativeCat[r][s].category_name}--></a>
194                            <!--{if !$smarty.section.s.last}--><!--{$smarty.const.SEPA_CATNAVI}--><!--{/if}-->
195                            <!--{/section}-->
196                        </p>
197                        <!--{/section}-->
198                    </td>
199                </tr>
200                <tr>
201                    <td colspan="2">
202                            <!--★詳細メインコメント★-->
203                            <div class="main_comment"><!--{$arrProduct.main_comment|nl2br_html}--></div>
204                    </td>
205                </tr>
206            </table>
207
208            <!--▼買い物かご-->
209            <form name="form1" id="form1" method="post" action="?">
210                <input type="hidden" name="<!--{$smarty.const.TRANSACTION_ID_NAME}-->" value="<!--{$transactionid}-->" />
211                <input type="hidden" name="mode" value="cart" />
212                <input type="hidden" name="product_id" value="<!--{$tpl_product_id}-->" />
213                <input type="hidden" name="product_class_id" value="<!--{$tpl_product_class_id}-->" id="product_class_id" />
214                <input type="hidden" name="favorite_product_id" value="" />
215               
216
217                <!--{if $tpl_stock_find}-->
218                    <dl>
219                        <!--{if $tpl_classcat_find1}-->
220                            <!--▼規格1-->
221                            <dt><!--{$tpl_class_name1|h}--></dt>
222                            <dd>
223                                <select name="classcategory_id1"
224                                    style="<!--{$arrErr.classcategory_id1|sfGetErrorColor}-->"
225                                    onchange="fnSetClassCategories(this.form);"
226                                >
227                                    <!--{html_options options=$arrClassCat1 selected=$arrForm.classcategory_id1.value}-->
228                                </select>
229                                <!--{if $arrErr.classcategory_id1 != ""}-->
230                                    <br /><span class="attention">※ <!--{$tpl_class_name1}-->を入力して下さい。</span>
231                                <!--{/if}-->
232                            </dd>
233                            <!--▲規格1-->
234                        <!--{/if}-->
235
236                        <!--{if $tpl_classcat_find2}-->
237                            <!--▼規格2-->
238                            <dt><!--{$tpl_class_name2|h}--></dt>
239                            <dd>
240                                <select name="classcategory_id2"
241                                    style="<!--{$arrErr.classcategory_id2|sfGetErrorColor}-->"
242                                    onchange="fnCheckStock(this.form);"
243                                >
244                                </select>
245                                <!--{if $arrErr.classcategory_id2 != ""}-->
246                                    <br /><span class="attention">※ <!--{$tpl_class_name2}-->を入力して下さい。</span>
247                                <!--{/if}-->
248                            </dd>
249                            <!--▲規格2-->
250                        <!--{/if}-->
251
252                        <dt>数量</dt>
253                        <dd>
254                            <input type="text" name="quantity" class="box54" value="<!--{$arrForm.quantity.value|default:1}-->" maxlength="<!--{$smarty.const.INT_LEN}-->" style="<!--{$arrErr.quantity|sfGetErrorColor}-->" />
255                            <!--{if $arrErr.quantity != ""}-->
256                                <br /><span class="attention"><!--{$arrErr.quantity}--></span>
257                            <!--{/if}-->
258                        </dd>
259                    </dl>
260                <!--{/if}-->
261
262                <div class="btn">
263                    <!--{if $smarty.const.OPTION_FAVOFITE_PRODUCT == 1 && $tpl_login === true}-->
264                       
265                    <!--{/if}-->
266
267                    <!--{if $tpl_stock_find}-->
268                        <div id="cartbtn_default">
269                            <!--★カゴに入れる★-->
270                            <div>
271                                <a href="javascript:void(document.form1.submit())" onmouseover="chgImg('<!--{$TPL_URLPATH}-->img/products/b_cartin_on.gif','cart');" onmouseout="chgImg('<!--{$TPL_URLPATH}-->img/products/b_cartin.gif','cart');" class="spbtn spbtn-agree">
272                                    カゴに入れる
273                                </a>
274                            </div>
275                            <!--{if 'sfGMODetailDisplay'|function_exists}--><!--{* GMOワンクリック *}-->
276                                <!--{'sfGMODetailDisplay'|call_user_func}-->
277                            <!--{/if}-->
278                        </div>
279                        <div class="attention" id="cartbtn_dynamic"></div>
280                    <!--{else}-->
281                        <div class="attention">申し訳ございませんが、只今品切れ中です。</div>
282                    <!--{/if}-->
283                </div>
284               
285                <!--{if $smarty.const.OPTION_FAVOFITE_PRODUCT == 1 && $tpl_login === true}-->
286                        <div class="btn" id="btn-recommend">
287                            <!--{assign var=add_favorite value="add_favorite`$add_favorite_product_id`"}-->
288                            <!--{if $arrErr[$add_favorite]}--><div class="attention"><!--{$arrErr[$add_favorite]}--></div><!--{/if}-->
289                            <!--{if !$arrProduct.favorite_count}-->
290                               <a href="javascript:fnModeSubmit('add_favorite','favorite_product_id','<!--{$arrProduct.product_id|h}-->');" class="spbtn spbtn-small">
291                                    お気に入りに追加</a>
292                            <!--{else}-->
293                                <div>お気に入り登録済</div>
294                            <!--{/if}-->
295                        </div>
296                   <!--{/if}-->
297            </form>
298            <!--▲買い物かご-->
299
300        </div>
301    </div>
302    <!--{* オペビルダー用 *}-->
303    <!--{if "sfViewDetailOpe"|function_exists === TRUE}-->
304        <!--{include file=`$smarty.const.MODULE_REALDIR`mdl_opebuilder/detail_ope_view.tpl}-->
305    <!--{/if}-->
306    <!--詳細ここまで-->
307
308    <!--▼サブコメント-->
309    <!--{section name=cnt loop=$smarty.const.PRODUCTSUB_MAX}-->
310        <!--{assign var=key value="sub_title`$smarty.section.cnt.index+1`"}-->
311        <!--{if $arrProduct[$key] != ""}-->
312            <div class="subarea">
313                <h3><!--★サブタイトル★--><!--{$arrProduct[$key]|h}--></h3>
314                <!--{assign var=ckey value="sub_comment`$smarty.section.cnt.index+1`"}-->
315
316                <div class="subtext"><!--★サブテキスト★--><!--{$arrProduct[$ckey]|nl2br_html}--></div>
317
318                <!--▼サブ画像-->
319                <!--{assign var=key value="sub_image`$smarty.section.cnt.index+1`"}-->
320                <!--{assign var=lkey value="sub_large_image`$smarty.section.cnt.index+1`"}-->
321                <!--{if $arrProduct[$key]|strlen >= 1}-->
322                    <div class="subphotoimg">
323                        <a
324                            <!--{if $arrProduct[$lkey]|strlen >= 1}-->
325                                href="<!--{$smarty.const.IMAGE_SAVE_URLPATH}--><!--{$arrProduct[$lkey]|h}-->"
326                                class="expansion"
327                                onmouseover="chgImg('<!--{$TPL_URLPATH}-->img/products/b_expansion_on.gif', 'expansion_<!--{$lkey|h}-->');"
328                                onmouseout="chgImg('<!--{$TPL_URLPATH}-->img/products/b_expansion.gif', 'expansion_<!--{$lkey|h}-->');"
329                                target="_blank"
330                            <!--{/if}-->
331                        >
332                            <img src="<!--{$arrFile[$key].filepath}-->" alt="<!--{$arrProduct.name|h}-->" width="<!--{$arrFile[$key].width}-->" height="<!--{$arrFile[$key].height}-->" /><br />
333                            <!--{if $arrProduct[$lkey]|strlen >= 1}-->
334                                <img src="<!--{$TPL_URLPATH}-->img/products/b_expansion.gif" width="85" height="13" alt="画像を拡大する" id="expansion_<!--{$lkey|h}-->" />
335                            <!--{/if}-->
336                        </a>
337                    </div>
338                <!--{/if}-->
339                <!--▲サブ画像-->
340            </div>
341        <!--{/if}-->
342    <!--{/section}-->
343    <!--▲サブコメント-->
344
345    <!--▼関連商品-->
346    <!--{if $arrRecommend}-->
347        <div id="whoboughtarea">
348            <h2>その他のオススメ商品(関連商品)</h2>
349            <div class="whoboughtblock">
350
351            <!--{section name=cnt loop=$arrRecommend}-->
352                <!--{if ($smarty.section.cnt.index % 2) == 0}-->
353                <!--{if $arrRecommend[cnt].product_id}-->
354                <!-- 左列 -->
355                <div class="whoboughtleft">
356
357                    <a href="<!--{$smarty.const.P_DETAIL_URLPATH}--><!--{$arrRecommend[cnt].product_id|u}-->">
358                        <img src="<!--{$smarty.const.ROOT_URLPATH}-->resize_image.php?image=<!--{$arrRecommend[cnt].main_list_image|sfNoImageMainList|h}-->&amp;width=65&amp;height=65" alt="<!--{$arrRecommend[cnt].name|h}-->" /></a>
359
360                    <div class="whoboughtrightblock">
361                        <!--{assign var=price02_min value=`$arrRecommend[cnt].price02_min`}-->
362                        <!--{assign var=price02_max value=`$arrRecommend[cnt].price02_max`}-->
363                        <h3><a href="<!--{$smarty.const.P_DETAIL_URLPATH}--><!--{$arrRecommend[cnt].product_id|u}-->"><!--{$arrRecommend[cnt].name|h}--></a></h3>
364
365                        <p class="sale_price"><!--{$smarty.const.SALE_PRICE_TITLE}--><span class="mini">(税込)</span>:<span class="price">
366                            <!--{if $price02_min == $price02_max}-->
367                                <!--{$price02_min|sfCalcIncTax:$arrSiteInfo.tax:$arrSiteInfo.tax_rule|number_format}-->
368                            <!--{else}-->
369                                <!--{$price02_min|sfCalcIncTax:$arrSiteInfo.tax:$arrSiteInfo.tax_rule|number_format}-->~<!--{$price02_max|sfCalcIncTax:$arrSiteInfo.tax:$arrSiteInfo.tax_rule|number_format}-->
370                            <!--{/if}-->円</span></p>
371                        <p class="mini"><!--{$arrRecommend[cnt].comment|h|nl2br}--></p>
372                    </div>
373                </div>
374                <!-- 左列 -->
375                <!--{/if}-->
376                <!--{/if}-->
377
378                <!--{if ($smarty.section.cnt.index % 2) != 0}-->
379                <!--{* assign var=nextCnt value=$smarty.section.cnt.index+1 *}-->
380                <!--{if $arrRecommend[cnt].product_id}-->
381                <!-- 右列 -->
382                <div class="whoboughtright">
383
384                    <a href="<!--{$smarty.const.P_DETAIL_URLPATH}--><!--{$arrRecommend[cnt].product_id|u}-->">
385                        <img src="<!--{$smarty.const.ROOT_URLPATH}-->resize_image.php?image=<!--{$arrRecommend[cnt].main_list_image|sfNoImageMainList|h}-->&amp;width=65&amp;height=65" alt="<!--{$arrRecommend[cnt].name|h}-->" /></a>
386
387                    <div class="whoboughtrightblock">
388                        <!--{assign var=price02_min value=`$arrRecommend[cnt].price02_min`}-->
389                        <!--{assign var=price02_max value=`$arrRecommend[cnt].price02_max`}-->
390                        <h3><a href="<!--{$smarty.const.P_DETAIL_URLPATH}--><!--{$arrRecommend[cnt].product_id|u}-->"><!--{$arrRecommend[cnt].name|h}--></a></h3>
391
392                        <p class="sale_price"><!--{$smarty.const.SALE_PRICE_TITLE}--><span class="mini">(税込)</span>:<span class="price">
393
394                            <!--{if $price02_min == $price02_max}-->
395                                <!--{$price02_min|sfCalcIncTax:$arrSiteInfo.tax:$arrSiteInfo.tax_rule|number_format}-->
396                            <!--{else}-->
397                                <!--{$price02_min|sfCalcIncTax:$arrSiteInfo.tax:$arrSiteInfo.tax_rule|number_format}-->~<!--{$price02_max|sfCalcIncTax:$arrSiteInfo.tax:$arrSiteInfo.tax_rule|number_format}-->
398                            <!--{/if}-->円</span></p>
399                        <p class="mini"><!--{$arrRecommend[cnt].comment|h|nl2br}--></p>
400                    </div>
401                </div>
402                <!-- 右列 -->
403            <!--{/if}-->
404            <!--{/if}-->
405
406            <!--{if $smarty.section.cnt.last}-->
407            </div>
408            <!--{/if}-->
409        <!--{/section}-->
410        </div>
411    <!--{/if}-->
412    <!--▲関連商品-->
413
414</div>
415<!--▲CONTENTS-->
Note: See TracBrowser for help on using the repository browser.