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">//<![CDATA[ |
---|
25 | function fnSetClassCategories(form, classcat_id2_selected) { |
---|
26 | var $form = $(form); |
---|
27 | var product_id = $form.find('input[name=product_id]').val(); |
---|
28 | var $sele1 = $form.find('select[name=classcategory_id1]'); |
---|
29 | var $sele2 = $form.find('select[name=classcategory_id2]'); |
---|
30 | setClassCategories($form, product_id, $sele1, $sele2, classcat_id2_selected); |
---|
31 | } |
---|
32 | // 並び順を変更 |
---|
33 | function fnChangeOrderby(orderby) { |
---|
34 | fnSetVal('orderby', orderby); |
---|
35 | fnSetVal('pageno', 1); |
---|
36 | fnSubmit(); |
---|
37 | } |
---|
38 | // 表示件数を変更 |
---|
39 | function fnChangeDispNumber(dispNumber) { |
---|
40 | fnSetVal('disp_number', dispNumber); |
---|
41 | fnSetVal('pageno', 1); |
---|
42 | fnSubmit(); |
---|
43 | } |
---|
44 | // カゴに入れる |
---|
45 | function fnInCart(productForm) { |
---|
46 | var searchForm = $("#form1"); |
---|
47 | var cartForm = $(productForm); |
---|
48 | // 検索条件を引き継ぐ |
---|
49 | var hiddenValues = ['mode','category_id','maker_id','name','orderby','disp_number','pageno','rnd']; |
---|
50 | $.each(hiddenValues, function(){ |
---|
51 | // 商品別のフォームに検索条件の値があれば上書き |
---|
52 | if (cartForm.has('input[name='+this+']').length != 0) { |
---|
53 | cartForm.find('input[name='+this+']').val(searchForm.find('input[name='+this+']').val()); |
---|
54 | } |
---|
55 | // なければ追加 |
---|
56 | else { |
---|
57 | cartForm.append($('<input type="hidden" />').attr("name", this).val(searchForm.find('input[name='+this+']').val())); |
---|
58 | } |
---|
59 | }); |
---|
60 | // 商品別のフォームを送信 |
---|
61 | cartForm.submit(); |
---|
62 | } |
---|
63 | //]]></script> |
---|
64 | |
---|
65 | <div id="undercolumn"> |
---|
66 | <form name="form1" id="form1" method="get" action="?"> |
---|
67 | <input type="hidden" name="<!--{$smarty.const.TRANSACTION_ID_NAME}-->" value="<!--{$transactionid}-->" /> |
---|
68 | <input type="hidden" name="mode" value="<!--{$mode|h}-->" /> |
---|
69 | <!--{* ▼検索条件 *}--> |
---|
70 | <input type="hidden" name="category_id" value="<!--{$arrSearchData.category_id|h}-->" /> |
---|
71 | <input type="hidden" name="maker_id" value="<!--{$arrSearchData.maker_id|h}-->" /> |
---|
72 | <input type="hidden" name="name" value="<!--{$arrSearchData.name|h}-->" /> |
---|
73 | <!--{* ▲検索条件 *}--> |
---|
74 | <!--{* ▼ページナビ関連 *}--> |
---|
75 | <input type="hidden" name="orderby" value="<!--{$orderby|h}-->" /> |
---|
76 | <input type="hidden" name="disp_number" value="<!--{$disp_number|h}-->" /> |
---|
77 | <input type="hidden" name="pageno" value="<!--{$tpl_pageno|h}-->" /> |
---|
78 | <!--{* ▲ページナビ関連 *}--> |
---|
79 | <input type="hidden" name="rnd" value="<!--{$tpl_rnd|h}-->" /> |
---|
80 | </form> |
---|
81 | |
---|
82 | <!--★タイトル★--> |
---|
83 | <h2 class="title"><!--{$tpl_subtitle|h}--></h2> |
---|
84 | |
---|
85 | <!--▼検索条件--> |
---|
86 | <!--{if $tpl_subtitle == "検索結果"}--> |
---|
87 | <ul class="pagecond_area"> |
---|
88 | <li><strong>商品カテゴリ:</strong><!--{$arrSearch.category|h}--></li> |
---|
89 | <!--{if $arrSearch.maker|strlen >= 1}--><li><strong>メーカー:</strong><!--{$arrSearch.maker|h}--></li><!--{/if}--> |
---|
90 | <li><strong>商品名:</strong><!--{$arrSearch.name|h}--></li> |
---|
91 | </ul> |
---|
92 | <!--{/if}--> |
---|
93 | <!--▲検索条件--> |
---|
94 | |
---|
95 | <!--▼ページナビ(本文)--> |
---|
96 | <!--{capture name=page_navi_body}--> |
---|
97 | <div class="pagenumber_area clearfix"> |
---|
98 | <div class="change"> |
---|
99 | <!--{if $orderby != 'price'}--> |
---|
100 | <a href="javascript:fnChangeOrderby('price');">価格順</a> |
---|
101 | <!--{else}--> |
---|
102 | <strong>価格順</strong> |
---|
103 | <!--{/if}--> |
---|
104 | <!--{if $orderby != "date"}--> |
---|
105 | <a href="javascript:fnChangeOrderby('date');">新着順</a> |
---|
106 | <!--{else}--> |
---|
107 | <strong>新着順</strong> |
---|
108 | <!--{/if}--> |
---|
109 | 表示件数 |
---|
110 | <select name="disp_number" onchange="javascript:fnChangeDispNumber(this.value);"> |
---|
111 | <!--{foreach from=$arrPRODUCTLISTMAX item="dispnum" key="num"}--> |
---|
112 | <!--{if $num == $disp_number}--> |
---|
113 | <option value="<!--{$num}-->" selected="selected" ><!--{$dispnum}--></option> |
---|
114 | <!--{else}--> |
---|
115 | <option value="<!--{$num}-->" ><!--{$dispnum}--></option> |
---|
116 | <!--{/if}--> |
---|
117 | <!--{/foreach}--> |
---|
118 | </select> |
---|
119 | </div> |
---|
120 | <div class="navi"><!--{$tpl_strnavi}--></div> |
---|
121 | </div> |
---|
122 | <!--{/capture}--> |
---|
123 | <!--▲ページナビ(本文)--> |
---|
124 | |
---|
125 | <!--{foreach from=$arrProducts item=arrProduct name=arrProducts}--> |
---|
126 | |
---|
127 | <!--{if $smarty.foreach.arrProducts.first}--> |
---|
128 | <!--▼件数--> |
---|
129 | <div> |
---|
130 | <span class="attention"><!--{$tpl_linemax}-->件</span>の商品がございます。 |
---|
131 | </div> |
---|
132 | <!--▲件数--> |
---|
133 | |
---|
134 | <!--▼ページナビ(上部)--> |
---|
135 | <form name="page_navi_top" id="page_navi_top" action="?"> |
---|
136 | <input type="hidden" name="<!--{$smarty.const.TRANSACTION_ID_NAME}-->" value="<!--{$transactionid}-->" /> |
---|
137 | <!--{if $tpl_linemax > 0}--><!--{$smarty.capture.page_navi_body|smarty:nodefaults}--><!--{/if}--> |
---|
138 | </form> |
---|
139 | <!--▲ページナビ(上部)--> |
---|
140 | <!--{/if}--> |
---|
141 | |
---|
142 | <!--{assign var=id value=$arrProduct.product_id}--> |
---|
143 | <!--{assign var=arrErr value=$arrProduct.arrErr}--> |
---|
144 | <!--▼商品--> |
---|
145 | <form name="product_form<!--{$id|h}-->" action="?" onsubmit="return false;"> |
---|
146 | <input type="hidden" name="<!--{$smarty.const.TRANSACTION_ID_NAME}-->" value="<!--{$transactionid}-->" /> |
---|
147 | <div class="list_area clearfix"> |
---|
148 | <a name="product<!--{$id|h}-->"></a> |
---|
149 | <div class="listphoto"> |
---|
150 | <!--★画像★--> |
---|
151 | <a href="<!--{$smarty.const.P_DETAIL_URLPATH}--><!--{$arrProduct.product_id|u}-->"> |
---|
152 | <img src="<!--{$smarty.const.IMAGE_SAVE_URLPATH}--><!--{$arrProduct.main_list_image|sfNoImageMainList|h}-->" alt="<!--{$arrProduct.name|h}-->" class="picture" /></a> |
---|
153 | </div> |
---|
154 | |
---|
155 | <div class="listrightbloc"> |
---|
156 | <!--▼商品ステータス--> |
---|
157 | <!--{if count($productStatus[$id]) > 0}--> |
---|
158 | <ul class="status_icon clearfix"> |
---|
159 | <!--{foreach from=$productStatus[$id] item=status}--> |
---|
160 | <li> |
---|
161 | <img src="<!--{$TPL_URLPATH}--><!--{$arrSTATUS_IMAGE[$status]}-->" width="60" height="17" alt="<!--{$arrSTATUS[$status]}-->"/> |
---|
162 | </li> |
---|
163 | <!--{/foreach}--> |
---|
164 | </ul> |
---|
165 | <!--{/if}--> |
---|
166 | <!--▲商品ステータス--> |
---|
167 | |
---|
168 | <!--★商品名★--> |
---|
169 | <h3> |
---|
170 | <a href="<!--{$smarty.const.P_DETAIL_URLPATH}--><!--{$arrProduct.product_id|u}-->"><!--{$arrProduct.name|h}--></a> |
---|
171 | </h3> |
---|
172 | <!--★価格★--> |
---|
173 | <div class="pricebox sale_price"> |
---|
174 | <!--{$smarty.const.SALE_PRICE_TITLE}-->(税込): |
---|
175 | <span class="price"> |
---|
176 | <span id="price02_default_<!--{$id}-->"><!--{strip}--> |
---|
177 | <!--{if $arrProduct.price02_min_inctax == $arrProduct.price02_max_inctax}--> |
---|
178 | <!--{$arrProduct.price02_min_inctax|number_format}--> |
---|
179 | <!--{else}--> |
---|
180 | <!--{$arrProduct.price02_min_inctax|number_format}-->~<!--{$arrProduct.price02_max_inctax|number_format}--> |
---|
181 | <!--{/if}--> |
---|
182 | </span><span id="price02_dynamic_<!--{$id}-->"></span><!--{/strip}--> |
---|
183 | 円</span> |
---|
184 | </div> |
---|
185 | |
---|
186 | <!--★コメント★--> |
---|
187 | <div class="listcomment"><!--{$arrProduct.main_list_comment|h|nl2br}--></div> |
---|
188 | |
---|
189 | <!--★商品詳細を見る★--> |
---|
190 | <div class="detail_btn"> |
---|
191 | <!--{assign var=name value="detail`$id`"}--> |
---|
192 | <a href="<!--{$smarty.const.P_DETAIL_URLPATH}--><!--{$arrProduct.product_id|u}-->" onmouseover="chgImg('<!--{$TPL_URLPATH}-->img/button/btn_detail_on.jpg','<!--{$name}-->');" onmouseout="chgImg('<!--{$TPL_URLPATH}-->img/button/btn_detail.jpg','<!--{$name}-->');"> |
---|
193 | <img src="<!--{$TPL_URLPATH}-->img/button/btn_detail.jpg" alt="商品詳細を見る" name="<!--{$name}-->" id="<!--{$name}-->" /></a> |
---|
194 | </div> |
---|
195 | |
---|
196 | <!--▼買い物かご--> |
---|
197 | <input type="hidden" name="product_id" value="<!--{$id|h}-->" /> |
---|
198 | <input type="hidden" name="product_class_id" id="product_class_id<!--{$id|h}-->" value="<!--{$tpl_product_class_id[$id]}-->" /> |
---|
199 | |
---|
200 | <div class="cart_area clearfix"> |
---|
201 | <!--{if $tpl_stock_find[$id]}--> |
---|
202 | <!--{if $tpl_classcat_find1[$id]}--> |
---|
203 | <div class="classlist"> |
---|
204 | <dl class="size01 clearfix"> |
---|
205 | <!--▼規格1--> |
---|
206 | <dt><!--{$tpl_class_name1[$id]|h}-->:</dt> |
---|
207 | <dd> |
---|
208 | <select name="classcategory_id1" style="<!--{$arrErr.classcategory_id1|sfGetErrorColor}-->"> |
---|
209 | <!--{html_options options=$arrClassCat1[$id] selected=$arrProduct.classcategory_id1}--> |
---|
210 | </select> |
---|
211 | <!--{if $arrErr.classcategory_id1 != ""}--> |
---|
212 | <p class="attention">※ <!--{$tpl_class_name1[$id]}-->を入力して下さい。</p> |
---|
213 | <!--{/if}--> |
---|
214 | </dd> |
---|
215 | <!--▲規格1--> |
---|
216 | </dl> |
---|
217 | <!--{if $tpl_classcat_find2[$id]}--> |
---|
218 | <dl class="size02 clearfix"> |
---|
219 | <!--▼規格2--> |
---|
220 | <dt><!--{$tpl_class_name2[$id]|h}-->:</dt> |
---|
221 | <dd> |
---|
222 | <select name="classcategory_id2" style="<!--{$arrErr.classcategory_id2|sfGetErrorColor}-->"> |
---|
223 | </select> |
---|
224 | <!--{if $arrErr.classcategory_id2 != ""}--> |
---|
225 | <p class="attention">※ <!--{$tpl_class_name2[$id]}-->を入力して下さい。</p> |
---|
226 | <!--{/if}--> |
---|
227 | </dd> |
---|
228 | <!--▲規格2--> |
---|
229 | </dl> |
---|
230 | <!--{/if}--> |
---|
231 | </div> |
---|
232 | <!--{/if}--> |
---|
233 | <div class="cartin clearfix"> |
---|
234 | <div class="quantity"> |
---|
235 | 数量:<input type="text" name="quantity" class="box" value="<!--{$arrProduct.quantity|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 | </div> |
---|
240 | <div class="cartin_btn"> |
---|
241 | <!--★カゴに入れる★--> |
---|
242 | <div id="cartbtn_default_<!--{$id}-->"> |
---|
243 | <input type="image" id="cart<!--{$id}-->" src="<!--{$TPL_URLPATH}-->img/button/btn_cartin.jpg" alt="カゴに入れる" onclick="fnInCart(this.form); return false;" onmouseover="chgImg('<!--{$TPL_URLPATH}-->img/button/btn_cartin_on.jpg', this);" onmouseout="chgImg('<!--{$TPL_URLPATH}-->img/button/btn_cartin.jpg', this);" /> |
---|
244 | </div> |
---|
245 | <div class="attention" id="cartbtn_dynamic_<!--{$id}-->"></div> |
---|
246 | </div> |
---|
247 | </div> |
---|
248 | <!--{else}--> |
---|
249 | <div class="cartbtn attention">申し訳ございませんが、只今品切れ中です。</div> |
---|
250 | <!--{/if}--> |
---|
251 | </div> |
---|
252 | <!--▲買い物かご--> |
---|
253 | </div> |
---|
254 | </div> |
---|
255 | </form> |
---|
256 | <!--▲商品--> |
---|
257 | |
---|
258 | <!--{if $smarty.foreach.arrProducts.last}--> |
---|
259 | <!--▼ページナビ(下部)--> |
---|
260 | <form name="page_navi_bottom" id="page_navi_bottom" action="?"> |
---|
261 | <input type="hidden" name="<!--{$smarty.const.TRANSACTION_ID_NAME}-->" value="<!--{$transactionid}-->" /> |
---|
262 | <!--{if $tpl_linemax > 0}--><!--{$smarty.capture.page_navi_body|smarty:nodefaults}--><!--{/if}--> |
---|
263 | </form> |
---|
264 | <!--▲ページナビ(下部)--> |
---|
265 | <!--{/if}--> |
---|
266 | |
---|
267 | <!--{foreachelse}--> |
---|
268 | <!--{include file="frontparts/search_zero.tpl"}--> |
---|
269 | <!--{/foreach}--> |
---|
270 | |
---|
271 | </div> |
---|