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

Revision 16545, 17.3 KB checked in by nanasess, 16 years ago (diff)

div 閉じ忘れ修正

  • 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(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');">
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  </div>
218  <!--{/if}-->
219  <!--{/section}-->
220  <!--▲サブコメントここまで-->
221
222
223  <!--この商品に対するお客様の声-->
224  <div id="customervoicearea">
225    <h2><img src="<!--{$TPL_DIR}-->img/products/title_voice.jpg" width="580" height="30" alt="この商品に対するお客様の声" /></h2>
226
227    <!--{if count($arrReview) < $smarty.const.REVIEW_REGIST_MAX}-->
228    <!--★新規コメントを書き込む★-->
229      <a href="./review.php"
230         onclick="win02('./review.php?product_id=<!--{$arrProduct.product_id}-->','review','580','580'); return false;"
231         onmouseover="chgImg('<!--{$TPL_DIR}-->img/products/b_comment_on.gif','review');"
232         onmouseout="chgImg('<!--{$TPL_DIR}-->img/products/b_comment.gif','review');" target="_blank">
233        <img src="<!--{$TPL_DIR}-->img/products/b_comment.gif" width="150" height="22" alt="新規コメントを書き込む" name="review" id="review" />
234      </a>
235    <!--{/if}-->
236
237    <!--{if count($arrReview) > 0}-->
238    <ul>
239    <!--{section name=cnt loop=$arrReview}-->
240      <li>
241        <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>
242        <p class="voicetitle"><!--{$arrReview[cnt].title|escape}--></p>
243        <p class="voicecomment"><!--{$arrReview[cnt].comment|escape|nl2br}--></p>
244      </li>
245    <!--{/section}-->
246    </ul>
247    <!--{/if}-->
248  </div>
249  <!--お客様の声ここまで-->
250
251
252  <!--{if $arrTrackbackView == "ON"}-->
253  <!--▼トラックバックここから-->
254  <div id="trackbackarea">
255    <h2><img src="<!--{$TPL_DIR}-->img/products/title_tb.jpg" width="580" height="30" alt="この商品に対するトラックバック" /></h2>
256    <h3>この商品のトラックバック先URL</h3>
257    <input type="text" name="trackback" value="<!--{$trackback_url}-->" size="100" class="box500" />
258
259    <!--{if $arrTrackback}-->
260      <ul>
261      <!--{section name=cnt loop=$arrTrackback}-->
262        <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>
263          <p><!--{$arrTrackback[cnt].excerpt|escape|mb_strimwidth:0:200:"..."}--></p></li>
264      <!--{/section}-->
265      </ul>
266    <!--{/if}-->
267  <!--▲トラックバックここまで-->
268  </div>
269  <!--{/if}-->
270
271
272  <!--▼オススメ商品ここから-->
273  <!--{if $arrRecommend}-->
274  <div id="whoboughtarea">
275    <h2><img src="<!--{$TPL_DIR}-->img/products/title_recommend.jpg" width="580" height="30" alt="オススメ商品" /></h2>
276    <!--{section name=cnt loop=$arrRecommend}-->
277    <!--{if ($smarty.section.cnt.index % 2) == 0}-->
278    <div class="whoboughtblock">
279    <!--{/if}-->
280      <!-- 左列 -->
281      <div class="whoboughtleft">
282      <!--{if $arrRecommend[cnt].main_list_image != ""}-->
283        <!--{assign var=image_path value="`$arrRecommend[cnt].main_list_image`"}-->
284      <!--{else}-->
285        <!--{assign var=image_path value="`$smarty.const.NO_IMAGE_DIR`"}-->
286      <!--{/if}-->
287
288        <a href="<!--{$smarty.const.DETAIL_P_HTML}--><!--{$arrRecommend[cnt].product_id}-->">
289         <img src="<!--{$smarty.const.SITE_URL}-->resize_image.php?image=<!--{$image_path|sfRmDupSlash}-->&amp;width=65&amp;height=65" alt="<!--{$arrRecommend[cnt].name|escape}-->" />
290        </a>
291
292        <!--{assign var=price02_min value=`$arrRecommend[cnt].price02_min`}-->
293        <!--{assign var=price02_max value=`$arrRecommend[cnt].price02_max`}-->
294        <h3><a href="<!--{$smarty.const.DETAIL_P_HTML}--><!--{$arrRecommend[cnt].product_id}-->"><!--{$arrRecommend[cnt].name|escape}--></a></h3>
295
296        <p>価格<span class="mini">(税込)</span>:<span class="price">
297        <!--{if $price02_min == $price02_max}-->
298          <!--{$price02_min|sfPreTax:$arrSiteInfo.tax:$arrSiteInfo.tax_rule|number_format}-->
299        <!--{else}-->
300          <!--{$price02_min|sfPreTax:$arrSiteInfo.tax:$arrSiteInfo.tax_rule|number_format}-->〜<!--{$price02_max|sfPreTax:$arrSiteInfo.tax:$arrSiteInfo.tax_rule|number_format}-->
301        <!--{/if}-->円</span></p>
302        <p class="mini"><!--{$arrRecommend[cnt].comment|escape|nl2br}--></p>
303      </div>
304      <!-- 左列 -->
305
306      <!--{assign var=nextCnt value=$smarty.section.cnt.index+1}-->
307      <!--{if $arrRecommend[$nextCnt].product_id}-->
308      <!-- 右列 -->
309      <div class="whoboughtright">
310        <a href="<!--{$smarty.const.DETAIL_P_HTML}--><!--{$arrRecommend[$nextCnt].product_id}-->">
311        <!--{if $arrRecommend[$nextCnt].main_list_image != ""}-->
312          <!--{assign var=image_path value="`$arrRecommend[$nextCnt].main_list_image`"}-->
313        <!--{else}-->
314          <!--{assign var=image_path value="`$smarty.const.NO_IMAGE_DIR`"}-->
315        <!--{/if}-->
316          <img src="<!--{$smarty.const.SITE_URL}-->resize_image.php?image=<!--{$image_path|sfRmDupSlash}-->&amp;width=65&amp;height=65" alt="<!--{$arrRecommend[$nextCnt].name|escape}-->" />
317        </a>
318        <!--{assign var=price02_min value=`$arrRecommend[$nextCnt].price02_min`}-->
319        <!--{assign var=price02_max value=`$arrRecommend[$nextCnt].price02_max`}-->
320        <h3><a href="<!--{$smarty.const.DETAIL_P_HTML}--><!--{$arrRecommend[$nextCnt].product_id}-->"><!--{$arrRecommend[$nextCnt].name|escape}--></a></h3>
321
322        <p>価格<span class="mini">(税込)</span>:<span class="price">
323
324        <!--{if $price02_min == $price02_max}-->
325          <!--{$price02_min|sfPreTax:$arrSiteInfo.tax:$arrSiteInfo.tax_rule|number_format}-->
326        <!--{else}-->
327          <!--{$price02_min|sfPreTax:$arrSiteInfo.tax:$arrSiteInfo.tax_rule|number_format}-->〜<!--{$price02_max|sfPreTax:$arrSiteInfo.tax:$arrSiteInfo.tax_rule|number_format}-->
328        <!--{/if}-->円</span></p>
329        <p class="mini"><!--{$arrRecommend[$nextCnt].comment|escape|nl2br}--></p>
330      </div>
331      <!-- 右列 -->
332    <!--{/if}-->
333    <!--{if ($smarty.section.cnt.index % 2) == 0 || $smarty.section.cnt.last}-->
334    </div>
335    <!--{/if}-->
336  <!--{/section}-->
337  </div>
338<!--{/if}-->
339</div>
340<!--▲CONTENTS-->
Note: See TracBrowser for help on using the repository browser.