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

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

#880(mobile/sphoneディレクトリを削除)

  • 不要な MOBILE_*, SMARTPHONE_* 定数を削除

#793 (非推奨機能の削除)

  • モバイル空メール関連削除
  • 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}-->
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}-->
159                                <!--{else}-->
160                                    <!--{$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}-->
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="product_type" value="<!--{$tpl_product_type}-->" id="product_type" />
215                <input type="hidden" name="favorite_product_id" value="" />
216               
217
218                <!--{if $tpl_stock_find}-->
219                    <dl>
220                        <!--{if $tpl_classcat_find1}-->
221                            <!--▼規格1-->
222                            <dt><!--{$tpl_class_name1|h}--></dt>
223                            <dd>
224                                <select name="classcategory_id1"
225                                    style="<!--{$arrErr.classcategory_id1|sfGetErrorColor}-->"
226                                    onchange="fnSetClassCategories(this.form);"
227                                >
228                                    <!--{html_options options=$arrClassCat1 selected=$arrForm.classcategory_id1.value}-->
229                                </select>
230                                <!--{if $arrErr.classcategory_id1 != ""}-->
231                                    <br /><span class="attention">※ <!--{$tpl_class_name1}-->を入力して下さい。</span>
232                                <!--{/if}-->
233                            </dd>
234                            <!--▲規格1-->
235                        <!--{/if}-->
236
237                        <!--{if $tpl_classcat_find2}-->
238                            <!--▼規格2-->
239                            <dt><!--{$tpl_class_name2|h}--></dt>
240                            <dd>
241                                <select name="classcategory_id2"
242                                    style="<!--{$arrErr.classcategory_id2|sfGetErrorColor}-->"
243                                    onchange="fnCheckStock(this.form);"
244                                >
245                                </select>
246                                <!--{if $arrErr.classcategory_id2 != ""}-->
247                                    <br /><span class="attention">※ <!--{$tpl_class_name2}-->を入力して下さい。</span>
248                                <!--{/if}-->
249                            </dd>
250                            <!--▲規格2-->
251                        <!--{/if}-->
252
253                        <dt>数量</dt>
254                        <dd>
255                            <input type="text" name="quantity" class="box54" value="<!--{$arrForm.quantity.value|default:1}-->" maxlength="<!--{$smarty.const.INT_LEN}-->" style="<!--{$arrErr.quantity|sfGetErrorColor}-->" />
256                            <!--{if $arrErr.quantity != ""}-->
257                                <br /><span class="attention"><!--{$arrErr.quantity}--></span>
258                            <!--{/if}-->
259                        </dd>
260                    </dl>
261                <!--{/if}-->
262
263                <div class="btn">
264                    <!--{if $smarty.const.OPTION_FAVOFITE_PRODUCT == 1 && $tpl_login === true}-->
265                       
266                    <!--{/if}-->
267
268                    <!--{if $tpl_stock_find}-->
269                        <div id="cartbtn_default">
270                            <!--★カゴに入れる★-->
271                            <div>
272                                <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">
273                                    カゴに入れる
274                                </a>
275                            </div>
276                            <!--{if 'sfGMODetailDisplay'|function_exists}--><!--{* GMOワンクリック *}-->
277                                <!--{'sfGMODetailDisplay'|call_user_func}-->
278                            <!--{/if}-->
279                        </div>
280                        <div class="attention" id="cartbtn_dynamic"></div>
281                    <!--{else}-->
282                        <div class="attention">申し訳ございませんが、只今品切れ中です。</div>
283                    <!--{/if}-->
284                </div>
285               
286                <!--{if $smarty.const.OPTION_FAVOFITE_PRODUCT == 1 && $tpl_login === true}-->
287                        <div class="btn" id="btn-recommend">
288                            <!--{assign var=add_favorite value="add_favorite`$add_favorite_product_id`"}-->
289                            <!--{if $arrErr[$add_favorite]}--><div class="attention"><!--{$arrErr[$add_favorite]}--></div><!--{/if}-->
290                            <!--{if !$arrProduct.favorite_count}-->
291                               <a href="javascript:fnModeSubmit('add_favorite','favorite_product_id','<!--{$arrProduct.product_id|h}-->');" class="spbtn spbtn-small">
292                                    お気に入りに追加</a>
293                            <!--{else}-->
294                                <div>お気に入り登録済</div>
295                            <!--{/if}-->
296                        </div>
297                   <!--{/if}-->
298            </form>
299            <!--▲買い物かご-->
300
301        </div>
302    </div>
303    <!--{* オペビルダー用 *}-->
304    <!--{if "sfViewDetailOpe"|function_exists === TRUE}-->
305        <!--{include file=`$smarty.const.MODULE_REALDIR`mdl_opebuilder/detail_ope_view.tpl}-->
306    <!--{/if}-->
307    <!--詳細ここまで-->
308
309    <!--▼サブコメント-->
310    <!--{section name=cnt loop=$smarty.const.PRODUCTSUB_MAX}-->
311        <!--{assign var=key value="sub_title`$smarty.section.cnt.index+1`"}-->
312        <!--{if $arrProduct[$key] != ""}-->
313            <div class="subarea">
314                <h3><!--★サブタイトル★--><!--{$arrProduct[$key]|h}--></h3>
315                <!--{assign var=ckey value="sub_comment`$smarty.section.cnt.index+1`"}-->
316
317                <div class="subtext"><!--★サブテキスト★--><!--{$arrProduct[$ckey]|nl2br_html}--></div>
318
319                <!--▼サブ画像-->
320                <!--{assign var=key value="sub_image`$smarty.section.cnt.index+1`"}-->
321                <!--{assign var=lkey value="sub_large_image`$smarty.section.cnt.index+1`"}-->
322                <!--{if $arrProduct[$key]|strlen >= 1}-->
323                    <div class="subphotoimg">
324                        <a
325                            <!--{if $arrProduct[$lkey]|strlen >= 1}-->
326                                href="<!--{$smarty.const.IMAGE_SAVE_URLPATH}--><!--{$arrProduct[$lkey]|h}-->"
327                                class="expansion"
328                                onmouseover="chgImg('<!--{$TPL_URLPATH}-->img/products/b_expansion_on.gif', 'expansion_<!--{$lkey|h}-->');"
329                                onmouseout="chgImg('<!--{$TPL_URLPATH}-->img/products/b_expansion.gif', 'expansion_<!--{$lkey|h}-->');"
330                                target="_blank"
331                            <!--{/if}-->
332                        >
333                            <img src="<!--{$arrFile[$key].filepath}-->" alt="<!--{$arrProduct.name|h}-->" width="<!--{$arrFile[$key].width}-->" height="<!--{$arrFile[$key].height}-->" /><br />
334                            <!--{if $arrProduct[$lkey]|strlen >= 1}-->
335                                <img src="<!--{$TPL_URLPATH}-->img/products/b_expansion.gif" width="85" height="13" alt="画像を拡大する" id="expansion_<!--{$lkey|h}-->" />
336                            <!--{/if}-->
337                        </a>
338                    </div>
339                <!--{/if}-->
340                <!--▲サブ画像-->
341            </div>
342        <!--{/if}-->
343    <!--{/section}-->
344    <!--▲サブコメント-->
345
346    <!--▼関連商品-->
347    <!--{if $arrRecommend}-->
348        <div id="whoboughtarea">
349            <h2>その他のオススメ商品(関連商品)</h2>
350            <div class="whoboughtblock">
351
352            <!--{section name=cnt loop=$arrRecommend}-->
353                <!--{if ($smarty.section.cnt.index % 2) == 0}-->
354                <!--{if $arrRecommend[cnt].product_id}-->
355                <!-- 左列 -->
356                <div class="whoboughtleft">
357
358                    <a href="<!--{$smarty.const.P_DETAIL_URLPATH}--><!--{$arrRecommend[cnt].product_id|u}-->">
359                        <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>
360
361                    <div class="whoboughtrightblock">
362                        <!--{assign var=price02_min value=`$arrRecommend[cnt].price02_min`}-->
363                        <!--{assign var=price02_max value=`$arrRecommend[cnt].price02_max`}-->
364                        <h3><a href="<!--{$smarty.const.P_DETAIL_URLPATH}--><!--{$arrRecommend[cnt].product_id|u}-->"><!--{$arrRecommend[cnt].name|h}--></a></h3>
365
366                        <p class="sale_price"><!--{$smarty.const.SALE_PRICE_TITLE}--><span class="mini">(税込)</span>:<span class="price">
367                            <!--{if $price02_min == $price02_max}-->
368                                <!--{$price02_min|sfCalcIncTax:$arrSiteInfo.tax:$arrSiteInfo.tax_rule|number_format}-->
369                            <!--{else}-->
370                                <!--{$price02_min|sfCalcIncTax:$arrSiteInfo.tax:$arrSiteInfo.tax_rule|number_format}-->~<!--{$price02_max|sfCalcIncTax:$arrSiteInfo.tax:$arrSiteInfo.tax_rule|number_format}-->
371                            <!--{/if}-->円</span></p>
372                        <p class="mini"><!--{$arrRecommend[cnt].comment|h|nl2br}--></p>
373                    </div>
374                </div>
375                <!-- 左列 -->
376                <!--{/if}-->
377                <!--{/if}-->
378
379                <!--{if ($smarty.section.cnt.index % 2) != 0}-->
380                <!--{* assign var=nextCnt value=$smarty.section.cnt.index+1 *}-->
381                <!--{if $arrRecommend[cnt].product_id}-->
382                <!-- 右列 -->
383                <div class="whoboughtright">
384
385                    <a href="<!--{$smarty.const.P_DETAIL_URLPATH}--><!--{$arrRecommend[cnt].product_id|u}-->">
386                        <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>
387
388                    <div class="whoboughtrightblock">
389                        <!--{assign var=price02_min value=`$arrRecommend[cnt].price02_min`}-->
390                        <!--{assign var=price02_max value=`$arrRecommend[cnt].price02_max`}-->
391                        <h3><a href="<!--{$smarty.const.P_DETAIL_URLPATH}--><!--{$arrRecommend[cnt].product_id|u}-->"><!--{$arrRecommend[cnt].name|h}--></a></h3>
392
393                        <p class="sale_price"><!--{$smarty.const.SALE_PRICE_TITLE}--><span class="mini">(税込)</span>:<span class="price">
394
395                            <!--{if $price02_min == $price02_max}-->
396                                <!--{$price02_min|sfCalcIncTax:$arrSiteInfo.tax:$arrSiteInfo.tax_rule|number_format}-->
397                            <!--{else}-->
398                                <!--{$price02_min|sfCalcIncTax:$arrSiteInfo.tax:$arrSiteInfo.tax_rule|number_format}-->~<!--{$price02_max|sfCalcIncTax:$arrSiteInfo.tax:$arrSiteInfo.tax_rule|number_format}-->
399                            <!--{/if}-->円</span></p>
400                        <p class="mini"><!--{$arrRecommend[cnt].comment|h|nl2br}--></p>
401                    </div>
402                </div>
403                <!-- 右列 -->
404            <!--{/if}-->
405            <!--{/if}-->
406
407            <!--{if $smarty.section.cnt.last}-->
408            </div>
409            <!--{/if}-->
410        <!--{/section}-->
411        </div>
412    <!--{/if}-->
413    <!--▲関連商品-->
414
415</div>
416<!--▲CONTENTS-->
Note: See TracBrowser for help on using the repository browser.