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 | <!-- |
---|
27 | |
---|
28 | function fnDelete(customer_id) { |
---|
29 | if (confirm('<!--{t string="tpl_Do you want to delete member information?_01"}-->')) { |
---|
30 | document.form1.mode.value = "delete" |
---|
31 | document.form1['edit_customer_id'].value = customer_id; |
---|
32 | document.form1.submit(); |
---|
33 | return false; |
---|
34 | } |
---|
35 | } |
---|
36 | |
---|
37 | function fnEdit(customer_id) { |
---|
38 | document.form1.action = './edit.php'; |
---|
39 | document.form1.mode.value = "edit_search" |
---|
40 | document.form1['edit_customer_id'].value = customer_id; |
---|
41 | document.form1.search_pageno.value = 1; |
---|
42 | document.form1.submit(); |
---|
43 | return false; |
---|
44 | } |
---|
45 | |
---|
46 | function fnReSendMail(customer_id) { |
---|
47 | if (confirm('<!--{t string="tpl_Do you wish to receive a temporary registration e-mail again?_01"}-->')) { |
---|
48 | document.form1.mode.value = "resend_mail" |
---|
49 | document.form1['edit_customer_id'].value = customer_id; |
---|
50 | document.form1.submit(); |
---|
51 | return false; |
---|
52 | } |
---|
53 | } |
---|
54 | |
---|
55 | $(function(){ |
---|
56 | var dateFormat = $.datepicker.regional['<!--{$smarty.const.LANG_CODE}-->'].dateFormat; |
---|
57 | |
---|
58 | <!--{if $arrForm.search_b_start_year.value != '' && $arrForm.search_b_start_month.value != '' && $arrForm.search_b_start_day.value != ''}--> |
---|
59 | var search_b_start_year = '<!--{$arrForm.search_b_start_year.value|h}-->'; |
---|
60 | var search_b_start_month = '<!--{$arrForm.search_b_start_month.value|h}-->'; |
---|
61 | var search_b_start_day = '<!--{$arrForm.search_b_start_day.value|h}-->'; |
---|
62 | var search_b_start_ymd = $.datepicker.formatDate(dateFormat, new Date(search_b_start_year, search_b_start_month - 1, search_b_start_day)); |
---|
63 | $("#datepickercustomersearch_b_start").val(search_b_start_ymd); |
---|
64 | <!--{/if}--> |
---|
65 | |
---|
66 | $( "#datepickercustomersearch_b_start" ).datepicker({ |
---|
67 | beforeShowDay: function(date) { |
---|
68 | if(date.getDay() == 0) { |
---|
69 | return [true,"date-sunday"]; |
---|
70 | } else if(date.getDay() == 6){ |
---|
71 | return [true,"date-saturday"]; |
---|
72 | } else { |
---|
73 | return [true]; |
---|
74 | } |
---|
75 | },changeMonth: 'true' |
---|
76 | ,changeYear: 'true' |
---|
77 | ,onSelect: function(dateText, inst){ |
---|
78 | var year = inst.selectedYear; |
---|
79 | var month = inst.selectedMonth + 1; |
---|
80 | var day = inst.selectedDay; |
---|
81 | setDatecustomersearch_b_start(year + '/' + month + '/' + day); |
---|
82 | }, |
---|
83 | showButtonPanel: true, |
---|
84 | beforeShow: showAdditionalButtoncustomersearch_b_start, |
---|
85 | onChangeMonthYear: showAdditionalButtoncustomersearch_b_start |
---|
86 | }); |
---|
87 | |
---|
88 | $("#datepickercustomersearch_b_start").change( function() { |
---|
89 | var dateText = $(this).val(); |
---|
90 | var dateFormat = $.datepicker.regional['<!--{$smarty.const.LANG_CODE}-->'].dateFormat; |
---|
91 | // console.log(dateText); |
---|
92 | // console.log(dateFormat); |
---|
93 | var date; |
---|
94 | var year = ''; |
---|
95 | var month = ''; |
---|
96 | var day = ''; |
---|
97 | try { |
---|
98 | date = $.datepicker.parseDate(dateFormat, dateText); |
---|
99 | year = date.getFullYear(); |
---|
100 | month = date.getMonth() + 1; |
---|
101 | day = date.getDay(); |
---|
102 | } catch (e) { |
---|
103 | // console.log(e); |
---|
104 | // clear date text |
---|
105 | $(this).val(''); |
---|
106 | } |
---|
107 | setDatecustomersearch_b_start(year + '/' + month + '/' + day); |
---|
108 | }); |
---|
109 | |
---|
110 | <!--{if $arrForm.search_b_end_year.value != '' && $arrForm.search_b_end_month.value != '' && $arrForm.search_b_end_day.value != ''}--> |
---|
111 | var search_b_end_year = '<!--{$arrForm.search_b_end_year.value|h}-->'; |
---|
112 | var search_b_end_month = '<!--{$arrForm.search_b_end_month.value|h}-->'; |
---|
113 | var search_b_end_day = '<!--{$arrForm.search_b_end_day.value|h}-->'; |
---|
114 | var search_b_end_ymd = $.datepicker.formatDate(dateFormat, new Date(search_b_end_year, search_b_end_month - 1, search_b_end_day)); |
---|
115 | $("#datepickercustomersearch_b_end").val(search_b_end_ymd); |
---|
116 | <!--{/if}--> |
---|
117 | |
---|
118 | $( "#datepickercustomersearch_b_end" ).datepicker({ |
---|
119 | beforeShowDay: function(date) { |
---|
120 | if(date.getDay() == 0) { |
---|
121 | return [true,"date-sunday"]; |
---|
122 | } else if(date.getDay() == 6){ |
---|
123 | return [true,"date-saturday"]; |
---|
124 | } else { |
---|
125 | return [true]; |
---|
126 | } |
---|
127 | },changeMonth: 'true' |
---|
128 | ,changeYear: 'true' |
---|
129 | ,onSelect: function(dateText, inst){ |
---|
130 | var year = inst.selectedYear; |
---|
131 | var month = inst.selectedMonth + 1; |
---|
132 | var day = inst.selectedDay; |
---|
133 | setDatecustomersearch_b_end(year + '/' + month + '/' + day); |
---|
134 | }, |
---|
135 | showButtonPanel: true, |
---|
136 | beforeShow: showAdditionalButtoncustomersearch_b_end, |
---|
137 | onChangeMonthYear: showAdditionalButtoncustomersearch_b_end |
---|
138 | }); |
---|
139 | |
---|
140 | $("#datepickercustomersearch_b_end").change( function() { |
---|
141 | var dateText = $(this).val(); |
---|
142 | var dateFormat = $.datepicker.regional['<!--{$smarty.const.LANG_CODE}-->'].dateFormat; |
---|
143 | // console.log(dateText); |
---|
144 | // console.log(dateFormat); |
---|
145 | var date; |
---|
146 | var year = ''; |
---|
147 | var month = ''; |
---|
148 | var day = ''; |
---|
149 | try { |
---|
150 | date = $.datepicker.parseDate(dateFormat, dateText); |
---|
151 | year = date.getFullYear(); |
---|
152 | month = date.getMonth() + 1; |
---|
153 | day = date.getDay(); |
---|
154 | } catch (e) { |
---|
155 | // console.log(e); |
---|
156 | // clear date text |
---|
157 | $(this).val(''); |
---|
158 | } |
---|
159 | setDatecustomersearch_b_end(year + '/' + month + '/' + day); |
---|
160 | }); |
---|
161 | |
---|
162 | <!--{if $arrForm.search_start_year.value != '' && $arrForm.search_start_month.value != '' && $arrForm.search_start_day.value != ''}--> |
---|
163 | var search_start_year = '<!--{$arrForm.search_start_year.value|h}-->'; |
---|
164 | var search_start_month = '<!--{$arrForm.search_start_month.value|h}-->'; |
---|
165 | var search_start_day = '<!--{$arrForm.search_start_day.value|h}-->'; |
---|
166 | var search_start_day_ymd = $.datepicker.formatDate(dateFormat, new Date(search_start_year, search_start_month - 1, search_start_day)); |
---|
167 | $("#datepickercustomersearch_start").val(search_start_day_ymd); |
---|
168 | <!--{/if}--> |
---|
169 | |
---|
170 | $( "#datepickercustomersearch_start" ).datepicker({ |
---|
171 | beforeShowDay: function(date) { |
---|
172 | if(date.getDay() == 0) { |
---|
173 | return [true,"date-sunday"]; |
---|
174 | } else if(date.getDay() == 6){ |
---|
175 | return [true,"date-saturday"]; |
---|
176 | } else { |
---|
177 | return [true]; |
---|
178 | } |
---|
179 | },changeMonth: 'true' |
---|
180 | ,changeYear: 'true' |
---|
181 | ,onSelect: function(dateText, inst){ |
---|
182 | var year = inst.selectedYear; |
---|
183 | var month = inst.selectedMonth + 1; |
---|
184 | var day = inst.selectedDay; |
---|
185 | setDatecustomersearch_start(year + '/' + month + '/' + day); |
---|
186 | }, |
---|
187 | showButtonPanel: true, |
---|
188 | beforeShow: showAdditionalButtoncustomersearch_start, |
---|
189 | onChangeMonthYear: showAdditionalButtoncustomersearch_start |
---|
190 | }); |
---|
191 | |
---|
192 | $("#datepickercustomersearch_start").change( function() { |
---|
193 | var dateText = $(this).val(); |
---|
194 | var dateFormat = $.datepicker.regional['<!--{$smarty.const.LANG_CODE}-->'].dateFormat; |
---|
195 | // console.log(dateText); |
---|
196 | // console.log(dateFormat); |
---|
197 | var date; |
---|
198 | var year = ''; |
---|
199 | var month = ''; |
---|
200 | var day = ''; |
---|
201 | try { |
---|
202 | date = $.datepicker.parseDate(dateFormat, dateText); |
---|
203 | year = date.getFullYear(); |
---|
204 | month = date.getMonth() + 1; |
---|
205 | day = date.getDay(); |
---|
206 | } catch (e) { |
---|
207 | // console.log(e); |
---|
208 | // clear date text |
---|
209 | $(this).val(''); |
---|
210 | } |
---|
211 | setDatecustomersearch_start(year + '/' + month + '/' + day); |
---|
212 | }); |
---|
213 | |
---|
214 | <!--{if $arrForm.search_end_year.value != '' && $arrForm.search_end_month.value != '' && $arrForm.search_end_day.value != ''}--> |
---|
215 | var search_end_year = '<!--{$arrForm.search_end_year.value|h}-->'; |
---|
216 | var search_end_month = '<!--{$arrForm.search_end_month.value|h}-->'; |
---|
217 | var search_end_day = '<!--{$arrForm.search_end_day.value|h}-->'; |
---|
218 | var search_end_ymd = $.datepicker.formatDate(dateFormat, new Date(search_end_year, search_end_month - 1, search_end_day)); |
---|
219 | $("#datepickercustomersearch_end").val(search_end_ymd); |
---|
220 | <!--{/if}--> |
---|
221 | |
---|
222 | $( "#datepickercustomersearch_end" ).datepicker({ |
---|
223 | beforeShowDay: function(date) { |
---|
224 | if(date.getDay() == 0) { |
---|
225 | return [true,"date-sunday"]; |
---|
226 | } else if(date.getDay() == 6){ |
---|
227 | return [true,"date-saturday"]; |
---|
228 | } else { |
---|
229 | return [true]; |
---|
230 | } |
---|
231 | },changeMonth: 'true' |
---|
232 | ,changeYear: 'true' |
---|
233 | ,onSelect: function(dateText, inst){ |
---|
234 | var year = inst.selectedYear; |
---|
235 | var month = inst.selectedMonth + 1; |
---|
236 | var day = inst.selectedDay; |
---|
237 | setDatecustomersearch_end(year + '/' + month + '/' + day); |
---|
238 | }, |
---|
239 | showButtonPanel: true, |
---|
240 | beforeShow: showAdditionalButtoncustomersearch_end, |
---|
241 | onChangeMonthYear: showAdditionalButtoncustomersearch_end |
---|
242 | }); |
---|
243 | |
---|
244 | $("#datepickercustomersearch_end").change( function() { |
---|
245 | var dateText = $(this).val(); |
---|
246 | var dateFormat = $.datepicker.regional['<!--{$smarty.const.LANG_CODE}-->'].dateFormat; |
---|
247 | // console.log(dateText); |
---|
248 | // console.log(dateFormat); |
---|
249 | var date; |
---|
250 | var year = ''; |
---|
251 | var month = ''; |
---|
252 | var day = ''; |
---|
253 | try { |
---|
254 | date = $.datepicker.parseDate(dateFormat, dateText); |
---|
255 | year = date.getFullYear(); |
---|
256 | month = date.getMonth() + 1; |
---|
257 | day = date.getDay(); |
---|
258 | } catch (e) { |
---|
259 | // console.log(e); |
---|
260 | // clear date text |
---|
261 | $(this).val(''); |
---|
262 | } |
---|
263 | setDatecustomersearch_end(year + '/' + month + '/' + day); |
---|
264 | }); |
---|
265 | |
---|
266 | <!--{if $arrForm.search_buy_start_year.value != '' && $arrForm.search_buy_start_month.value != '' && $arrForm.search_buy_start_day.value != ''}--> |
---|
267 | var search_buy_start_year = '<!--{$arrForm.search_buy_start_year.value|h}-->'; |
---|
268 | var search_buy_start_month = '<!--{$arrForm.search_buy_start_month.value|h}-->'; |
---|
269 | var search_buy_start_day = '<!--{$arrForm.search_buy_start_day.value|h}-->'; |
---|
270 | var search_buy_start_ymd = $.datepicker.formatDate(dateFormat, new Date(search_buy_start_year, search_buy_start_month - 1, search_buy_start_day)); |
---|
271 | $("#datepickercustomersearch_buy_start").val(search_buy_start_ymd); |
---|
272 | <!--{/if}--> |
---|
273 | |
---|
274 | $( "#datepickercustomersearch_buy_start" ).datepicker({ |
---|
275 | beforeShowDay: function(date) { |
---|
276 | if(date.getDay() == 0) { |
---|
277 | return [true,"date-sunday"]; |
---|
278 | } else if(date.getDay() == 6){ |
---|
279 | return [true,"date-saturday"]; |
---|
280 | } else { |
---|
281 | return [true]; |
---|
282 | } |
---|
283 | },changeMonth: 'true' |
---|
284 | ,changeYear: 'true' |
---|
285 | ,onSelect: function(dateText, inst){ |
---|
286 | var year = inst.selectedYear; |
---|
287 | var month = inst.selectedMonth + 1; |
---|
288 | var day = inst.selectedDay; |
---|
289 | setDatecustomersearch_buy_start(year + '/' + month + '/' + day); |
---|
290 | }, |
---|
291 | showButtonPanel: true, |
---|
292 | beforeShow: showAdditionalButtoncustomersearch_buy_start, |
---|
293 | onChangeMonthYear: showAdditionalButtoncustomersearch_buy_start |
---|
294 | }); |
---|
295 | |
---|
296 | $("#datepickercustomersearch_buy_start").change( function() { |
---|
297 | var dateText = $(this).val(); |
---|
298 | var dateFormat = $.datepicker.regional['<!--{$smarty.const.LANG_CODE}-->'].dateFormat; |
---|
299 | // console.log(dateText); |
---|
300 | // console.log(dateFormat); |
---|
301 | var date; |
---|
302 | var year = ''; |
---|
303 | var month = ''; |
---|
304 | var day = ''; |
---|
305 | try { |
---|
306 | date = $.datepicker.parseDate(dateFormat, dateText); |
---|
307 | year = date.getFullYear(); |
---|
308 | month = date.getMonth() + 1; |
---|
309 | day = date.getDay(); |
---|
310 | } catch (e) { |
---|
311 | // console.log(e); |
---|
312 | // clear date text |
---|
313 | $(this).val(''); |
---|
314 | } |
---|
315 | setDatecustomersearch_buy_start(year + '/' + month + '/' + day); |
---|
316 | }); |
---|
317 | |
---|
318 | <!--{if $arrForm.search_buy_end_year.value != '' && $arrForm.search_buy_end_month.value != '' && $arrForm.search_buy_end_day.value != ''}--> |
---|
319 | var search_buy_end_year = '<!--{$arrForm.search_buy_end_year.value|h}-->'; |
---|
320 | var search_buy_end_month = '<!--{$arrForm.search_buy_end_month.value|h}-->'; |
---|
321 | var search_buy_end_day = '<!--{$arrForm.search_buy_end_day.value|h}-->'; |
---|
322 | var search_buy_end_ymd = $.datepicker.formatDate(dateFormat, new Date(search_buy_end_year, search_buy_end_month - 1, search_buy_end_day)); |
---|
323 | $("#datepickercustomersearch_buy_end").val(search_buy_end_ymd); |
---|
324 | <!--{/if}--> |
---|
325 | |
---|
326 | $( "#datepickercustomersearch_buy_end" ).datepicker({ |
---|
327 | beforeShowDay: function(date) { |
---|
328 | if(date.getDay() == 0) { |
---|
329 | return [true,"date-sunday"]; |
---|
330 | } else if(date.getDay() == 6){ |
---|
331 | return [true,"date-saturday"]; |
---|
332 | } else { |
---|
333 | return [true]; |
---|
334 | } |
---|
335 | },changeMonth: 'true' |
---|
336 | ,changeYear: 'true' |
---|
337 | ,onSelect: function(dateText, inst){ |
---|
338 | var year = inst.selectedYear; |
---|
339 | var month = inst.selectedMonth + 1; |
---|
340 | var day = inst.selectedDay; |
---|
341 | setDatecustomersearch_buy_end(year + '/' + month + '/' + day); |
---|
342 | }, |
---|
343 | showButtonPanel: true, |
---|
344 | beforeShow: showAdditionalButtoncustomersearch_buy_end, |
---|
345 | onChangeMonthYear: showAdditionalButtoncustomersearch_buy_end |
---|
346 | }); |
---|
347 | |
---|
348 | $("#datepickercustomersearch_buy_end").change( function() { |
---|
349 | var dateText = $(this).val(); |
---|
350 | var dateFormat = $.datepicker.regional['<!--{$smarty.const.LANG_CODE}-->'].dateFormat; |
---|
351 | // console.log(dateText); |
---|
352 | // console.log(dateFormat); |
---|
353 | var date; |
---|
354 | var year = ''; |
---|
355 | var month = ''; |
---|
356 | var day = ''; |
---|
357 | try { |
---|
358 | date = $.datepicker.parseDate(dateFormat, dateText); |
---|
359 | year = date.getFullYear(); |
---|
360 | month = date.getMonth() + 1; |
---|
361 | day = date.getDay(); |
---|
362 | } catch (e) { |
---|
363 | // console.log(e); |
---|
364 | // clear date text |
---|
365 | $(this).val(''); |
---|
366 | } |
---|
367 | setDatecustomersearch_buy_end(year + '/' + month + '/' + day); |
---|
368 | }); |
---|
369 | |
---|
370 | }); |
---|
371 | |
---|
372 | var btn = $('<button class="ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all" type="button">Clear</button>'); |
---|
373 | |
---|
374 | var showAdditionalButtoncustomersearch_b_start = function (input) { |
---|
375 | setTimeout(function () { |
---|
376 | var buttonPane = $(input) |
---|
377 | .datepicker("widget") |
---|
378 | .find(".ui-datepicker-buttonpane"); |
---|
379 | btn |
---|
380 | .unbind("click") |
---|
381 | .bind("click", function () { |
---|
382 | $.datepicker._clearDate(input); |
---|
383 | $("*[name=search_b_start_year]").val(""); |
---|
384 | $("*[name=search_b_start_month]").val(""); |
---|
385 | $("*[name=search_b_start_day]").val(""); |
---|
386 | }); |
---|
387 | btn.appendTo(buttonPane); |
---|
388 | }, 1); |
---|
389 | }; |
---|
390 | |
---|
391 | var showAdditionalButtoncustomersearch_b_end = function (input) { |
---|
392 | setTimeout(function () { |
---|
393 | var buttonPane = $(input) |
---|
394 | .datepicker("widget") |
---|
395 | .find(".ui-datepicker-buttonpane"); |
---|
396 | btn |
---|
397 | .unbind("click") |
---|
398 | .bind("click", function () { |
---|
399 | $.datepicker._clearDate(input); |
---|
400 | $("*[name=search_b_end_year]").val(""); |
---|
401 | $("*[name=search_b_end_month]").val(""); |
---|
402 | $("*[name=search_b_end_day]").val(""); |
---|
403 | }); |
---|
404 | btn.appendTo(buttonPane); |
---|
405 | }, 1); |
---|
406 | }; |
---|
407 | |
---|
408 | var showAdditionalButtoncustomersearch_start = function (input) { |
---|
409 | setTimeout(function () { |
---|
410 | var buttonPane = $(input) |
---|
411 | .datepicker("widget") |
---|
412 | .find(".ui-datepicker-buttonpane"); |
---|
413 | btn |
---|
414 | .unbind("click") |
---|
415 | .bind("click", function () { |
---|
416 | $.datepicker._clearDate(input); |
---|
417 | $("*[name=search_start_year]").val(""); |
---|
418 | $("*[name=search_start_month]").val(""); |
---|
419 | $("*[name=search_start_day]").val(""); |
---|
420 | }); |
---|
421 | btn.appendTo(buttonPane); |
---|
422 | }, 1); |
---|
423 | }; |
---|
424 | |
---|
425 | var showAdditionalButtoncustomersearch_end = function (input) { |
---|
426 | setTimeout(function () { |
---|
427 | var buttonPane = $(input) |
---|
428 | .datepicker("widget") |
---|
429 | .find(".ui-datepicker-buttonpane"); |
---|
430 | btn |
---|
431 | .unbind("click") |
---|
432 | .bind("click", function () { |
---|
433 | $.datepicker._clearDate(input); |
---|
434 | $("*[name=search_end_year]").val(""); |
---|
435 | $("*[name=search_end_month]").val(""); |
---|
436 | $("*[name=search_end_day]").val(""); |
---|
437 | }); |
---|
438 | btn.appendTo(buttonPane); |
---|
439 | }, 1); |
---|
440 | }; |
---|
441 | |
---|
442 | var showAdditionalButtoncustomersearch_buy_start = function (input) { |
---|
443 | setTimeout(function () { |
---|
444 | var buttonPane = $(input) |
---|
445 | .datepicker("widget") |
---|
446 | .find(".ui-datepicker-buttonpane"); |
---|
447 | btn |
---|
448 | .unbind("click") |
---|
449 | .bind("click", function () { |
---|
450 | $.datepicker._clearDate(input); |
---|
451 | $("*[name=search_buy_start_year]").val(""); |
---|
452 | $("*[name=search_buy_start_month]").val(""); |
---|
453 | $("*[name=search_buy_start_day]").val(""); |
---|
454 | }); |
---|
455 | btn.appendTo(buttonPane); |
---|
456 | }, 1); |
---|
457 | }; |
---|
458 | |
---|
459 | var showAdditionalButtoncustomersearch_buy_end = function (input) { |
---|
460 | setTimeout(function () { |
---|
461 | var buttonPane = $(input) |
---|
462 | .datepicker("widget") |
---|
463 | .find(".ui-datepicker-buttonpane"); |
---|
464 | btn |
---|
465 | .unbind("click") |
---|
466 | .bind("click", function () { |
---|
467 | $.datepicker._clearDate(input); |
---|
468 | $("*[name=search_buy_end_year]").val(""); |
---|
469 | $("*[name=search_buy_end_month]").val(""); |
---|
470 | $("*[name=search_buy_end_day]").val(""); |
---|
471 | }); |
---|
472 | btn.appendTo(buttonPane); |
---|
473 | }, 1); |
---|
474 | }; |
---|
475 | |
---|
476 | function setDatecustomersearch_b_start(dateText){ |
---|
477 | var dates = dateText.split('/'); |
---|
478 | $("*[name=search_b_start_year]").val(dates[0]); |
---|
479 | $("*[name=search_b_start_month]").val(dates[1]); |
---|
480 | $("*[name=search_b_start_day]").val(dates[2]); |
---|
481 | } |
---|
482 | |
---|
483 | function setDatecustomersearch_b_end(dateText){ |
---|
484 | var dates = dateText.split('/'); |
---|
485 | $("*[name=search_b_end_year]").val(dates[0]); |
---|
486 | $("*[name=search_b_end_month]").val(dates[1]); |
---|
487 | $("*[name=search_b_end_day]").val(dates[2]); |
---|
488 | } |
---|
489 | |
---|
490 | function setDatecustomersearch_start(dateText){ |
---|
491 | var dates = dateText.split('/'); |
---|
492 | $("*[name=search_start_year]").val(dates[0]); |
---|
493 | $("*[name=search_start_month]").val(dates[1]); |
---|
494 | $("*[name=search_start_day]").val(dates[2]); |
---|
495 | } |
---|
496 | |
---|
497 | function setDatecustomersearch_end(dateText){ |
---|
498 | var dates = dateText.split('/'); |
---|
499 | $("*[name=search_end_year]").val(dates[0]); |
---|
500 | $("*[name=search_end_month]").val(dates[1]); |
---|
501 | $("*[name=search_end_day]").val(dates[2]); |
---|
502 | } |
---|
503 | |
---|
504 | function setDatecustomersearch_buy_start(dateText){ |
---|
505 | var dates = dateText.split('/'); |
---|
506 | $("*[name=search_buy_start_year]").val(dates[0]); |
---|
507 | $("*[name=search_buy_start_month]").val(dates[1]); |
---|
508 | $("*[name=search_buy_start_day]").val(dates[2]); |
---|
509 | } |
---|
510 | |
---|
511 | function setDatecustomersearch_buy_end(dateText){ |
---|
512 | var dates = dateText.split('/'); |
---|
513 | $("*[name=search_buy_end_year]").val(dates[0]); |
---|
514 | $("*[name=search_buy_end_month]").val(dates[1]); |
---|
515 | $("*[name=search_buy_end_day]").val(dates[2]); |
---|
516 | } |
---|
517 | |
---|
518 | //--> |
---|
519 | </script> |
---|
520 | |
---|
521 | <div id="customer" class="contents-main"> |
---|
522 | <form name="search_form" id="search_form" method="post" action="?"> |
---|
523 | <input type="hidden" name="<!--{$smarty.const.TRANSACTION_ID_NAME}-->" value="<!--{$transactionid}-->" /> |
---|
524 | <input type="hidden" name="mode" value="search" /> |
---|
525 | |
---|
526 | <h2><!--{t string="tpl_Search condition settings_01"}--></h2> |
---|
527 | |
---|
528 | <!--検索条件設定テーブルここから--> |
---|
529 | <table class="form"> |
---|
530 | <!--{include file="`$smarty.const.TEMPLATE_ADMIN_REALDIR`/adminparts/form_customer_search.tpl"}--> |
---|
531 | <tr> |
---|
532 | <th><!--{t string="tpl_Member status_01"}--></th> |
---|
533 | <td colspan="3"><!--{html_checkboxes name="search_status" options=$arrStatus separator=" " selected=$arrForm.search_status.value}--></td> |
---|
534 | </tr> |
---|
535 | </table> |
---|
536 | <div class="btn"> |
---|
537 | <p class="page_rows"><!--{t string="tpl_Results displayed_01"}--> |
---|
538 | <!--{t string="record_prefix"}--> |
---|
539 | <select name="search_page_max"> |
---|
540 | <!--{html_options options=$arrPageMax selected=$arrForm.search_page_max}--> |
---|
541 | </select> |
---|
542 | <!--{t string="record_suffix"}--> |
---|
543 | </p> |
---|
544 | <div class="btn-area"> |
---|
545 | <ul> |
---|
546 | <li><a class="btn-action" href="javascript:;" onclick="fnFormModeSubmit('search_form', 'search', '', ''); return false;"><span class="btn-next"><!--{t string="tpl_Search using above criteria_01"}--></span></a></li> |
---|
547 | </ul> |
---|
548 | </div> |
---|
549 | </div> |
---|
550 | </form> |
---|
551 | <!--{if count($arrErr) == 0 and ($smarty.post.mode == 'search' or $smarty.post.mode == 'delete' or $smarty.post.mode == 'resend_mail')}--> |
---|
552 | |
---|
553 | <!--★★検索結果一覧★★--> |
---|
554 | <form name="form1" id="form1" method="post" action="?"> |
---|
555 | <input type="hidden" name="<!--{$smarty.const.TRANSACTION_ID_NAME}-->" value="<!--{$transactionid}-->" /> |
---|
556 | <input type="hidden" name="mode" value="search" /> |
---|
557 | <input type="hidden" name="edit_customer_id" value="" /> |
---|
558 | <!--{foreach key=key item=item from=$arrHidden}--> |
---|
559 | <!--{if is_array($item)}--> |
---|
560 | <!--{foreach item=c_item from=$item}--> |
---|
561 | <input type="hidden" name="<!--{$key|h}-->[]" value="<!--{$c_item|h}-->" /> |
---|
562 | <!--{/foreach}--> |
---|
563 | <!--{else}--> |
---|
564 | <input type="hidden" name="<!--{$key|h}-->" value="<!--{$item|h}-->" /> |
---|
565 | <!--{/if}--> |
---|
566 | <!--{/foreach}--> |
---|
567 | |
---|
568 | <h2><!--{t string="tpl_List of search results_01"}--></h2> |
---|
569 | <div class="btn"> |
---|
570 | <!--検索結果数--><!--{t string="tpl_<span class='attention'>T_FIELD items</span> were found._01" escape="none" T_FIELD=$tpl_linemax}--> |
---|
571 | <!--検索結果--> |
---|
572 | <a class="btn-normal" href="javascript:;" onclick="fnModeSubmit('csv','',''); return false;"><!--{t string="tpl_CSV download_01"}--></a> |
---|
573 | <a class="btn-normal" href="javascript:;" onclick="location.href='../contents/csv.php?tpl_subno_csv=customer'"><!--{t string="tpl_CSV output settings_01"}--></a> |
---|
574 | </div> |
---|
575 | <!--{if count($arrData) > 0}--> |
---|
576 | |
---|
577 | <!--{include file=$tpl_pager}--> |
---|
578 | |
---|
579 | <!--検索結果表示テーブル--> |
---|
580 | <table class="list" id="customer-search-result"> |
---|
581 | <col width="8%" /> |
---|
582 | <col width="10%" /> |
---|
583 | <col width="30%" /> |
---|
584 | <col width="8%" /> |
---|
585 | <col width="30%" /> |
---|
586 | <col width="7%" /> |
---|
587 | <col width="7%" /> |
---|
588 | <tr> |
---|
589 | <th rowspan="2"><!--{t string="tpl_Type_01"}--></th> |
---|
590 | <th rowspan="2"><!--{t string="tpl_Member ID_01"}--></th> |
---|
591 | <th rowspan="2"><!--{t string="tpl_Name_02"}--></th> |
---|
592 | <th rowspan="2"><!--{t string="tpl_Gender_01"}--></th> |
---|
593 | <th><!--{t string="tpl_Phone Number_01"}--></th> |
---|
594 | <th rowspan="2"><!--{t string="tpl_Edit_01"}--></th> |
---|
595 | <th rowspan="2"><!--{t string="tpl_Remove_01"}--></th> |
---|
596 | </tr> |
---|
597 | <tr> |
---|
598 | <th><!--{t string="tpl_E-mail address_01"}--></th> |
---|
599 | </tr> |
---|
600 | <!--{foreach from=$arrData item=row}--> |
---|
601 | <tr> |
---|
602 | <td class="center" rowspan="2"><!--{if $row.status eq 1}--><!--{t string="tpl_temporary _01"}--><!--{else}--><!--{t string="tpl_full _01"}--><!--{/if}--></td> |
---|
603 | <td rowspan="2"><!--{$row.customer_id|h}--></td> |
---|
604 | <td rowspan="2"><!--{$row.name01|h}--> <!--{$row.name02|h}--></td> |
---|
605 | <td class="center" rowspan="2"><!--{$arrSex[$row.sex]|h}--></td> |
---|
606 | <td><!--{$row.tel01|h}-->-<!--{$row.tel02|h}-->-<!--{$row.tel03|h}--></td> |
---|
607 | <td class="center" rowspan="2"><span class="icon_edit"><a href="#" onclick="return fnEdit('<!--{$row.customer_id|h}-->');"><!--{t string="tpl_Edit_01"}--></a></span></td> |
---|
608 | <td class="center" rowspan="2"><span class="icon_delete"><a href="#" onclick="return fnDelete('<!--{$row.customer_id|h}-->');"><!--{t string="tpl_Remove_01"}--></a></span></td> |
---|
609 | </tr> |
---|
610 | <tr> |
---|
611 | <td><!--{mailto address=$row.email encode="javascript"}--></a><!--{if $row.status eq 1}--><br /><a href="#" onclick="return fnReSendMail('<!--{$row.customer_id|h}-->');"><!--{t string="tpl_Resending temporary registration e-mail_01"}--></a><!--{/if}--></td> |
---|
612 | </tr> |
---|
613 | <!--{/foreach}--> |
---|
614 | </table> |
---|
615 | <!--検索結果表示テーブル--> |
---|
616 | |
---|
617 | <!--{/if}--> |
---|
618 | </form> |
---|
619 | <!--★★検索結果一覧★★--> |
---|
620 | |
---|
621 | <!--{/if}--> |
---|
622 | </div> |
---|