source: branches/version-2_12-multilang/data/Smarty/templates/default_en/products/detail.tpl @ 22210

Revision 22210, 20.0 KB checked in by m_uehara, 11 years ago (diff)

#1991 & を $ に修正しました。

Line 
1<!--{*
2 * This file is part of EC-CUBE
3 *
4 * Copyright(c) 2000-2012 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<script type="text/javascript" src="<!--{$smarty.const.ROOT_URLPATH}-->js/products.js"></script>
24<script type="text/javascript" src="<!--{$smarty.const.ROOT_URLPATH}-->js/jquery.facebox/facebox.js"></script>
25<link rel="stylesheet" type="text/css" href="<!--{$smarty.const.ROOT_URLPATH}-->js/jquery.facebox/facebox.css" media="screen" />
26<script type="text/javascript">//<![CDATA[
27    // 規格2に選択肢を割り当てる。
28    function fnSetClassCategories(form, classcat_id2_selected) {
29        var $form = $(form);
30        var product_id = $form.find('input[name=product_id]').val();
31        var $sele1 = $form.find('select[name=classcategory_id1]');
32        var $sele2 = $form.find('select[name=classcategory_id2]');
33        setClassCategories($form, product_id, $sele1, $sele2, classcat_id2_selected);
34    }
35    $(document).ready(function() {
36        $('a.expansion').facebox({
37            loadingImage : '<!--{$smarty.const.ROOT_URLPATH}-->js/jquery.facebox/loading.gif',
38            closeImage   : '<!--{$smarty.const.ROOT_URLPATH}-->js/jquery.facebox/closelabel.png'
39        });
40    });
41//]]></script>
42
43<div id="undercolumn">
44    <form name="form1" id="form1" method="post" action="?">
45    <input type="hidden" name="<!--{$smarty.const.TRANSACTION_ID_NAME}-->" value="<!--{$transactionid}-->" />
46    <div id="detailarea" class="clearfix">
47        <div id="detailphotobloc">
48            <div class="photo">
49                <!--{assign var=key value="main_image"}-->
50                <!--★画像★-->
51                <!--{if $arrProduct.main_large_image|strlen >= 1}-->
52                    <a
53                        href="<!--{$smarty.const.IMAGE_SAVE_URLPATH}--><!--{$arrProduct.main_large_image|h}-->"
54                        class="expansion"
55                        target="_blank"
56                    >
57                <!--{/if}-->
58                    <img src="<!--{$arrFile[$key].filepath|h}-->" width="<!--{$arrFile[$key].width}-->" height="<!--{$arrFile[$key].height}-->" alt="<!--{$arrProduct.name|h}-->" class="picture" />
59                <!--{if $arrProduct.main_large_image|strlen >= 1}-->
60                    </a>
61                <!--{/if}-->
62            </div>
63            <!--{if $arrProduct.main_large_image|strlen >= 1}-->
64                <span class="mini">
65                        <!--★拡大する★-->
66                        <a
67                            href="<!--{$smarty.const.IMAGE_SAVE_URLPATH}--><!--{$arrProduct.main_large_image|h}-->"
68                            class="expansion"
69                            target="_blank"
70                        >
71                            Enlarge the image</a>
72                </span>
73            <!--{/if}-->
74        </div>
75
76        <div id="detailrightbloc">
77            <!--▼商品ステータス-->
78            <!--{assign var=ps value=$productStatus[$tpl_product_id]}-->
79            <!--{if count($ps) > 0}-->
80                <ul class="status_icon clearfix">
81                    <!--{foreach from=$ps item=status}-->
82                    <li>
83                        <img src="<!--{$TPL_URLPATH}--><!--{$arrSTATUS_IMAGE[$status]}-->" width="60" height="17" alt="<!--{$arrSTATUS[$status]}-->" id="icon<!--{$status}-->" />
84                    </li>
85                    <!--{/foreach}-->
86                </ul>
87            <!--{/if}-->
88            <!--▲商品ステータス-->
89
90            <!--★商品コード★-->
91            <dl class="product_code">
92                <dt>Product code:</dt>
93                <dd>
94                    <span id="product_code_default">
95                        <!--{if $arrProduct.product_code_min == $arrProduct.product_code_max}-->
96                            <!--{$arrProduct.product_code_min|h}-->
97                        <!--{else}-->
98                            <!--{$arrProduct.product_code_min|h}--> - <!--{$arrProduct.product_code_max|h}-->
99                        <!--{/if}-->
100                    </span><span id="product_code_dynamic"></span>
101                </dd>
102            </dl>
103
104            <!--★商品名★-->
105            <h2><!--{$arrProduct.name|h}--></h2>
106
107            <!--★通常価格★-->
108            <!--{if $arrProduct.price01_min_inctax > 0}-->
109                <dl class="normal_price">
110                    <dt><!--{$smarty.const.NORMAL_PRICE_TITLE}-->(tax included):</dt>
111                    <dd class="price">
112                        &#036;
113                        <span id="price01_default"><!--{strip}-->
114                            <!--{if $arrProduct.price01_min_inctax == $arrProduct.price01_max_inctax}-->
115                                <!--{$arrProduct.price01_min_inctax|number_format}-->
116                            <!--{else}-->
117                                <!--{$arrProduct.price01_min_inctax|number_format}--> - <!--{$arrProduct.price01_max_inctax|number_format}-->
118                            <!--{/if}-->
119                        </span><span id="price01_dynamic"></span><!--{/strip}-->
120                    </dd>
121                </dl>
122            <!--{/if}-->
123
124            <!--★販売価格★-->
125            <dl class="sale_price">
126                <dt><!--{$smarty.const.SALE_PRICE_TITLE}-->(tax included):</dt>
127                <dd class="price">
128                    &#036;
129                    <span id="price02_default"><!--{strip}-->
130                        <!--{if $arrProduct.price02_min_inctax == $arrProduct.price02_max_inctax}-->
131                            <!--{$arrProduct.price02_min_inctax|number_format}-->
132                        <!--{else}-->
133                            <!--{$arrProduct.price02_min_inctax|number_format}--> - <!--{$arrProduct.price02_max_inctax|number_format}-->
134                        <!--{/if}-->
135                    </span><span id="price02_dynamic"></span><!--{/strip}-->
136                </dd>
137            </dl>
138
139            <!--★ポイント★-->
140            <!--{if $smarty.const.USE_POINT !== false}-->
141                <div class="point">Points:
142                    <span id="point_default"><!--{strip}-->
143                        <!--{if $arrProduct.price02_min == $arrProduct.price02_max}-->
144                            <!--{$arrProduct.price02_min|sfPrePoint:$arrProduct.point_rate|number_format}-->
145                        <!--{else}-->
146                            <!--{if $arrProduct.price02_min|sfPrePoint:$arrProduct.point_rate == $arrProduct.price02_max|sfPrePoint:$arrProduct.point_rate}-->
147                                <!--{$arrProduct.price02_min|sfPrePoint:$arrProduct.point_rate|number_format}-->
148                            <!--{else}-->
149                                <!--{$arrProduct.price02_min|sfPrePoint:$arrProduct.point_rate|number_format}--> - <!--{$arrProduct.price02_max|sfPrePoint:$arrProduct.point_rate|number_format}-->
150                            <!--{/if}-->
151                        <!--{/if}-->
152                    </span><span id="point_dynamic"></span><!--{/strip}-->
153                    Pt
154                </div>
155            <!--{/if}-->
156
157            <!--{* ▼メーカー *}-->
158            <!--{if $arrProduct.maker_name|strlen >= 1}-->
159                <dl class="maker">
160                    <dt>Manufacturer:</dt>
161                    <dd><!--{$arrProduct.maker_name|h}--></dd>
162                </dl>
163            <!--{/if}-->
164            <!--{* ▲メーカー *}-->
165
166            <!--▼メーカーURL-->
167            <!--{if $arrProduct.comment1|strlen >= 1}-->
168                <dl class="comment1">
169                    <dt>Manufacturer URL:</dt>
170                    <dd><a href="<!--{$arrProduct.comment1|h}-->"><!--{$arrProduct.comment1|h}--></a></dd>
171                </dl>
172            <!--{/if}-->
173            <!--▼メーカーURL-->
174
175            <!--★関連カテゴリ★-->
176            <dl class="relative_cat">
177                <dt>Related categories:</dt>
178                <!--{section name=r loop=$arrRelativeCat}-->
179                    <dd>
180                        <!--{section name=s loop=$arrRelativeCat[r]}-->
181                            <a href="<!--{$smarty.const.ROOT_URLPATH}-->products/list.php?category_id=<!--{$arrRelativeCat[r][s].category_id}-->"><!--{$arrRelativeCat[r][s].category_name}--></a>
182                            <!--{if !$smarty.section.s.last}--><!--{$smarty.const.SEPA_CATNAVI}--><!--{/if}-->
183                        <!--{/section}-->
184                    </dd>
185                <!--{/section}-->
186            </dl>
187
188            <!--★詳細メインコメント★-->
189            <div class="main_comment"><!--{$arrProduct.main_comment|nl2br_html}--></div>
190
191            <!--▼買い物かご-->
192
193            <div class="cart_area clearfix">
194            <input type="hidden" name="mode" value="cart" />
195            <input type="hidden" name="product_id" value="<!--{$tpl_product_id}-->" />
196            <input type="hidden" name="product_class_id" value="<!--{$tpl_product_class_id}-->" id="product_class_id" />
197            <input type="hidden" name="favorite_product_id" value="" />
198
199            <!--{if $tpl_stock_find}-->
200                <!--{if $tpl_classcat_find1}-->
201                    <div class="classlist">
202                        <!--▼規格1-->
203                        <ul class="clearfix">
204                            <li><!--{$tpl_class_name1|h}-->:</li>
205                            <li>
206                                <select name="classcategory_id1" style="<!--{$arrErr.classcategory_id1|sfGetErrorColor}-->">
207                                <!--{html_options options=$arrClassCat1 selected=$arrForm.classcategory_id1.value}-->
208                                </select>
209                                <!--{if $arrErr.classcategory_id1 != ""}-->
210                                <br /><span class="attention">* Input <!--{$tpl_class_name1}-->.</span>
211                                <!--{/if}-->
212                            </li>
213                        </ul>
214                        <!--▲規格1-->
215                        <!--{if $tpl_classcat_find2}-->
216                        <!--▼規格2-->
217                        <ul class="clearfix">
218                            <li><!--{$tpl_class_name2|h}-->:</li>
219                            <li>
220                                <select name="classcategory_id2" style="<!--{$arrErr.classcategory_id2|sfGetErrorColor}-->">
221                                </select>
222                                <!--{if $arrErr.classcategory_id2 != ""}-->
223                                <br /><span class="attention">* Input <!--{$tpl_class_name2}-->.</span>
224                                <!--{/if}-->
225                            </li>
226                        </ul>
227                        <!--▲規格2-->
228                        <!--{/if}-->
229                    </div>
230                <!--{/if}-->
231
232                <!--★数量★-->
233                <dl class="quantity">
234                    <dt>Quantity:</dt>
235                    <dd><input type="text" class="box60" name="quantity" value="<!--{$arrForm.quantity.value|default:1|h}-->" maxlength="<!--{$smarty.const.INT_LEN}-->" style="<!--{$arrErr.quantity|sfGetErrorColor}-->" />
236                        <!--{if $arrErr.quantity != ""}-->
237                            <br /><span class="attention"><!--{$arrErr.quantity}--></span>
238                        <!--{/if}-->
239                    </dd>
240                </dl>
241
242                <div class="cartin">
243                    <div class="cartin_btn">
244                        <div id="cartbtn_default">
245                            <!--★カゴに入れる★-->
246                            <a class="bt03" href="javascript:void(document.form1.submit())">Place in basket</a>
247                        </div>
248                    </div>
249                </div>
250                <div class="attention" id="cartbtn_dynamic"></div>
251            <!--{else}-->
252                <div class="attention">This product is currently sold out. We apologize for the inconvenience.</div>
253            <!--{/if}-->
254
255            <!--★お気に入り登録★-->
256            <!--{if $smarty.const.OPTION_FAVORITE_PRODUCT == 1 && $tpl_login === true}-->
257                <div class="favorite_btn">
258                    <!--{assign var=add_favorite value="add_favorite`$product_id`"}-->
259                    <!--{if $arrErr[$add_favorite]}-->
260                        <div class="attention"><!--{$arrErr[$add_favorite]}--></div>
261                    <!--{/if}-->
262                    <!--{if !$is_favorite}-->
263                        <a class="bt01" href="javascript:fnChangeAction('?product_id=<!--{$arrProduct.product_id|h}-->'); fnModeSubmit('add_favorite','favorite_product_id','<!--{$arrProduct.product_id|h}-->');">Add to Favorites</a>
264                    <!--{else}-->
265                        <span class="bt01" name="add_favorite_product" id="add_favorite_product">Registered in Favorites</span>
266                        <script type="text/javascript" src="<!--{$smarty.const.ROOT_URLPATH}-->js/jquery.tipsy.js"></script>
267                        <script type="text/javascript">
268                            var favoriteButton = $("#add_favorite_product");
269                            favoriteButton.tipsy({gravity: $.fn.tipsy.autoNS, fallback: "Registered in Favorites", fade: true });
270
271                            <!--{if $just_added_favorite == true}-->
272                            favoriteButton.load(function(){$(this).tipsy("show")});
273                            $(function(){
274                                var tid = setTimeout('favoriteButton.tipsy("hide")',5000);
275                            });
276                            <!--{/if}-->
277                        </script>
278                    <!--{/if}-->
279                </div>
280            <!--{/if}-->
281        </div>
282    </div>
283    <!--▲買い物かご-->
284</div>
285</form>
286
287    <!--詳細ここまで-->
288
289    <!--▼サブコメント-->
290    <!--{section name=cnt loop=$smarty.const.PRODUCTSUB_MAX}-->
291        <!--{assign var=key value="sub_title`$smarty.section.cnt.index+1`"}-->
292        <!--{assign var=ikey value="sub_image`$smarty.section.cnt.index+1`"}-->
293        <!--{if $arrProduct[$key] != "" or $arrProduct[$ikey]|strlen >= 1}-->
294            <div class="sub_area clearfix">
295                <h3><!--★サブタイトル★--><!--{$arrProduct[$key]|h}--></h3>
296                <!--{assign var=ckey value="sub_comment`$smarty.section.cnt.index+1`"}-->
297                <!--▼サブ画像-->
298                <!--{assign var=lkey value="sub_large_image`$smarty.section.cnt.index+1`"}-->
299                <!--{if $arrProduct[$ikey]|strlen >= 1}-->
300                    <div class="subtext"><!--★サブテキスト★--><!--{$arrProduct[$ckey]|nl2br_html}--></div>
301                    <div class="subphotoimg">
302                        <!--{if $arrProduct[$lkey]|strlen >= 1}-->
303                            <a href="<!--{$smarty.const.IMAGE_SAVE_URLPATH}--><!--{$arrProduct[$lkey]|h}-->" class="expansion" target="_blank" >
304                        <!--{/if}-->
305                        <img src="<!--{$arrFile[$ikey].filepath}-->" alt="<!--{$arrProduct.name|h}-->" width="<!--{$arrFile[$ikey].width}-->" height="<!--{$arrFile[$ikey].height}-->" />
306                        <!--{if $arrProduct[$lkey]|strlen >= 1}--></a>
307                            <span class="mini">
308                                <a href="<!--{$smarty.const.IMAGE_SAVE_URLPATH}--><!--{$arrProduct[$lkey]|h}-->" class="expansion" target="_blank">
309                                    Enlarge the image</a>
310                            </span>
311                        <!--{/if}-->
312                    </div>
313                <!--{else}-->
314                    <p class="subtext"><!--★サブテキスト★--><!--{$arrProduct[$ckey]|nl2br_html}--></p>
315                <!--{/if}-->
316                <!--▲サブ画像-->
317            </div>
318        <!--{/if}-->
319    <!--{/section}-->
320    <!--▲サブコメント-->
321
322    <!--この商品に対するお客様の声-->
323    <div id="customervoice_area">
324        <h2><img src="<!--{$TPL_URLPATH}-->img/title/tit_product_voice.jpg" alt="Customer's opinion regarding this product" /></h2>
325
326        <div class="review_bloc clearfix">
327            <p>Please share your thoughts regarding this product.</p>
328            <div class="review_btn">
329                <!--{if count($arrReview) < $smarty.const.REVIEW_REGIST_MAX}-->
330                    <!--★新規コメントを書き込む★-->
331                    <a class="bt01" href="./review.php"
332                        onclick="win02('./review.php?product_id=<!--{$arrProduct.product_id}-->','review','600','640'); return false;">Write a new comment</a>
333                <!--{/if}-->
334            </div>
335        </div>
336
337        <!--{if count($arrReview) > 0}-->
338            <ul>
339                <!--{section name=cnt loop=$arrReview}-->
340                    <li>
341                        <p class="voicetitle"><!--{$arrReview[cnt].title|h}--></p>
342                        <p class="voicedate"><!--{$arrReview[cnt].create_date|sfDispDBDate:false}--> Posted by:<!--{if $arrReview[cnt].reviewer_url}--><a href="<!--{$arrReview[cnt].reviewer_url}-->" target="_blank"><!--{$arrReview[cnt].reviewer_name|h}--></a><!--{else}--><!--{$arrReview[cnt].reviewer_name|h}--><!--{/if}--> Recommendation level:<span class="recommend_level"><!--{assign var=level value=$arrReview[cnt].recommend_level}--><!--{$arrRECOMMEND[$level]|h}--></span></p>
343                        <p class="voicecomment"><!--{$arrReview[cnt].comment|h|nl2br}--></p>
344                    </li>
345                <!--{/section}-->
346            </ul>
347        <!--{/if}-->
348    </div>
349    <!--お客様の声ここまで-->
350
351    <!--▼関連商品-->
352    <!--{if $arrRecommend}-->
353        <div id="whobought_area">
354            <h2><img src="<!--{$TPL_URLPATH}-->img/title/tit_product_recommend.jpg" alt="Other recommended products" /></h2>
355            <!--{foreach from=$arrRecommend item=arrItem name="arrRecommend"}-->
356                <div class="product_item">
357                    <div class="productImage">
358                        <a href="<!--{$smarty.const.P_DETAIL_URLPATH}--><!--{$arrItem.product_id|u}-->">
359                            <img src="<!--{$smarty.const.ROOT_URLPATH}-->resize_image.php?image=<!--{$arrItem.main_list_image|sfNoImageMainList|h}-->&amp;width=65&amp;height=65" alt="<!--{$arrItem.name|h}-->" /></a>
360                    </div>
361                    <!--{assign var=price02_min value=`$arrItem.price02_min_inctax`}-->
362                    <!--{assign var=price02_max value=`$arrItem.price02_max_inctax`}-->
363                    <div class="productContents">
364                        <h3><a href="<!--{$smarty.const.P_DETAIL_URLPATH}--><!--{$arrItem.product_id|u}-->"><!--{$arrItem.name|h}--></a></h3>
365                        <p class="sale_price"><!--{$smarty.const.SALE_PRICE_TITLE}-->(tax included):<span class="price">
366                            &#036;
367                            <!--{if $price02_min == $price02_max}-->
368                                <!--{$price02_min|number_format}-->
369                            <!--{else}-->
370                                <!--{$price02_min|number_format}--> - <!--{$price02_max|number_format}-->
371                            <!--{/if}--></span></p>
372                        <p class="mini"><!--{$arrItem.comment|h|nl2br}--></p>
373                    </div>
374                </div><!--{* /.item *}-->
375                <!--{if $smarty.foreach.arrRecommend.iteration % 2 === 0}-->
376                    <div class="clear"></div>
377                <!--{/if}-->
378            <!--{/foreach}-->
379        </div>
380    <!--{/if}-->
381    <!--▲関連商品-->
382
383</div>
Note: See TracBrowser for help on using the repository browser.