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

Revision 20367, 21.6 KB checked in by nanasess, 13 years ago (diff)

##1026 [フロント]商品:規格あり商品をカートに投入できない

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