1 | <!--{* |
---|
2 | /* |
---|
3 | * This file is part of EC-CUBE |
---|
4 | * |
---|
5 | * Copyright(c) 2000-2012 LOCKON CO.,LTD. All Rights Reserved. |
---|
6 | * |
---|
7 | * http://www.lockon.co.jp/ |
---|
8 | * |
---|
9 | * This program is free software; you can redistribute it and/or |
---|
10 | * modify it under the terms of the GNU General Public License |
---|
11 | * as published by the Free Software Foundation; either version 2 |
---|
12 | * of the License, or (at your option) any later version. |
---|
13 | * |
---|
14 | * This program is distributed in the hope that it will be useful, |
---|
15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
17 | * GNU General Public License for more details. |
---|
18 | * |
---|
19 | * You should have received a copy of the GNU General Public License |
---|
20 | * along with this program; if not, write to the Free Software |
---|
21 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
---|
22 | */ |
---|
23 | *}--> |
---|
24 | |
---|
25 | <script type="text/javascript"> |
---|
26 | // URLの表示非表示切り替え |
---|
27 | function lfnDispChange(){ |
---|
28 | inner_id = 'switch'; |
---|
29 | |
---|
30 | cnt = document.form1.item_cnt.value; |
---|
31 | |
---|
32 | if($('#disp_url1').css("display") == 'none'){ |
---|
33 | for (i = 1; i <= cnt; i++) { |
---|
34 | disp_id = 'disp_url'+i; |
---|
35 | $('#' + disp_id).css("display", ""); |
---|
36 | |
---|
37 | disp_id = 'disp_cat'+i; |
---|
38 | $('#' + disp_id).css("display", "none"); |
---|
39 | |
---|
40 | $('#' + inner_id).html(' URL <a href="#" onClick="lfnDispChange();"> >> <!--{t string="tpl_578"}--><\/a>'); |
---|
41 | } |
---|
42 | }else{ |
---|
43 | for (i = 1; i <= cnt; i++) { |
---|
44 | disp_id = 'disp_url'+i; |
---|
45 | $('#' + disp_id).css("display", "none"); |
---|
46 | |
---|
47 | disp_id = 'disp_cat'+i; |
---|
48 | $('#' + disp_id).css("display", ""); |
---|
49 | |
---|
50 | $('#' + inner_id).html(' <!--{t string="tpl_191"}--> <a href="#" onClick="lfnDispChange();"> >> <!--{t string="tpl_579"}--><\/a>'); |
---|
51 | } |
---|
52 | } |
---|
53 | |
---|
54 | } |
---|
55 | |
---|
56 | $(function(){ |
---|
57 | var dateFormat = $.datepicker.regional['<!--{$smarty.const.LANG_CODE}-->'].dateFormat; |
---|
58 | |
---|
59 | <!--{if $arrForm.search_startyear.value != '' && $arrForm.search_startmonth.value != '' && $arrForm.search_startday.value != ''}--> |
---|
60 | var search_startyear = '<!--{$arrForm.search_startyear.value|h}-->'; |
---|
61 | var search_startmonth = '<!--{$arrForm.search_startmonth.value|h}-->'; |
---|
62 | var search_startday = '<!--{$arrForm.search_startday.value|h}-->'; |
---|
63 | var search_startymd = $.datepicker.formatDate(dateFormat, new Date(search_startyear, search_startmonth - 1, search_startday)); |
---|
64 | $("#datepickersearch_start").val(search_startymd); |
---|
65 | // console.log(search_startymd); |
---|
66 | <!--{/if}--> |
---|
67 | <!--{if $arrForm.search_endyear.value != '' && $arrForm.search_endmonth.value != '' && $arrForm.search_endday.value != ''}--> |
---|
68 | var search_endyear = '<!--{$arrForm.search_endyear.value|h}-->'; |
---|
69 | var search_endmonth = '<!--{$arrForm.search_endmonth.value|h}-->'; |
---|
70 | var search_endday = '<!--{$arrForm.search_endday.value|h}-->'; |
---|
71 | var search_endymd = $.datepicker.formatDate(dateFormat, new Date(search_endyear, search_endmonth - 1, search_endday)); |
---|
72 | $("#datepickersearch_end").val(search_endymd); |
---|
73 | // console.log(search_endymd); |
---|
74 | <!--{/if}--> |
---|
75 | |
---|
76 | $( "#datepickersearch_start" ).datepicker({ |
---|
77 | beforeShowDay: function(date) { |
---|
78 | if(date.getDay() == 0) { |
---|
79 | return [true,"date-sunday"]; |
---|
80 | } else if(date.getDay() == 6){ |
---|
81 | return [true,"date-saturday"]; |
---|
82 | } else { |
---|
83 | return [true]; |
---|
84 | } |
---|
85 | },changeMonth: 'true' |
---|
86 | ,changeYear: 'true' |
---|
87 | ,onSelect: function(dateText, inst){ |
---|
88 | var year = inst.selectedYear; |
---|
89 | var month = inst.selectedMonth + 1; |
---|
90 | var day = inst.selectedDay; |
---|
91 | setDatesearch_start(year + '/' + month + '/' + day); |
---|
92 | }, |
---|
93 | showButtonPanel: true, |
---|
94 | beforeShow: showAdditionalButtonsearch_start, |
---|
95 | onChangeMonthYear: showAdditionalButtonsearch_start |
---|
96 | }); |
---|
97 | |
---|
98 | $("#datepickersearch_start").change( function() { |
---|
99 | var dateText = $(this).val(); |
---|
100 | var dateFormat = $.datepicker.regional['<!--{$smarty.const.LANG_CODE}-->'].dateFormat; |
---|
101 | // console.log(dateText); |
---|
102 | // console.log(dateFormat); |
---|
103 | var date; |
---|
104 | var year = ''; |
---|
105 | var month = ''; |
---|
106 | var day = ''; |
---|
107 | try { |
---|
108 | date = $.datepicker.parseDate(dateFormat, dateText); |
---|
109 | year = date.getFullYear(); |
---|
110 | month = date.getMonth() + 1; |
---|
111 | day = date.getDay(); |
---|
112 | } catch (e) { |
---|
113 | // console.log(e); |
---|
114 | // clear date text |
---|
115 | $(this).val(''); |
---|
116 | } |
---|
117 | setDatesearch_(year + '/' + month + '/' + day); |
---|
118 | }); |
---|
119 | |
---|
120 | $( "#datepickersearch_end" ).datepicker({ |
---|
121 | beforeShowDay: function(date) { |
---|
122 | if(date.getDay() == 0) { |
---|
123 | return [true,"date-sunday"]; |
---|
124 | } else if(date.getDay() == 6){ |
---|
125 | return [true,"date-saturday"]; |
---|
126 | } else { |
---|
127 | return [true]; |
---|
128 | } |
---|
129 | },changeMonth: 'true' |
---|
130 | ,changeYear: 'true' |
---|
131 | ,onSelect: function(dateText, inst){ |
---|
132 | var year = inst.selectedYear; |
---|
133 | var month = inst.selectedMonth + 1; |
---|
134 | var day = inst.selectedDay; |
---|
135 | setDatesearch_end(year + '/' + month + '/' + day); |
---|
136 | }, |
---|
137 | showButtonPanel: true, |
---|
138 | beforeShow: showAdditionalButtonsearch_end, |
---|
139 | onChangeMonthYear: showAdditionalButtonsearch_end |
---|
140 | }); |
---|
141 | |
---|
142 | $("#datepickersearch_end").change(function() { |
---|
143 | var dateText = $(this).val(); |
---|
144 | var dateFormat = $.datepicker.regional['<!--{$smarty.const.LANG_CODE}-->'].dateFormat; |
---|
145 | // console.log(dateText); |
---|
146 | // console.log(dateFormat); |
---|
147 | var date; |
---|
148 | var year = ''; |
---|
149 | var month = ''; |
---|
150 | var day = ''; |
---|
151 | try { |
---|
152 | date = $.datepicker.parseDate(dateFormat, dateText); |
---|
153 | year = date.getFullYear(); |
---|
154 | month = date.getMonth() + 1; |
---|
155 | day = date.getDay(); |
---|
156 | } catch (e) { |
---|
157 | // console.log(e); |
---|
158 | // clear date text |
---|
159 | $(this).val(''); |
---|
160 | } |
---|
161 | setDatesearch_end(year + '/' + month + '/' + day); |
---|
162 | }); |
---|
163 | |
---|
164 | }); |
---|
165 | |
---|
166 | var btn = $('<button class="ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all" type="button">Clear</button>'); |
---|
167 | |
---|
168 | var showAdditionalButtonsearch_start = function (input) { |
---|
169 | setTimeout(function () { |
---|
170 | var buttonPane = $(input) |
---|
171 | .datepicker("widget") |
---|
172 | .find(".ui-datepicker-buttonpane"); |
---|
173 | btn |
---|
174 | .unbind("click") |
---|
175 | .bind("click", function () { |
---|
176 | $.datepicker._clearDate(input); |
---|
177 | $("*[name=search_startyear]").val(""); |
---|
178 | $("*[name=search_startmonth]").val(""); |
---|
179 | $("*[name=search_startday]").val(""); |
---|
180 | }); |
---|
181 | btn.appendTo(buttonPane); |
---|
182 | }, 1); |
---|
183 | }; |
---|
184 | |
---|
185 | var showAdditionalButtonsearch_end = function (input) { |
---|
186 | setTimeout(function () { |
---|
187 | var buttonPane = $(input) |
---|
188 | .datepicker("widget") |
---|
189 | .find(".ui-datepicker-buttonpane"); |
---|
190 | btn |
---|
191 | .unbind("click") |
---|
192 | .bind("click", function () { |
---|
193 | $.datepicker._clearDate(input); |
---|
194 | $("*[name=search_endyear]").val(""); |
---|
195 | $("*[name=search_endmonth]").val(""); |
---|
196 | $("*[name=search_endday]").val(""); |
---|
197 | }); |
---|
198 | btn.appendTo(buttonPane); |
---|
199 | }, 1); |
---|
200 | }; |
---|
201 | |
---|
202 | function setDatesearch_start(dateText){ |
---|
203 | var dates = dateText.split('/'); |
---|
204 | $("*[name=search_startyear]").val(dates[0]); |
---|
205 | $("*[name=search_startmonth]").val(dates[1]); |
---|
206 | $("*[name=search_startday]").val(dates[2]); |
---|
207 | } |
---|
208 | |
---|
209 | function setDatesearch_end(dateText){ |
---|
210 | var dates = dateText.split('/'); |
---|
211 | $("*[name=search_endyear]").val(dates[0]); |
---|
212 | $("*[name=search_endmonth]").val(dates[1]); |
---|
213 | $("*[name=search_endday]").val(dates[2]); |
---|
214 | } |
---|
215 | </script> |
---|
216 | |
---|
217 | |
---|
218 | <div id="products" class="contents-main"> |
---|
219 | <form name="search_form" id="search_form" method="post" action="?"> |
---|
220 | <input type="hidden" name="<!--{$smarty.const.TRANSACTION_ID_NAME}-->" value="<!--{$transactionid}-->" /> |
---|
221 | <input type="hidden" name="mode" value="search" /> |
---|
222 | <h2><!--{t string="tpl_250"}--></h2> |
---|
223 | |
---|
224 | <!--検索条件設定テーブルここから--> |
---|
225 | <table> |
---|
226 | <tr> |
---|
227 | <th><!--{t string="tpl_577"}--></th> |
---|
228 | <td colspan="3"> |
---|
229 | <!--{assign var=key value="search_product_id"}--> |
---|
230 | <!--{if $arrErr[$key]}--> |
---|
231 | <span class="attention"><!--{$arrErr[$key]}--></span> |
---|
232 | <!--{/if}--> |
---|
233 | <input type="text" name="<!--{$key}-->" value="<!--{$arrForm[$key].value|h}-->" maxlength="<!--{$arrForm[$key].length}-->" style="<!--{$arrErr[$key]|sfGetErrorColor}-->" size="30" class="box30"/> |
---|
234 | </td> |
---|
235 | </tr> |
---|
236 | <tr> |
---|
237 | <th><!--{t string="tpl_192"}--></th> |
---|
238 | <td> |
---|
239 | <!--{assign var=key value="search_product_code"}--> |
---|
240 | <!--{if $arrErr[$key]}--> |
---|
241 | <span class="attention"><!--{$arrErr[$key]}--></span> |
---|
242 | <!--{/if}--> |
---|
243 | <input type="text" name="<!--{$key}-->" value="<!--{$arrForm[$key].value|h}-->" maxlength="<!--{$arrForm[$key].length}-->" style="<!--{$arrErr[$key]|sfGetErrorColor}-->" size="30" class="box30" /> |
---|
244 | </td> |
---|
245 | <th><!--{t string="tpl_188"}--></th> |
---|
246 | <td> |
---|
247 | <!--{assign var=key value="search_name"}--> |
---|
248 | <!--{if $arrErr[$key]}--> |
---|
249 | <span class="attention"><!--{$arrErr[$key]}--></span> |
---|
250 | <!--{/if}--> |
---|
251 | <input type="text" name="<!--{$key}-->" value="<!--{$arrForm[$key].value|h}-->" maxlength="<!--{$arrForm[$key].length}-->" style="<!--{$arrErr[$key]|sfGetErrorColor}-->" size="30" class="box30" /> |
---|
252 | </td> |
---|
253 | </tr> |
---|
254 | <tr> |
---|
255 | <th><!--{t string="tpl_191"}--></th> |
---|
256 | <td> |
---|
257 | <!--{assign var=key value="search_category_id"}--> |
---|
258 | <span class="attention"><!--{$arrErr[$key]}--></span> |
---|
259 | <select name="<!--{$key}-->" style="<!--{$arrErr[$key]|sfGetErrorColor}-->"> |
---|
260 | <option value=""><!--{t string="tpl_068"}--></option> |
---|
261 | <!--{html_options options=$arrCatList selected=$arrForm[$key].value}--> |
---|
262 | </select> |
---|
263 | </td> |
---|
264 | <th><!--{t string="tpl_256"}--></th> |
---|
265 | <td> |
---|
266 | <!--{assign var=key value="search_status"}--> |
---|
267 | <span class="attention"><!--{$arrErr[$key]|h}--></span> |
---|
268 | <!--{html_checkboxes name="$key" options=$arrDISP selected=$arrForm[$key].value}--> |
---|
269 | </td> |
---|
270 | </tr> |
---|
271 | <tr> |
---|
272 | <th><!--{t string="tpl_330"}--></th> |
---|
273 | <td colspan="3"> |
---|
274 | <!--{if $arrErr.search_startyear || $arrErr.search_endyear}--> |
---|
275 | <span class="attention"><!--{$arrErr.search_startyear}--></span> |
---|
276 | <span class="attention"><!--{$arrErr.search_endyear}--></span> |
---|
277 | <!--{/if}--> |
---|
278 | <input id="datepickersearch_start" |
---|
279 | type="text" |
---|
280 | value="" <!--{if $arrErr.search_startyear != ""}--><!--{sfSetErrorStyle}--><!--{/if}--> /> |
---|
281 | <input type="hidden" name="search_startyear" value="<!--{$arrForm.search_startyear.value}-->" /> |
---|
282 | <input type="hidden" name="search_startmonth" value="<!--{$arrForm.search_startmonth.value}-->" /> |
---|
283 | <input type="hidden" name="search_startday" value="<!--{$arrForm.search_startday.value}-->" /> |
---|
284 | <!--{t string="-"}--> |
---|
285 | <input id="datepickersearch_end" |
---|
286 | type="text" |
---|
287 | value="" <!--{if $arrErr.search_endyear != ""}--><!--{sfSetErrorStyle}--><!--{/if}--> /> |
---|
288 | <input type="hidden" name="search_endyear" value="<!--{$arrForm.search_endyear.value}-->" /> |
---|
289 | <input type="hidden" name="search_endmonth" value="<!--{$arrForm.search_endmonth.value}-->" /> |
---|
290 | <input type="hidden" name="search_endday" value="<!--{$arrForm.search_endday.value}-->" /> |
---|
291 | </td> |
---|
292 | </tr> |
---|
293 | <tr> |
---|
294 | <th><!--{t string="tpl_554"}--></th> |
---|
295 | <td colspan="3"> |
---|
296 | <!--{assign var=key value="search_product_statuses"}--> |
---|
297 | <span class="attention"><!--{$arrErr[$key]|h}--></span> |
---|
298 | <!--{html_checkboxes name="$key" options=$arrSTATUS selected=$arrForm[$key].value}--> |
---|
299 | </td> |
---|
300 | </tr> |
---|
301 | </table> |
---|
302 | <div class="btn"> |
---|
303 | <p class="page_rows"><!--{t string="tpl_251"}--> |
---|
304 | <!--{assign var=key value="search_page_max"}--> |
---|
305 | <!--{if $arrErr[$key]}--> |
---|
306 | <span class="attention"><!--{$arrErr[$key]}--></span> |
---|
307 | <!--{/if}--> |
---|
308 | <!--{t string="record_prefix"}--> |
---|
309 | <select name="<!--{$key}-->" style="<!--{$arrErr[$key]|sfGetErrorColor}-->"> |
---|
310 | <!--{html_options options=$arrPageMax selected=$arrForm.search_page_max.value}--> |
---|
311 | </select> |
---|
312 | <!--{t string="record_suffix"}--> |
---|
313 | </p> |
---|
314 | |
---|
315 | <div class="btn-area"> |
---|
316 | <ul> |
---|
317 | <li><a class="btn-action" href="javascript:;" onclick="fnFormModeSubmit('search_form', 'search', '', ''); return false;"><span class="btn-next"><!--{t string="tpl_252"}--></span></a></li> |
---|
318 | </ul> |
---|
319 | </div> |
---|
320 | |
---|
321 | </div> |
---|
322 | <!--検索条件設定テーブルここまで--> |
---|
323 | </form> |
---|
324 | |
---|
325 | |
---|
326 | <!--{if count($arrErr) == 0 and ($smarty.post.mode == 'search' or $smarty.post.mode == 'delete')}--> |
---|
327 | |
---|
328 | <!--★★検索結果一覧★★--> |
---|
329 | <form name="form1" id="form1" method="post" action="?"> |
---|
330 | <input type="hidden" name="<!--{$smarty.const.TRANSACTION_ID_NAME}-->" value="<!--{$transactionid}-->" /> |
---|
331 | <input type="hidden" name="mode" value="search" /> |
---|
332 | <input type="hidden" name="product_id" value="" /> |
---|
333 | <input type="hidden" name="category_id" value="" /> |
---|
334 | <!--{foreach key=key item=item from=$arrHidden}--> |
---|
335 | <!--{if is_array($item)}--> |
---|
336 | <!--{foreach item=c_item from=$item}--> |
---|
337 | <input type="hidden" name="<!--{$key|h}-->[]" value="<!--{$c_item|h}-->" /> |
---|
338 | <!--{/foreach}--> |
---|
339 | <!--{else}--> |
---|
340 | <input type="hidden" name="<!--{$key|h}-->" value="<!--{$item|h}-->" /> |
---|
341 | <!--{/if}--> |
---|
342 | <!--{/foreach}--> |
---|
343 | <h2><!--{t string="tpl_253"}--></h2> |
---|
344 | <div class="btn"> |
---|
345 | <!--検索結果数--><!--{t string="tpl_230" escape="none" T_FIELD=$tpl_linemax}--> |
---|
346 | <!--検索結果--> |
---|
347 | <!--{if $smarty.const.ADMIN_MODE == '1'}--> |
---|
348 | <a class="btn-normal" href="javascript:;" onclick="fnModeSubmit('delete_all','',''); return false;"><!--{t string="tpl_327"}--></a> |
---|
349 | <!--{/if}--> |
---|
350 | <a class="btn-tool" href="javascript:;" onclick="fnModeSubmit('csv','',''); return false;"><!--{t string="tpl_254"}--></a> |
---|
351 | <a class="btn-tool" href="../contents/csv.php?tpl_subno_csv=product"><!--{t string="tpl_255"}--></a> |
---|
352 | </div> |
---|
353 | <!--{if count($arrProducts) > 0}--> |
---|
354 | |
---|
355 | <!--{include file=$tpl_pager}--> |
---|
356 | |
---|
357 | <!--検索結果表示テーブル--> |
---|
358 | <table class="list" id="products-search-result"> |
---|
359 | <col width="8%" /> |
---|
360 | <col width="9%" /> |
---|
361 | <col width="9%" /> |
---|
362 | <col width="8%" /> |
---|
363 | <col width="25%" /> |
---|
364 | <col width="8%" /> |
---|
365 | <col width="8%" /> |
---|
366 | <col width="5%" /> |
---|
367 | <col width="5%" /> |
---|
368 | <col width="5%" /> |
---|
369 | <col width="5%" /> |
---|
370 | <col width="5%" /> |
---|
371 | <tr> |
---|
372 | <th rowspan="2"><!--{t string="tpl_577"}--></th> |
---|
373 | <th rowspan="2"><!--{t string="tpl_195"}--></th> |
---|
374 | <th rowspan="2"><!--{t string="tpl_192"}--></th> |
---|
375 | <th rowspan="2"><!--{t string="tpl_580" escape="none"}--></th> |
---|
376 | <th><!--{t string="tpl_188"}--></th> |
---|
377 | <th rowspan="2"><!--{t string="tpl_581"}--></th> |
---|
378 | <th rowspan="2"><!--{t string="tpl_256"}--></th> |
---|
379 | <th rowspan="2"><!--{t string="tpl_Edit_01"}--></th> |
---|
380 | <th rowspan="2"><!--{t string="tpl_318"}--></th> |
---|
381 | <!--{if $smarty.const.OPTION_CLASS_REGIST == 1}--> |
---|
382 | <th rowspan="2"><!--{t string="tpl_582"}--></th> |
---|
383 | <!--{/if}--> |
---|
384 | <th rowspan="2"><!--{t string="tpl_Remove_01"}--></th> |
---|
385 | <th rowspan="2"><!--{t string="tpl_583"}--></th> |
---|
386 | </tr> |
---|
387 | <tr> |
---|
388 | <th nowrap><a href="#" onClick="lfnDispChange(); return false;"><!--{t string="tpl_584"}--></a></th> |
---|
389 | </tr> |
---|
390 | |
---|
391 | <!--{section name=cnt loop=$arrProducts}--> |
---|
392 | <!--▼商品<!--{$smarty.section.cnt.iteration}-->--> |
---|
393 | <!--{assign var=status value="`$arrProducts[cnt].status`"}--> |
---|
394 | <tr style="background:<!--{$arrPRODUCTSTATUS_COLOR[$status]}-->;"> |
---|
395 | <td class="id" rowspan="2"><!--{$arrProducts[cnt].product_id}--></td> |
---|
396 | <td class="thumbnail" rowspan="2"> |
---|
397 | <img src="<!--{$smarty.const.ROOT_URLPATH}-->resize_image.php?image=<!--{$arrProducts[cnt].main_list_image|sfNoImageMainList|h}-->&width=65&height=65"> </td> |
---|
398 | <td rowspan="2"><!--{$arrProducts[cnt].product_code_min|h}--> |
---|
399 | <!--{if $arrProducts[cnt].product_code_min != $arrProducts[cnt].product_code_max}--> |
---|
400 | <br /><!--{t string="-"}--> <!--{$arrProducts[cnt].product_code_max|h}--> |
---|
401 | <!--{/if}--> |
---|
402 | </td> |
---|
403 | <!--{* 価格 *}--> |
---|
404 | <td rowspan="2" class="right"> |
---|
405 | <!--{$arrProducts[cnt].price02_min|number_format}--> |
---|
406 | <!--{if $arrProducts[cnt].price02_min != $arrProducts[cnt].price02_max}--> |
---|
407 | <br /><!--{t string="-"}--> <!--{$arrProducts[cnt].price02_max|number_format}--> |
---|
408 | <!--{/if}--> </td> |
---|
409 | <td><!--{$arrProducts[cnt].name|h}--></td> |
---|
410 | <!--{* 在庫 *}--> |
---|
411 | <!--{* XXX 複数規格でかつ、全ての在庫数量が等しい場合は先頭に「各」と入れたれたら良いと思う。 *}--> |
---|
412 | <td class="menu" rowspan="2"> |
---|
413 | <!--{if $arrProducts[cnt].stock_unlimited_min}--><!--{t string="tpl_053"}--><!--{else}--><!--{$arrProducts[cnt].stock_min|number_format}--><!--{/if}--> |
---|
414 | <!--{if $arrProducts[cnt].stock_unlimited_min != $arrProducts[cnt].stock_unlimited_max || $arrProducts[cnt].stock_min != $arrProducts[cnt].stock_max}--> |
---|
415 | <br /><!--{t string="-"}--> <!--{if $arrProducts[cnt].stock_unlimited_max}--><!--{t string="tpl_053"}--><!--{else}--><!--{$arrProducts[cnt].stock_max|number_format}--><!--{/if}--> |
---|
416 | <!--{/if}--> </td> |
---|
417 | <!--{* 表示 *}--> |
---|
418 | <!--{assign var=key value=$arrProducts[cnt].status}--> |
---|
419 | <td class="menu" rowspan="2"><!--{$arrDISP[$key]}--></td> |
---|
420 | <td class="menu" rowspan="2"><span class="icon_edit"><a href="<!--{$smarty.const.ROOT_URLPATH}-->" onclick="fnChangeAction('./product.php'); fnModeSubmit('pre_edit', 'product_id', <!--{$arrProducts[cnt].product_id}-->); return false;" ><!--{t string="tpl_Edit_01"}--></a></span></td> |
---|
421 | <td class="menu" rowspan="2"><span class="icon_confirm"><a href="<!--{$smarty.const.HTTP_URL|sfTrimURL}-->/products/detail.php?product_id=<!--{$arrProducts[cnt].product_id}-->&admin=on" target="_blank"><!--{t string="tpl_318"}--></a></span></td> |
---|
422 | <!--{if $smarty.const.OPTION_CLASS_REGIST == 1}--> |
---|
423 | <td class="menu" rowspan="2"><span class="icon_class"><a href="<!--{$smarty.const.ROOT_URLPATH}-->" onclick="fnChangeAction('./product_class.php'); fnModeSubmit('pre_edit', 'product_id', <!--{$arrProducts[cnt].product_id}-->); return false;" ><!--{t string="tpl_582"}--></a></span></td> |
---|
424 | <!--{/if}--> |
---|
425 | <td class="menu" rowspan="2"><span class="icon_delete"><a href="<!--{$smarty.const.ROOT_URLPATH}-->" onclick="fnSetFormValue('category_id', '<!--{$arrProducts[cnt].category_id}-->'); fnModeSubmit('delete', 'product_id', <!--{$arrProducts[cnt].product_id}-->); return false;"><!--{t string="tpl_Remove_01"}--></a></span></td> |
---|
426 | <td class="menu" rowspan="2"><span class="icon_copy"><a href="<!--{$smarty.const.ROOT_URLPATH}-->" onclick="fnChangeAction('./product.php'); fnModeSubmit('copy', 'product_id', <!--{$arrProducts[cnt].product_id}-->); return false;" ><!--{t string="tpl_583"}--></a></span></td> |
---|
427 | </tr> |
---|
428 | <tr style="background:<!--{$arrPRODUCTSTATUS_COLOR[$status]}-->;"> |
---|
429 | <td> |
---|
430 | <!--{* カテゴリ名 *}--> |
---|
431 | <div id="disp_cat<!--{$smarty.section.cnt.iteration}-->" style="display:<!--{$cat_flg}-->"> |
---|
432 | <!--{foreach from=$arrProducts[cnt].categories item=category_id name=categories}--> |
---|
433 | <!--{$arrCatList[$category_id]|sfTrim}--> |
---|
434 | <!--{if !$smarty.foreach.categories.last}--><br /><!--{/if}--> |
---|
435 | <!--{/foreach}--> |
---|
436 | </div> |
---|
437 | |
---|
438 | <!--{* URL *}--> |
---|
439 | <div id="disp_url<!--{$smarty.section.cnt.iteration}-->" style="display:none"> |
---|
440 | <!--{$smarty.const.HTTP_URL|sfTrimURL}-->/products/detail.php?product_id=<!--{$arrProducts[cnt].product_id}--> |
---|
441 | </div> |
---|
442 | </td> |
---|
443 | </tr> |
---|
444 | <!--▲商品<!--{$smarty.section.cnt.iteration}-->--> |
---|
445 | <!--{/section}--> |
---|
446 | </table> |
---|
447 | <input type="hidden" name="item_cnt" value="<!--{$arrProducts|@count}-->" /> |
---|
448 | <!--検索結果表示テーブル--> |
---|
449 | <!--{/if}--> |
---|
450 | |
---|
451 | </form> |
---|
452 | |
---|
453 | <!--★★検索結果一覧★★--> |
---|
454 | <!--{/if}--> |
---|
455 | </div> |
---|