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

Revision 22548, 21.4 KB checked in by Seasoft, 11 years ago (diff)

#2140 (標準テンプレートのカスタマイズ性を高める)

  • タイトルを透過画像に変更。これにより CSS や背景画像の差し替えのみで、タイトルの変更が可能になる。
  • 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-2013 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                            画像を拡大する</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>商品コード:</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}-->(税込):</dt>
111                    <dd class="price">
112                        <span id="price01_default"><!--{strip}-->
113                            <!--{if $arrProduct.price01_min_inctax == $arrProduct.price01_max_inctax}-->
114                                <!--{$arrProduct.price01_min_inctax|number_format}-->
115                            <!--{else}-->
116                                <!--{$arrProduct.price01_min_inctax|number_format}-->~<!--{$arrProduct.price01_max_inctax|number_format}-->
117                            <!--{/if}-->
118                        <!--{/strip}--></span><span id="price01_dynamic"></span>
119                        円
120                    </dd>
121                </dl>
122            <!--{/if}-->
123
124            <!--★販売価格★-->
125            <dl class="sale_price">
126                <dt><!--{$smarty.const.SALE_PRICE_TITLE}-->(税込):</dt>
127                <dd class="price">
128                    <span id="price02_default"><!--{strip}-->
129                        <!--{if $arrProduct.price02_min_inctax == $arrProduct.price02_max_inctax}-->
130                            <!--{$arrProduct.price02_min_inctax|number_format}-->
131                        <!--{else}-->
132                            <!--{$arrProduct.price02_min_inctax|number_format}-->~<!--{$arrProduct.price02_max_inctax|number_format}-->
133                        <!--{/if}-->
134                    <!--{/strip}--></span><span id="price02_dynamic"></span>
135                    円
136                </dd>
137            </dl>
138
139            <!--★ポイント★-->
140            <!--{if $smarty.const.USE_POINT !== false}-->
141                <div class="point">ポイント:
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                    <!--{/strip}--></span><span id="point_dynamic"></span>
153                    Pt
154                </div>
155            <!--{/if}-->
156
157            <!--{* ▼メーカー *}-->
158            <!--{if $arrProduct.maker_name|strlen >= 1}-->
159                <dl class="maker">
160                    <dt>メーカー:</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>メーカー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>関連カテゴリ:</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">※ <!--{$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">※ <!--{$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>数量:</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 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');">
247                                    <img src="<!--{$TPL_URLPATH}-->img/button/btn_cartin.jpg" alt="カゴに入れる" name="cart" id="cart" /></a>
248                            </div>
249                        </div>
250                    </div>
251                    <div class="attention" id="cartbtn_dynamic"></div>
252                <!--{else}-->
253                    <div class="attention">申し訳ございませんが、只今品切れ中です。</div>
254                <!--{/if}-->
255
256                <!--★お気に入り登録★-->
257                <!--{if $smarty.const.OPTION_FAVORITE_PRODUCT == 1 && $tpl_login === true}-->
258                    <div class="favorite_btn">
259                        <!--{assign var=add_favorite value="add_favorite`$product_id`"}-->
260                        <!--{if $arrErr[$add_favorite]}-->
261                            <div class="attention"><!--{$arrErr[$add_favorite]}--></div>
262                        <!--{/if}-->
263                        <!--{if !$is_favorite}-->
264                            <a href="javascript:fnChangeAction('?product_id=<!--{$arrProduct.product_id|h}-->'); fnModeSubmit('add_favorite','favorite_product_id','<!--{$arrProduct.product_id|h}-->');" onmouseover="chgImg('<!--{$TPL_URLPATH}-->img/button/btn_add_favorite_on.jpg','add_favorite_product');" onmouseout="chgImg('<!--{$TPL_URLPATH}-->img/button/btn_add_favorite.jpg','add_favorite_product');"><img src="<!--{$TPL_URLPATH}-->img/button/btn_add_favorite.jpg" alt="お気に入りに追加" name="add_favorite_product" id="add_favorite_product" /></a>
265                        <!--{else}-->
266                            <img src="<!--{$TPL_URLPATH}-->img/button/btn_add_favorite_on.jpg" alt="お気に入り登録済" name="add_favorite_product" id="add_favorite_product" />
267                            <script type="text/javascript" src="<!--{$smarty.const.ROOT_URLPATH}-->js/jquery.tipsy.js"></script>
268                            <script type="text/javascript">
269                                var favoriteButton = $("#add_favorite_product");
270                                favoriteButton.tipsy({gravity: $.fn.tipsy.autoNS, fallback: "お気に入りに登録済み", fade: true });
271
272                                <!--{if $just_added_favorite == true}-->
273                                favoriteButton.load(function(){$(this).tipsy("show")});
274                                $(function(){
275                                    var tid = setTimeout('favoriteButton.tipsy("hide")',5000);
276                                });
277                                <!--{/if}-->
278                            </script>
279                        <!--{/if}-->
280                    </div>
281                <!--{/if}-->
282            </div>
283        </div>
284        <!--▲買い物かご-->
285    </div>
286    </form>
287
288    <!--詳細ここまで-->
289
290    <!--▼サブコメント-->
291    <!--{section name=cnt loop=$smarty.const.PRODUCTSUB_MAX}-->
292        <!--{assign var=key value="sub_title`$smarty.section.cnt.index+1`"}-->
293        <!--{assign var=ikey value="sub_image`$smarty.section.cnt.index+1`"}-->
294        <!--{if $arrProduct[$key] != "" or $arrProduct[$ikey]|strlen >= 1}-->
295            <div class="sub_area clearfix">
296                <h3><!--★サブタイトル★--><!--{$arrProduct[$key]|h}--></h3>
297                <!--{assign var=ckey value="sub_comment`$smarty.section.cnt.index+1`"}-->
298                <!--▼サブ画像-->
299                <!--{assign var=lkey value="sub_large_image`$smarty.section.cnt.index+1`"}-->
300                <!--{if $arrProduct[$ikey]|strlen >= 1}-->
301                    <div class="subtext"><!--★サブテキスト★--><!--{$arrProduct[$ckey]|nl2br_html}--></div>
302                    <div class="subphotoimg">
303                        <!--{if $arrProduct[$lkey]|strlen >= 1}-->
304                            <a href="<!--{$smarty.const.IMAGE_SAVE_URLPATH}--><!--{$arrProduct[$lkey]|h}-->" class="expansion" target="_blank" >
305                        <!--{/if}-->
306                        <img src="<!--{$arrFile[$ikey].filepath}-->" alt="<!--{$arrProduct.name|h}-->" width="<!--{$arrFile[$ikey].width}-->" height="<!--{$arrFile[$ikey].height}-->" />
307                        <!--{if $arrProduct[$lkey]|strlen >= 1}-->
308                            </a>
309                            <span class="mini">
310                                <a href="<!--{$smarty.const.IMAGE_SAVE_URLPATH}--><!--{$arrProduct[$lkey]|h}-->" class="expansion" target="_blank">
311                                    画像を拡大する</a>
312                            </span>
313                        <!--{/if}-->
314                    </div>
315                <!--{else}-->
316                    <p class="subtext"><!--★サブテキスト★--><!--{$arrProduct[$ckey]|nl2br_html}--></p>
317                <!--{/if}-->
318                <!--▲サブ画像-->
319            </div>
320        <!--{/if}-->
321    <!--{/section}-->
322    <!--▲サブコメント-->
323
324    <!--この商品に対するお客様の声-->
325    <div id="customervoice_area">
326        <h2><img src="<!--{$TPL_URLPATH}-->img/title/tit_product_voice.png" alt="この商品に対するお客様の声" /></h2>
327
328        <div class="review_bloc clearfix">
329            <p>この商品に対するご感想をぜひお寄せください。</p>
330            <div class="review_btn">
331                <!--{if count($arrReview) < $smarty.const.REVIEW_REGIST_MAX}-->
332                    <!--★新規コメントを書き込む★-->
333                    <a href="./review.php"
334                        onclick="win02('./review.php?product_id=<!--{$arrProduct.product_id}-->','review','600','640'); return false;"
335                        onmouseover="chgImg('<!--{$TPL_URLPATH}-->img/button/btn_comment_on.jpg','review');"
336                        onmouseout="chgImg('<!--{$TPL_URLPATH}-->img/button/btn_comment.jpg','review');" target="_blank">
337                        <img src="<!--{$TPL_URLPATH}-->img/button/btn_comment.jpg" alt="新規コメントを書き込む" name="review" id="review" /></a>
338                <!--{/if}-->
339            </div>
340        </div>
341
342        <!--{if count($arrReview) > 0}-->
343            <ul>
344                <!--{section name=cnt loop=$arrReview}-->
345                    <li>
346                        <p class="voicetitle"><!--{$arrReview[cnt].title|h}--></p>
347                        <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>
348                        <p class="voicecomment"><!--{$arrReview[cnt].comment|h|nl2br}--></p>
349                    </li>
350                <!--{/section}-->
351            </ul>
352        <!--{/if}-->
353    </div>
354    <!--お客様の声ここまで-->
355
356    <!--▼関連商品-->
357    <!--{if $arrRecommend}-->
358        <div id="whobought_area">
359            <h2><img src="<!--{$TPL_URLPATH}-->img/title/tit_product_recommend.png" alt="その他のオススメ商品" /></h2>
360            <!--{foreach from=$arrRecommend item=arrItem name="arrRecommend"}-->
361                <div class="product_item">
362                    <div class="productImage">
363                        <a href="<!--{$smarty.const.P_DETAIL_URLPATH}--><!--{$arrItem.product_id|u}-->">
364                            <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>
365                    </div>
366                    <!--{assign var=price02_min value=`$arrItem.price02_min_inctax`}-->
367                    <!--{assign var=price02_max value=`$arrItem.price02_max_inctax`}-->
368                    <div class="productContents">
369                        <h3><a href="<!--{$smarty.const.P_DETAIL_URLPATH}--><!--{$arrItem.product_id|u}-->"><!--{$arrItem.name|h}--></a></h3>
370                        <p class="sale_price"><!--{$smarty.const.SALE_PRICE_TITLE}-->(税込):<span class="price">
371                            <!--{if $price02_min == $price02_max}-->
372                                <!--{$price02_min|number_format}-->
373                            <!--{else}-->
374                                <!--{$price02_min|number_format}-->~<!--{$price02_max|number_format}-->
375                            <!--{/if}-->円</span></p>
376                        <p class="mini"><!--{$arrItem.comment|h|nl2br}--></p>
377                    </div>
378                </div><!--{* /.item *}-->
379                <!--{if $smarty.foreach.arrRecommend.iteration % 2 === 0}-->
380                    <div class="clear"></div>
381                <!--{/if}-->
382            <!--{/foreach}-->
383        </div>
384    <!--{/if}-->
385    <!--▲関連商品-->
386
387</div>
Note: See TracBrowser for help on using the repository browser.