source: branches/feature-module-update/data/Smarty/templates/default/detail.tpl @ 16044

Revision 16044, 17.1 KB checked in by nanasess, 17 years ago (diff)

set properties

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