source: branches/version-2_4/data/Smarty/templates/default/detail.tpl @ 17826

Revision 17826, 19.1 KB checked in by kishida, 14 years ago (diff)

~を〜に変更

  • Property svn:eol-style set to LF
  • Property svn:mime-type set to text/html; charset=UTF-8
Line 
1<!--{*
2 * This file is part of EC-CUBE
3 *
4 * Copyright(c) 2000-2007 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">//<![CDATA[
23// セレクトボックスに項目を割り当てる。
24function lnSetSelect(form, name1, name2, val) {
25
26        sele11 = document[form][name1];
27        sele12 = document[form][name2];
28
29        if(sele11 && sele12) {
30                index = sele11.selectedIndex;
31
32                // セレクトボックスのクリア
33                count = sele12.options.length;
34                for(i = count; i >= 0; i--) {
35                        sele12.options[i] = null;
36                }
37
38                // セレクトボックスに値を割り当てる
39                len = lists[index].length;
40                for(i = 0; i < len; i++) {
41                        sele12.options[i] = new Option(lists[index][i], vals[index][i]);
42                        if(val != "" && vals[index][i] == val) {
43                                sele12.options[i].selected = true;
44                        }
45                }
46        }
47}
48//]]>
49</script>
50
51<!--▼CONTENTS-->
52<div id="undercolumn">
53  <div id="detailtitle"><h2><!--★タイトル★--><!--{$tpl_subtitle|escape}--></h2></div>
54  <p><!--★詳細メインコメント★--><!--{$arrProduct.main_comment|nl2br}--></p>
55
56  <div id="detailarea">
57    <div id="detailphotoblock">
58
59    <!--{assign var=key value="main_image"}-->
60    <!--{if $arrProduct.main_large_image != ""}-->
61    <!--★画像★-->
62      <a href="javascript:void(win01('./detail_image.php?product_id=<!--{$arrProduct.product_id}-->&amp;image=main_large_image<!--{if $smarty.get.admin == 'on'}-->&amp;admin=on<!--{/if}-->','detail_image','<!--{$arrFile.main_large_image.width+60}-->', '<!--{$arrFile.main_large_image.height+80}-->'))">
63        <img src="<!--{$arrFile[$key].filepath}-->" width="<!--{$arrFile[$key].width}-->" height="<!--{$arrFile[$key].height}-->" alt="<!--{$arrProduct.name|escape}-->" class="picture" />
64      </a>
65      <p>
66      <!--★拡大する★-->
67        <a href="javascript:void(win01('./detail_image.php?product_id=<!--{$arrProduct.product_id}-->&amp;image=main_large_image<!--{if $smarty.get.admin == 'on'}-->&amp;admin=on<!--{/if}-->','detail_image','<!--{$arrFile.main_large_image.width+60}-->', '<!--{$arrFile.main_large_image.height+80}-->'))" onmouseover="chgImg('<!--{$TPL_DIR}-->img/products/b_expansion_on.gif','expansion01');" onMouseOut="chgImg('<!--{$TPL_DIR}-->img/products/b_expansion.gif','expansion01');">
68          <img src="<!--{$TPL_DIR}-->img/products/b_expansion.gif" width="85" height="13" alt="画像を拡大する" name="expansion01" id="expansion01" />
69       </a>
70      </p>
71      <!--{else}-->
72      <img src="<!--{$arrFile[$key].filepath}-->" width="<!--{$arrFile[$key].width}-->" height="<!--{$arrFile[$key].height}-->" alt="<!--{$arrProduct.name|escape}-->" class="picture" />
73      <!--{/if}-->
74    </div>
75
76    <div id="detailrightblock">
77      <!--アイコン-->
78      <!--{if count($arrProduct.product_flag) > 0}-->
79      <ul class="status_icon">
80        <!--{section name=flg loop=$arrProduct.product_flag|count_characters}-->
81        <!--{if $arrProduct.product_flag[flg] == "1"}-->
82        <li>
83          <!--{assign var=key value="`$smarty.section.flg.iteration`"}-->
84          <img src="<!--{$TPL_DIR}--><!--{$arrSTATUS_IMAGE[$key]}-->" width="65" height="17" alt="<!--{$arrSTATUS[$key]}-->" id="icon<!--{$key}-->" />
85        </li>
86        <!--{/if}-->
87        <!--{/section}-->
88      </ul>
89      <!--{/if}-->
90
91      <!--★商品コード★-->
92      <!--{assign var=codecnt value=$arrProductCode|@count}-->
93      <!--{assign var=codemax value=`$codecnt-1`}-->
94      <div>商品コード:
95        <!--{if $codecnt > 1}-->
96          <!--{$arrProductCode.0}-->〜<!--{$arrProductCode[$codemax]}-->
97        <!--{else}-->
98          <!--{$arrProductCode.0}-->
99        <!--{/if}-->
100      </div>
101      <h2><!--★商品名★--><!--{$arrProduct.name|escape}--></h2>
102      <!--★価格★-->
103      <div><!--{$smarty.const.SALE_PRICE_TITLE}--><span class="mini">(税込)</span>:
104        <span class="price">
105          <!--{if $arrProduct.price02_min == $arrProduct.price02_max}-->
106            <!--{$arrProduct.price02_min|sfPreTax:$arrSiteInfo.tax:$arrSiteInfo.tax_rule|number_format}-->
107          <!--{else}-->
108            <!--{$arrProduct.price02_min|sfPreTax:$arrSiteInfo.tax:$arrSiteInfo.tax_rule|number_format}-->〜<!--{$arrProduct.price02_max|sfPreTax:$arrSiteInfo.tax:$arrSiteInfo.tax_rule|number_format}-->
109          <!--{/if}-->円</span></div>
110      <div>
111        <!--{if $arrProduct.price01_max > 0}-->
112        <span class="price"><!--{$smarty.const.NORMAL_PRICE_TITLE}-->:
113          <!--{if $arrProduct.price01_min == $arrProduct.price01_max}-->
114            <!--{$arrProduct.price01_min|number_format}-->
115          <!--{else}-->
116            <!--{$arrProduct.price01_min|number_format}-->〜<!--{$arrProduct.price01_max|number_format}-->
117          <!--{/if}-->円</span>
118        <!--{/if}-->
119      </div>
120
121      <!--★ポイント★-->
122      <!--{if $smarty.const.USE_POINT === true}-->
123        <div><span class="price">ポイント:
124          <!--{if $arrProduct.price02_min == $arrProduct.price02_max}-->
125            <!--{$arrProduct.price02_min|sfPrePoint:$arrProduct.point_rate:$smarty.const.POINT_RULE:$arrProduct.product_id}-->
126          <!--{else}-->
127            <!--{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}-->
128              <!--{$arrProduct.price02_min|sfPrePoint:$arrProduct.point_rate:$smarty.const.POINT_RULE:$arrProduct.product_id}-->
129            <!--{else}-->
130              <!--{$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}-->
131            <!--{/if}-->
132          <!--{/if}-->Pt</span></div>
133      <!--{/if}-->
134
135      <!--{* 関連カテゴリ *}-->
136      <div>関連カテゴリ:
137        <!--{section name=r loop=$arrRelativeCat}-->
138        <p>
139          <!--{section name=s loop=$arrRelativeCat[r]}-->
140          <a href="<!--{$smarty.const.URL_DIR}-->products/list.php?category_id=<!--{$arrRelativeCat[r][s].category_id}-->"><!--{$arrRelativeCat[r][s].category_name}--></a>
141          <!--{if !$smarty.section.s.last}--><!--{$smarty.const.SEPA_CATNAVI}--><!--{/if}-->
142          <!--{/section}-->
143        </p>
144        <!--{/section}-->
145      </div>
146
147
148      <form name="form1" id="form1" method="post" action="<!--{$smarty.server.REQUEST_URI|escape}-->">
149        <input type="hidden" name="mode" value="cart" />
150        <input type="hidden" name="product_id" value="<!--{$tpl_product_id}-->" />
151        <!--{if $tpl_classcat_find1}-->
152        <dl>
153          <dt>
154            <!--{$tpl_class_name1}-->
155          </dt>
156          <dd>
157            <select name="classcategory_id1"
158                    style="<!--{$arrErr.classcategory_id1|sfGetErrorColor}-->"
159                    onchange="lnSetSelect('form1', 'classcategory_id1', 'classcategory_id2', ''); ">
160              <option value="">選択してください</option>
161              <!--{html_options options=$arrClassCat1 selected=$arrForm.classcategory_id1.value}-->
162            </select>
163            <!--{if $arrErr.classcategory_id1 != ""}-->
164            <br /><span class="attention">※ <!--{$tpl_class_name1}-->を入力して下さい。</span>
165          <!--{/if}-->
166          </dd>
167        </dl>
168        <!--{/if}-->
169
170        <!--{if $tpl_stock_find}-->
171          <!--{if $tpl_classcat_find2}-->
172        <dl>
173          <dt><!--{$tpl_class_name2}--></dt>
174          <dd>
175            <select name="classcategory_id2"
176                    style="<!--{$arrErr.classcategory_id2|sfGetErrorColor}-->">
177              <option value="">選択してください</option>
178            </select>
179            <!--{if $arrErr.classcategory_id2 != ""}-->
180            <br /><span class="attention">※ <!--{$tpl_class_name2}-->を入力して下さい。</span>
181            <!--{/if}-->
182          </dd>
183        </dl>
184          <!--{/if}-->
185
186        <dl>
187          <dt>個&nbsp;&nbsp;数</dt>
188          <dd><input type="text" name="quantity" class="box54" value="<!--{$arrForm.quantity.value|default:1}-->" maxlength="<!--{$smarty.const.INT_LEN}-->" style="<!--{$arrErr.quantity|sfGetErrorColor}-->" />
189           <!--{if $arrErr.quantity != ""}-->
190           <br /><span class="attention"><!--{$arrErr.quantity}--></span>
191           <!--{/if}-->
192          </dd>
193        </dl>
194        <!--{/if}-->
195
196        <!--{if $tpl_stock_find}-->
197        <p class="btn">
198          <!--★カゴに入れる★-->
199          <a href="javascript:void(document.form1.submit())" onmouseover="chgImg('<!--{$TPL_DIR}-->img/products/b_cartin_on.gif','cart');" onmouseout="chgImg('<!--{$TPL_DIR}-->img/products/b_cartin.gif','cart');">
200            <img src="<!--{$TPL_DIR}-->img/products/b_cartin.gif" width="115" height="25" alt="カゴに入れる" name="cart" id="cart" />
201          </a>
202        </p>
203        <!--{if 'sfGMODetailDisplay'|function_exists}--><!--{* GMOワンクリック *}-->
204          <!--{'sfGMODetailDisplay'|call_user_func}-->
205        <!--{/if}-->
206        <!--{else}-->
207        <div class="attention">申し訳ございませんが、只今品切れ中です。</div>
208        <!--{/if}-->
209      </form>
210
211    </div>
212  </div>
213  <!--{* オペビルダー用 *}-->
214  <!--{if "sfViewDetailOpe"|function_exists === TRUE}-->
215  <!--{include file=`$smarty.const.MODULE_PATH`mdl_opebuilder/detail_ope_view.tpl}-->
216  <!--{/if}-->
217  <!--詳細ここまで-->
218
219  <!--▼サブコメントここから-->
220  <!--{section name=cnt loop=$smarty.const.PRODUCTSUB_MAX}-->
221  <!--{assign var=key value="sub_title`$smarty.section.cnt.iteration`"}-->
222    <!--{if $arrProduct[$key] != ""}-->
223  <div class="subarea">
224    <h3><!--★サブタイトル★--><!--{$arrProduct[$key]|escape}--></h3>
225    <!--{assign var=ckey value="sub_comment`$smarty.section.cnt.iteration`"}-->
226
227    <!--拡大写真がある場合ここから-->
228    <!--{assign var=key value="sub_image`$smarty.section.cnt.iteration`"}-->
229    <!--{assign var=lkey value="sub_large_image`$smarty.section.cnt.iteration`"}-->
230    <!--{if $arrFile[$key].filepath != ""}-->
231    <div class="subtext"><!--★サブテキスト★--><!--{$arrProduct[$ckey]|nl2br}--></div>
232      <div class="subphotoimg">
233      <!--{if $arrFile[$lkey].filepath != ""}-->
234        <a href="<!--{$smarty.server.PHP_SELF|escape}-->" onclick="win01('./detail_image.php?product_id=<!--{$arrProduct.product_id}-->&amp;image=<!--{$lkey}--><!--{if $smarty.get.admin == 'on'}-->&amp;admin=on<!--{/if}-->','detail_image','<!--{$arrFile[$lkey].width+60}-->','<!--{$arrFile[$lkey].height+80}-->'); return false;" target="_blank">
235      <!--{/if}-->
236      <!--サブ画像-->
237        <img src="<!--{$arrFile[$key].filepath}-->" alt="<!--{$arrProduct.name|escape}-->" width="<!--{$smarty.const.NORMAL_SUBIMAGE_WIDTH}-->" height="<!--{$smarty.const.NORMAL_SUBIMAGE_WIDTH}-->" />
238      <!--{if $arrFile[$lkey].filepath != ""}-->
239        </a>
240        <p>
241          <a href="<!--{$smarty.server.PHP_SELF|escape}-->"
242             onclick="win01('./detail_image.php?product_id=<!--{$arrProduct.product_id}-->&amp;image=<!--{$lkey}--><!--{if $smarty.get.admin == 'on'}-->&amp;admin=on<!--{/if}-->','detail_image','<!--{$arrFile[$lkey].width+60}-->','<!--{$arrFile[$lkey].height+80}-->'); return false;"
243             onmouseover="chgImg('<!--{$TPL_DIR}-->img/products/b_expansion_on.gif','expansion02');"
244             onmouseout="chgImg('<!--{$TPL_DIR}-->img/products/b_expansion.gif','expansion02');" target="_blank">
245            <img src="<!--{$TPL_DIR}-->img/products/b_expansion.gif" width="85" height="13" alt="画像を拡大する" />
246          </a>
247        </p>
248      <!--{/if}-->
249      </div>
250      <!--拡大写真がある場合ここまで-->
251    <!--{else}-->
252    <p><!--★サブテキスト★--><!--{$arrProduct[$ckey]|nl2br}--></p>
253    <!--{/if}-->
254  </div>
255  <!--{/if}-->
256  <!--{/section}-->
257  <!--▲サブコメントここまで-->
258
259
260  <!--この商品に対するお客様の声-->
261  <div id="customervoicearea">
262    <h2><img src="<!--{$TPL_DIR}-->img/products/title_voice.jpg" width="580" height="30" alt="この商品に対するお客様の声" /></h2>
263
264    <!--{if count($arrReview) < $smarty.const.REVIEW_REGIST_MAX}-->
265      <!--★新規コメントを書き込む★-->
266      <a href="./review.php"
267         onclick="win02('./review.php?product_id=<!--{$arrProduct.product_id}-->','review','580','580'); return false;"
268         onmouseover="chgImg('<!--{$TPL_DIR}-->img/products/b_comment_on.gif','review');"
269         onmouseout="chgImg('<!--{$TPL_DIR}-->img/products/b_comment.gif','review');" target="_blank">
270        <img src="<!--{$TPL_DIR}-->img/products/b_comment.gif" width="150" height="22" alt="新規コメントを書き込む" name="review" id="review" />
271      </a>
272    <!--{/if}-->
273
274    <!--{if count($arrReview) > 0}-->
275    <ul>
276    <!--{section name=cnt loop=$arrReview}-->
277      <li>
278        <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|escape}--></a><!--{else}--><!--{$arrReview[cnt].reviewer_name|escape}--><!--{/if}--> おすすめレベル:<span class="price"><!--{assign var=level value=$arrReview[cnt].recommend_level}--><!--{$arrRECOMMEND[$level]|escape}--></span></p>
279        <p class="voicetitle"><!--{$arrReview[cnt].title|escape}--></p>
280        <p class="voicecomment"><!--{$arrReview[cnt].comment|escape|nl2br}--></p>
281      </li>
282    <!--{/section}-->
283    </ul>
284    <!--{/if}-->
285  </div>
286  <!--お客様の声ここまで-->
287
288
289  <!--{if $arrTrackbackView == "ON"}-->
290    <!--▼トラックバックここから-->
291    <div id="trackbackarea">
292      <h2><img src="<!--{$TPL_DIR}-->img/products/title_tb.jpg" width="580" height="30" alt="この商品に対するトラックバック" /></h2>
293      <h3>この商品のトラックバック先URL</h3>
294      <input type="text" name="trackback" value="<!--{$trackback_url}-->" size="100" class="box500" />
295
296      <!--{if $arrTrackback}-->
297        <ul>
298        <!--{section name=cnt loop=$arrTrackback}-->
299          <li><strong><!--{$arrTrackback[cnt].create_date|sfDispDBDate:false}--> <a href="<!--{$arrTrackback[cnt].url}-->" target="_blank"><!--{$arrTrackback[cnt].title|escape}--></a> from <!--{$arrTrackback[cnt].blog_name|escape}--></strong>
300            <p><!--{$arrTrackback[cnt].excerpt|escape|mb_strimwidth:0:200:"..."}--></p></li>
301        <!--{/section}-->
302        </ul>
303      <!--{/if}-->
304    <!--▲トラックバックここまで-->
305  </div>
306  <!--{/if}-->
307
308
309  <!--▼オススメ商品ここから-->
310  <!--{if $arrRecommend}-->
311  <div id="whoboughtarea">
312    <h2><img src="<!--{$TPL_DIR}-->img/products/title_recommend.jpg" width="580" height="30" alt="オススメ商品" /></h2>
313    <div class="whoboughtblock">
314
315    <!--{section name=cnt loop=$arrRecommend}-->
316      <!--{if ($smarty.section.cnt.index % 2) == 0}-->
317      <!--{if $arrRecommend[cnt].product_id}-->
318      <!-- 左列 -->
319      <div class="whoboughtleft">
320        <!--{if $arrRecommend[cnt].main_list_image != ""}-->
321          <!--{assign var=image_path value="`$arrRecommend[cnt].main_list_image`"}-->
322        <!--{else}-->
323          <!--{assign var=image_path value="`$smarty.const.NO_IMAGE_DIR`"}-->
324        <!--{/if}-->
325
326        <a href="<!--{$smarty.const.DETAIL_P_HTML}--><!--{$arrRecommend[cnt].product_id}-->">
327          <img src="<!--{$smarty.const.SITE_URL}-->resize_image.php?image=<!--{$image_path|sfRmDupSlash}-->&amp;width=65&amp;height=65" alt="<!--{$arrRecommend[cnt].name|escape}-->" />
328        </a>
329
330        <!--{assign var=price02_min value=`$arrRecommend[cnt].price02_min`}-->
331        <!--{assign var=price02_max value=`$arrRecommend[cnt].price02_max`}-->
332        <h3><a href="<!--{$smarty.const.DETAIL_P_HTML}--><!--{$arrRecommend[cnt].product_id}-->"><!--{$arrRecommend[cnt].name|escape}--></a></h3>
333
334        <p>価格<span class="mini">(税込)</span>:<span class="price">
335          <!--{if $price02_min == $price02_max}-->
336            <!--{$price02_min|sfPreTax:$arrSiteInfo.tax:$arrSiteInfo.tax_rule|number_format}-->
337          <!--{else}-->
338            <!--{$price02_min|sfPreTax:$arrSiteInfo.tax:$arrSiteInfo.tax_rule|number_format}-->〜<!--{$price02_max|sfPreTax:$arrSiteInfo.tax:$arrSiteInfo.tax_rule|number_format}-->
339          <!--{/if}-->円</span></p>
340        <p class="mini"><!--{$arrRecommend[cnt].comment|escape|nl2br}--></p>
341      </div>
342      <!-- 左列 -->
343      <!--{/if}-->
344      <!--{/if}-->
345
346      <!--{if ($smarty.section.cnt.index % 2) != 0}-->
347      <!--{* assign var=nextCnt value=$smarty.section.cnt.index+1 *}-->
348      <!--{if $arrRecommend[cnt].product_id}-->
349      <!-- 右列 -->
350      <div class="whoboughtright">
351        <!--{if $arrRecommend[cnt].main_list_image != ""}-->
352          <!--{assign var=image_path value="`$arrRecommend[cnt].main_list_image`"}-->
353        <!--{else}-->
354          <!--{assign var=image_path value="`$smarty.const.NO_IMAGE_DIR`"}-->
355        <!--{/if}-->
356        <a href="<!--{$smarty.const.DETAIL_P_HTML}--><!--{$arrRecommend[cnt].product_id}-->">
357          <img src="<!--{$smarty.const.SITE_URL}-->resize_image.php?image=<!--{$image_path|sfRmDupSlash}-->&amp;width=65&amp;height=65" alt="<!--{$arrRecommend[cnt].name|escape}-->" />
358        </a>
359
360        <!--{assign var=price02_min value=`$arrRecommend[cnt].price02_min`}-->
361        <!--{assign var=price02_max value=`$arrRecommend[cnt].price02_max`}-->
362        <h3><a href="<!--{$smarty.const.DETAIL_P_HTML}--><!--{$arrRecommend[cnt].product_id}-->"><!--{$arrRecommend[cnt].name|escape}--></a></h3>
363
364        <p>価格<span class="mini">(税込)</span>:<span class="price">
365
366         <!--{if $price02_min == $price02_max}-->
367           <!--{$price02_min|sfPreTax:$arrSiteInfo.tax:$arrSiteInfo.tax_rule|number_format}-->
368         <!--{else}-->
369           <!--{$price02_min|sfPreTax:$arrSiteInfo.tax:$arrSiteInfo.tax_rule|number_format}-->〜<!--{$price02_max|sfPreTax:$arrSiteInfo.tax:$arrSiteInfo.tax_rule|number_format}-->
370         <!--{/if}-->円</span></p>
371        <p class="mini"><!--{$arrRecommend[cnt].comment|escape|nl2br}--></p>
372      </div>
373      <!-- 右列 -->
374    <!--{/if}-->
375    <!--{/if}-->
376
377    <!--{if $smarty.section.cnt.last}-->
378    </div>
379    <!--{/if}-->
380  <!--{/section}-->
381  </div>
382<!--{/if}-->
383</div>
384<!--▲CONTENTS-->
Note: See TracBrowser for help on using the repository browser.