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

Revision 20525, 22.5 KB checked in by Seasoft, 13 years ago (diff)

#627(ソース整形・ソースコメントの改善)

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