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

Revision 20407, 21.7 KB checked in by kotani, 13 years ago (diff)

#812 (トランザクションIDの自動生成/自動検証), #1053 (transactionidが埋め込まれる前にクリックされるとエラー)

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