PluginProbe
Welcart e-Commerce / 2.12.4
Welcart e-Commerce v2.12.4
2.12.4 2.12.3 2.11.35 2.12.2 2.12.1 2.11.34 2.11.33 2.11.32 2.11.31 2.11.30 1.3.16 1.3.17 1.3.2 1.3.3 1.3.4 1.3.5 1.3.6 1.3.7 1.3.8 1.3.9 1.4.0 1.4.1 1.4.10 1.4.11 1.4.12 All 292 releases
← All changes | includes/order_list.php +960 -847 1.3.82.12.4 View file →
@@ -1,848 +1,960 @@
1 -<?php
2 -require_once( USCES_PLUGIN_DIR . "/classes/orderList.class.php" );
3 -global $wpdb;
4 -
5 -$tableName = $wpdb->prefix . "usces_order";
6 -$arr_column = array(
7 - __('ID', 'usces') => 'ID',
8 - __('Order number', 'usces') => 'deco_id',
9 - __('date', 'usces') => 'date',
10 - __('membership number', 'usces') => 'mem_id',
11 - __('name', 'usces') => 'name',
12 - __('Region', 'usces') => 'pref',
13 - __('shipping option', 'usces') => 'delivery_method',
14 - __('Amount', 'usces').'('.__(usces_crcode( 'return' ), 'usces').')' => 'total_price',
15 - __('payment method', 'usces') => 'payment_name',
16 - __('transfer statement', 'usces') => 'receipt_status',
17 - __('Processing', 'usces') => 'order_status',
18 - apply_filters('usces_filter_admin_modified_label', __('shpping date', 'usces') ) => 'order_modified');
19 -$arr_column = apply_filters( 'usces_filter_order_list_column', $arr_column );
20 -
21 -$DT = new dataList($tableName, $arr_column);
22 -$res = $DT->MakeTable();
23 -$arr_search = $DT->GetSearchs();
24 -$arr_status = apply_filters( 'usces_filter_management_status', get_option('usces_management_status') );
25 -$arr_header = $DT->GetListheaders();
26 -$dataTableNavigation = $DT->GetDataTableNavigation();
27 -$rows = $DT->rows;
28 -$status = $DT->get_action_status();
29 -$message = $DT->get_action_message();
30 -//$pref = get_option('usces_pref');
31 -//20110331ysk start
32 -//$pref = $usces->options['province'];
33 -$pref = array();
34 -$target_market = $this->options['system']['target_market'];
35 -foreach((array)$target_market as $country) {
36 - $prefs = get_usces_states($country);
37 - if(is_array($prefs) and 0 < count($prefs)) {
38 - $pos = strpos($prefs[0], '--');
39 - if($pos !== false) array_shift($prefs);
40 - foreach((array)$prefs as $state) {
41 - $pref[] = $state;
42 - }
43 - }
44 -}
45 -//20110331ysk end
46 -$payment_name = array();
47 -$payments = usces_get_system_option( 'usces_payment_method', 'sort' );
48 -foreach ( (array)$payments as $id => $array ) {
49 - $payment_name[$id] = $array['name'];
50 -}
51 -foreach((array)$arr_status as $key => $value){
52 - if($key == 'noreceipt' || $key == 'receipted' || $key == 'pending'){
53 - $receipt_status[$key] = $value;
54 - }else{
55 - $order_status[$key] = $value;
56 - }
57 -}
58 -$order_status['new'] = __('new order', 'usces');
59 -$curent_url = urlencode(USCES_ADMIN_URL . '?' . $_SERVER['QUERY_STRING']);
60 -
61 -//20100908ysk start
62 -$csod_meta = usces_has_custom_field_meta('order');
63 -$cscs_meta = usces_has_custom_field_meta('customer');
64 -$csde_meta = usces_has_custom_field_meta('delivery');
65 -$usces_opt_order = get_option('usces_opt_order');
66 -$chk_pro = ( isset($usces_opt_order['chk_pro']) ) ? $usces_opt_order['chk_pro'] : array();
67 -$chk_ord = ( isset($usces_opt_order['chk_ord']) ) ? $usces_opt_order['chk_ord'] : array();
68 -//20100908ysk end
69 -//20110411ysk start
70 -$applyform = usces_get_apply_addressform($this->options['system']['addressform']);
71 -//20110411ysk end
72 -?>
73 -<script type="text/javascript">
74 -jQuery(function($){
75 -<?php if($status == 'success'){ ?>
76 - $("#anibox").animate({ backgroundColor: "#ECFFFF" }, 2000);
77 -<?php }else if($status == 'caution'){ ?>
78 - $("#anibox").animate({ backgroundColor: "#FFF5CE" }, 2000);
79 -<?php }else if($status == 'error'){ ?>
80 - $("#anibox").animate({ backgroundColor: "#FFE6E6" }, 2000);
81 -<?php } ?>
82 -
83 -// $("#aAdditionalURLs").click(function () {
84 -// $("#AdditionalURLs").toggle();
85 -// });
86 -
87 - $("input[name='allcheck']").click(function () {
88 - if( $(this).attr("checked") ){
89 - $("input[name*='listcheck']").attr({checked: true});
90 - }else{
91 - $("input[name*='listcheck']").attr({checked: false});
92 - }
93 - });
94 -
95 - $("#searchselect").change(function () {
96 - operation.change_search_field();
97 - });
98 -
99 - $("#changeselect").change(function () {
100 - operation.change_collective_field();
101 - });
102 -
103 - $("#collective_change").click(function () {
104 - if( $("#changeselect option:selected").val() == 'none' ) {
105 - $("#orderlistaction").val('');
106 - return false;
107 - }
108 - if( $("input[name*='listcheck']:checked").length == 0 ) {
109 - alert("<?php _e('Choose the data.', 'usces'); ?>");
110 - $("#orderlistaction").val('');
111 - return false;
112 - }
113 - var coll = $("#changeselect").val();
114 - var mes = '';
115 - if( coll == 'order_reciept' ){
116 - mes = <?php echo sprintf(__("'Transfer status of the items which you have checked will be changed in to ' + %s + '. %sDo you agree?'", 'usces'),
117 - '$("select\[name=\"change\[word\]\[order_reciept\]\"\] option:selected").html()',
118 - '\n\n'); ?>;
119 - }else if( coll == 'order_status' ){
120 - mes = <?php echo sprintf(__("'Data status which you have cheked will be changed in to ' + %s + '. %sDo you agree?'", 'usces'),
121 - '$("select\[name=\"change\[word\]\[order_status\]\"\] option:selected").html()',
122 - '\n\n'); ?>;
123 - }else if(coll == 'delete'){
124 - mes = '<?php _e('Are you sure of deleting all the checked data in bulk?', 'usces'); ?>';
125 - //}else{
126 - // $("#orderlistaction").val('');
127 - // return false;
128 - }
129 - if( mes != '' ) {
130 - if( !confirm(mes) ){
131 - $("#orderlistaction").val('');
132 - return false;
133 - }
134 - }
135 - <?php do_action( 'usces_action_order_list_collective_change_js' ); ?>
136 - $("#orderlistaction").val('collective');
137 - //return true;
138 - $('#form_tablesearch').submit();
139 - });
140 -
141 - operation = {
142 - change_search_field :function (){
143 -
144 - var label = '';
145 - var html = '';
146 - var column = $("#searchselect").val();
147 -
148 - if( column == 'ID' ) {
149 - label = '<?php _e('key words', 'usces'); ?>';
150 - html = '<input name="search[word][ID]" type="text" value="<?php echo esc_attr(isset($arr_search['word']['ID']) ? $arr_search['word']['ID'] : ''); ?>" class="searchword" maxlength="50" />';
151 - }else if( column == 'deco_id' ) {
152 - label = '<?php _e('key words', 'usces'); ?>';
153 - html = '<input name="search[word][deco_id]" type="text" value="<?php echo esc_attr(isset($arr_search['word']['deco_id']) ? $arr_search['word']['deco_id'] : ''); ?>" class="searchword" maxlength="50" />';
154 - }else if( column == 'date' ) {
155 - label = '<?php _e('key words', 'usces'); ?>';
156 - html = '<input name="search[word][date]" type="text" value="<?php echo esc_attr(isset($arr_search['word']['date']) ? $arr_search['word']['date'] : ''); ?>" class="searchword" maxlength="50" />';
157 - }else if( column == 'mem_id' ) {
158 - label = '<?php _e('key words', 'usces'); ?>';
159 - html = '<input name="search[word][mem_id]" type="text" value="<?php echo esc_attr(isset($arr_search['word']['mem_id']) ? $arr_search['word']['mem_id'] : ''); ?>" class="searchword" maxlength="50" />';
160 - }else if( column == 'name' ) {
161 - label = '<?php _e('key words', 'usces'); ?>';
162 - html = '<input name="search[word][name]" type="text" value="<?php echo esc_attr(isset($arr_search['word']['name']) ? $arr_search['word']['name'] : ''); ?>" class="searchword" maxlength="50" />';
163 - }else if( column == 'order_modified' ) {
164 - label = '<?php _e('key words', 'usces'); ?>';
165 - html = '<input name="search[word][order_modified]" type="text" value="<?php echo esc_attr(isset($arr_search['word']['order_modified']) ? $arr_search['word']['order_modified'] : ''); ?>" class="searchword" maxlength="50" />';
166 - }else if( column == 'pref' ) {
167 - label = '';
168 - html = '<select name="search[word][pref]" class="searchselect">';
169 - <?php foreach((array)$pref as $pkey => $pvalue){
170 - if( isset($arr_search['word']['pref']) && $pvalue == $arr_search['word']['pref']){
171 - $pselected = ' selected="selected"';
172 - }else{
173 - $pselected = '';
174 - }
175 - ?>
176 - html += '<option value="<?php echo esc_attr($pvalue); ?>"<?php echo $pselected ?>><?php echo esc_html($pvalue); ?></option>';
177 - <?php } ?>
178 - html += '</select>';
179 - }else if( column == 'delivery_method' ) {
180 - label = '';
181 - html = '<select name="search[word][delivery_method]" class="searchselect">';
182 - <?php foreach((array)$this->options['delivery_method'] as $dkey => $dvalue){
183 - if( isset($arr_search['word']['delivery_method']) && $dvalue['id'] == $arr_search['word']['delivery_method']){
184 - $dselected = ' selected="selected"';
185 - }else{
186 - $dselected = '';
187 - }
188 - ?>
189 - html += '<option value="<?php echo esc_attr($dvalue['id']); ?>"<?php echo $dselected ?>><?php echo esc_html($dvalue['name']); ?></option>';
190 - <?php } ?>
191 - html += '</select>';
192 - }else if( column == 'payment_name' ) {
193 - label = '';
194 - html = '<select name="search[word][payment_name]" class="searchselect">';
195 - <?php foreach((array)$payment_name as $pnkey => $pnvalue){
196 - if( isset($arr_search['word']['payment_name']) && $pnvalue == $arr_search['word']['payment_name']){
197 - $pnselected = ' selected="selected"';
198 - }else{
199 - $pnselected = '';
200 - }
201 - ?>
202 - html += '<option value="<?php echo esc_attr($pnvalue); ?>"<?php echo $pnselected ?>><?php echo esc_html($pnvalue); ?></option>';
203 - <?php } ?>
204 - html += '</select>';
205 - }else if( column == 'receipt_status' ) {
206 - label = '';
207 - html = '<select name="search[word][receipt_status]" class="searchselect">';
208 - <?php foreach((array)$receipt_status as $rkey => $rvalue){
209 - if( isset($arr_search['word']['receipt_status']) && $rvalue == $arr_search['word']['receipt_status']){
210 - $rselected = ' selected="selected"';
211 - }else{
212 - $rselected = '';
213 - }
214 - ?>
215 - html += '<option value="<?php echo esc_attr($rvalue); ?>"<?php echo $rselected ?>><?php echo esc_html($rvalue); ?></option>';
216 - <?php } ?>
217 - html += '</select>';
218 - }else if( column == 'order_status' ) {
219 - label = '';
220 - html = '<select name="search[word][order_status]" class="searchselect">';
221 - <?php foreach((array)$order_status as $okey => $ovalue){
222 - if( isset($arr_search['word']['order_status']) && $ovalue == $arr_search['word']['order_status']){
223 - $oselected = ' selected="selected"';
224 - }else{
225 - $oselected = '';
226 - }
227 - ?>
228 - html += '<option value="<?php echo esc_attr($ovalue); ?>"<?php echo $oselected ?>><?php echo esc_html($ovalue); ?></option>';
229 - <?php } ?>
230 - html += '</select>';
231 - }
232 -
233 - $("#searchlabel").html( label );
234 - $("#searchfield").html( html );
235 -
236 - },
237 -
238 - change_collective_field :function (){
239 -
240 - var label = '';
241 - var html = '';
242 - var column = $("#changeselect").val();
243 -
244 - if( column == 'order_reciept' ) {
245 - label = '';
246 - html = '<select name="change[word][order_reciept]" class="searchselect">';
247 - <?php foreach((array)$receipt_status as $orkey => $orvalue){ ?>
248 - html += '<option value="<?php echo esc_attr($orkey); ?>"><?php echo esc_html($orvalue); ?></option>';
249 - <?php } ?>
250 - html += '</select>';
251 - }else if( column == 'order_status' ) {
252 - label = '';
253 - html = '<select name="change[word][order_status]" class="searchselect">';
254 - <?php foreach((array)$order_status as $oskey => $osvalue){ ?>
255 - html += '<option value="<?php echo esc_attr($oskey); ?>"><?php echo esc_html($osvalue); ?></option>';
256 - <?php } ?>
257 - html += '</select>';
258 - }else if( column == 'delete' ) {
259 - label = '';
260 - html = '';
261 - }
262 -
263 - $("#changelabel").html( label );
264 - $("#changefield").html( html );
265 -
266 - }
267 - };
268 -<?php echo apply_filters('usces_filter_order_list_page_js', ''); ?>
269 -});
270 -
271 -function toggleVisibility(id) {
272 - var e = document.getElementById(id);
273 - if(e.style.display == 'block') {
274 - e.style.display = 'none';
275 - document.getElementById("searchSwitchStatus").value = 'OFF';
276 - } else {
277 - e.style.display = 'block';
278 - document.getElementById("searchSwitchStatus").value = 'ON';
279 - document.getElementById("searchVisiLink").style.display = 'none';
280 - }
281 -};
282 -
283 -function deleteconfirm(order_id){
284 - if(confirm(<?php _e("'Are you sure of deleting an order number ' + order_id + ' ?'", 'usces'); ?>)){
285 - return true;
286 - }else{
287 - return false;
288 - }
289 -}
290 -
291 -jQuery(document).ready(function($){
292 - $("table#mainDataTable tr:even").addClass("rowSelection_even");
293 - $("table#mainDataTable tr").hover(function() {
294 - $(this).addClass("rowSelection_hilight");
295 - },
296 - function() {
297 - $(this).removeClass("rowSelection_hilight");
298 - });
299 - if( $("#searchSwitchStatus").val() == 'OFF'){
300 - $("#searchBox").css("display", "none");
301 - $("#searchVisiLink").html('<?php _e('Show the Operation field', 'usces'); ?>');
302 - } else {
303 - $("#searchBox").css("display", "block");
304 - $("#searchVisiLink").css("display", "none");
305 - }
306 -
307 - operation.change_search_field();
308 -
309 -//20100908ysk start
310 - $("#dlProductListDialog").dialog({
311 - bgiframe: true,
312 - autoOpen: false,
313 - height: 400,
314 - width: 700,
315 - resizable: true,
316 - modal: true,
317 - buttons: {
318 - '<?php _e('close', 'usces'); ?>': function() {
319 - $(this).dialog('close');
320 - }
321 - },
322 - close: function() {
323 - }
324 - });
325 - $('#dl_pro').click(function() {
326 -//20120123ysk start 0000385
327 - //var args = "&search[column]="+$(':input[name="search[column]"]').val()
328 - // +"&search[word]["+$("#searchselect").val()+"]="+$(':input[name="search[word]['+$("#searchselect").val()+']"]').val()
329 - // +"&search[period]="+$(':input[name="search[period]"]').val()
330 - // +"&searchSwitchStatus="+$(':input[name="searchSwitchStatus"]').val()
331 - // +"&ftype="+$(':input[name="ftype_pro[]"]:checked').val();
332 - var args = "&search[column]="+$(':input[name="search[column]"]').val()
333 - +"&search[word]["+$("#searchselect").val()+"]="+$(':input[name="search[word]['+$("#searchselect").val()+']"]').val()
334 - +"&search[period]="+$(':input[name="search[period]"]').val()
335 - +"&searchSwitchStatus="+$(':input[name="searchSwitchStatus"]').val()
336 - +"&ftype=csv";
337 -//20120123ysk end
338 - $(".check_product").each(function(i) {
339 - if($(this).attr('checked')) {
340 - args += '&check['+$(this).val()+']=on';
341 - }
342 - });
343 - location.href = "<?php echo USCES_ADMIN_URL; ?>?page=usces_orderlist&order_action=dlproductlist&noheader=true"+args;
344 - });
345 - $('#dl_productlist').click(function() {
346 - $('#dlProductListDialog').dialog('open');
347 - });
348 -
349 - $("#dlOrderListDialog").dialog({
350 - bgiframe: true,
351 - autoOpen: false,
352 - height: 600,
353 - width: 700,
354 - resizable: true,
355 - modal: true,
356 - buttons: {
357 - '<?php _e('close', 'usces'); ?>': function() {
358 - $(this).dialog('close');
359 - }
360 - },
361 - close: function() {
362 - }
363 - });
364 - $('#dl_ord').click(function() {
365 -//20120123ysk start 0000385
366 - //var args = "&search[column]="+$(':input[name="search[column]"]').val()
367 - // +"&search[word]["+$("#searchselect").val()+"]="+$(':input[name="search[word]['+$("#searchselect").val()+']"]').val()
368 - // +"&search[period]="+$(':input[name="search[period]"]').val()
369 - // +"&searchSwitchStatus="+$(':input[name="searchSwitchStatus"]').val()
370 - // +"&ftype="+$(':input[name="ftype_ord[]"]:checked').val();
371 - var args = "&search[column]="+$(':input[name="search[column]"]').val()
372 - +"&search[word]["+$("#searchselect").val()+"]="+$(':input[name="search[word]['+$("#searchselect").val()+']"]').val()
373 - +"&search[period]="+$(':input[name="search[period]"]').val()
374 - +"&searchSwitchStatus="+$(':input[name="searchSwitchStatus"]').val()
375 - +"&ftype=csv";
376 -//20120123ysk end
377 - $(".check_order").each(function(i) {
378 - if($(this).attr('checked')) {
379 - args += '&check['+$(this).val()+']=on';
380 - }
381 - });
382 - location.href = "<?php echo USCES_ADMIN_URL; ?>?page=usces_orderlist&order_action=dlorderlist&noheader=true"+args;
383 - });
384 - $('#dl_orderlist').click(function() {
385 - $('#dlOrderListDialog').dialog('open');
386 - });
387 -<?php do_action('usces_action_order_list_document_ready_js'); ?>
388 -//20100908ysk end
389 -});
390 -</script>
391 -
392 -<div class="wrap">
393 -<div class="usces_admin">
394 -<form action="<?php echo USCES_ADMIN_URL.'?page=usces_orderlist'; ?>" method="post" name="tablesearch" id="form_tablesearch">
395 -
396 -<h2>Welcart Management <?php _e('Order List','usces'); ?></h2>
397 -<p class="version_info">Version <?php echo USCES_VERSION; ?></p>
398 -<div id="aniboxStatus" class="<?php echo $status; ?>">
399 - <div id="anibox" class="clearfix">
400 - <img src="<?php echo USCES_PLUGIN_URL; ?>/images/list_message_<?php echo $status; ?>.gif" />
401 - <div class="mes" id="info_massage"><?php echo $message; ?></div>
402 - </div>
403 -</div>
404 -
405 -<div id="datatable">
406 -<div id="tablenavi"><?php echo $dataTableNavigation ?></div>
407 -
408 -<div id="tablesearch">
409 -<div id="searchBox">
410 - <table id="search_table">
411 - <tr>
412 - <td><?php _e('search fields', 'usces'); ?></td>
413 - <td><select name="search[column]" class="searchselect" id="searchselect">
414 - <option value="none"> </option>
415 -<?php foreach ((array)$arr_column as $key => $value):
416 - if($value == $arr_search['column']){
417 - $selected = ' selected="selected"';
418 - }else{
419 - $selected = '';
420 - }
421 - if($value == 'total_price') continue;
422 -?>
423 - <option value="<?php echo esc_attr($value); ?>"<?php echo $selected ?>><?php echo esc_html($key); ?></option>
424 -<?php endforeach; ?>
425 - </select></td>
426 - <td id="searchlabel"></td>
427 - <td id="searchfield"></td>
428 - <td><input name="searchIn" type="submit" class="searchbutton" value="<?php _e('Search', 'usces'); ?>" />
429 - <input name="searchOut" type="submit" class="searchbutton" value="<?php _e('Cancellation', 'usces'); ?>" />
430 - <input name="searchSwitchStatus" id="searchSwitchStatus" type="hidden" value="<?php echo esc_attr($DT->searchSwitchStatus); ?>" />
431 - </td>
432 - </tr>
433 - </table>
434 - <table id="period_table">
435 - <tr>
436 - <?php echo apply_filters( 'usces_filter_order_list_period_table', '' ); ?>
437 - <td><?php _e('Period', 'usces'); ?></td>
438 - <td><select name="search[period]" class="searchselect">
439 -<?php foreach ((array)$DT->arr_period as $key => $value):
440 - if($key == $arr_search['period']){
441 - $selected = ' selected="selected"';
442 - }else{
443 - $selected = '';
444 - }
445 -?>
446 - <option value="<?php echo esc_attr($key); ?>"<?php echo $selected ?>><?php echo esc_html($value); ?></option>
447 -<?php endforeach; ?>
448 - </select></td>
449 - </tr>
450 - </table>
451 - <table id="change_table">
452 - <tr>
453 - <td><?php _e('Oparation in bulk', 'usces'); ?></td>
454 - <td><select name="allchange[column]" class="searchselect" id="changeselect">
455 - <option value="none"> </option>
456 - <option value="order_reciept"><?php _e('Edit the receiving money status', 'usces'); ?></option>
457 - <option value="order_status"><?php _e('Edit of status process', 'usces'); ?></option>
458 - <option value="delete"><?php _e('Delete in bulk', 'usces'); ?></option>
459 - <?php echo apply_filters( 'usces_filter_allchange_column', '' ); ?>
460 - </select></td>
461 - <td id="changelabel"></td>
462 - <td id="changefield"></td>
463 - <td><input name="collective_change" type="button" class="searchbutton" id="collective_change" value="<?php _e('start', 'usces'); ?>" />
464 - </td>
465 - </tr>
466 - </table>
467 - <input name="collective" id="orderlistaction" type="hidden" />
468 -<!--20100908ysk start-->
469 - <table id="dl_list_table">
470 - <tr>
471 - <?php echo apply_filters('usces_filter_dl_list_table', ''); ?>
472 - <td><input type="button" id="dl_productlist" class="searchbutton" value="<?php _e('Download Product List', 'usces'); ?>" /></td>
473 - <td><input type="button" id="dl_orderlist" class="searchbutton" value="<?php _e('Download Order List', 'usces'); ?>" /></td>
474 - </tr>
475 - </table>
476 -<!--20100908ysk end-->
477 -</div>
478 -<?php do_action( 'usces_action_order_list_searchbox' ); ?>
479 -</div>
480 -
481 -<table id="mainDataTable" cellspacing="1">
482 -<?php
483 -//20120612ysk start 0000501
484 - $list_header = '<th scope="col"><input name="allcheck" type="checkbox" value="" /></th>';
485 - foreach( (array)$arr_header as $value ) {
486 - $list_header .= '<th scope="col">'.$value.'</th>';
487 - }
488 - $list_header .= '<th scope="col">&nbsp;</th>';
489 -//20120612ysk end
490 -?>
491 - <tr>
492 - <?php echo apply_filters('usces_filter_order_list_header', $list_header, $arr_header);//20120612ysk 0000501 ?>
493 - </tr>
494 -<?php foreach ( (array)$rows as $array ) : ?>
495 -<?php
496 -//20120612ysk start 0000501
497 - $list_detail = '<td align="center"><input name="listcheck[]" type="checkbox" value="'.$array['ID'].'" /></td>';
498 - foreach( (array)$array as $key => $value ) {
499 - if( WCUtils::is_blank($value) ) $value = '&nbsp;';
500 - if( $key === 'ID' || $key === 'deco_id' ) {
501 - $list_detail .= '<td><a href="'.USCES_ADMIN_URL.'?page=usces_orderlist&order_action=edit&order_id='.$array['ID'].'&usces_referer='.$curent_url.'">'.esc_html($value).'</a></td>';
502 - } elseif( $key === 'date' ) {
503 - $list_detail .= '<td>'.esc_html($value).'</td>';
504 - } elseif( $key === 'mem_id' ) {
505 - if( WCUtils::is_zero($value) ) $value = '&nbsp;';
506 - $list_detail .= '<td>'.esc_html($value).'</td>';
507 - } elseif( $key === 'name' ) {
508 - switch( $applyform ) {
509 - case 'JP':
510 - $list_detail .= '<td>'.esc_html($value).'</td>';
511 - break;
512 - case 'US':
513 - default:
514 - $names = explode(' ', $value);
515 - $list_detail .= '<td>'.esc_html($names[1].' '.$names[0]).'</td>';
516 - }
517 - } elseif( $key === 'pref' ) {
518 - if( $value == __('-- Select --','usces') ) {
519 - $list_detail .= '<td>&nbsp;</td>';
520 - } else {
521 - $list_detail .= '<td>'.esc_html($value).'</td>';
522 - }
523 - } elseif( $key === 'delivery_method' ) {
524 - if( -1 != $value ) {
525 - $delivery_method_index = $this->get_delivery_method_index($value);
526 - $value = ( isset( $this->options['delivery_method'][$delivery_method_index]['name'] ) ) ? $this->options['delivery_method'][$delivery_method_index]['name'] : '&nbsp;';
527 - } else {
528 - $value = '&nbsp;';
529 - }
530 - $list_detail .= '<td class="green">'.esc_html($value).'</td>';
531 - } elseif( $key === 'total_price' ) {
532 - $list_detail .= '<td class="price">'.usces_crform( $value, true, false, 'return' ).'</td>';
533 - } elseif( $key === 'payment_name' ) {
534 - if( $value == '#none#' ) {
535 - $list_detail .= '<td>&nbsp;</td>';
536 - } else {
537 - $list_detail .= '<td>'.esc_html($value).'</td>';
538 - }
539 - } elseif( $key === 'receipt_status' ) {
540 - if( $value == __('unpaid', 'usces') ) {
541 - $list_detail .= '<td class="red">'.esc_html($value).'</td>';
542 - } elseif( $value == 'Pending' ) {
543 - $list_detail .= '<td class="red">'.esc_html($value).'</td>';
544 - } elseif( $value == __('payment confirmed', 'usces') ) {
545 - $list_detail .= '<td class="green">'.esc_html($value).'</td>';
546 - } else {
547 - $list_detail .= '<td>'.esc_html($value).'</td>';
548 - }
549 - } elseif( $key === 'order_status' ) {
550 - if( $value == __('It has sent it out.', 'usces') ) {
551 - $list_detail .= '<td class="green">'.esc_html($value).'</td>';
552 - } else {
553 - $list_detail .= '<td>'.esc_html($value).'</td>';
554 - }
555 - } elseif( $key === 'order_modified' ) {
556 - $list_detail .= '<td>'.esc_html($value).'</td>';
557 - }
558 - }
559 - $list_detail .= '<td><a href="'.USCES_ADMIN_URL.'?page=usces_orderlist&order_action=delete&order_id='.$array['ID'].'" onclick="return deleteconfirm(\''.$array['ID'].'\');"><span style="color:#FF0000; font-size:9px;">'.__('Delete', 'usces').'</span></a></td>';
560 -//20120612ysk end
561 -?>
562 - <tr<?php echo apply_filters('usces_filter_order_list_detail_trclass', '', $array); ?>>
563 - <?php echo apply_filters('usces_filter_order_list_detail', $list_detail, $array, $curent_url);//20120612ysk 0000501 ?>
564 - </tr>
565 -<?php endforeach; ?>
566 -</table>
567 -
568 -</div>
569 -[memory peak usage] <?php echo round(memory_get_peak_usage()/1048576, 1); ?>Mb
570 -
571 -<!--20100908ysk start-->
572 -<div id="dlProductListDialog" title="<?php _e('Download Product List', 'usces'); ?>">
573 - <p><?php _e('Select the item you want, please press the download.', 'usces'); ?></p>
574 - <fieldset>
575 - <input type="button" id="dl_pro" value="<?php _e('Download', 'usces'); ?>" />
576 - </fieldset>
577 - <fieldset><legend><?php _e('Header Information', 'usces'); ?></legend>
578 - <label for="chk_pro[ID]"><input type="checkbox" class="check_product" id="chk_pro[ID]" value="ID" checked disabled /><?php _e('ID', 'usces'); ?></label>
579 - <label for="chk_pro[deco_id]"><input type="checkbox" class="check_product" id="chk_pro[deco_id]" value="deco_id" checked disabled /><?php _e('order number', 'usces'); ?></label>
580 - <label for="chk_pro[date]"><input type="checkbox" class="check_product" id="chk_pro[date]" value="date"<?php usces_checked($chk_pro, 'date'); ?> /><?php _e('order date', 'usces'); ?></label>
581 - <label for="chk_pro[mem_id]"><input type="checkbox" class="check_product" id="chk_pro[mem_id]" value="mem_id"<?php usces_checked($chk_pro, 'mem_id'); ?> /><?php _e('membership number', 'usces'); ?></label>
582 - <label for="chk_pro[name]"><input type="checkbox" class="check_product" id="chk_pro[name]" value="name"<?php usces_checked($chk_pro, 'name'); ?> /><?php _e('name', 'usces'); ?></label>
583 - <label for="chk_pro[delivery_method]"><input type="checkbox" class="check_product" id="chk_pro[delivery_method]" value="delivery_method"<?php usces_checked($chk_pro, 'delivery_method'); ?> /><?php _e('shipping option','usces'); ?></label>
584 - <label for="chk_pro[shipping_date]"><input type="checkbox" class="check_product" id="chk_pro[shipping_date]" value="shipping_date"<?php usces_checked($chk_pro, 'shipping_date'); ?> /><?php _e('shpping date', 'usces'); ?></label>
585 - <?php do_action( 'usces_action_chk_pro_head', $chk_pro ); ?>
586 - </fieldset>
587 - <fieldset><legend><?php _e('Product Information', 'usces'); ?></legend>
588 - <label for="chk_pro[item_code]"><input type="checkbox" class="check_product" id="chk_pro[item_code]" value="item_code" checked disabled /><?php _e('item code', 'usces'); ?></label>
589 - <label for="chk_pro[sku_code]"><input type="checkbox" class="check_product" id="chk_pro[sku_code]" value="sku_code" checked disabled /><?php _e('SKU code', 'usces'); ?></label>
590 - <label for="chk_pro[item_name]"><input type="checkbox" class="check_product" id="chk_pro[item_name]" value="item_name"<?php usces_checked($chk_pro, 'item_name'); ?> /><?php _e('item name', 'usces'); ?></label>
591 - <label for="chk_pro[sku_name]"><input type="checkbox" class="check_product" id="chk_pro[sku_name]" value="sku_name"<?php usces_checked($chk_pro, 'sku_name'); ?> /><?php _e('SKU display name ', 'usces'); ?></label>
592 - <label for="chk_pro[options]"><input type="checkbox" class="check_product" id="chk_pro[options]" value="options"<?php usces_checked($chk_pro, 'options'); ?> /><?php _e('options for items', 'usces'); ?></label>
593 - <label for="chk_pro[quantity]"><input type="checkbox" class="check_product" id="chk_pro[quantity]" value="quantity" checked disabled /><?php _e('Quantity','usces'); ?></label>
594 - <label for="chk_pro[price]"><input type="checkbox" class="check_product" id="chk_pro[price]" value="price" checked disabled /><?php _e('Unit price','usces'); ?></label>
595 - <label for="chk_pro[unit]"><input type="checkbox" class="check_product" id="chk_pro[unit]" value="unit"<?php usces_checked($chk_pro, 'unit'); ?> /><?php _e('unit', 'usces'); ?></label>
596 - <?php do_action( 'usces_action_chk_pro_detail', $chk_pro ); ?>
597 - </fieldset>
598 -</div>
599 -<div id="dlOrderListDialog" title="<?php _e('Download Order List', 'usces'); ?>">
600 - <p><?php _e('Select the item you want, please press the download.', 'usces'); ?></p>
601 - <fieldset>
602 - <input type="button" id="dl_ord" value="<?php _e('Download', 'usces'); ?>" />
603 - </fieldset>
604 - <fieldset><legend><?php _e('Customer Information', 'usces'); ?></legend>
605 - <label for="chk_ord[ID]"><input type="checkbox" class="check_order" id="chk_ord[ID]" value="ID" checked disabled /><?php _e('ID', 'usces'); ?></label>
606 - <label for="chk_ord[deco_id]"><input type="checkbox" class="check_order" id="chk_ord[deco_id]" value="deco_id" checked disabled /><?php _e('Order number', 'usces'); ?></label>
607 - <label for="chk_ord[date]"><input type="checkbox" class="check_order" id="chk_ord[date]" value="date" checked disabled /><?php _e('order date', 'usces'); ?></label>
608 - <label for="chk_ord[mem_id]"><input type="checkbox" class="check_order" id="chk_ord[mem_id]" value="mem_id"<?php usces_checked($chk_ord, 'mem_id'); ?> /><?php _e('membership number', 'usces'); ?></label>
609 - <label for="chk_ord[email]"><input type="checkbox" class="check_order" id="chk_ord[email]" value="email"<?php usces_checked($chk_ord, 'email'); ?> /><?php _e('e-mail', 'usces'); ?></label>
610 -<?php
611 - if(!empty($cscs_meta)) {
612 - foreach($cscs_meta as $key => $entry) {
613 - if($entry['position'] == 'name_pre') {
614 -//20110208ysk start
615 - $cscs_key = 'cscs_'.$key;
616 - //$checked = ($chk_ord[$entry['name']] == 1) ? ' checked' : '';
617 - //$checked = ($chk_ord[$cscs_key] == 1) ? ' checked' : '';
618 - $checked = usces_checked( $chk_ord, $cscs_key, 'return' );
619 - $name = esc_attr($entry['name']);
620 - //echo '<label for="chk_ord['.$name.']"><input type="checkbox" class="check_order" id="chk_ord['.$name.']" value="'.$name.'"'.$checked.' />'.$name.'</label>';
621 - echo '<label for="chk_ord['.$cscs_key.']"><input type="checkbox" class="check_order" id="chk_ord['.$cscs_key.']" value="'.$cscs_key.'"'.$checked.' />'.$name.'</label>'."\n";//20111116ysk 0000302
622 -//20110208ysk end
623 - }
624 - }
625 - }
626 -//20110411ysk start
627 -?>
628 - <label for="chk_ord[name]"><input type="checkbox" class="check_order" id="chk_ord[name]" value="name" checked disabled /><?php _e('name', 'usces'); ?></label>
629 -<?php
630 - switch($applyform) {
631 - case 'JP':
632 -?>
633 - <label for="chk_ord[kana]"><input type="checkbox" class="check_order" id="chk_ord[kana]" value="kana"<?php usces_checked($chk_ord, 'kana'); ?> /><?php _e('furigana', 'usces'); ?></label>
634 -<?php
635 - break;
636 - }
637 -//20110411ysk end
638 -
639 - if(!empty($cscs_meta)) {
640 - foreach($cscs_meta as $key => $entry) {
641 - if($entry['position'] == 'name_after') {
642 -//20110208ysk start
643 - $cscs_key = 'cscs_'.$key;
644 - //$checked = ($chk_ord[$entry['name']] == 1) ? ' checked' : '';
645 - //$checked = ($chk_ord[$cscs_key] == 1) ? ' checked' : '';
646 - $checked = usces_checked( $chk_ord, $cscs_key, 'return' );
647 - $name = esc_attr($entry['name']);
648 - //echo '<label for="chk_ord['.$name.']"><input type="checkbox" class="check_order" id="chk_ord['.$name.']" value="'.$name.'"'.$checked.' />'.$name.'</label>';
649 - echo '<label for="chk_ord['.$cscs_key.']"><input type="checkbox" class="check_order" id="chk_ord['.$cscs_key.']" value="'.$cscs_key.'"'.$checked.' />'.$name.'</label>'."\n";//20111116ysk 0000302
650 -//20110208ysk end
651 - }
652 - }
653 - }
654 -
655 -//20110411ysk start
656 - switch($applyform) {
657 - case 'JP':
658 -?>
659 - <label for="chk_ord[zip]"><input type="checkbox" class="check_order" id="chk_ord[zip]" value="zip"<?php usces_checked($chk_ord, 'zip'); ?> /><?php _e('Zip/Postal Code', 'usces'); ?></label>
660 - <label for="chk_ord[country]"><input type="checkbox" class="check_order" id="chk_ord[country]" value="country"<?php usces_checked($chk_ord, 'country'); ?> /><?php _e('Country', 'usces'); ?></label>
661 - <label for="chk_ord[pref]"><input type="checkbox" class="check_order" id="chk_ord[pref]" value="pref"<?php usces_checked($chk_ord, 'pref'); ?> /><?php _e('Province', 'usces'); ?></label>
662 - <label for="chk_ord[address1]"><input type="checkbox" class="check_order" id="chk_ord[address1]" value="address1"<?php usces_checked($chk_ord, 'address1'); ?> /><?php _e('city', 'usces'); ?></label>
663 - <label for="chk_ord[address2]"><input type="checkbox" class="check_order" id="chk_ord[address2]" value="address2"<?php usces_checked($chk_ord, 'address2'); ?> /><?php _e('numbers', 'usces'); ?></label>
664 - <label for="chk_ord[address3]"><input type="checkbox" class="check_order" id="chk_ord[address3]" value="address3"<?php usces_checked($chk_ord, 'address3'); ?> /><?php _e('building name', 'usces'); ?></label>
665 - <label for="chk_ord[tel]"><input type="checkbox" class="check_order" id="chk_ord[tel]" value="tel"<?php usces_checked($chk_ord, 'tel'); ?> /><?php _e('Phone number', 'usces'); ?></label>
666 - <label for="chk_ord[fax]"><input type="checkbox" class="check_order" id="chk_ord[fax]" value="fax"<?php usces_checked($chk_ord, 'fax'); ?> /><?php _e('FAX number', 'usces'); ?></label>
667 -<?php
668 - break;
669 - case 'US':
670 - default:
671 -?>
672 - <label for="chk_ord[address2]"><input type="checkbox" class="check_order" id="chk_ord[address2]" value="address2"<?php usces_checked($chk_ord, 'address2'); ?> /><?php _e('Address Line1', 'usces'); ?></label>
673 - <label for="chk_ord[address3]"><input type="checkbox" class="check_order" id="chk_ord[address3]" value="address3"<?php usces_checked($chk_ord, 'address3'); ?> /><?php _e('Address Line2', 'usces'); ?></label>
674 - <label for="chk_ord[address1]"><input type="checkbox" class="check_order" id="chk_ord[address1]" value="address1"<?php usces_checked($chk_ord, 'address1'); ?> /><?php _e('city', 'usces'); ?></label>
675 - <label for="chk_ord[pref]"><input type="checkbox" class="check_order" id="chk_ord[pref]" value="pref"<?php usces_checked($chk_ord, 'pref'); ?> /><?php _e('State', 'usces'); ?></label>
676 - <label for="chk_ord[country]"><input type="checkbox" class="check_order" id="chk_ord[country]" value="country"<?php usces_checked($chk_ord, 'country'); ?> /><?php _e('Country', 'usces'); ?></label>
677 - <label for="chk_ord[zip]"><input type="checkbox" class="check_order" id="chk_ord[zip]" value="zip"<?php usces_checked($chk_ord, 'zip'); ?> /><?php _e('Zip', 'usces'); ?></label>
678 - <label for="chk_ord[tel]"><input type="checkbox" class="check_order" id="chk_ord[tel]" value="tel"<?php usces_checked($chk_ord, 'tel'); ?> /><?php _e('Phone number', 'usces'); ?></label>
679 - <label for="chk_ord[fax]"><input type="checkbox" class="check_order" id="chk_ord[fax]" value="fax"<?php usces_checked($chk_ord, 'fax'); ?> /><?php _e('FAX number', 'usces'); ?></label>
680 -<?php
681 - break;
682 - }
683 -//20110411ysk end
684 -
685 - if(!empty($cscs_meta)) {
686 - foreach($cscs_meta as $key => $entry) {
687 - if($entry['position'] == 'fax_after') {
688 -//20110208ysk start
689 - $cscs_key = 'cscs_'.$key;
690 - //$checked = ($chk_ord[$entry['name']] == 1) ? ' checked' : '';
691 - //$checked = ($chk_ord[$cscs_key] == 1) ? ' checked' : '';
692 - $checked = usces_checked( $chk_ord, $cscs_key, 'return' );
693 - $name = esc_attr($entry['name']);
694 - //echo '<label for="chk_ord['.$name.']"><input type="checkbox" class="check_order" id="chk_ord['.$name.']" value="'.$name.'"'.$checked.' />'.$name.'</label>';
695 - echo '<label for="chk_ord['.$cscs_key.']"><input type="checkbox" class="check_order" id="chk_ord['.$cscs_key.']" value="'.$cscs_key.'"'.$checked.' />'.$name.'</label>'."\n";//20111116ysk 0000302
696 -//20110208ysk end
697 - }
698 - }
699 - }
700 -?>
701 - <?php do_action( 'usces_action_chk_ord_customer', $chk_ord ); ?>
702 - </fieldset>
703 - <fieldset><legend><?php _e('Shipping address information', 'usces'); ?></legend>
704 -<?php
705 - if(!empty($csde_meta)) {
706 - foreach($csde_meta as $key => $entry) {
707 - if($entry['position'] == 'name_pre') {
708 -//20110208ysk start
709 - $csde_key = 'csde_'.$key;
710 - //$checked = ($chk_ord[$entry['name']] == 1) ? ' checked' : '';
711 - //$checked = ($chk_ord[$csde_key] == 1) ? ' checked' : '';
712 - $checked = usces_checked( $chk_ord, $csde_key, 'return' );
713 - $name = esc_attr($entry['name']);
714 - //echo '<label for="chk_ord['.$name.']"><input type="checkbox" class="check_order" id="chk_ord['.$name.']" value="'.$name.'"'.$checked.' />'.$name.'</label>';
715 - echo '<label for="chk_ord['.$csde_key.']"><input type="checkbox" class="check_order" id="chk_ord['.$csde_key.']" value="'.$csde_key.'"'.$checked.' />'.$name.'</label>'."\n";//20111116ysk 0000302
716 -//20110208ysk end
717 - }
718 - }
719 - }
720 -//20110411ysk start
721 -?>
722 - <label for="chk_ord[delivery_name]"><input type="checkbox" class="check_order" id="chk_ord[delivery_name]" value="delivery_name"<?php usces_checked($chk_ord, 'delivery_name'); ?> /><?php _e('name', 'usces'); ?></label>
723 -<?php
724 - switch($applyform) {
725 - case 'JP':
726 -?>
727 - <label for="chk_ord[delivery_kana]"><input type="checkbox" class="check_order" id="chk_ord[delivery_kana]" value="delivery_kana"<?php usces_checked($chk_ord, 'delivery_kana'); ?> /><?php _e('furigana', 'usces'); ?></label>
728 -<?php
729 - break;
730 - }
731 -//20110411ysk end
732 -
733 - if(!empty($csde_meta)) {
734 - foreach($csde_meta as $key => $entry) {
735 - if($entry['position'] == 'name_after') {
736 -//20110208ysk start
737 - $csde_key = 'csde_'.$key;
738 - //$checked = ($chk_ord[$entry['name']] == 1) ? ' checked' : '';
739 - //$checked = ($chk_ord[$csde_key] == 1) ? ' checked' : '';
740 - $checked = usces_checked( $chk_ord, $csde_key, 'return' );
741 - $name = esc_attr($entry['name']);
742 - //echo '<label for="chk_ord['.$name.']"><input type="checkbox" class="check_order" id="chk_ord['.$name.']" value="'.$name.'"'.$checked.' />'.$name.'</label>';
743 - echo '<label for="chk_ord['.$csde_key.']"><input type="checkbox" class="check_order" id="chk_ord['.$csde_key.']" value="'.$csde_key.'"'.$checked.' />'.$name.'</label>'."\n";//20111116ysk 0000302
744 -//20110208ysk end
745 - }
746 - }
747 - }
748 -
749 -//20110411ysk start
750 - switch($applyform) {
751 - case 'JP':
752 -?>
753 - <label for="chk_ord[delivery_zip]"><input type="checkbox" class="check_order" id="chk_ord[delivery_zip]" value="delivery_zip"<?php usces_checked($chk_ord, 'delivery_zip'); ?> /><?php _e('Zip/Postal Code', 'usces'); ?></label>
754 - <label for="chk_ord[delivery_country]"><input type="checkbox" class="check_order" id="chk_ord[delivery_country]" value="delivery_country"<?php usces_checked($chk_ord, 'delivery_country'); ?> /><?php _e('Country', 'usces'); ?></label>
755 - <label for="chk_ord[delivery_pref]"><input type="checkbox" class="check_order" id="chk_ord[delivery_pref]" value="delivery_pref"<?php usces_checked($chk_ord, 'delivery_pref'); ?> /><?php _e('Province', 'usces'); ?></label>
756 - <label for="chk_ord[delivery_address1]"><input type="checkbox" class="check_order" id="chk_ord[delivery_address1]" value="delivery_address1"<?php usces_checked($chk_ord, 'delivery_address1'); ?> /><?php _e('city', 'usces'); ?></label>
757 - <label for="chk_ord[delivery_address2]"><input type="checkbox" class="check_order" id="chk_ord[delivery_address2]" value="delivery_address2"<?php usces_checked($chk_ord, 'delivery_address2'); ?> /><?php _e('numbers', 'usces'); ?></label>
758 - <label for="chk_ord[delivery_address3]"><input type="checkbox" class="check_order" id="chk_ord[delivery_address3]" value="delivery_address3"<?php usces_checked($chk_ord, 'delivery_address3'); ?> /><?php _e('building name', 'usces'); ?></label>
759 - <label for="chk_ord[delivery_tel]"><input type="checkbox" class="check_order" id="chk_ord[delivery_tel]" value="delivery_tel"<?php usces_checked($chk_ord, 'delivery_tel'); ?> /><?php _e('Phone number', 'usces'); ?></label>
760 - <label for="chk_ord[delivery_fax]"><input type="checkbox" class="check_order" id="chk_ord[delivery_fax]" value="delivery_fax"<?php usces_checked($chk_ord, 'delivery_fax'); ?> /><?php _e('FAX number', 'usces'); ?></label>
761 -<?php
762 - break;
763 - case 'US':
764 - default:
765 -?>
766 - <label for="chk_ord[delivery_address2]"><input type="checkbox" class="check_order" id="chk_ord[delivery_address2]" value="delivery_address2"<?php usces_checked($chk_ord, 'delivery_address2'); ?> /><?php _e('Address Line1', 'usces'); ?></label>
767 - <label for="chk_ord[delivery_address3]"><input type="checkbox" class="check_order" id="chk_ord[delivery_address3]" value="delivery_address3"<?php usces_checked($chk_ord, 'delivery_address3'); ?> /><?php _e('Address Line2', 'usces'); ?></label>
768 - <label for="chk_ord[delivery_address1]"><input type="checkbox" class="check_order" id="chk_ord[delivery_address1]" value="delivery_address1"<?php usces_checked($chk_ord, 'delivery_address1'); ?> /><?php _e('city', 'usces'); ?></label>
769 - <label for="chk_ord[delivery_pref]"><input type="checkbox" class="check_order" id="chk_ord[delivery_pref]" value="delivery_pref"<?php usces_checked($chk_ord, 'delivery_pref'); ?> /><?php _e('State', 'usces'); ?></label>
770 - <label for="chk_ord[delivery_country]"><input type="checkbox" class="check_order" id="chk_ord[delivery_country]" value="delivery_country"<?php usces_checked($chk_ord, 'delivery_country'); ?> /><?php _e('Country', 'usces'); ?></label>
771 - <label for="chk_ord[delivery_zip]"><input type="checkbox" class="check_order" id="chk_ord[delivery_zip]" value="delivery_zip"<?php usces_checked($chk_ord, 'delivery_zip'); ?> /><?php _e('Zip', 'usces'); ?></label>
772 - <label for="chk_ord[delivery_tel]"><input type="checkbox" class="check_order" id="chk_ord[delivery_tel]" value="delivery_tel"<?php usces_checked($chk_ord, 'delivery_tel'); ?> /><?php _e('Phone number', 'usces'); ?></label>
773 - <label for="chk_ord[delivery_fax]"><input type="checkbox" class="check_order" id="chk_ord[delivery_fax]" value="delivery_fax"<?php usces_checked($chk_ord, 'delivery_fax'); ?> /><?php _e('FAX number', 'usces'); ?></label>
774 -<?php
775 - break;
776 - }
777 -//20110411ysk end
778 -
779 - if(!empty($csde_meta)) {
780 - foreach($csde_meta as $key => $entry) {
781 - if($entry['position'] == 'fax_after') {
782 -//20110208ysk start
783 - $csde_key = 'csde_'.$key;
784 - //$checked = ($chk_ord[$entry['name']] == 1) ? ' checked' : '';
785 - //$checked = ($chk_ord[$csde_key] == 1) ? ' checked' : '';
786 - $checked = usces_checked( $chk_ord, $csde_key, 'return' );
787 - $name = esc_attr($entry['name']);
788 - //echo '<label for="chk_ord['.$name.']"><input type="checkbox" class="check_order" id="chk_ord['.$name.']" value="'.$name.'"'.$checked.' />'.$name.'</label>';
789 - echo '<label for="chk_ord['.$csde_key.']"><input type="checkbox" class="check_order" id="chk_ord['.$csde_key.']" value="'.$csde_key.'"'.$checked.' />'.$name.'</label>'."\n";//20111116ysk 0000302
790 -//20110208ysk end
791 - }
792 - }
793 - }
794 -?>
795 - <?php do_action( 'usces_action_chk_ord_delivery', $chk_ord ); ?>
796 - </fieldset>
797 - <fieldset><legend><?php _e('Order Infomation', 'usces'); ?></legend>
798 - <label for="chk_ord[shipping_date]"><input type="checkbox" class="check_order" id="chk_ord[shipping_date]" value="shipping_date"<?php usces_checked($chk_ord, 'shipping_date'); ?> /><?php _e('shpping date', 'usces'); ?></label>
799 - <label for="chk_ord[peyment_method]"><input type="checkbox" class="check_order" id="chk_ord[peyment_method]" value="peyment_method"<?php usces_checked($chk_ord, 'peyment_method'); ?> /><?php _e('payment method','usces'); ?></label>
800 - <label for="chk_ord[delivery_method]"><input type="checkbox" class="check_order" id="chk_ord[delivery_method]" value="delivery_method"<?php usces_checked($chk_ord, 'delivery_method'); ?> /><?php _e('shipping option','usces'); ?></label>
801 -<!--20101208ysk start-->
802 - <label for="chk_ord[delivery_date]"><input type="checkbox" class="check_order" id="chk_ord[delivery_date]" value="delivery_date"<?php usces_checked($chk_ord, 'delivery_date'); ?> /><?php _e('Delivery date','usces'); ?></label>
803 -<!--20101208ysk end-->
804 - <label for="chk_ord[delivery_time]"><input type="checkbox" class="check_order" id="chk_ord[delivery_time]" value="delivery_time"<?php usces_checked($chk_ord, 'delivery_time'); ?> /><?php _e('delivery time','usces'); ?></label>
805 - <label for="chk_ord[delidue_date]"><input type="checkbox" class="check_order" id="chk_ord[delidue_date]" value="delidue_date"<?php usces_checked($chk_ord, 'delidue_date'); ?> /><?php _e('Shipping date', 'usces'); ?></label>
806 - <label for="chk_ord[status]"><input type="checkbox" class="check_order" id="chk_ord[status]" value="status"<?php usces_checked($chk_ord, 'status'); ?> /><?php _e('Status', 'usces'); ?></label>
807 - <label for="chk_ord[total_amount]"><input type="checkbox" class="check_order" id="chk_ord[total_amount]" value="total_amount" checked disabled /><?php _e('Total Amount', 'usces'); ?></label>
808 - <label for="chk_ord[usedpoint]"><input type="checkbox" class="check_order" id="chk_ord[usedpoint]" value="usedpoint"<?php usces_checked($chk_ord, 'usedpoint'); ?> /><?php _e('Used points', 'usces'); ?></label>
809 - <label for="chk_ord[discount]"><input type="checkbox" class="check_order" id="chk_ord[discount]" value="discount" checked disabled /><?php _e('Disnount', 'usces'); ?></label>
810 - <label for="chk_ord[shipping_charge]"><input type="checkbox" class="check_order" id="chk_ord[shipping_charge]" value="shipping_charge" checked disabled /><?php _e('Shipping', 'usces'); ?></label>
811 - <label for="chk_ord[cod_fee]"><input type="checkbox" class="check_order" id="chk_ord[cod_fee]" value="cod_fee" checked disabled /><?php echo apply_filters('usces_filter_cod_label', __('COD fee', 'usces')); ?></label>
812 - <label for="chk_ord[tax]"><input type="checkbox" class="check_order" id="chk_ord[tax]" value="tax" checked disabled /><?php _e('consumption tax', 'usces'); ?></label>
813 - <label for="chk_ord[note]"><input type="checkbox" class="check_order" id="chk_ord[note]" value="note"<?php usces_checked($chk_ord, 'note'); ?> /><?php _e('Notes', 'usces'); ?></label>
814 -<?php
815 - if(!empty($csod_meta)) {
816 - foreach($csod_meta as $key => $entry) {
817 -//20110208ysk start
818 - $csod_key = 'csod_'.$key;
819 - //$checked = ($chk_ord[$entry['name']] == 1) ? ' checked' : '';
820 - //$checked = (isset($chk_ord[$csod_key]) && $chk_ord[$csod_key] == 1) ? ' checked' : '';
821 - $checked = usces_checked( $chk_ord, $csod_key, 'return' );
822 - $name = esc_attr($entry['name']);
823 - //echo '<label for="chk_ord['.$name.']"><input type="checkbox" class="check_order" id="chk_ord['.$name.']" value="'.$name.'"'.$checked.' />'.$name.'</label>';
824 - echo '<label for="chk_ord['.$csod_key.']"><input type="checkbox" class="check_order" id="chk_ord['.$csod_key.']" value="'.$csod_key.'"'.$checked.' />'.$name.'</label>'."\n";//20111116ysk 0000302
825 -//20110208ysk end
826 - }
827 - }
828 -?>
829 - <?php do_action( 'usces_action_chk_ord_order', $chk_ord ); ?>
830 - </fieldset>
831 -</div>
832 -<!--20100908ysk end-->
833 -<?php echo apply_filters('usces_filter_order_list_footer', '');//20120612ysk 0000501 ?>
834 -
835 -<!--<div class="chui">
836 -<h3>受注詳細画面(作成中)について</h3>
837 -<p>各行の受注番号をクリックすると受注詳細画面が表示されます。受注詳細画面では注文商品の追加、修正、削除など受注に関する全ての情報を編集することができま、問い合わせや電話での変更依頼に対応します。</p>
838 -<p>「見積り」ステイタスを利用することで見積りをメール送信できます。見積書印刷でFAX対応も可能です。注文をいただいた場合は「受注」ステイタスに変更することで、見積りの内容がそのまま受注データとなります。</p>
839 -<p>その他のステイタスには銀行振り込みの場合の「入金」ステイタス、発送完了した場合の「完了」、注文の「キャンセル」などがあり、各業務の終了後にステイタスを変更することを習慣付ければ、複数の担当者での業務もスムーズに行うことができます。</p>
840 -</div>
841 -</form>
842 -<?php do_action( 'usces_action_order_list_footer' ); ?>
843 -</div><!--usces_admin-->
844 -</div><!--wrap-->
845 -<script type="text/javascript">
846 -// rowSelection("mainDataTable");
847 -</script>
1 +<?php
2 +/**
3 + * Order List Page.
4 + * - Old type
5 + *
6 + * @package Welcart
7 + */
8 +
9 +require_once USCES_PLUGIN_DIR . '/classes/orderList.class.php';
10 +global $wpdb;
11 +
12 +$tableName = $wpdb->prefix . 'usces_order'; // phpcs:ignore
13 +if ( defined( 'WCEX_AUTO_DELIVERY' ) && version_compare( WCEX_AUTO_DELIVERY_VERSION, '1.4.0', '>' ) ) {
14 + $arr_column = array(
15 + __( 'ID', 'usces' ) => 'ID',
16 + __( 'Order number', 'usces' ) => 'deco_id',
17 + __( 'Regular ID', 'autodelivery' ) => 'reg_id',
18 + __( 'date', 'usces' ) => 'date',
19 + __( 'membership number', 'usces' ) => 'mem_id',
20 + __( 'name', 'usces' ) => 'name',
21 + __( 'Region', 'usces' ) => 'pref',
22 + __( 'shipping option', 'usces' ) => 'delivery_method',
23 + __( 'Amount', 'usces' ) . '(' . __( usces_crcode( 'return' ), 'usces' ) . ')' => 'total_price',
24 + __( 'payment method', 'usces' ) => 'payment_name',
25 + __( 'transfer statement', 'usces' ) => 'receipt_status',
26 + __( 'Processing', 'usces' ) => 'order_status',
27 + __( 'shpping date', 'usces' ) => 'order_modified',
28 + );
29 +} else {
30 + $arr_column = array(
31 + __( 'ID', 'usces' ) => 'ID',
32 + __( 'Order number', 'usces' ) => 'deco_id',
33 + __( 'date', 'usces' ) => 'date',
34 + __( 'membership number', 'usces' ) => 'mem_id',
35 + __( 'name', 'usces' ) => 'name',
36 + __( 'Region', 'usces' ) => 'pref',
37 + __( 'shipping option', 'usces' ) => 'delivery_method',
38 + __( 'Amount', 'usces' ) . '(' . __( usces_crcode( 'return' ), 'usces' ) . ')' => 'total_price',
39 + __( 'payment method', 'usces' ) => 'payment_name',
40 + __( 'transfer statement', 'usces' ) => 'receipt_status',
41 + __( 'Processing', 'usces' ) => 'order_status',
42 + apply_filters( 'usces_filter_admin_modified_label', __( 'shpping date', 'usces' ) ) => 'order_modified',
43 + );
44 +}
45 +$arr_column = apply_filters( 'usces_filter_order_list_column', $arr_column );
46 +
47 +// phpcs:disable
48 +$DT = new dataList( $tableName, $arr_column );
49 +$res = $DT->MakeTable();
50 +$arr_search = $DT->GetSearchs();
51 +$management_status = apply_filters( 'usces_filter_management_status', get_option( 'usces_management_status' ) );
52 +$arr_header = $DT->GetListheaders();
53 +$dataTableNavigation = $DT->GetDataTableNavigation();
54 +$rows = $DT->rows;
55 +$status = $DT->get_action_status();
56 +$message = $DT->get_action_message();
57 +$status = apply_filters( 'usces_order_list_action_status', $status );
58 +$message = apply_filters( 'usces_order_list_action_message', $message );
59 +// phpcs:enable
60 +
61 +$usces_admin_path = '';
62 +$admin_perse = explode( '/', $_SERVER['REQUEST_URI'] ); // phpcs:ignore
63 +$apct = count( $admin_perse ) - 1;
64 +for ( $ap = 0; $ap < $apct; $ap++ ) {
65 + $usces_admin_path .= $admin_perse[ $ap ] . '/';
66 +}
67 +
68 +$startdate = ( ! empty( $DT->startdate ) ) ? $DT->startdate : ''; // phpcs:ignore
69 +$enddate = ( ! empty( $DT->enddate ) ) ? $DT->enddate : ''; // phpcs:ignore
70 +$period_specified_index = $DT->get_period_specified_index(); // phpcs:ignore
71 +$pref = array();
72 +$target_market = $this->options['system']['target_market'];
73 +foreach ( (array) $target_market as $country ) {
74 + $prefs = get_usces_states( $country );
75 + if ( is_array( $prefs ) && 0 < count( $prefs ) ) {
76 + $pos = strpos( $prefs[0], '--' );
77 + if ( false !== $pos ) {
78 + array_shift( $prefs );
79 + }
80 + foreach ( (array) $prefs as $state ) {
81 + $pref[] = $state;
82 + }
83 + }
84 +}
85 +$payment_name = array();
86 +$payments = usces_get_system_option( 'usces_payment_method', 'sort' );
87 +foreach ( (array) $payments as $id => $payment ) { // phpcs:ignore
88 + $payment_name[ $id ] = $payment['name'];
89 +}
90 +foreach ( (array) $management_status as $key => $value ) {
91 + if ( 'noreceipt' == $key || 'receipted' == $key || 'pending' == $key ) {
92 + $receipt_status[ $key ] = $value;
93 + } else {
94 + $order_status[ $key ] = $value;
95 + }
96 +}
97 +$order_status['new'] = __( 'new order', 'usces' );
98 +$curent_url = urlencode( esc_url( USCES_ADMIN_URL . '?' . $_SERVER['QUERY_STRING'] ) ); // phpcs:ignore
99 +
100 +$csod_meta = usces_has_custom_field_meta( 'order' );
101 +$cscs_meta = usces_has_custom_field_meta( 'customer' );
102 +$csde_meta = usces_has_custom_field_meta( 'delivery' );
103 +$usces_opt_order = get_option( 'usces_opt_order' );
104 +$chk_pro = ( isset( $usces_opt_order['chk_pro'] ) ) ? $usces_opt_order['chk_pro'] : array();
105 +$chk_ord = ( isset( $usces_opt_order['chk_ord'] ) ) ? $usces_opt_order['chk_ord'] : array();
106 +$applyform = usces_get_apply_addressform( $this->options['system']['addressform'] );
107 +$settlement_backup = ( isset( $this->options['system']['settlement_backup'] ) ) ? $this->options['system']['settlement_backup'] : 0;
108 +$settlement_notice = get_option( 'usces_settlement_notice' );
109 +
110 +$order_list_delete_link = ( isset( $this->options['system']['order_list_delete_link'] ) ) ? $this->options['system']['order_list_delete_link'] : 0;
111 +
112 +?>
113 +<script type="text/javascript">
114 +jQuery(function($){
115 +
116 + $("input[name='allcheck']").click(function () {
117 + if( $(this).prop("checked") ){
118 + $("input[name*='listcheck']").prop( "checked", true );
119 + }else{
120 + $("input[name*='listcheck']").prop( "checked", false );
121 + }
122 + });
123 +
124 + $("#searchselect").change(function () {
125 + operation.change_search_field();
126 + });
127 +
128 + $("#searchselectsku").change(function () {
129 + operation.change_search_sku_field();
130 + });
131 +
132 + $("#changeselect").change(function () {
133 + operation.change_collective_field();
134 + });
135 +
136 + $("#collective_change").click(function () {
137 + if( $("#changeselect option:selected").val() == 'none' ) {
138 + $("#orderlistaction").val('');
139 + return false;
140 + }
141 + if( $("input[name*='listcheck']:checked").length == 0 ) {
142 + alert("<?php esc_html_e( 'Choose the data.', 'usces' ); ?>");
143 + $("#orderlistaction").val('');
144 + return false;
145 + }
146 + var coll = $("#changeselect").val();
147 + var mes = '';
148 + if( coll == 'order_reciept' ){
149 + mes = <?php echo sprintf( __( "'Transfer status of the items which you have checked will be changed in to ' + %s + '. %sDo you agree?'", 'usces' ), '$("select\[name=\"change\[word\]\[order_reciept\]\"\] option:selected").html()', '\n\n' ); // phpcs:ignore ?>;
150 + }else if( coll == 'order_status' ){
151 + mes = <?php echo sprintf( __( "'Data status which you have cheked will be changed in to ' + %s + '. %sDo you agree?'", 'usces' ), '$("select\[name=\"change\[word\]\[order_status\]\"\] option:selected").html()', '\n\n' ); // phpcs:ignore ?>;
152 + }else if(coll == 'delete'){
153 + mes = '<?php esc_html_e( 'Are you sure of deleting all the checked data in bulk?', 'usces' ); ?>';
154 + }
155 + if( mes != '' ) {
156 + if( !confirm(mes) ){
157 + $("#orderlistaction").val('');
158 + return false;
159 + }
160 + }
161 + <?php do_action( 'usces_action_order_list_collective_change_js' ); ?>
162 + $("#orderlistaction").val('collective');
163 + $('#form_tablesearch').submit();
164 + });
165 +
166 + operation = {
167 + change_search_field :function (){
168 + var label = '';
169 + var html = '';
170 + var column = $("#searchselect").val();
171 +
172 + if( column == 'ID' ) {
173 + label = '<?php esc_html_e( 'key words', 'usces' ); ?>';
174 + html = '<input name="search[word][ID]" type="text" value="<?php echo esc_attr( isset( $arr_search['word']['ID'] ) ? $arr_search['word']['ID'] : '' ); ?>" class="searchword" maxlength="50" />';
175 + }else if( column == 'deco_id' ) {
176 + label = '<?php esc_html_e( 'key words', 'usces' ); ?>';
177 + html = '<input name="search[word][deco_id]" type="text" value="<?php echo esc_attr( isset( $arr_search['word']['deco_id'] ) ? $arr_search['word']['deco_id'] : '' ); ?>" class="searchword" maxlength="50" />';
178 + }else if( column == 'date' ) {
179 + label = '<?php esc_html_e( 'key words', 'usces' ); ?>';
180 + html = '<input name="search[word][date]" type="text" value="<?php echo esc_attr( isset( $arr_search['word']['date'] ) ? $arr_search['word']['date'] : '' ); ?>" class="searchword" maxlength="50" />';
181 + }else if( column == 'mem_id' ) {
182 + label = '<?php esc_html_e( 'key words', 'usces' ); ?>';
183 + html = '<input name="search[word][mem_id]" type="text" value="<?php echo esc_attr( isset( $arr_search['word']['mem_id'] ) ? $arr_search['word']['mem_id'] : '' ); ?>" class="searchword" maxlength="50" />';
184 + }else if( column == 'name' ) {
185 + label = '<?php esc_html_e( 'key words', 'usces' ); ?>';
186 + html = '<input name="search[word][name]" type="text" value="<?php echo esc_attr( isset( $arr_search['word']['name'] ) ? $arr_search['word']['name'] : '' ); ?>" class="searchword" maxlength="50" />';
187 + }else if( column == 'order_modified' ) {
188 + label = '<?php esc_html_e( 'key words', 'usces' ); ?>';
189 + html = '<input name="search[word][order_modified]" type="text" value="<?php echo esc_attr( isset( $arr_search['word']['order_modified'] ) ? $arr_search['word']['order_modified'] : '' ); ?>" class="searchword" maxlength="50" />';
190 + }else if( column == 'pref' ) {
191 + label = '';
192 + html = '<select name="search[word][pref]" class="searchselect">';
193 +<?php
194 +foreach ( (array) $pref as $pkey => $pvalue ) :
195 + if ( isset( $arr_search['word']['pref'] ) && $pvalue == $arr_search['word']['pref'] ) {
196 + $pselected = ' selected="selected"';
197 + } else {
198 + $pselected = '';
199 + }
200 + ?>
201 + html += '<option value="<?php echo esc_attr( $pvalue ); ?>"<?php echo esc_attr( $pselected ); ?>><?php echo esc_html( $pvalue ); ?></option>';
202 + <?php
203 +endforeach;
204 +?>
205 + html += '</select>';
206 + }else if( column == 'delivery_method' ) {
207 + label = '';
208 + html = '<select name="search[word][delivery_method]" class="searchselect">';
209 +<?php
210 +foreach ( (array) $this->options['delivery_method'] as $dkey => $dvalue ) :
211 + if ( isset( $arr_search['word']['delivery_method'] ) && $dvalue['id'] == $arr_search['word']['delivery_method'] ) {
212 + $dselected = ' selected="selected"';
213 + } else {
214 + $dselected = '';
215 + }
216 + ?>
217 + html += '<option value="<?php echo esc_attr( $dvalue['id'] ); ?>"<?php echo esc_attr( $dselected ); ?>><?php echo esc_html( $dvalue['name'] ); ?></option>';
218 + <?php
219 +endforeach;
220 +?>
221 + html += '</select>';
222 + }else if( column == 'payment_name' ) {
223 + label = '';
224 + html = '<select name="search[word][payment_name]" class="searchselect">';
225 +<?php
226 +foreach ( (array) $payment_name as $pnkey => $pnvalue ) :
227 + if ( isset( $arr_search['word']['payment_name'] ) && $pnvalue == $arr_search['word']['payment_name'] ) {
228 + $pnselected = ' selected="selected"';
229 + } else {
230 + $pnselected = '';
231 + }
232 + ?>
233 + html += '<option value="<?php echo esc_attr( $pnvalue ); ?>"<?php echo esc_attr( $pnselected ); ?>><?php echo esc_html( $pnvalue ); ?></option>';
234 + <?php
235 +endforeach;
236 +?>
237 + html += '</select>';
238 + }else if( column == 'receipt_status' ) {
239 + label = '';
240 + html = '<select name="search[word][receipt_status]" class="searchselect">';
241 +<?php
242 +foreach ( (array) $receipt_status as $rkey => $rvalue ) :
243 + if ( isset( $arr_search['word']['receipt_status'] ) && $rvalue == $arr_search['word']['receipt_status'] ) {
244 + $rselected = ' selected="selected"';
245 + } else {
246 + $rselected = '';
247 + }
248 + ?>
249 + html += '<option value="<?php echo esc_attr( $rvalue ); ?>"<?php echo esc_attr( $rselected ); ?>><?php echo esc_html( $rvalue ); ?></option>';
250 + <?php
251 +endforeach;
252 +?>
253 + html += '</select>';
254 + }else if( column == 'order_status' ) {
255 + label = '';
256 + html = '<select name="search[word][order_status]" class="searchselect">';
257 +<?php
258 +foreach ( (array) $order_status as $okey => $ovalue ) :
259 + if ( isset( $arr_search['word']['order_status'] ) && $ovalue == $arr_search['word']['order_status'] ) {
260 + $oselected = ' selected="selected"';
261 + } else {
262 + $oselected = '';
263 + }
264 + ?>
265 + html += '<option value="<?php echo esc_attr( $ovalue ); ?>"<?php echo esc_attr( $oselected ); ?>><?php echo esc_html( $ovalue ); ?></option>';
266 + <?php
267 +endforeach;
268 +?>
269 + html += '</select>';
270 + }
271 +
272 + $("#searchlabel").html( label );
273 + $("#searchfield").html( html );
274 + },
275 +
276 + change_search_sku_field :function (){
277 + var label = '';
278 + var html = '';
279 + var column = $("#searchselectsku").val();
280 +
281 + if( column == 'item_code' ) {
282 + label = '<?php esc_html_e( 'key words', 'usces' ); ?>';
283 + html = '<input name="search[skuword][item_code]" type="text" value="<?php echo esc_attr( isset( $arr_search['skuword']['item_code'] ) ? $arr_search['skuword']['item_code'] : '' ); ?>" class="searchword" maxlength="50" />';
284 + }else if( column == 'item_name' ) {
285 + label = '<?php esc_html_e( 'key words', 'usces' ); ?>';
286 + html = '<input name="search[skuword][item_name]" type="text" value="<?php echo esc_attr( isset( $arr_search['skuword']['item_name'] ) ? $arr_search['skuword']['item_name'] : '' ); ?>" class="searchword" maxlength="50" />';
287 + }
288 +
289 + $("#searchlabelsku").html( label );
290 + $("#searchfieldsku").html( html );
291 + },
292 +
293 + change_collective_field :function (){
294 + var label = '';
295 + var html = '';
296 + var column = $("#changeselect").val();
297 +
298 + if( column == 'order_reciept' ) {
299 + label = '';
300 + html = '<select name="change[word][order_reciept]" class="searchselect">';
301 +<?php foreach ( (array) $receipt_status as $orkey => $orvalue ) : ?>
302 + html += '<option value="<?php echo esc_attr( $orkey ); ?>"><?php echo esc_html( $orvalue ); ?></option>';
303 +<?php endforeach; ?>
304 + html += '</select>';
305 + }else if( column == 'order_status' ) {
306 + label = '';
307 + html = '<select name="change[word][order_status]" class="ksearchselect">';
308 +<?php foreach ( (array) $order_status as $oskey => $osvalue ) : ?>
309 + html += '<option value="<?php echo esc_attr( $oskey ); ?>"><?php echo esc_html( $osvalue ); ?></option>';
310 +<?php endforeach; ?>
311 + html += '</select>';
312 + }else if( column == 'delete' ) {
313 + label = '';
314 + html = '';
315 + }
316 +
317 + $("#changelabel").html( label );
318 + $("#changefield").html( html );
319 + }
320 + };
321 +<?php usces_order_list_js_settlement_dialog(); ?>
322 +<?php echo apply_filters( 'usces_filter_order_list_page_js', '', $DT ); // phpcs:ignore ?>
323 +});
324 +
325 +function deleteconfirm(order_id){
326 + if(confirm(<?php _e( "'Are you sure of deleting an order number ' + order_id + ' ?'", 'usces' ); // phpcs:ignore ?>)){
327 + return true;
328 + }else{
329 + return false;
330 + }
331 +}
332 +
333 +jQuery(document).ready(function($){
334 + (function setCookie() {
335 +<?php
336 +// phpcs:disable
337 +$data_cookie = array();
338 +$data_cookie['placeholder_escape'] = $DT->placeholder_escape;
339 +$data_cookie['startRow'] = $DT->startRow; /* 表示開始行番号 */
340 +$data_cookie['sortColumn'] = $DT->sortColumn; /* 現在ソート中のフィールド */
341 +$data_cookie['totalRow'] = $DT->totalRow; /* 全行数 */
342 +$data_cookie['selectedRow'] = $DT->selectedRow; /* 絞り込まれた行数 */
343 +$data_cookie['currentPage'] = $DT->currentPage; /* 現在のページNo */
344 +$data_cookie['previousPage'] = $DT->previousPage; /* 前のページNo */
345 +$data_cookie['nextPage'] = $DT->nextPage; /* 次のページNo */
346 +$data_cookie['lastPage'] = $DT->lastPage; /* 最終ページNo */
347 +$data_cookie['userHeaderNames'] = $DT->userHeaderNames; /* 全てのフィールド */
348 +// $data_cookie['rows'] = $DT->rows; /* 表示する行オブジェクト */
349 +$data_cookie['sortSwitchs'] = $DT->sortSwitchs; /* 各フィールド毎の昇順降順スイッチ */
350 +$data_cookie['searchSql'] = $DT->searchSql;
351 +$data_cookie['searchSkuSql'] = $DT->searchSkuSql;
352 +$data_cookie['arr_search'] = $DT->arr_search;
353 +$data_cookie['searchSwitchStatus'] = $DT->searchSwitchStatus;
354 +$data_cookie['startdate'] = $DT->startdate;
355 +$data_cookie['enddate'] = $DT->enddate;
356 +// phpcs:enable
357 +?>
358 + $.cookie('<?php echo "{$DT->cookie_key}" . "_path"; ?>', '<?php echo esc_url( $usces_admin_path ); ?>', { path: "<?php echo esc_url( $usces_admin_path ); ?>", domain: ""});
359 + $.cookie('<?php echo "{$DT->cookie_key}"; ?>', '<?php echo str_replace( "'", "\'", json_encode( $data_cookie ) ); ?>', { path: "<?php echo esc_url( $usces_admin_path ); ?>", domain: ""});
360 + })();
361 + $("table#mainDataTable tr:even").addClass("rowSelection_even");
362 + $("table#mainDataTable tr").hover(function() {
363 + $(this).addClass("rowSelection_hilight");
364 + },
365 + function() {
366 + $(this).removeClass("rowSelection_hilight");
367 + });
368 +
369 + $(document).on( "click", "#searchVisiLink", function() {
370 + if( $("#searchBox").css("display") == "block" ) {
371 + $("#searchBox").css("display", "none");
372 + $("#searchVisiLink").html('<?php esc_html_e( 'Show the Operation field', 'usces' ); ?><span class="dashicons dashicons-arrow-down"></span>');
373 + } else {
374 + $("#searchBox").css("display", "block");
375 + $("#searchVisiLink").html('<?php esc_html_e( 'Hide the Operation field', 'usces' ); ?><span class="dashicons dashicons-arrow-up"></span>');
376 + }
377 + });
378 +
379 + operation.change_search_field();
380 + operation.change_search_sku_field();
381 +
382 + $("#dlProductListDialog").dialog({
383 + bgiframe: true,
384 + autoOpen: false,
385 + height: 400,
386 + width: 700,
387 + resizable: true,
388 + modal: true,
389 + buttons: {
390 + '<?php esc_html_e( 'close', 'usces' ); ?>': function() {
391 + $(this).dialog('close');
392 + }
393 + },
394 + close: function() {
395 + }
396 + });
397 + $('#dl_pro').click(function() {
398 + var listcheck = [];
399 + $("input[name='listcheck[]']:checked").each(function() {
400 + listcheck.push($(this).val());
401 + });
402 +
403 + var form = $('<form>', {
404 + action: "<?php echo esc_url( USCES_ADMIN_URL ); ?>?page=usces_orderlist&order_action=dlproductlist&noheader=true",
405 + method: 'post'
406 + });
407 + form.append($('<input>', { type: 'hidden', name: 'search[column]', value: $(':input[name="search[column]"]').val() }));
408 + form.append($('<input>', { type: 'hidden', name: 'search[sku]', value: $(':input[name="search[sku]"]').val() }));
409 + form.append($('<input>', { type: 'hidden', name: 'search[word]['+$("#searchselect").val()+']', value: $(':input[name="search[word]['+$("#searchselect").val()+']"]').val() }));
410 + form.append($('<input>', { type: 'hidden', name: 'search[skuword]['+$("#searchselectsku").val()+']', value: $(':input[name="search[skuword]['+$("#searchselectsku").val()+']"]').val() }));
411 + form.append($('<input>', { type: 'hidden', name: 'search[period]', value: $(':input[name="search[period]"]').val() }));
412 + form.append($('<input>', { type: 'hidden', name: 'searchSwitchStatus', value: $(':input[name="searchSwitchStatus"]').val() }));
413 + form.append($('<input>', { type: 'hidden', name: 'ftype', value: 'csv' }));
414 + form.append($('<input>', { type: 'hidden', name: 'wc_nonce', value: $("#wc_nonce").val() }));
415 +
416 + $(".check_product").each(function() {
417 + if($(this).prop('checked')) {
418 + form.append($('<input>', { type: 'hidden', name: 'check['+$(this).val()+']', value: 'on' }));
419 + }
420 + });
421 +
422 + if (listcheck.length > 0) {
423 + form.append($('<input>', { type: 'hidden', name: 'listcheck', value: listcheck.join(',') }));
424 + }
425 +
426 + form.appendTo('body').submit().remove();
427 + });
428 + $('#dl_productlist').click(function() {
429 + $('#dlProductListDialog').dialog('open');
430 + });
431 +
432 + $("#dlOrderListDialog").dialog({
433 + bgiframe: true,
434 + autoOpen: false,
435 + height: 600,
436 + width: 700,
437 + resizable: true,
438 + modal: true,
439 + buttons: {
440 + '<?php esc_html_e( 'close', 'usces' ); ?>': function() {
441 + $(this).dialog('close');
442 + }
443 + },
444 + close: function() {
445 + }
446 + });
447 + $('#dl_ord').click(function() {
448 + var listcheck = [];
449 + $("input[name='listcheck[]']:checked").each(function() {
450 + listcheck.push($(this).val());
451 + });
452 +
453 + var form = $('<form>', {
454 + action: "<?php echo esc_url( USCES_ADMIN_URL ); ?>?page=usces_orderlist&order_action=dlorderlist&noheader=true",
455 + method: 'post'
456 + });
457 + form.append($('<input>', { type: 'hidden', name: 'search[column]', value: $(':input[name="search[column]"]').val() }));
458 + form.append($('<input>', { type: 'hidden', name: 'search[sku]', value: $(':input[name="search[sku]"]').val() }));
459 + form.append($('<input>', { type: 'hidden', name: 'search[word]['+$("#searchselect").val()+']', value: $(':input[name="search[word]['+$("#searchselect").val()+']"]').val() }));
460 + form.append($('<input>', { type: 'hidden', name: 'search[skuword]['+$("#searchselectsku").val()+']', value: $(':input[name="search[skuword]['+$("#searchselectsku").val()+']"]').val() }));
461 + form.append($('<input>', { type: 'hidden', name: 'search[period]', value: $(':input[name="search[period]"]').val() }));
462 + form.append($('<input>', { type: 'hidden', name: 'searchSwitchStatus', value: $(':input[name="searchSwitchStatus"]').val() }));
463 + form.append($('<input>', { type: 'hidden', name: 'ftype', value: 'csv' }));
464 + form.append($('<input>', { type: 'hidden', name: 'wc_nonce', value: $("#wc_nonce").val() }));
465 +
466 + $(".check_order").each(function() {
467 + if($(this).prop('checked')) {
468 + form.append($('<input>', { type: 'hidden', name: 'check['+$(this).val()+']', value: 'on' }));
469 + }
470 + });
471 +
472 + if (listcheck.length > 0) {
473 + form.append($('<input>', { type: 'hidden', name: 'listcheck', value: listcheck.join(',') }));
474 + }
475 +
476 + form.appendTo('body').submit().remove();
477 + });
478 + $('#dl_orderlist').click(function() {
479 + $('#dlOrderListDialog').dialog('open');
480 + });
481 +
482 +<?php if ( isset( $_GET['order_action'] ) && 'settlement_notice' == $_GET['order_action'] ) : ?>
483 + $("#searchBox").css( "display","block" );
484 + $("#searchSwitchStatus").val( "ON" );
485 + $("#searchSwitchStatus").css( "display","none" );
486 + $("#settlement_errorlog").trigger( "click" );
487 +<?php endif; ?>
488 +
489 +<?php
490 +$set_startdate = ( ! empty( $startdate ) ) ? ', setDate: "' . $startdate . '", defaultDate: "' . $startdate . '"' : ''; // phpcs:ignore
491 +$set_enddate = ( ! empty( $enddate ) ) ? ', setDate: "' . $enddate . '", defaultDate: "' . $enddate . '"' : ''; // phpcs:ignore
492 +?>
493 + $("#startdate").datepicker({
494 + dateFormat: "yy-mm-dd"<?php wel_esc_script_e( $set_startdate ); ?>
495 + });
496 + $("#enddate").datepicker({
497 + dateFormat: "yy-mm-dd"<?php wel_esc_script_e( $set_enddate ); ?>
498 + });
499 + $("select[name='search[period]']").change(function() {
500 + var period = $("select[name='search[period]'] option:selected").val();
501 + if( period == <?php wel_esc_script_e( $period_specified_index ); ?> ) {
502 + $("#period_specified").css( "display", "block" );
503 + } else {
504 + $("#period_specified").css( "display", "none" );
505 + }
506 + });
507 + $("select[name='search[period]']").triggerHandler("change");
508 +<?php if ( defined( 'WCEX_AUTO_DELIVERY' ) && version_compare( WCEX_AUTO_DELIVERY_VERSION, '1.4.0', '>' ) ) : ?>
509 + $(".regular_parent_order").removeClass( "rowSelection_even" );
510 + $(".regular_parent_order").css( "background-color","#e6fe9e" );
511 +<?php endif; ?>
512 +<?php do_action( 'usces_action_order_list_document_ready_js', $DT ); // phpcs:ignore ?>
513 +});
514 +</script>
515 +
516 +<div class="wrap">
517 +<div class="usces_admin">
518 +<form action="<?php echo esc_url( USCES_ADMIN_URL . '?page=usces_orderlist' ); ?>" method="post" name="tablesearch" id="form_tablesearch">
519 +<h1>Welcart Management <?php esc_html_e( 'Order List', 'usces' ); ?></h1>
520 +<p class="version_info">Version <?php echo esc_html( USCES_VERSION ); ?></p>
521 +<?php usces_admin_action_status( $status, $message ); ?>
522 +
523 +<div id="datatable">
524 +<div id="tablenavi"><?php wel_esc_script_e( $dataTableNavigation ); ?></div>
525 +
526 +<div id="tablesearch">
527 +<div id="searchBox">
528 + <table id="search_table">
529 + <tr>
530 + <td><?php esc_html_e( 'search fields', 'usces' ); ?></td>
531 + <td><select name="search[column]" class="searchselect" id="searchselect">
532 + <option value="none"> </option>
533 +<?php
534 +foreach ( (array) $arr_column as $key => $value ) :
535 + if ( 'total_price' == $value ) {
536 + continue;
537 + }
538 + $selected = ( $value == $arr_search['column'] ) ? ' selected="selected"' : '';
539 + ?>
540 + <option value="<?php echo esc_attr( $value ); ?>"<?php echo esc_attr( $selected ); ?>><?php echo esc_html( $key ); ?></option>
541 + <?php
542 +endforeach;
543 +?>
544 + </select>
545 + </td>
546 + <td id="searchlabel"></td>
547 + <td id="searchfield"></td>
548 + <td rowspan="2"><input name="searchIn" type="submit" class="searchbutton button" value="<?php esc_attr_e( 'Search', 'usces' ); ?>" />
549 + <input name="searchOut" type="submit" class="searchbutton button" value="<?php esc_attr_e( 'Cancellation', 'usces' ); ?>" />
550 + <input name="searchSwitchStatus" id="searchSwitchStatus" type="hidden" value="<?php echo esc_attr( $DT->searchSwitchStatus ); // phpcs:ignore ?>" />
551 + </td>
552 + </tr>
553 + <td><?php esc_html_e( 'search fields', 'usces' ); ?></td>
554 + <td><select name="search[sku]" class="searchselect" id="searchselectsku">
555 + <option value="none"> </option>
556 + <option value="item_code"<?php echo( 'item_code' == $arr_search['sku'] ? ' selected="selected"' : '' ); ?>><?php esc_html_e( 'item code', 'usces' ); ?></option>
557 + <option value="item_name"<?php echo( 'item_name' == $arr_search['sku'] ? ' selected="selected"' : '' ); ?>><?php esc_html_e( 'item name', 'usces' ); ?></option>
558 + </select></td>
559 + <td id="searchlabelsku"></td>
560 + <td id="searchfieldsku"></td>
561 + <tr>
562 + </tr>
563 + </table>
564 + <table id="period_table">
565 + <tr>
566 +<?php
567 + $period_table = '<td><div id="period_specified"><input type="text" name="startdate" id="startdate" value="' . $startdate . '">' . __( ' - ', 'usces' ) . '<input type="text" name="enddate" id="enddate" value="' . $enddate . '"></div></td>';
568 +?>
569 + <?php echo apply_filters( 'usces_filter_order_list_period_table', $period_table ); // phpcs:ignore ?>
570 + <td><?php esc_html_e( 'Period', 'usces' ); ?></td>
571 + <td><select name="search[period]" class="searchselect">
572 +<?php
573 +foreach ( (array) $DT->arr_period as $key => $value ) : // phpcs:ignore
574 + $selected = ( $key == $arr_search['period'] ) ? ' selected="selected"' : '';
575 + ?>
576 + <option value="<?php echo esc_attr( $key ); ?>"<?php echo esc_attr( $selected ); ?>><?php echo esc_html( $value ); ?></option>
577 + <?php
578 +endforeach;
579 +?>
580 + </select></td>
581 + </tr>
582 + </table>
583 + <table id="change_table">
584 + <tr>
585 + <td><?php esc_html_e( 'Oparation in bulk', 'usces' ); ?></td>
586 + <td><select name="allchange[column]" class="searchselect" id="changeselect">
587 + <option value="none"> </option>
588 + <option value="order_reciept"><?php esc_html_e( 'Edit the receiving money status', 'usces' ); ?></option>
589 + <option value="order_status"><?php esc_html_e( 'Edit of status process', 'usces' ); ?></option>
590 + <option value="delete"><?php esc_html_e( 'Delete in bulk', 'usces' ); ?></option>
591 + <?php echo apply_filters( 'usces_filter_allchange_column', '' ); // phpcs:ignore ?>
592 + </select></td>
593 + <td id="changelabel"></td>
594 + <td id="changefield"></td>
595 + <td><input name="collective_change" type="button" class="searchbutton button" id="collective_change" value="<?php esc_attr_e( 'start', 'usces' ); ?>" />
596 + </td>
597 + </tr>
598 + </table>
599 + <input name="collective" id="orderlistaction" type="hidden" />
600 + <table id="dl_list_table">
601 + <tr>
602 + <?php echo apply_filters( 'usces_filter_dl_list_table', '' ); // phpcs:ignore ?>
603 + <?php do_action( 'usces_action_dl_list_table' ); ?>
604 + <td><input type="button" id="dl_productlist" class="searchbutton button" value="<?php esc_attr_e( 'Download Product List', 'usces' ); ?>" /></td>
605 + <td><input type="button" id="dl_orderlist" class="searchbutton button" value="<?php esc_attr_e( 'Download Order List', 'usces' ); ?>" /></td>
606 +<?php if ( ! empty( $settlement_backup ) && 1 == $settlement_backup ) : ?>
607 + <td><input type="button" id="settlementlog" class="searchbutton button" value="<?php esc_attr_e( 'Settlement previous log list', 'usces' ); ?>" /></td>
608 +<?php endif; ?>
609 +<?php if ( ! empty( $settlement_notice ) ) : ?>
610 + <td><input type="button" id="settlement_errorlog" class="searchbutton button" value="<?php esc_attr_e( 'Settlement error log list', 'usces' ); ?>" /></td>
611 +<?php endif; ?>
612 + </tr>
613 + </table>
614 +<div<?php if ( has_action( 'usces_action_order_list_searchbox_bottom' ) ) echo ' class="searchbox_bottom"'; // phpcs:ignore ?>>
615 +<?php do_action( 'usces_action_order_list_searchbox_bottom' ); ?>
616 +</div>
617 +</div>
618 +<?php do_action( 'usces_action_order_list_searchbox' ); ?>
619 +</div>
620 +
621 +<table id="mainDataTable" cellspacing="1">
622 +<?php
623 +$list_header = '<th scope="col"><input name="allcheck" type="checkbox" value="" /></th>';
624 +foreach ( (array) $arr_header as $value ) {
625 + $list_header .= '<th scope="col">' . $value . '</th>';
626 +}
627 +
628 +if ( $order_list_delete_link ) {
629 + $list_header .= '<th scope="col">&nbsp;</th>';
630 +}
631 +
632 +?>
633 + <tr>
634 + <?php echo apply_filters( 'usces_filter_order_list_header', $list_header, $arr_header ); // phpcs:ignore ?>
635 + </tr>
636 +<?php
637 +foreach ( (array) $rows as $data ) :
638 + $list_detail = '<td align="center"><input name="listcheck[]" type="checkbox" value="' . $data['ID'] . '" /></td>';
639 + foreach ( (array) $data as $key => $value ) {
640 + if ( WCUtils::is_blank( $value ) ) {
641 + $value = '&nbsp;';
642 + }
643 + if ( 'ID' === $key || 'deco_id' === $key ) {
644 + $list_detail .= '<td><a href="' . USCES_ADMIN_URL . '?page=usces_orderlist&order_action=edit&order_id=' . $data['ID'] . '&usces_referer=' . $curent_url . '&wc_nonce=' . wp_create_nonce( 'order_edit' ) . '">' . esc_html( $value ) . '</a></td>';
645 + } elseif ( 'reg_id' == $key ) {
646 + if ( defined( 'WCEX_AUTO_DELIVERY' ) && version_compare( WCEX_AUTO_DELIVERY_VERSION, '1.4.0', '>' ) ) {
647 + if ( '&nbsp;' == $value || '-' == $value ) {
648 + $list_detail .= '<td>' . esc_html( $value ) . '</td>';
649 + } else {
650 + $list_detail .= '<td><a href="' . USCES_ADMIN_URL . '?page=usces_regularlist&regular_action=edit&regular_id=' . $value . '&usces_referer=' . $curent_url . '&wc_nonce=' . wp_create_nonce( 'order_edit' ) . '">' . esc_html( $value ) . '</a></td>';
651 + }
652 + }
653 + } elseif ( 'date' === $key ) {
654 + $list_detail .= '<td>' . esc_html( $value ) . '</td>';
655 + } elseif ( 'mem_id' === $key ) {
656 + if ( WCUtils::is_zero( $value ) ) {
657 + $value = '&nbsp;';
658 + }
659 + $list_detail .= '<td>' . esc_html( $value ) . '</td>';
660 + } elseif ( 'name' === $key ) {
661 + switch ( $applyform ) {
662 + case 'JP':
663 + $list_detail .= '<td>' . esc_html( $value ) . '</td>';
664 + break;
665 + case 'US':
666 + default:
667 + $names = explode( ' ', $value );
668 + $list_detail .= '<td>' . esc_html( $names[1] . ' ' . $names[0] ) . '</td>';
669 + }
670 + } elseif ( 'pref' === $key ) {
671 + if ( __( '-- Select --', 'usces' ) == $value || '-- Select --' == $value ) {
672 + $list_detail .= '<td>&nbsp;</td>';
673 + } else {
674 + $list_detail .= '<td>' . esc_html( $value ) . '</td>';
675 + }
676 + } elseif ( 'delivery_method' === $key ) {
677 + if ( -1 != $value ) {
678 + $delivery_method_index = $this->get_delivery_method_index( $value );
679 + $value = ( isset( $this->options['delivery_method'][ $delivery_method_index ]['name'] ) ) ? $this->options['delivery_method'][ $delivery_method_index ]['name'] : '&nbsp;';
680 + } else {
681 + $value = '&nbsp;';
682 + }
683 + $list_detail .= '<td class="green">' . esc_html( $value ) . '</td>';
684 + } elseif ( 'total_price' === $key ) {
685 + if ( $value < 0 ) {
686 + $value = 0;
687 + }
688 + $list_detail .= '<td class="price">' . usces_crform( $value, true, false, 'return' ) . '</td>';
689 + } elseif ( 'payment_name' === $key ) {
690 + if ( '#none#' == $value ) {
691 + $list_detail .= '<td>&nbsp;</td>';
692 + } else {
693 + $list_detail .= '<td>' . esc_html( $value ) . '</td>';
694 + }
695 + } elseif ( 'receipt_status' === $key ) {
696 + if ( __( 'unpaid', 'usces' ) == $value ) {
697 + $list_detail .= '<td class="red">' . esc_html( $value ) . '</td>';
698 + } elseif ( 'Pending' == $value ) {
699 + $list_detail .= '<td class="red">' . esc_html( $value ) . '</td>';
700 + } elseif ( __( 'payment confirmed', 'usces' ) == $value ) {
701 + $list_detail .= '<td class="green">' . esc_html( $value ) . '</td>';
702 + } else {
703 + $list_detail .= '<td>' . esc_html( $value ) . '</td>';
704 + }
705 + } elseif ( 'order_status' === $key ) {
706 + if ( __( 'It has sent it out.', 'usces' ) == $value ) {
707 + $process_status = esc_html( $value );
708 + $process_status_class = ' class="green"';
709 + } else {
710 + $process_status = esc_html( $value );
711 + $process_status_class = '';
712 + }
713 + $process_status = apply_filters( 'usces_filter_orderlist_process_status', $process_status, $value, $management_status );
714 + $process_status_class = apply_filters( 'usces_filter_orderlist_process_status_class', $process_status_class, $value );
715 + $list_detail .= '<td' . $process_status_class . '>' . $process_status . '</td>';
716 + } elseif ( 'order_modified' === $key ) {
717 + $list_detail .= '<td>' . esc_html( $value ) . '</td>';
718 + }
719 + }
720 +
721 + if ( $order_list_delete_link ) {
722 + $list_detail .= '<td><a href="' . USCES_ADMIN_URL . '?page=usces_orderlist&order_action=delete&order_id=' . $data['ID'] . '&wc_nonce=' . wp_create_nonce( 'order_list' ) . '" onclick="return deleteconfirm(\'' . $data['ID'] . '\');"><span style="color:#FF0000; font-size:9px;">' . __( 'Delete', 'usces' ) . '</span></a></td>';
723 + }
724 +
725 + if ( defined( 'WCEX_AUTO_DELIVERY' ) && version_compare( WCEX_AUTO_DELIVERY_VERSION, '1.4.0', '>=' ) ) {
726 + $trclass = ( ! empty( $data['reg_parent_id'] ) ) ? ' class="regular_parent_order"' : '';
727 + } else {
728 + $trclass = '';
729 + }
730 + ?>
731 + <tr<?php echo apply_filters( 'usces_filter_order_list_detail_trclass', $trclass, $data ); // phpcs:ignore ?>>
732 + <?php echo apply_filters( 'usces_filter_order_list_detail', $list_detail, $data, $curent_url ); // phpcs:ignore ?>
733 + </tr>
734 + <?php
735 +endforeach;
736 +?>
737 +</table>
738 +
739 +</div>
740 +<!-- [memory peak usage] <?php // echo round(memory_get_peak_usage()/1048576, 1); ?>Mb -->
741 +
742 +<div id="dlProductListDialog" title="<?php esc_attr_e( 'Download Product List', 'usces' ); ?>">
743 + <p><?php esc_html_e( 'Select the item you want, please press the download.', 'usces' ); ?></p>
744 + <input type="button" class="button" id="dl_pro" value="<?php esc_attr_e( 'Download', 'usces' ); ?>" />
745 + <fieldset><legend><?php esc_html_e( 'Header Information', 'usces' ); ?></legend>
746 + <label for="chk_pro[ID]"><input type="checkbox" class="check_product" id="chk_pro[ID]" value="ID" checked disabled /><?php esc_html_e( 'ID', 'usces' ); ?></label>
747 + <label for="chk_pro[deco_id]"><input type="checkbox" class="check_product" id="chk_pro[deco_id]" value="deco_id" checked disabled /><?php esc_html_e( 'order number', 'usces' ); ?></label>
748 + <label for="chk_pro[date]"><input type="checkbox" class="check_product" id="chk_pro[date]" value="date"<?php usces_checked( $chk_pro, 'date' ); ?> /><?php esc_html_e( 'order date', 'usces' ); ?></label>
749 + <label for="chk_pro[mem_id]"><input type="checkbox" class="check_product" id="chk_pro[mem_id]" value="mem_id"<?php usces_checked( $chk_pro, 'mem_id' ); ?> /><?php esc_html_e( 'membership number', 'usces' ); ?></label>
750 + <label for="chk_pro[name]"><input type="checkbox" class="check_product" id="chk_pro[name]" value="name"<?php usces_checked( $chk_pro, 'name' ); ?> /><?php esc_html_e( 'name', 'usces' ); ?></label>
751 + <label for="chk_pro[delivery_method]"><input type="checkbox" class="check_product" id="chk_pro[delivery_method]" value="delivery_method"<?php usces_checked( $chk_pro, 'delivery_method' ); ?> /><?php esc_html_e( 'shipping option', 'usces' ); ?></label>
752 + <label for="chk_pro[shipping_date]"><input type="checkbox" class="check_product" id="chk_pro[shipping_date]" value="shipping_date"<?php usces_checked( $chk_pro, 'shipping_date' ); ?> /><?php esc_html_e( 'shpping date', 'usces' ); ?></label>
753 + <?php do_action( 'usces_action_chk_pro_head', $chk_pro ); ?>
754 + </fieldset>
755 + <fieldset><legend><?php esc_html_e( 'Product Information', 'usces' ); ?></legend>
756 + <label for="chk_pro[item_code]"><input type="checkbox" class="check_product" id="chk_pro[item_code]" value="item_code" checked disabled /><?php esc_html_e( 'item code', 'usces' ); ?></label>
757 + <label for="chk_pro[sku_code]"><input type="checkbox" class="check_product" id="chk_pro[sku_code]" value="sku_code" checked disabled /><?php esc_html_e( 'SKU code', 'usces' ); ?></label>
758 + <label for="chk_pro[item_name]"><input type="checkbox" class="check_product" id="chk_pro[item_name]" value="item_name"<?php usces_checked( $chk_pro, 'item_name' ); ?> /><?php esc_html_e( 'item name', 'usces' ); ?></label>
759 + <label for="chk_pro[sku_name]"><input type="checkbox" class="check_product" id="chk_pro[sku_name]" value="sku_name"<?php usces_checked( $chk_pro, 'sku_name' ); ?> /><?php esc_html_e( 'SKU display name ', 'usces' ); ?></label>
760 + <label for="chk_pro[options]"><input type="checkbox" class="check_product" id="chk_pro[options]" value="options"<?php usces_checked( $chk_pro, 'options' ); ?> /><?php esc_html_e( 'options for items', 'usces' ); ?></label>
761 + <label for="chk_pro[quantity]"><input type="checkbox" class="check_product" id="chk_pro[quantity]" value="quantity" checked disabled /><?php esc_html_e( 'Quantity', 'usces' ); ?></label>
762 + <label for="chk_pro[price]"><input type="checkbox" class="check_product" id="chk_pro[price]" value="price" checked disabled /><?php esc_html_e( 'Unit price', 'usces' ); ?></label>
763 + <label for="chk_pro[unit]"><input type="checkbox" class="check_product" id="chk_pro[unit]" value="unit"<?php usces_checked( $chk_pro, 'unit' ); ?> /><?php esc_html_e( 'unit', 'usces' ); ?></label>
764 + <?php do_action( 'usces_action_chk_pro_detail', $chk_pro ); ?>
765 + </fieldset>
766 +</div>
767 +<div id="dlOrderListDialog" title="<?php esc_attr_e( 'Download Order List', 'usces' ); ?>">
768 + <p><?php esc_html_e( 'Select the item you want, please press the download.', 'usces' ); ?></p>
769 + <input type="button" class="button" id="dl_ord" value="<?php esc_attr_e( 'Download', 'usces' ); ?>" />
770 + <fieldset><legend><?php esc_html_e( 'Customer Information', 'usces' ); ?></legend>
771 + <label for="chk_ord[ID]"><input type="checkbox" class="check_order" id="chk_ord[ID]" value="ID" checked disabled /><?php esc_html_e( 'ID', 'usces' ); ?></label>
772 + <label for="chk_ord[deco_id]"><input type="checkbox" class="check_order" id="chk_ord[deco_id]" value="deco_id" checked disabled /><?php esc_html_e( 'Order number', 'usces' ); ?></label>
773 + <label for="chk_ord[date]"><input type="checkbox" class="check_order" id="chk_ord[date]" value="date" checked disabled /><?php esc_html_e( 'order date', 'usces' ); ?></label>
774 + <label for="chk_ord[mem_id]"><input type="checkbox" class="check_order" id="chk_ord[mem_id]" value="mem_id"<?php usces_checked( $chk_ord, 'mem_id' ); ?> /><?php esc_html_e( 'membership number', 'usces' ); ?></label>
775 + <label for="chk_ord[email]"><input type="checkbox" class="check_order" id="chk_ord[email]" value="email"<?php usces_checked( $chk_ord, 'email' ); ?> /><?php esc_html_e( 'e-mail', 'usces' ); ?></label>
776 +<?php
777 +if ( ! empty( $cscs_meta ) ) {
778 + foreach ( $cscs_meta as $key => $entry ) {
779 + if ( 'name_pre' == $entry['position'] ) {
780 + $cscs_key = 'cscs_' . $key;
781 + $checked = usces_checked( $chk_ord, $cscs_key, 'return' );
782 + $name = $entry['name'];
783 + echo '<label for="chk_ord[' . esc_attr( $cscs_key ) . ']"><input type="checkbox" class="check_order" id="chk_ord[' . esc_attr( $cscs_key ) . ']" value="' . esc_attr( $cscs_key ) . '"' . esc_attr( $checked ) . ' />' . esc_html( $name ) . '</label>';
784 + }
785 + }
786 +}
787 +?>
788 + <label for="chk_ord[name]"><input type="checkbox" class="check_order" id="chk_ord[name]" value="name" checked disabled /><?php esc_html_e( 'name', 'usces' ); ?></label>
789 +<?php
790 +switch ( $applyform ) {
791 + case 'JP':
792 + ?>
793 + <label for="chk_ord[kana]"><input type="checkbox" class="check_order" id="chk_ord[kana]" value="kana"<?php usces_checked( $chk_ord, 'kana' ); ?> /><?php esc_html_e( 'furigana', 'usces' ); ?></label>
794 + <?php
795 + break;
796 +}
797 +
798 +if ( ! empty( $cscs_meta ) ) {
799 + foreach ( $cscs_meta as $key => $entry ) {
800 + if ( 'name_after' == $entry['position'] ) {
801 + $cscs_key = 'cscs_' . $key;
802 + $checked = usces_checked( $chk_ord, $cscs_key, 'return' );
803 + $name = $entry['name'];
804 + echo '<label for="chk_ord[' . esc_attr( $cscs_key ) . ']"><input type="checkbox" class="check_order" id="chk_ord[' . esc_attr( $cscs_key ) . ']" value="' . esc_attr( $cscs_key ) . '"' . esc_attr( $checked ) . ' />' . esc_html( $name ) . '</label>';
805 + }
806 + }
807 +}
808 +
809 +switch ( $applyform ) {
810 + case 'JP':
811 + ?>
812 + <label for="chk_ord[zip]"><input type="checkbox" class="check_order" id="chk_ord[zip]" value="zip"<?php usces_checked( $chk_ord, 'zip' ); ?> /><?php esc_html_e( 'Zip/Postal Code', 'usces' ); ?></label>
813 + <label for="chk_ord[country]"><input type="checkbox" class="check_order" id="chk_ord[country]" value="country"<?php usces_checked( $chk_ord, 'country' ); ?> /><?php esc_html_e( 'Country', 'usces' ); ?></label>
814 + <label for="chk_ord[pref]"><input type="checkbox" class="check_order" id="chk_ord[pref]" value="pref"<?php usces_checked( $chk_ord, 'pref' ); ?> /><?php esc_html_e( 'Province', 'usces' ); ?></label>
815 + <label for="chk_ord[address1]"><input type="checkbox" class="check_order" id="chk_ord[address1]" value="address1"<?php usces_checked( $chk_ord, 'address1' ); ?> /><?php esc_html_e( 'city', 'usces' ); ?></label>
816 + <label for="chk_ord[address2]"><input type="checkbox" class="check_order" id="chk_ord[address2]" value="address2"<?php usces_checked( $chk_ord, 'address2' ); ?> /><?php esc_html_e( 'numbers', 'usces' ); ?></label>
817 + <label for="chk_ord[address3]"><input type="checkbox" class="check_order" id="chk_ord[address3]" value="address3"<?php usces_checked( $chk_ord, 'address3' ); ?> /><?php esc_html_e( 'building name', 'usces' ); ?></label>
818 + <label for="chk_ord[tel]"><input type="checkbox" class="check_order" id="chk_ord[tel]" value="tel"<?php usces_checked( $chk_ord, 'tel' ); ?> /><?php esc_html_e( 'Phone number', 'usces' ); ?></label>
819 + <label for="chk_ord[fax]"><input type="checkbox" class="check_order" id="chk_ord[fax]" value="fax"<?php usces_checked( $chk_ord, 'fax' ); ?> /><?php esc_html_e( 'FAX number', 'usces' ); ?></label>
820 + <?php
821 + break;
822 + case 'US':
823 + default:
824 + ?>
825 + <label for="chk_ord[address2]"><input type="checkbox" class="check_order" id="chk_ord[address2]" value="address2"<?php usces_checked( $chk_ord, 'address2' ); ?> /><?php esc_html_e( 'Address Line1', 'usces' ); ?></label>
826 + <label for="chk_ord[address3]"><input type="checkbox" class="check_order" id="chk_ord[address3]" value="address3"<?php usces_checked( $chk_ord, 'address3' ); ?> /><?php esc_html_e( 'Address Line2', 'usces' ); ?></label>
827 + <label for="chk_ord[address1]"><input type="checkbox" class="check_order" id="chk_ord[address1]" value="address1"<?php usces_checked( $chk_ord, 'address1' ); ?> /><?php esc_html_e( 'city', 'usces' ); ?></label>
828 + <label for="chk_ord[pref]"><input type="checkbox" class="check_order" id="chk_ord[pref]" value="pref"<?php usces_checked( $chk_ord, 'pref' ); ?> /><?php esc_html_e( 'State', 'usces' ); ?></label>
829 + <label for="chk_ord[country]"><input type="checkbox" class="check_order" id="chk_ord[country]" value="country"<?php usces_checked( $chk_ord, 'country' ); ?> /><?php esc_html_e( 'Country', 'usces' ); ?></label>
830 + <label for="chk_ord[zip]"><input type="checkbox" class="check_order" id="chk_ord[zip]" value="zip"<?php usces_checked( $chk_ord, 'zip' ); ?> /><?php esc_html_e( 'Zip', 'usces' ); ?></label>
831 + <label for="chk_ord[tel]"><input type="checkbox" class="check_order" id="chk_ord[tel]" value="tel"<?php usces_checked( $chk_ord, 'tel' ); ?> /><?php esc_html_e( 'Phone number', 'usces' ); ?></label>
832 + <label for="chk_ord[fax]"><input type="checkbox" class="check_order" id="chk_ord[fax]" value="fax"<?php usces_checked( $chk_ord, 'fax' ); ?> /><?php esc_html_e( 'FAX number', 'usces' ); ?></label>
833 + <?php
834 + break;
835 +}
836 +
837 +if ( ! empty( $cscs_meta ) ) {
838 + foreach ( $cscs_meta as $key => $entry ) {
839 + if ( 'fax_after' == $entry['position'] ) {
840 + $cscs_key = 'cscs_' . $key;
841 + $checked = usces_checked( $chk_ord, $cscs_key, 'return' );
842 + $name = $entry['name'];
843 + echo '<label for="chk_ord[' . esc_attr( $cscs_key ) . ']"><input type="checkbox" class="check_order" id="chk_ord[' . esc_attr( $cscs_key ) . ']" value="' . esc_attr( $cscs_key ) . '"' . esc_attr( $checked ) . ' />' . esc_html( $name ) . '</label>';
844 + }
845 + }
846 +}
847 +?>
848 + <?php do_action( 'usces_action_chk_ord_customer', $chk_ord ); ?>
849 + </fieldset>
850 + <fieldset><legend><?php esc_html_e( 'Shipping address information', 'usces' ); ?></legend>
851 +<?php
852 +if ( ! empty( $csde_meta ) ) {
853 + foreach ( $csde_meta as $key => $entry ) {
854 + if ( 'name_pre' == $entry['position'] ) {
855 + $csde_key = 'csde_' . $key;
856 + $checked = usces_checked( $chk_ord, $csde_key, 'return' );
857 + $name = $entry['name'];
858 + echo '<label for="chk_ord[' . esc_attr( $csde_key ) . ']"><input type="checkbox" class="check_order" id="chk_ord[' . esc_attr( $csde_key ) . ']" value="' . esc_attr( $csde_key ) . '"' . esc_attr( $checked ) . ' />' . esc_html( $name ) . '</label>';
859 + }
860 + }
861 +}
862 +?>
863 + <label for="chk_ord[delivery_name]"><input type="checkbox" class="check_order" id="chk_ord[delivery_name]" value="delivery_name"<?php usces_checked( $chk_ord, 'delivery_name' ); ?> /><?php esc_html_e( 'name', 'usces' ); ?></label>
864 +<?php
865 +switch ( $applyform ) {
866 + case 'JP':
867 + ?>
868 + <label for="chk_ord[delivery_kana]"><input type="checkbox" class="check_order" id="chk_ord[delivery_kana]" value="delivery_kana"<?php usces_checked( $chk_ord, 'delivery_kana' ); ?> /><?php esc_html_e( 'furigana', 'usces' ); ?></label>
869 + <?php
870 + break;
871 +}
872 +
873 +if ( ! empty( $csde_meta ) ) {
874 + foreach ( $csde_meta as $key => $entry ) {
875 + if ( 'name_after' == $entry['position'] ) {
876 + $csde_key = 'csde_' . $key;
877 + $checked = usces_checked( $chk_ord, $csde_key, 'return' );
878 + $name = $entry['name'];
879 + echo '<label for="chk_ord[' . esc_attr( $csde_key ) . ']"><input type="checkbox" class="check_order" id="chk_ord[' . esc_attr( $csde_key ) . ']" value="' . esc_attr( $csde_key ) . '"' . esc_attr( $checked ) . ' />' . esc_html( $name ) . '</label>';
880 + }
881 + }
882 +}
883 +
884 +switch ( $applyform ) {
885 + case 'JP':
886 + ?>
887 + <label for="chk_ord[delivery_zip]"><input type="checkbox" class="check_order" id="chk_ord[delivery_zip]" value="delivery_zip"<?php usces_checked( $chk_ord, 'delivery_zip' ); ?> /><?php esc_html_e( 'Zip/Postal Code', 'usces' ); ?></label>
888 + <label for="chk_ord[delivery_country]"><input type="checkbox" class="check_order" id="chk_ord[delivery_country]" value="delivery_country"<?php usces_checked( $chk_ord, 'delivery_country' ); ?> /><?php esc_html_e( 'Country', 'usces' ); ?></label>
889 + <label for="chk_ord[delivery_pref]"><input type="checkbox" class="check_order" id="chk_ord[delivery_pref]" value="delivery_pref"<?php usces_checked( $chk_ord, 'delivery_pref' ); ?> /><?php esc_html_e( 'Province', 'usces' ); ?></label>
890 + <label for="chk_ord[delivery_address1]"><input type="checkbox" class="check_order" id="chk_ord[delivery_address1]" value="delivery_address1"<?php usces_checked( $chk_ord, 'delivery_address1' ); ?> /><?php esc_html_e( 'city', 'usces' ); ?></label>
891 + <label for="chk_ord[delivery_address2]"><input type="checkbox" class="check_order" id="chk_ord[delivery_address2]" value="delivery_address2"<?php usces_checked( $chk_ord, 'delivery_address2' ); ?> /><?php esc_html_e( 'numbers', 'usces' ); ?></label>
892 + <label for="chk_ord[delivery_address3]"><input type="checkbox" class="check_order" id="chk_ord[delivery_address3]" value="delivery_address3"<?php usces_checked( $chk_ord, 'delivery_address3' ); ?> /><?php esc_html_e( 'building name', 'usces' ); ?></label>
893 + <label for="chk_ord[delivery_tel]"><input type="checkbox" class="check_order" id="chk_ord[delivery_tel]" value="delivery_tel"<?php usces_checked( $chk_ord, 'delivery_tel' ); ?> /><?php esc_html_e( 'Phone number', 'usces' ); ?></label>
894 + <label for="chk_ord[delivery_fax]"><input type="checkbox" class="check_order" id="chk_ord[delivery_fax]" value="delivery_fax"<?php usces_checked( $chk_ord, 'delivery_fax' ); ?> /><?php esc_html_e( 'FAX number', 'usces' ); ?></label>
895 + <?php
896 + break;
897 + case 'US':
898 + default:
899 + ?>
900 + <label for="chk_ord[delivery_address2]"><input type="checkbox" class="check_order" id="chk_ord[delivery_address2]" value="delivery_address2"<?php usces_checked( $chk_ord, 'delivery_address2' ); ?> /><?php esc_html_e( 'Address Line1', 'usces' ); ?></label>
901 + <label for="chk_ord[delivery_address3]"><input type="checkbox" class="check_order" id="chk_ord[delivery_address3]" value="delivery_address3"<?php usces_checked( $chk_ord, 'delivery_address3' ); ?> /><?php esc_html_e( 'Address Line2', 'usces' ); ?></label>
902 + <label for="chk_ord[delivery_address1]"><input type="checkbox" class="check_order" id="chk_ord[delivery_address1]" value="delivery_address1"<?php usces_checked( $chk_ord, 'delivery_address1' ); ?> /><?php esc_html_e( 'city', 'usces' ); ?></label>
903 + <label for="chk_ord[delivery_pref]"><input type="checkbox" class="check_order" id="chk_ord[delivery_pref]" value="delivery_pref"<?php usces_checked( $chk_ord, 'delivery_pref' ); ?> /><?php esc_html_e( 'State', 'usces' ); ?></label>
904 + <label for="chk_ord[delivery_country]"><input type="checkbox" class="check_order" id="chk_ord[delivery_country]" value="delivery_country"<?php usces_checked( $chk_ord, 'delivery_country' ); ?> /><?php esc_html_e( 'Country', 'usces' ); ?></label>
905 + <label for="chk_ord[delivery_zip]"><input type="checkbox" class="check_order" id="chk_ord[delivery_zip]" value="delivery_zip"<?php usces_checked( $chk_ord, 'delivery_zip' ); ?> /><?php esc_html_e( 'Zip', 'usces' ); ?></label>
906 + <label for="chk_ord[delivery_tel]"><input type="checkbox" class="check_order" id="chk_ord[delivery_tel]" value="delivery_tel"<?php usces_checked( $chk_ord, 'delivery_tel' ); ?> /><?php esc_html_e( 'Phone number', 'usces' ); ?></label>
907 + <label for="chk_ord[delivery_fax]"><input type="checkbox" class="check_order" id="chk_ord[delivery_fax]" value="delivery_fax"<?php usces_checked( $chk_ord, 'delivery_fax' ); ?> /><?php esc_html_e( 'FAX number', 'usces' ); ?></label>
908 + <?php
909 + break;
910 +}
911 +
912 +if ( ! empty( $csde_meta ) ) {
913 + foreach ( $csde_meta as $key => $entry ) {
914 + if ( 'fax_after' == $entry['position'] ) {
915 + $csde_key = 'csde_' . $key;
916 + $checked = usces_checked( $chk_ord, $csde_key, 'return' );
917 + $name = $entry['name'];
918 + echo '<label for="chk_ord[' . esc_attr( $csde_key ) . ']"><input type="checkbox" class="check_order" id="chk_ord[' . esc_attr( $csde_key ) . ']" value="' . esc_attr( $csde_key ) . '"' . esc_attr( $checked ) . ' />' . esc_html( $name ) . '</label>';
919 + }
920 + }
921 +}
922 +?>
923 + <?php do_action( 'usces_action_chk_ord_delivery', $chk_ord ); ?>
924 + </fieldset>
925 + <fieldset><legend><?php esc_html_e( 'Order Infomation', 'usces' ); ?></legend>
926 + <label for="chk_ord[shipping_date]"><input type="checkbox" class="check_order" id="chk_ord[shipping_date]" value="shipping_date"<?php usces_checked( $chk_ord, 'shipping_date' ); ?> /><?php esc_html_e( 'shpping date', 'usces' ); ?></label>
927 + <label for="chk_ord[peyment_method]"><input type="checkbox" class="check_order" id="chk_ord[peyment_method]" value="peyment_method"<?php usces_checked( $chk_ord, 'peyment_method' ); ?> /><?php esc_html_e( 'payment method', 'usces' ); ?></label>
928 + <label for="chk_ord[delivery_method]"><input type="checkbox" class="check_order" id="chk_ord[delivery_method]" value="delivery_method"<?php usces_checked( $chk_ord, 'delivery_method' ); ?> /><?php esc_html_e( 'shipping option', 'usces' ); ?></label>
929 + <label for="chk_ord[delivery_date]"><input type="checkbox" class="check_order" id="chk_ord[delivery_date]" value="delivery_date"<?php usces_checked( $chk_ord, 'delivery_date' ); ?> /><?php esc_html_e( 'Delivery date', 'usces' ); ?></label>
930 + <label for="chk_ord[delivery_time]"><input type="checkbox" class="check_order" id="chk_ord[delivery_time]" value="delivery_time"<?php usces_checked( $chk_ord, 'delivery_time' ); ?> /><?php esc_html_e( 'delivery time', 'usces' ); ?></label>
931 + <label for="chk_ord[delidue_date]"><input type="checkbox" class="check_order" id="chk_ord[delidue_date]" value="delidue_date"<?php usces_checked( $chk_ord, 'delidue_date' ); ?> /><?php esc_html_e( 'Shipping date', 'usces' ); ?></label>
932 + <label for="chk_ord[status]"><input type="checkbox" class="check_order" id="chk_ord[status]" value="status"<?php usces_checked( $chk_ord, 'status' ); ?> /><?php esc_html_e( 'Status', 'usces' ); ?></label>
933 + <label for="chk_ord[total_amount]"><input type="checkbox" class="check_order" id="chk_ord[total_amount]" value="total_amount" checked disabled /><?php esc_html_e( 'Total Amount', 'usces' ); ?></label>
934 + <label for="chk_ord[getpoint]"><input type="checkbox" class="check_order" id="chk_ord[getpoint]" value="getpoint"<?php usces_checked( $chk_ord, 'getpoint' ); ?> /><?php esc_html_e( 'granted points', 'usces' ); ?></label>
935 + <label for="chk_ord[usedpoint]"><input type="checkbox" class="check_order" id="chk_ord[usedpoint]" value="usedpoint"<?php usces_checked( $chk_ord, 'usedpoint' ); ?> /><?php esc_html_e( 'Used points', 'usces' ); ?></label>
936 + <label for="chk_ord[discount]"><input type="checkbox" class="check_order" id="chk_ord[discount]" value="discount" checked disabled /><?php esc_html_e( 'Discount', 'usces' ); ?></label>
937 + <label for="chk_ord[shipping_charge]"><input type="checkbox" class="check_order" id="chk_ord[shipping_charge]" value="shipping_charge" checked disabled /><?php esc_html_e( 'Shipping', 'usces' ); ?></label>
938 + <label for="chk_ord[cod_fee]"><input type="checkbox" class="check_order" id="chk_ord[cod_fee]" value="cod_fee" checked disabled /><?php echo apply_filters( 'usces_filter_cod_label', __( 'COD fee', 'usces' ) ); // phpcs:ignore ?></label>
939 + <label for="chk_ord[tax]"><input type="checkbox" class="check_order" id="chk_ord[tax]" value="tax" checked disabled /><?php esc_html_e( 'consumption tax', 'usces' ); ?></label>
940 + <label for="chk_ord[note]"><input type="checkbox" class="check_order" id="chk_ord[note]" value="note"<?php usces_checked( $chk_ord, 'note' ); ?> /><?php esc_html_e( 'Notes', 'usces' ); ?></label>
941 +<?php
942 +if ( ! empty( $csod_meta ) ) {
943 + foreach ( $csod_meta as $key => $entry ) {
944 + $csod_key = 'csod_' . $key;
945 + $checked = usces_checked( $chk_ord, $csod_key, 'return' );
946 + $name = $entry['name'];
947 + echo '<label for="chk_ord[' . esc_attr( $csod_key ) . ']"><input type="checkbox" class="check_order" id="chk_ord[' . esc_attr( $csod_key ) . ']" value="' . esc_attr( $csod_key ) . '"' . esc_attr( $checked ) . ' />' . esc_html( $name ) . '</label>';
948 + }
949 +}
950 +?>
951 + <?php do_action( 'usces_action_chk_ord_order', $chk_ord ); ?>
952 + </fieldset>
953 +</div>
954 +<?php echo apply_filters( 'usces_filter_order_list_footer', '' ); // phpcs:ignore ?>
955 +<?php wp_nonce_field( 'order_list', 'wc_nonce' ); ?>
956 +</form>
957 +<?php usces_order_list_form_settlement_dialog(); ?>
958 +<?php do_action( 'usces_action_order_list_footer' ); ?>
959 +</div><!--usces_admin-->
960 +</div><!--wrap-->