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 | // 規格2に選択肢を割り当てる。 |
---|
24 | function fnSetClassCategories(form, classcat_id2_selected) { |
---|
25 | sele1 = form.classcategory_id1; |
---|
26 | sele2 = form.classcategory_id2; |
---|
27 | product_id = form.product_id.value; |
---|
28 | |
---|
29 | if (sele1) { |
---|
30 | if (sele2) { |
---|
31 | // 規格2の選択肢をクリア |
---|
32 | count = sele2.options.length; |
---|
33 | for(i = count; i >= 0; i--) { |
---|
34 | sele2.options[i] = null; |
---|
35 | } |
---|
36 | |
---|
37 | // 規格2に選択肢を割り当てる |
---|
38 | classcats = productsClassCategories[product_id][sele1.value]; |
---|
39 | i = 0; |
---|
40 | for (var classcat_id2_key in classcats) { |
---|
41 | sele2.options[i] = new Option(classcats[classcat_id2_key].name, classcat_id2_key); |
---|
42 | if (classcat_id2_key == classcat_id2_selected) { |
---|
43 | sele2.options[i].selected = true; |
---|
44 | } |
---|
45 | i++; |
---|
46 | } |
---|
47 | } |
---|
48 | fnCheckStock(form); |
---|
49 | } |
---|
50 | } |
---|
51 | // 並び順を変更 |
---|
52 | function fnChangeOrderby(orderby) { |
---|
53 | fnSetVal('orderby', orderby); |
---|
54 | fnSetVal('pageno', 1); |
---|
55 | fnSubmit(); |
---|
56 | } |
---|
57 | // 表示件数を変更 |
---|
58 | function fnChangeDispNumber(dispNumber) { |
---|
59 | fnSetVal('disp_number', dispNumber); |
---|
60 | fnSetVal('pageno', 1); |
---|
61 | fnSubmit(); |
---|
62 | } |
---|
63 | // カゴに入れる |
---|
64 | function fnInCart(productForm) { |
---|
65 | var product_id = productForm["product_id"].value; |
---|
66 | fnChangeAction("?#product" + product_id); |
---|
67 | if (productForm["classcategory_id1"]) { |
---|
68 | fnSetVal("classcategory_id1", productForm["classcategory_id1"].value); |
---|
69 | } |
---|
70 | if (productForm["classcategory_id2"]) { |
---|
71 | fnSetVal("classcategory_id2", productForm["classcategory_id2"].value); |
---|
72 | } |
---|
73 | fnSetVal("quantity", productForm["quantity"].value); |
---|
74 | fnSetVal("product_id", productForm["product_id"].value); |
---|
75 | fnSubmit(); |
---|
76 | } |
---|
77 | function fnCheckStock(form) { |
---|
78 | product_id = form.product_id.value; |
---|
79 | classcat_id1 = form.classcategory_id1.value; |
---|
80 | classcat_id2 = form.classcategory_id2 ? form.classcategory_id2.value : 0; |
---|
81 | classcat2 = productsClassCategories[product_id][classcat_id1][classcat_id2]; |
---|
82 | |
---|
83 | // 在庫(品切れ) |
---|
84 | eleDefault = document.getElementById('cartbtn_default_' + product_id); |
---|
85 | eleDynamic = document.getElementById('cartbtn_dynamic_' + product_id); |
---|
86 | if ( |
---|
87 | classcat2 |
---|
88 | && classcat2.stock_find === false |
---|
89 | ) { |
---|
90 | eleDefault.style.display = 'none'; |
---|
91 | eleDynamic.innerHTML = '申し訳ございませんが、只今品切れ中です。'; |
---|
92 | } else { |
---|
93 | eleDefault.style.display = ''; |
---|
94 | eleDynamic.innerHTML = ''; |
---|
95 | } |
---|
96 | |
---|
97 | // 販売価格 |
---|
98 | eleDefault = document.getElementById('price02_default_' + product_id); |
---|
99 | eleDynamic = document.getElementById('price02_dynamic_' + product_id); |
---|
100 | if ( |
---|
101 | classcat2 |
---|
102 | && typeof classcat2.price02 != 'undefined' |
---|
103 | && String(classcat2.price02).length >= 1 |
---|
104 | ) { |
---|
105 | eleDefault.style.display = 'none'; |
---|
106 | eleDynamic.innerHTML = classcat2.price02; |
---|
107 | } else { |
---|
108 | eleDefault.style.display = ''; |
---|
109 | eleDynamic.innerHTML = ''; |
---|
110 | } |
---|
111 | } |
---|
112 | //]]> |
---|
113 | </script> |
---|
114 | |
---|
115 | <!--▼CONTENTS--> |
---|
116 | <div id="undercolumn" class="product product_list"> |
---|
117 | <form name="form1" id="form1" method="get" action="?"> |
---|
118 | <input type="hidden" name="mode" value="<!--{$mode|escape}-->" /> |
---|
119 | <!--{* ▼検索条件 *}--> |
---|
120 | <input type="hidden" name="category_id" value="<!--{$arrSearchData.category_id|escape}-->" /> |
---|
121 | <input type="hidden" name="maker_id" value="<!--{$arrSearchData.maker_id|escape}-->" /> |
---|
122 | <input type="hidden" name="name" value="<!--{$arrSearchData.name|escape}-->" /> |
---|
123 | <!--{* ▲検索条件 *}--> |
---|
124 | <!--{* ▼ページナビ関連 *}--> |
---|
125 | <input type="hidden" name="orderby" value="<!--{$orderby|escape}-->" /> |
---|
126 | <input type="hidden" name="disp_number" value="<!--{$disp_number|escape}-->" /> |
---|
127 | <input type="hidden" name="pageno" value="<!--{$tpl_pageno|escape}-->" /> |
---|
128 | <!--{* ▲ページナビ関連 *}--> |
---|
129 | <!--{* ▼注文関連 *}--> |
---|
130 | <input type="hidden" name="product_id" value="" /> |
---|
131 | <input type="hidden" name="classcategory_id1" value="" /> |
---|
132 | <input type="hidden" name="classcategory_id2" value="" /> |
---|
133 | <input type="hidden" name="quantity" value="" /> |
---|
134 | <!--{* ▲注文関連 *}--> |
---|
135 | <input type="hidden" name="rnd" value="<!--{$tpl_rnd|escape}-->" /> |
---|
136 | </form> |
---|
137 | |
---|
138 | <!--★タイトル★--> |
---|
139 | <h2 class="title"><!--{$tpl_subtitle|escape}--></h2> |
---|
140 | |
---|
141 | <!--▼検索条件--> |
---|
142 | <!--{if $tpl_subtitle == "検索結果"}--> |
---|
143 | <ul class="pagecondarea"> |
---|
144 | <li><strong>商品カテゴリ:</strong><!--{$arrSearch.category|escape}--></li> |
---|
145 | <!--{if $arrSearch.maker|strlen >= 1}--><li><strong>メーカー:</strong><!--{$arrSearch.maker|escape}--></li><!--{/if}--> |
---|
146 | <li><strong>商品名:</strong><!--{$arrSearch.name|escape}--></li> |
---|
147 | </ul> |
---|
148 | <!--{/if}--> |
---|
149 | <!--▲検索条件--> |
---|
150 | |
---|
151 | <!--▼ページナビ(本文)--> |
---|
152 | <!--{capture name=page_navi_body}--> |
---|
153 | <div class="pagenumberarea"> |
---|
154 | <div class="change"> |
---|
155 | <!--{if $orderby != 'price'}--> |
---|
156 | <a href="javascript:fnChangeOrderby('price');">価格順</a> |
---|
157 | <!--{else}--> |
---|
158 | <strong>価格順</strong> |
---|
159 | <!--{/if}--> |
---|
160 | <!--{if $orderby != "date"}--> |
---|
161 | <a href="javascript:fnChangeOrderby('date');">新着順</a> |
---|
162 | <!--{else}--> |
---|
163 | <strong>新着順</strong> |
---|
164 | <!--{/if}--> |
---|
165 | 表示件数 |
---|
166 | <select name="disp_number" onchange="javascript:fnChangeDispNumber(this.value);"> |
---|
167 | <!--{foreach from=$arrPRODUCTLISTMAX item="dispnum" key="num"}--> |
---|
168 | <!--{if $num == $disp_number}--> |
---|
169 | <option value="<!--{$num}-->" selected="selected" ><!--{$dispnum}--></option> |
---|
170 | <!--{else}--> |
---|
171 | <option value="<!--{$num}-->" ><!--{$dispnum}--></option> |
---|
172 | <!--{/if}--> |
---|
173 | <!--{/foreach}--> |
---|
174 | </select> |
---|
175 | </div> |
---|
176 | <div class="navi"><!--{$tpl_strnavi}--></div> |
---|
177 | </div> |
---|
178 | <!--{/capture}--> |
---|
179 | <!--▲ページナビ(本文)--> |
---|
180 | |
---|
181 | <!--{foreach from=$arrProducts item=arrProduct name=arrProducts}--> |
---|
182 | |
---|
183 | <!--{if $smarty.foreach.arrProducts.first}--> |
---|
184 | <!--▼件数--> |
---|
185 | <div> |
---|
186 | <span class="pagenumber"><!--{$tpl_linemax}--></span>件の商品がございます。 |
---|
187 | </div> |
---|
188 | <!--▲件数--> |
---|
189 | |
---|
190 | <!--▼ページナビ(上部)--> |
---|
191 | <form name="page_navi_top" id="page_navi_top" action="?"> |
---|
192 | <!--{if $tpl_linemax > 0}--><!--{$smarty.capture.page_navi_body|smarty:nodefaults}--><!--{/if}--> |
---|
193 | </form> |
---|
194 | <!--▲ページナビ(上部)--> |
---|
195 | <!--{/if}--> |
---|
196 | |
---|
197 | <!--{assign var=id value=$arrProduct.product_id}--> |
---|
198 | <!--{assign var=arrErr value=$arrProduct.arrErr}--> |
---|
199 | <!--▼商品--> |
---|
200 | <div class="listarea"> |
---|
201 | <a name="product<!--{$id|escape}-->" /> |
---|
202 | <div class="listphoto"> |
---|
203 | <!--★画像★--> |
---|
204 | <a href="<!--{$smarty.const.DETAIL_P_HTML}--><!--{$arrProduct.product_id}-->" class="over"><!--商品写真--><img src="<!--{$smarty.const.IMAGE_SAVE_URL|sfTrimURL}-->/<!--{$arrProduct.main_list_image|sfNoImageMainList|escape}-->" alt="<!--{$arrProduct.name|escape}-->" class="picture" /></a> |
---|
205 | </div> |
---|
206 | |
---|
207 | <div class="listrightblock"> |
---|
208 | <!--▼商品ステータス--> |
---|
209 | <!--{if count($arrProduct.product_flag) > 0}--> |
---|
210 | <ul class="status_icon"> |
---|
211 | <!--{section name=flg loop=$arrProduct.product_flag|count_characters}--> |
---|
212 | <!--{if $arrProduct.product_flag[flg] == "1"}--> |
---|
213 | <li> |
---|
214 | <!--{assign var=key value="`$smarty.section.flg.iteration`"}--> |
---|
215 | <img src="<!--{$TPL_DIR}--><!--{$arrSTATUS_IMAGE[$key]}-->" width="65" height="17" alt="<!--{$arrSTATUS[$key]}-->"/> |
---|
216 | </li> |
---|
217 | <!--{/if}--> |
---|
218 | <!--{/section}--> |
---|
219 | </ul> |
---|
220 | <!--{/if}--> |
---|
221 | <!--▲商品ステータス--> |
---|
222 | |
---|
223 | <!--★商品名★--> |
---|
224 | <h3> |
---|
225 | <a href="<!--{$smarty.const.DETAIL_P_HTML}--><!--{$arrProduct.product_id}-->" name="product<!--{$arrProduct.product_id}-->"><!--{$arrProduct.name|escape}--></a> |
---|
226 | </h3> |
---|
227 | |
---|
228 | <!--★コメント★--> |
---|
229 | <p class="listcomment"><!--{$arrProduct.main_list_comment|escape|nl2br}--></p> |
---|
230 | |
---|
231 | <p> |
---|
232 | <span class="pricebox sale_price"> |
---|
233 | <!--{$smarty.const.SALE_PRICE_TITLE}--><span class="mini">(税込)</span>: |
---|
234 | <span class="price"> |
---|
235 | <span id="price02_default_<!--{$id}-->"> |
---|
236 | <!--{if $arrProduct.price02_min == $arrProduct.price02_max}--> |
---|
237 | <!--{$arrProduct.price02_min|sfPreTax:$arrSiteInfo.tax:$arrSiteInfo.tax_rule|number_format}--> |
---|
238 | <!--{else}--> |
---|
239 | <!--{$arrProduct.price02_min|sfPreTax:$arrSiteInfo.tax:$arrSiteInfo.tax_rule|number_format}-->~<!--{$arrProduct.price02_max|sfPreTax:$arrSiteInfo.tax:$arrSiteInfo.tax_rule|number_format}--> |
---|
240 | <!--{/if}--> |
---|
241 | </span><span id="price02_dynamic_<!--{$id}-->"></span> |
---|
242 | 円</span> |
---|
243 | </span> |
---|
244 | |
---|
245 | <!--★詳細ボタン★--> |
---|
246 | <span class="btnbox"> |
---|
247 | <!--{assign var=name value="detail`$id`"}--> |
---|
248 | <a href="<!--{$smarty.const.DETAIL_P_HTML}--><!--{$arrProduct.product_id}-->" onmouseover="chgImg('<!--{$TPL_DIR}-->img/products/b_detail_on.gif','<!--{$name}-->');" onmouseout="chgImg('<!--{$TPL_DIR}-->img/products/b_detail.gif','<!--{$name}-->');"> |
---|
249 | <img src="<!--{$TPL_DIR}-->img/products/b_detail.gif" width="115" height="25" alt="詳しくはこちら" name="<!--{$name}-->" id="<!--{$name}-->" /></a> |
---|
250 | </span> |
---|
251 | </p> |
---|
252 | |
---|
253 | <!--▼買い物かご--> |
---|
254 | <form name="product_form<!--{$id|escape}-->" action="?" onsubmit="return false;"> |
---|
255 | <input type="hidden" name="product_id" value="<!--{$id|escape}-->" /> |
---|
256 | <div class="in_cart"> |
---|
257 | <!--{if $tpl_stock_find[$id]}--> |
---|
258 | <dl> |
---|
259 | <!--{if $tpl_classcat_find1[$id]}--> |
---|
260 | <!--▼規格1--> |
---|
261 | <dt><!--{$tpl_class_name1[$id]|escape}-->:</dt> |
---|
262 | <dd> |
---|
263 | <select name="classcategory_id1" |
---|
264 | style="<!--{$arrErr.classcategory_id1|sfGetErrorColor}-->" |
---|
265 | onchange="fnSetClassCategories(this.form);" |
---|
266 | > |
---|
267 | <!--{html_options options=$arrClassCat1[$id] selected=$arrProduct.classcategory_id1}--> |
---|
268 | </select> |
---|
269 | <!--{if $arrErr.classcategory_id1 != ""}--> |
---|
270 | <br /><span class="attention">※ <!--{$tpl_class_name1[$id]}-->を入力して下さい。</span> |
---|
271 | <!--{/if}--> |
---|
272 | </dd> |
---|
273 | <!--▲規格1--> |
---|
274 | <!--{/if}--> |
---|
275 | <!--{if $tpl_classcat_find2[$id]}--> |
---|
276 | <!--▼規格2--> |
---|
277 | <dt><!--{$tpl_class_name2[$id]|escape}-->:</dt> |
---|
278 | <dd> |
---|
279 | <select name="classcategory_id2" |
---|
280 | style="<!--{$arrErr.classcategory_id2|sfGetErrorColor}-->" |
---|
281 | onchange="fnCheckStock(this.form);" |
---|
282 | > |
---|
283 | </select> |
---|
284 | <!--{if $arrErr.classcategory_id2 != ""}--> |
---|
285 | <br /><span class="attention">※ <!--{$tpl_class_name2[$id]}-->を入力して下さい。</span> |
---|
286 | <!--{/if}--> |
---|
287 | </dd> |
---|
288 | <!--▲規格2--> |
---|
289 | <!--{/if}--> |
---|
290 | |
---|
291 | <dt>数量:</dt> |
---|
292 | <dd> |
---|
293 | <input type="text" name="quantity" class="box54" value="<!--{$arrProduct.quantity|default:1|escape}-->" maxlength="<!--{$smarty.const.INT_LEN}-->" style="<!--{$arrErr.quantity|sfGetErrorColor}-->" /> |
---|
294 | <!--{if $arrErr.quantity != ""}--> |
---|
295 | <br /><span class="attention"><!--{$arrErr.quantity}--></span> |
---|
296 | <!--{/if}--> |
---|
297 | </dd> |
---|
298 | </dl> |
---|
299 | <div class="cartbtn"> |
---|
300 | <!--★カゴに入れる★--> |
---|
301 | <div id="cartbtn_default_<!--{$id}-->"> |
---|
302 | <input |
---|
303 | type="image" |
---|
304 | id="cart<!--{$id}-->" |
---|
305 | src="<!--{$TPL_DIR}-->img/products/b_cartin.gif" |
---|
306 | alt="カゴに入れる" |
---|
307 | onclick="fnInCart(this.form); return false;" |
---|
308 | onmouseover="chgImg('<!--{$TPL_DIR}-->img/products/b_cartin_on.gif', this);" |
---|
309 | onmouseout="chgImg('<!--{$TPL_DIR}-->img/products/b_cartin.gif', this);" |
---|
310 | /> |
---|
311 | </div> |
---|
312 | <div class="attention" id="cartbtn_dynamic_<!--{$id}-->"></div> |
---|
313 | </div> |
---|
314 | <!--{else}--> |
---|
315 | <div class="cartbtn attention">申し訳ございませんが、只今品切れ中です。</div> |
---|
316 | <!--{/if}--> |
---|
317 | </div> |
---|
318 | </form> |
---|
319 | <!--▲買い物かご--> |
---|
320 | |
---|
321 | </div> |
---|
322 | </div> |
---|
323 | <!--▲商品--> |
---|
324 | |
---|
325 | <!--{if $smarty.foreach.arrProducts.last}--> |
---|
326 | <!--▼ページナビ(下部)--> |
---|
327 | <form name="page_navi_bottom" id="page_navi_bottom" action="?"> |
---|
328 | <!--{if $tpl_linemax > 0}--><!--{$smarty.capture.page_navi_body|smarty:nodefaults}--><!--{/if}--> |
---|
329 | </form> |
---|
330 | <!--▲ページナビ(下部)--> |
---|
331 | <!--{/if}--> |
---|
332 | |
---|
333 | <!--{foreachelse}--> |
---|
334 | <!--{include file="frontparts/search_zero.tpl"}--> |
---|
335 | <!--{/foreach}--> |
---|
336 | |
---|
337 | </div> |
---|
338 | <!--▲CONTENTS--> |
---|