PluginProbe
Welcart e-Commerce / 1.3.2
Welcart e-Commerce v1.3.2
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
usc-e-shop / includes / order_list.php

order_list.php in Welcart e-Commerce 1.3.2, at includes/order_list.php

829 lines 43.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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 = $usces_opt_order['chk_pro'];
67 $chk_ord = $usces_opt_order['chk_ord'];
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( $("input[name*='listcheck']:checked").length == 0 ) {
105 alert("<?php _e('Choose the data.', 'usces'); ?>");
106 $("#oederlistaction").val('');
107 return false;
108 }
109 var coll = $("#changeselect").val();
110 var mes = '';
111 if( coll == 'order_reciept' ){
112 mes = <?php echo sprintf(__("'Transfer status of the items which you have checked will be changed in to ' + %s + '. %sDo you agree?'", 'usces'),
113 '$("select\[name=\"change\[word\]\[order_reciept\]\"\] option:selected").html()',
114 '\n\n'); ?>;
115 }else if( coll == 'order_status' ){
116 mes = <?php echo sprintf(__("'Data status which you have cheked will be changed in to ' + %s + '. %sDo you agree?'", 'usces'),
117 '$("select\[name=\"change\[word\]\[order_status\]\"\] option:selected").html()',
118 '\n\n'); ?>;
119 }else if(coll == 'delete'){
120 mes = '<?php _e('Are you sure of deleting all the checked data in bulk?', 'usces'); ?>';
121 }else{
122 $("#oederlistaction").val('');
123 return false;
124 }
125 if( !confirm(mes) ){
126 $("#oederlistaction").val('');
127 return false;
128 }
129 $("#oederlistaction").val('collective');
130 return true;
131 });
132
133 operation = {
134 change_search_field :function (){
135
136 var label = '';
137 var html = '';
138 var column = $("#searchselect").val();
139
140 if( column == 'ID' ) {
141 label = '<?php _e('key words', 'usces'); ?>';
142 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" />';
143 }else if( column == 'deco_id' ) {
144 label = '<?php _e('key words', 'usces'); ?>';
145 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" />';
146 }else if( column == 'date' ) {
147 label = '<?php _e('key words', 'usces'); ?>';
148 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" />';
149 }else if( column == 'mem_id' ) {
150 label = '<?php _e('key words', 'usces'); ?>';
151 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" />';
152 }else if( column == 'name' ) {
153 label = '<?php _e('key words', 'usces'); ?>';
154 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" />';
155 }else if( column == 'order_modified' ) {
156 label = '<?php _e('key words', 'usces'); ?>';
157 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" />';
158 }else if( column == 'pref' ) {
159 label = '';
160 html = '<select name="search[word][pref]" class="searchselect">';
161 <?php foreach((array)$pref as $pkey => $pvalue){
162 if( isset($arr_search['word']['pref']) && $pvalue == $arr_search['word']['pref']){
163 $pselected = ' selected="selected"';
164 }else{
165 $pselected = '';
166 }
167 ?>
168 html += '<option value="<?php echo esc_attr($pvalue); ?>"<?php echo $pselected ?>><?php echo esc_html($pvalue); ?></option>';
169 <?php } ?>
170 html += '</select>';
171 }else if( column == 'delivery_method' ) {
172 label = '';
173 html = '<select name="search[word][delivery_method]" class="searchselect">';
174 <?php foreach((array)$this->options['delivery_method'] as $dkey => $dvalue){
175 if( isset($arr_search['word']['delivery_method']) && $dvalue['id'] == $arr_search['word']['delivery_method']){
176 $dselected = ' selected="selected"';
177 }else{
178 $dselected = '';
179 }
180 ?>
181 html += '<option value="<?php echo esc_attr($dvalue['id']); ?>"<?php echo $dselected ?>><?php echo esc_html($dvalue['name']); ?></option>';
182 <?php } ?>
183 html += '</select>';
184 }else if( column == 'payment_name' ) {
185 label = '';
186 html = '<select name="search[word][payment_name]" class="searchselect">';
187 <?php foreach((array)$payment_name as $pnkey => $pnvalue){
188 if( isset($arr_search['word']['payment_name']) && $pnvalue == $arr_search['word']['payment_name']){
189 $pnselected = ' selected="selected"';
190 }else{
191 $pnselected = '';
192 }
193 ?>
194 html += '<option value="<?php echo esc_attr($pnvalue); ?>"<?php echo $pnselected ?>><?php echo esc_html($pnvalue); ?></option>';
195 <?php } ?>
196 html += '</select>';
197 }else if( column == 'receipt_status' ) {
198 label = '';
199 html = '<select name="search[word][receipt_status]" class="searchselect">';
200 <?php foreach((array)$receipt_status as $rkey => $rvalue){
201 if( isset($arr_search['word']['receipt_status']) && $rvalue == $arr_search['word']['receipt_status']){
202 $rselected = ' selected="selected"';
203 }else{
204 $rselected = '';
205 }
206 ?>
207 html += '<option value="<?php echo esc_attr($rvalue); ?>"<?php echo $rselected ?>><?php echo esc_html($rvalue); ?></option>';
208 <?php } ?>
209 html += '</select>';
210 }else if( column == 'order_status' ) {
211 label = '';
212 html = '<select name="search[word][order_status]" class="searchselect">';
213 <?php foreach((array)$order_status as $okey => $ovalue){
214 if( isset($arr_search['word']['order_status']) && $ovalue == $arr_search['word']['order_status']){
215 $oselected = ' selected="selected"';
216 }else{
217 $oselected = '';
218 }
219 ?>
220 html += '<option value="<?php echo esc_attr($ovalue); ?>"<?php echo $oselected ?>><?php echo esc_html($ovalue); ?></option>';
221 <?php } ?>
222 html += '</select>';
223 }
224
225 $("#searchlabel").html( label );
226 $("#searchfield").html( html );
227
228 },
229
230 change_collective_field :function (){
231
232 var label = '';
233 var html = '';
234 var column = $("#changeselect").val();
235
236 if( column == 'order_reciept' ) {
237 label = '';
238 html = '<select name="change[word][order_reciept]" class="searchselect">';
239 <?php foreach((array)$receipt_status as $orkey => $orvalue){ ?>
240 html += '<option value="<?php echo esc_attr($orkey); ?>"><?php echo esc_html($orvalue); ?></option>';
241 <?php } ?>
242 html += '</select>';
243 }else if( column == 'order_status' ) {
244 label = '';
245 html = '<select name="change[word][order_status]" class="searchselect">';
246 <?php foreach((array)$order_status as $oskey => $osvalue){ ?>
247 html += '<option value="<?php echo esc_attr($oskey); ?>"><?php echo esc_html($osvalue); ?></option>';
248 <?php } ?>
249 html += '</select>';
250 }else if( column == 'delete' ) {
251 label = '';
252 html = '';
253 }
254
255 $("#changelabel").html( label );
256 $("#changefield").html( html );
257
258 }
259 };
260 <?php echo apply_filters('usces_filter_order_list_page_js', ''); ?>
261 });
262
263 function toggleVisibility(id) {
264 var e = document.getElementById(id);
265 if(e.style.display == 'block') {
266 e.style.display = 'none';
267 document.getElementById("searchSwitchStatus").value = 'OFF';
268 } else {
269 e.style.display = 'block';
270 document.getElementById("searchSwitchStatus").value = 'ON';
271 document.getElementById("searchVisiLink").style.display = 'none';
272 }
273 };
274
275 function deleteconfirm(order_id){
276 if(confirm(<?php _e("'Are you sure of deleting an order number ' + order_id + ' ?'", 'usces'); ?>)){
277 return true;
278 }else{
279 return false;
280 }
281 }
282
283 jQuery(document).ready(function($){
284 $("table#mainDataTable tr:even").addClass("rowSelection_even");
285 $("table#mainDataTable tr").hover(function() {
286 $(this).addClass("rowSelection_hilight");
287 },
288 function() {
289 $(this).removeClass("rowSelection_hilight");
290 });
291 if( $("#searchSwitchStatus").val() == 'OFF'){
292 $("#searchBox").css("display", "none");
293 $("#searchVisiLink").html('<?php _e('Show the Operation field', 'usces'); ?>');
294 } else {
295 $("#searchBox").css("display", "block");
296 $("#searchVisiLink").css("display", "none");
297 }
298
299 operation.change_search_field();
300
301 //20100908ysk start
302 $("#dlProductListDialog").dialog({
303 bgiframe: true,
304 autoOpen: false,
305 height: 400,
306 width: 700,
307 resizable: true,
308 modal: true,
309 buttons: {
310 '<?php _e('close', 'usces'); ?>': function() {
311 $(this).dialog('close');
312 }
313 },
314 close: function() {
315 }
316 });
317 $('#dl_pro').click(function() {
318 //20120123ysk start 0000385
319 //var args = "&search[column]="+$(':input[name="search[column]"]').val()
320 // +"&search[word]["+$("#searchselect").val()+"]="+$(':input[name="search[word]['+$("#searchselect").val()+']"]').val()
321 // +"&search[period]="+$(':input[name="search[period]"]').val()
322 // +"&searchSwitchStatus="+$(':input[name="searchSwitchStatus"]').val()
323 // +"&ftype="+$(':input[name="ftype_pro[]"]:checked').val();
324 var args = "&search[column]="+$(':input[name="search[column]"]').val()
325 +"&search[word]["+$("#searchselect").val()+"]="+$(':input[name="search[word]['+$("#searchselect").val()+']"]').val()
326 +"&search[period]="+$(':input[name="search[period]"]').val()
327 +"&searchSwitchStatus="+$(':input[name="searchSwitchStatus"]').val()
328 +"&ftype=csv";
329 //20120123ysk end
330 $(".check_product").each(function(i) {
331 if($(this).attr('checked')) {
332 args += '&check['+$(this).val()+']=on';
333 }
334 });
335 location.href = "<?php echo USCES_ADMIN_URL; ?>?page=usces_orderlist&order_action=dlproductlist&noheader=true"+args;
336 });
337 $('#dl_productlist').click(function() {
338 $('#dlProductListDialog').dialog('open');
339 });
340
341 $("#dlOrderListDialog").dialog({
342 bgiframe: true,
343 autoOpen: false,
344 height: 600,
345 width: 700,
346 resizable: true,
347 modal: true,
348 buttons: {
349 '<?php _e('close', 'usces'); ?>': function() {
350 $(this).dialog('close');
351 }
352 },
353 close: function() {
354 }
355 });
356 $('#dl_ord').click(function() {
357 //20120123ysk start 0000385
358 //var args = "&search[column]="+$(':input[name="search[column]"]').val()
359 // +"&search[word]["+$("#searchselect").val()+"]="+$(':input[name="search[word]['+$("#searchselect").val()+']"]').val()
360 // +"&search[period]="+$(':input[name="search[period]"]').val()
361 // +"&searchSwitchStatus="+$(':input[name="searchSwitchStatus"]').val()
362 // +"&ftype="+$(':input[name="ftype_ord[]"]:checked').val();
363 var args = "&search[column]="+$(':input[name="search[column]"]').val()
364 +"&search[word]["+$("#searchselect").val()+"]="+$(':input[name="search[word]['+$("#searchselect").val()+']"]').val()
365 +"&search[period]="+$(':input[name="search[period]"]').val()
366 +"&searchSwitchStatus="+$(':input[name="searchSwitchStatus"]').val()
367 +"&ftype=csv";
368 //20120123ysk end
369 $(".check_order").each(function(i) {
370 if($(this).attr('checked')) {
371 args += '&check['+$(this).val()+']=on';
372 }
373 });
374 location.href = "<?php echo USCES_ADMIN_URL; ?>?page=usces_orderlist&order_action=dlorderlist&noheader=true"+args;
375 });
376 $('#dl_orderlist').click(function() {
377 $('#dlOrderListDialog').dialog('open');
378 });
379 <?php do_action('usces_action_order_list_document_ready_js'); ?>
380 //20100908ysk end
381 });
382 </script>
383
384 <div class="wrap">
385 <div class="usces_admin">
386 <form action="<?php echo USCES_ADMIN_URL.'?page=usces_orderlist'; ?>" method="post" name="tablesearch">
387
388 <h2>Welcart Management <?php _e('Order List','usces'); ?></h2>
389 <p class="version_info">Version <?php echo USCES_VERSION; ?></p>
390 <div id="aniboxStatus" class="<?php echo $status; ?>">
391 <div id="anibox" class="clearfix">
392 <img src="<?php echo USCES_PLUGIN_URL; ?>/images/list_message_<?php echo $status; ?>.gif" />
393 <div class="mes" id="info_massage"><?php echo $message; ?></div>
394 </div>
395 </div>
396
397 <div id="datatable">
398 <div id="tablenavi"><?php echo $dataTableNavigation ?></div>
399
400 <div id="tablesearch">
401 <div id="searchBox">
402 <table id="search_table">
403 <tr>
404 <td><?php _e('search fields', 'usces'); ?></td>
405 <td><select name="search[column]" class="searchselect" id="searchselect">
406 <option value="none"> </option>
407 <?php foreach ((array)$arr_column as $key => $value):
408 if($value == $arr_search['column']){
409 $selected = ' selected="selected"';
410 }else{
411 $selected = '';
412 }
413 if($value == 'total_price') continue;
414 ?>
415 <option value="<?php echo esc_attr($value); ?>"<?php echo $selected ?>><?php echo esc_html($key); ?></option>
416 <?php endforeach; ?>
417 </select></td>
418 <td id="searchlabel"></td>
419 <td id="searchfield"></td>
420 <td><input name="searchIn" type="submit" class="searchbutton" value="<?php _e('Search', 'usces'); ?>" />
421 <input name="searchOut" type="submit" class="searchbutton" value="<?php _e('Cancellation', 'usces'); ?>" />
422 <input name="searchSwitchStatus" id="searchSwitchStatus" type="hidden" value="<?php echo esc_attr($DT->searchSwitchStatus); ?>" />
423 </td>
424 </tr>
425 </table>
426 <table id="period_table">
427 <tr>
428 <td><?php _e('Period', 'usces'); ?></td>
429 <td><select name="search[period]" class="searchselect">
430 <?php foreach ((array)$DT->arr_period as $key => $value):
431 if($key == $arr_search['period']){
432 $selected = ' selected="selected"';
433 }else{
434 $selected = '';
435 }
436 ?>
437 <option value="<?php echo esc_attr($key); ?>"<?php echo $selected ?>><?php echo esc_html($value); ?></option>
438 <?php endforeach; ?>
439 </select></td>
440 </tr>
441 </table>
442 <table id="change_table">
443 <tr>
444 <td><?php _e('Oparation in bulk', 'usces'); ?></td>
445 <td><select name="allchange[column]" class="searchselect" id="changeselect">
446 <option value="none"> </option>
447 <option value="order_reciept"><?php _e('Edit the receiving money status', 'usces'); ?></option>
448 <option value="order_status"><?php _e('Edit of status process', 'usces'); ?></option>
449 <option value="delete"><?php _e('Delete in bulk', 'usces'); ?></option>
450 </select></td>
451 <td id="changelabel"></td>
452 <td id="changefield"></td>
453 <td><input name="collective" type="submit" class="searchbutton" id="collective_change" value="<?php _e('start', 'usces'); ?>" />
454 </td>
455 </tr>
456 </table>
457 <input name="action" id="oederlistaction" type="hidden" />
458 <!--20100908ysk start-->
459 <table id="dl_list_table">
460 <tr>
461 <?php echo apply_filters('usces_filter_dl_list_table', ''); ?>
462 <td><input type="button" id="dl_productlist" class="searchbutton" value="<?php _e('Download Product List', 'usces'); ?>" /></td>
463 <td><input type="button" id="dl_orderlist" class="searchbutton" value="<?php _e('Download Order List', 'usces'); ?>" /></td>
464 </tr>
465 </table>
466 <!--20100908ysk end-->
467 </div>
468 </div>
469
470 <table id="mainDataTable" cellspacing="1">
471 <?php
472 //20120612ysk start 0000501
473 $list_header = '<th scope="col"><input name="allcheck" type="checkbox" value="" /></th>';
474 foreach( (array)$arr_header as $value ) {
475 $list_header .= '<th scope="col">'.$value.'</th>';
476 }
477 $list_header .= '<th scope="col">&nbsp;</th>';
478 //20120612ysk end
479 ?>
480 <tr>
481 <?php echo apply_filters('usces_filter_order_list_header', $list_header, $arr_header);//20120612ysk 0000501 ?>
482 </tr>
483 <?php foreach ( (array)$rows as $array ) : ?>
484 <?php
485 //20120612ysk start 0000501
486 $list_detail = '<td align="center"><input name="listcheck[]" type="checkbox" value="'.$array['ID'].'" /></td>';
487 foreach( (array)$array as $key => $value ) {
488 if( WCUtils::is_blank($value) ) $value = '&nbsp;';
489 if( $key === 'ID' || $key === 'deco_id' ) {
490 $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>';
491 } elseif( $key === 'mem_id' ) {
492 if( WCUtils::is_zero($value) ) $value = '&nbsp;';
493 $list_detail .= '<td>'.esc_html($value).'</td>';
494 } elseif( $key === 'name' ) {
495 switch ($applyform){
496 case 'JP':
497 $list_detail .= '<td>'.esc_html($value).'</td>';
498 break;
499 case 'US':
500 default:
501 $names = explode(' ', $value);
502 $list_detail .= '<td>'.esc_html($names[1].' '.$names[0]).'</td>';
503 }
504 } elseif( $key === 'delivery_method' ) {
505 if( -1 != $value ) {
506 $delivery_method_index = $this->get_delivery_method_index($value);
507 $value = $this->options['delivery_method'][$delivery_method_index]['name'];
508 } else {
509 $value = '&nbsp;';
510 }
511 $list_detail .= '<td class="green">'.esc_html($value).'</td>';
512 } elseif( $key === 'total_price' ) {
513 $list_detail .= '<td class="price">'.usces_crform( $value, true, false, 'return' ).'</td>';
514 } elseif( $key === 'payment_name' ) {
515 if( $value == '#none#' ) {
516 $list_detail .= '<td>&nbsp;</td>';
517 } else {
518 $list_detail .= '<td>'.esc_html($value).'</td>';
519 }
520 } elseif( $key === 'receipt_status' ) {
521 if( $value == __('unpaid', 'usces') ) {
522 $list_detail .= '<td class="red">'.esc_html($value).'</td>';
523 } elseif( $value == 'Pending' ) {
524 $list_detail .= '<td class="red">'.esc_html($value).'</td>';
525 } elseif( $value == __('payment confirmed', 'usces') ) {
526 $list_detail .= '<td class="green">'.esc_html($value).'</td>';
527 } else {
528 $list_detail .= '<td>'.esc_html($value).'</td>';
529 }
530 } elseif( $key === 'order_status' ) {
531 if( $value == __('It has sent it out.', 'usces') ) {
532 $list_detail .= '<td class="green">'.esc_html($value).'</td>';
533 } else {
534 $list_detail .= '<td>'.esc_html($value).'</td>';
535 }
536 } elseif( $key === 'date' || $key === 'pref' || $key === 'order_modified' ) {
537 $list_detail .= '<td>'.esc_html($value).'</td>';
538 }
539 }
540 $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>';
541 //20120612ysk end
542 ?>
543 <tr<?php echo apply_filters('usces_filter_order_list_detail_trclass', '', $array); ?>>
544 <?php echo apply_filters('usces_filter_order_list_detail', $list_detail, $array, $curent_url);//20120612ysk 0000501 ?>
545 </tr>
546 <?php endforeach; ?>
547 </table>
548
549 </div>
550 [memory peak usage] <?php echo round(memory_get_peak_usage()/1048576, 1); ?>Mb
551
552 <!--20100908ysk start-->
553 <div id="dlProductListDialog" title="<?php _e('Download Product List', 'usces'); ?>">
554 <p><?php _e('Select the item you want, please press the download.', 'usces'); ?></p>
555 <fieldset>
556 <input type="button" id="dl_pro" value="<?php _e('Download', 'usces'); ?>" />
557 </fieldset>
558 <fieldset><legend><?php _e('Header Information', 'usces'); ?></legend>
559 <label for="chk_pro[ID]"><input type="checkbox" class="check_product" id="chk_pro[ID]" value="ID" checked disabled /><?php _e('ID', 'usces'); ?></label>
560 <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>
561 <label for="chk_pro[date]"><input type="checkbox" class="check_product" id="chk_pro[date]" value="date"<?php if($chk_pro['date'] == 1) echo ' checked'; ?> /><?php _e('order date', 'usces'); ?></label>
562 <label for="chk_pro[mem_id]"><input type="checkbox" class="check_product" id="chk_pro[mem_id]" value="mem_id"<?php if($chk_pro['mem_id'] == 1) echo ' checked'; ?> /><?php _e('membership number', 'usces'); ?></label>
563 <label for="chk_pro[name]"><input type="checkbox" class="check_product" id="chk_pro[name]" value="name"<?php if($chk_pro['name'] == 1) echo ' checked'; ?> /><?php _e('name', 'usces'); ?></label>
564 <label for="chk_pro[delivery_method]"><input type="checkbox" class="check_product" id="chk_pro[delivery_method]" value="delivery_method"<?php if($chk_pro['delivery_method'] == 1) echo ' checked'; ?> /><?php _e('shipping option','usces'); ?></label>
565 <label for="chk_pro[shipping_date]"><input type="checkbox" class="check_product" id="chk_pro[shipping_date]" value="shipping_date"<?php if($chk_pro['shipping_date'] == 1) echo ' checked'; ?> /><?php _e('shpping date', 'usces'); ?></label>
566 <?php do_action( 'usces_action_chk_pro_head', $chk_pro ); ?>
567 </fieldset>
568 <fieldset><legend><?php _e('Product Information', 'usces'); ?></legend>
569 <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>
570 <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>
571 <label for="chk_pro[item_name]"><input type="checkbox" class="check_product" id="chk_pro[item_name]" value="item_name"<?php if($chk_pro['item_name'] == 1) echo ' checked'; ?> /><?php _e('item name', 'usces'); ?></label>
572 <label for="chk_pro[sku_name]"><input type="checkbox" class="check_product" id="chk_pro[sku_name]" value="sku_name"<?php if($chk_pro['sku_name'] == 1) echo ' checked'; ?> /><?php _e('SKU display name ', 'usces'); ?></label>
573 <label for="chk_pro[options]"><input type="checkbox" class="check_product" id="chk_pro[options]" value="options"<?php if($chk_pro['options'] == 1) echo ' checked'; ?> /><?php _e('options for items', 'usces'); ?></label>
574 <label for="chk_pro[quantity]"><input type="checkbox" class="check_product" id="chk_pro[quantity]" value="quantity" checked disabled /><?php _e('Quantity','usces'); ?></label>
575 <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>
576 <label for="chk_pro[unit]"><input type="checkbox" class="check_product" id="chk_pro[unit]" value="unit"<?php if($chk_pro['unit'] == 1) echo ' checked'; ?> /><?php _e('unit', 'usces'); ?></label>
577 <?php do_action( 'usces_action_chk_pro_detail', $chk_pro ); ?>
578 </fieldset>
579 </div>
580 <div id="dlOrderListDialog" title="<?php _e('Download Order List', 'usces'); ?>">
581 <p><?php _e('Select the item you want, please press the download.', 'usces'); ?></p>
582 <fieldset>
583 <input type="button" id="dl_ord" value="<?php _e('Download', 'usces'); ?>" />
584 </fieldset>
585 <fieldset><legend><?php _e('Customer Information', 'usces'); ?></legend>
586 <label for="chk_ord[ID]"><input type="checkbox" class="check_order" id="chk_ord[ID]" value="ID" checked disabled /><?php _e('ID', 'usces'); ?></label>
587 <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>
588 <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>
589 <label for="chk_ord[mem_id]"><input type="checkbox" class="check_order" id="chk_ord[mem_id]" value="mem_id"<?php if($chk_ord['mem_id'] == 1) echo ' checked'; ?> /><?php _e('membership number', 'usces'); ?></label>
590 <label for="chk_ord[email]"><input type="checkbox" class="check_order" id="chk_ord[email]" value="email"<?php if($chk_ord['email'] == 1) echo ' checked'; ?> /><?php _e('e-mail', 'usces'); ?></label>
591 <?php
592 if(!empty($cscs_meta)) {
593 foreach($cscs_meta as $key => $entry) {
594 if($entry['position'] == 'name_pre') {
595 //20110208ysk start
596 $cscs_key = 'cscs_'.$key;
597 //$checked = ($chk_ord[$entry['name']] == 1) ? ' checked' : '';
598 $checked = ($chk_ord[$cscs_key] == 1) ? ' checked' : '';
599 $name = esc_attr($entry['name']);
600 //echo '<label for="chk_ord['.$name.']"><input type="checkbox" class="check_order" id="chk_ord['.$name.']" value="'.$name.'"'.$checked.' />'.$name.'</label>';
601 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
602 //20110208ysk end
603 }
604 }
605 }
606 //20110411ysk start
607 ?>
608 <label for="chk_ord[name]"><input type="checkbox" class="check_order" id="chk_ord[name]" value="name" checked disabled /><?php _e('name', 'usces'); ?></label>
609 <?php
610 switch($applyform) {
611 case 'JP':
612 ?>
613 <label for="chk_ord[kana]"><input type="checkbox" class="check_order" id="chk_ord[kana]" value="kana"<?php if($chk_ord['kana'] == 1) echo ' checked'; ?> /><?php _e('furigana', 'usces'); ?></label>
614 <?php
615 break;
616 }
617 //20110411ysk end
618
619 if(!empty($cscs_meta)) {
620 foreach($cscs_meta as $key => $entry) {
621 if($entry['position'] == 'name_after') {
622 //20110208ysk start
623 $cscs_key = 'cscs_'.$key;
624 //$checked = ($chk_ord[$entry['name']] == 1) ? ' checked' : '';
625 $checked = ($chk_ord[$cscs_key] == 1) ? ' checked' : '';
626 $name = esc_attr($entry['name']);
627 //echo '<label for="chk_ord['.$name.']"><input type="checkbox" class="check_order" id="chk_ord['.$name.']" value="'.$name.'"'.$checked.' />'.$name.'</label>';
628 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
629 //20110208ysk end
630 }
631 }
632 }
633
634 //20110411ysk start
635 switch($applyform) {
636 case 'JP':
637 ?>
638 <label for="chk_ord[zip]"><input type="checkbox" class="check_order" id="chk_ord[zip]" value="zip"<?php if($chk_ord['zip'] == 1) echo ' checked'; ?> /><?php _e('Zip/Postal Code', 'usces'); ?></label>
639 <label for="chk_ord[country]"><input type="checkbox" class="check_order" id="chk_ord[country]" value="country"<?php if($chk_ord['country'] == 1) echo ' checked'; ?> /><?php _e('Country', 'usces'); ?></label>
640 <label for="chk_ord[pref]"><input type="checkbox" class="check_order" id="chk_ord[pref]" value="pref"<?php if($chk_ord['pref'] == 1) echo ' checked'; ?> /><?php _e('Province', 'usces'); ?></label>
641 <label for="chk_ord[address1]"><input type="checkbox" class="check_order" id="chk_ord[address1]" value="address1"<?php if($chk_ord['address1'] == 1) echo ' checked'; ?> /><?php _e('city', 'usces'); ?></label>
642 <label for="chk_ord[address2]"><input type="checkbox" class="check_order" id="chk_ord[address2]" value="address2"<?php if($chk_ord['address2'] == 1) echo ' checked'; ?> /><?php _e('numbers', 'usces'); ?></label>
643 <label for="chk_ord[address3]"><input type="checkbox" class="check_order" id="chk_ord[address3]" value="address3"<?php if($chk_ord['address3'] == 1) echo ' checked'; ?> /><?php _e('building name', 'usces'); ?></label>
644 <label for="chk_ord[tel]"><input type="checkbox" class="check_order" id="chk_ord[tel]" value="tel"<?php if($chk_ord['tel'] == 1) echo ' checked'; ?> /><?php _e('Phone number', 'usces'); ?></label>
645 <label for="chk_ord[fax]"><input type="checkbox" class="check_order" id="chk_ord[fax]" value="fax"<?php if($chk_ord['fax'] == 1) echo ' checked'; ?> /><?php _e('FAX number', 'usces'); ?></label>
646 <?php
647 break;
648 case 'US':
649 default:
650 ?>
651 <label for="chk_ord[address2]"><input type="checkbox" class="check_order" id="chk_ord[address2]" value="address2"<?php if($chk_ord['address2'] == 1) echo ' checked'; ?> /><?php _e('Address Line1', 'usces'); ?></label>
652 <label for="chk_ord[address3]"><input type="checkbox" class="check_order" id="chk_ord[address3]" value="address3"<?php if($chk_ord['address3'] == 1) echo ' checked'; ?> /><?php _e('Address Line2', 'usces'); ?></label>
653 <label for="chk_ord[address1]"><input type="checkbox" class="check_order" id="chk_ord[address1]" value="address1"<?php if($chk_ord['address1'] == 1) echo ' checked'; ?> /><?php _e('city', 'usces'); ?></label>
654 <label for="chk_ord[pref]"><input type="checkbox" class="check_order" id="chk_ord[pref]" value="pref"<?php if($chk_ord['pref'] == 1) echo ' checked'; ?> /><?php _e('State', 'usces'); ?></label>
655 <label for="chk_ord[country]"><input type="checkbox" class="check_order" id="chk_ord[country]" value="country"<?php if($chk_ord['country'] == 1) echo ' checked'; ?> /><?php _e('Country', 'usces'); ?></label>
656 <label for="chk_ord[zip]"><input type="checkbox" class="check_order" id="chk_ord[zip]" value="zip"<?php if($chk_ord['zip'] == 1) echo ' checked'; ?> /><?php _e('Zip', 'usces'); ?></label>
657 <label for="chk_ord[tel]"><input type="checkbox" class="check_order" id="chk_ord[tel]" value="tel"<?php if($chk_ord['tel'] == 1) echo ' checked'; ?> /><?php _e('Phone number', 'usces'); ?></label>
658 <label for="chk_ord[fax]"><input type="checkbox" class="check_order" id="chk_ord[fax]" value="fax"<?php if($chk_ord['fax'] == 1) echo ' checked'; ?> /><?php _e('FAX number', 'usces'); ?></label>
659 <?php
660 break;
661 }
662 //20110411ysk end
663
664 if(!empty($cscs_meta)) {
665 foreach($cscs_meta as $key => $entry) {
666 if($entry['position'] == 'fax_after') {
667 //20110208ysk start
668 $cscs_key = 'cscs_'.$key;
669 //$checked = ($chk_ord[$entry['name']] == 1) ? ' checked' : '';
670 $checked = ($chk_ord[$cscs_key] == 1) ? ' checked' : '';
671 $name = esc_attr($entry['name']);
672 //echo '<label for="chk_ord['.$name.']"><input type="checkbox" class="check_order" id="chk_ord['.$name.']" value="'.$name.'"'.$checked.' />'.$name.'</label>';
673 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
674 //20110208ysk end
675 }
676 }
677 }
678 ?>
679 <?php do_action( 'usces_action_chk_ord_customer', $chk_ord ); ?>
680 </fieldset>
681 <fieldset><legend><?php _e('Shipping address information', 'usces'); ?></legend>
682 <?php
683 if(!empty($csde_meta)) {
684 foreach($csde_meta as $key => $entry) {
685 if($entry['position'] == 'name_pre') {
686 //20110208ysk start
687 $csde_key = 'csde_'.$key;
688 //$checked = ($chk_ord[$entry['name']] == 1) ? ' checked' : '';
689 $checked = ($chk_ord[$csde_key] == 1) ? ' checked' : '';
690 $name = esc_attr($entry['name']);
691 //echo '<label for="chk_ord['.$name.']"><input type="checkbox" class="check_order" id="chk_ord['.$name.']" value="'.$name.'"'.$checked.' />'.$name.'</label>';
692 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
693 //20110208ysk end
694 }
695 }
696 }
697 //20110411ysk start
698 ?>
699 <label for="chk_ord[delivery_name]"><input type="checkbox" class="check_order" id="chk_ord[delivery_name]" value="delivery_name"<?php if($chk_ord['delivery_name'] == 1) echo ' checked'; ?> /><?php _e('name', 'usces'); ?></label>
700 <?php
701 switch($applyform) {
702 case 'JP':
703 ?>
704 <label for="chk_ord[delivery_kana]"><input type="checkbox" class="check_order" id="chk_ord[delivery_kana]" value="delivery_kana"<?php if($chk_ord['delivery_kana'] == 1) echo ' checked'; ?> /><?php _e('furigana', 'usces'); ?></label>
705 <?php
706 break;
707 }
708 //20110411ysk end
709
710 if(!empty($csde_meta)) {
711 foreach($csde_meta as $key => $entry) {
712 if($entry['position'] == 'name_after') {
713 //20110208ysk start
714 $csde_key = 'csde_'.$key;
715 //$checked = ($chk_ord[$entry['name']] == 1) ? ' checked' : '';
716 $checked = ($chk_ord[$csde_key] == 1) ? ' checked' : '';
717 $name = esc_attr($entry['name']);
718 //echo '<label for="chk_ord['.$name.']"><input type="checkbox" class="check_order" id="chk_ord['.$name.']" value="'.$name.'"'.$checked.' />'.$name.'</label>';
719 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
720 //20110208ysk end
721 }
722 }
723 }
724
725 //20110411ysk start
726 switch($applyform) {
727 case 'JP':
728 ?>
729 <label for="chk_ord[delivery_zip]"><input type="checkbox" class="check_order" id="chk_ord[delivery_zip]" value="delivery_zip"<?php if($chk_ord['delivery_zip'] == 1) echo ' checked'; ?> /><?php _e('Zip/Postal Code', 'usces'); ?></label>
730 <label for="chk_ord[delivery_country]"><input type="checkbox" class="check_order" id="chk_ord[delivery_country]" value="delivery_country"<?php if($chk_ord['delivery_country'] == 1) echo ' checked'; ?> /><?php _e('Country', 'usces'); ?></label>
731 <label for="chk_ord[delivery_pref]"><input type="checkbox" class="check_order" id="chk_ord[delivery_pref]" value="delivery_pref"<?php if($chk_ord['delivery_pref'] == 1) echo ' checked'; ?> /><?php _e('Province', 'usces'); ?></label>
732 <label for="chk_ord[delivery_address1]"><input type="checkbox" class="check_order" id="chk_ord[delivery_address1]" value="delivery_address1"<?php if($chk_ord['delivery_address1'] == 1) echo ' checked'; ?> /><?php _e('city', 'usces'); ?></label>
733 <label for="chk_ord[delivery_address2]"><input type="checkbox" class="check_order" id="chk_ord[delivery_address2]" value="delivery_address2"<?php if($chk_ord['delivery_address2'] == 1) echo ' checked'; ?> /><?php _e('numbers', 'usces'); ?></label>
734 <label for="chk_ord[delivery_address3]"><input type="checkbox" class="check_order" id="chk_ord[delivery_address3]" value="delivery_address3"<?php if($chk_ord['delivery_address3'] == 1) echo ' checked'; ?> /><?php _e('building name', 'usces'); ?></label>
735 <label for="chk_ord[delivery_tel]"><input type="checkbox" class="check_order" id="chk_ord[delivery_tel]" value="delivery_tel"<?php if($chk_ord['delivery_tel'] == 1) echo ' checked'; ?> /><?php _e('Phone number', 'usces'); ?></label>
736 <label for="chk_ord[delivery_fax]"><input type="checkbox" class="check_order" id="chk_ord[delivery_fax]" value="delivery_fax"<?php if($chk_ord['delivery_fax'] == 1) echo ' checked'; ?> /><?php _e('FAX number', 'usces'); ?></label>
737 <?php
738 break;
739 case 'US':
740 default:
741 ?>
742 <label for="chk_ord[delivery_address2]"><input type="checkbox" class="check_order" id="chk_ord[delivery_address2]" value="delivery_address2"<?php if($chk_ord['delivery_address2'] == 1) echo ' checked'; ?> /><?php _e('Address Line1', 'usces'); ?></label>
743 <label for="chk_ord[delivery_address3]"><input type="checkbox" class="check_order" id="chk_ord[delivery_address3]" value="delivery_address3"<?php if($chk_ord['delivery_address3'] == 1) echo ' checked'; ?> /><?php _e('Address Line2', 'usces'); ?></label>
744 <label for="chk_ord[delivery_address1]"><input type="checkbox" class="check_order" id="chk_ord[delivery_address1]" value="delivery_address1"<?php if($chk_ord['delivery_address1'] == 1) echo ' checked'; ?> /><?php _e('city', 'usces'); ?></label>
745 <label for="chk_ord[delivery_pref]"><input type="checkbox" class="check_order" id="chk_ord[delivery_pref]" value="delivery_pref"<?php if($chk_ord['delivery_pref'] == 1) echo ' checked'; ?> /><?php _e('State', 'usces'); ?></label>
746 <label for="chk_ord[delivery_country]"><input type="checkbox" class="check_order" id="chk_ord[delivery_country]" value="delivery_country"<?php if($chk_ord['delivery_country'] == 1) echo ' checked'; ?> /><?php _e('Country', 'usces'); ?></label>
747 <label for="chk_ord[delivery_zip]"><input type="checkbox" class="check_order" id="chk_ord[delivery_zip]" value="delivery_zip"<?php if($chk_ord['delivery_zip'] == 1) echo ' checked'; ?> /><?php _e('Zip', 'usces'); ?></label>
748 <label for="chk_ord[delivery_tel]"><input type="checkbox" class="check_order" id="chk_ord[delivery_tel]" value="delivery_tel"<?php if($chk_ord['delivery_tel'] == 1) echo ' checked'; ?> /><?php _e('Phone number', 'usces'); ?></label>
749 <label for="chk_ord[delivery_fax]"><input type="checkbox" class="check_order" id="chk_ord[delivery_fax]" value="delivery_fax"<?php if($chk_ord['delivery_fax'] == 1) echo ' checked'; ?> /><?php _e('FAX number', 'usces'); ?></label>
750 <?php
751 break;
752 }
753 //20110411ysk end
754
755 if(!empty($csde_meta)) {
756 foreach($csde_meta as $key => $entry) {
757 if($entry['position'] == 'fax_after') {
758 //20110208ysk start
759 $csde_key = 'csde_'.$key;
760 //$checked = ($chk_ord[$entry['name']] == 1) ? ' checked' : '';
761 $checked = ($chk_ord[$csde_key] == 1) ? ' checked' : '';
762 $name = esc_attr($entry['name']);
763 //echo '<label for="chk_ord['.$name.']"><input type="checkbox" class="check_order" id="chk_ord['.$name.']" value="'.$name.'"'.$checked.' />'.$name.'</label>';
764 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
765 //20110208ysk end
766 }
767 }
768 }
769 ?>
770 <?php do_action( 'usces_action_chk_ord_delivery', $chk_ord ); ?>
771 </fieldset>
772 <fieldset><legend><?php _e('Order Infomation', 'usces'); ?></legend>
773 <label for="chk_ord[shipping_date]"><input type="checkbox" class="check_order" id="chk_ord[shipping_date]" value="shipping_date"<?php if($chk_ord['shipping_date'] == 1) echo ' checked'; ?> /><?php _e('shpping date', 'usces'); ?></label>
774 <label for="chk_ord[peyment_method]"><input type="checkbox" class="check_order" id="chk_ord[peyment_method]" value="peyment_method"<?php if($chk_ord['peyment_method'] == 1) echo ' checked'; ?> /><?php _e('payment method','usces'); ?></label>
775 <label for="chk_ord[delivery_method]"><input type="checkbox" class="check_order" id="chk_ord[delivery_method]" value="delivery_method"<?php if($chk_ord['delivery_method'] == 1) echo ' checked'; ?> /><?php _e('shipping option','usces'); ?></label>
776 <!--20101208ysk start-->
777 <label for="chk_ord[delivery_date]"><input type="checkbox" class="check_order" id="chk_ord[delivery_date]" value="delivery_date"<?php if($chk_ord['delivery_date'] == 1) echo ' checked'; ?> /><?php _e('Delivery date','usces'); ?></label>
778 <!--20101208ysk end-->
779 <label for="chk_ord[delivery_time]"><input type="checkbox" class="check_order" id="chk_ord[delivery_time]" value="delivery_time"<?php if($chk_ord['delivery_time'] == 1) echo ' checked'; ?> /><?php _e('delivery time','usces'); ?></label>
780 <label for="chk_ord[delidue_date]"><input type="checkbox" class="check_order" id="chk_ord[delidue_date]" value="delidue_date"<?php if($chk_ord['delidue_date'] == 1) echo ' checked'; ?> /><?php _e('Shipping date', 'usces'); ?></label>
781 <label for="chk_ord[status]"><input type="checkbox" class="check_order" id="chk_ord[status]" value="status"<?php if($chk_ord['status'] == 1) echo ' checked'; ?> /><?php _e('Status', 'usces'); ?></label>
782 <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>
783 <label for="chk_ord[usedpoint]"><input type="checkbox" class="check_order" id="chk_ord[usedpoint]" value="usedpoint"<?php if($chk_ord['usedpoint'] == 1) echo ' checked'; ?> /><?php _e('Used points', 'usces'); ?></label>
784 <label for="chk_ord[discount]"><input type="checkbox" class="check_order" id="chk_ord[discount]" value="discount" checked disabled /><?php _e('Disnount', 'usces'); ?></label>
785 <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>
786 <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>
787 <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>
788 <label for="chk_ord[note]"><input type="checkbox" class="check_order" id="chk_ord[note]" value="note"<?php if($chk_ord['note'] == 1) echo ' checked'; ?> /><?php _e('Notes', 'usces'); ?></label>
789 <?php
790 if(!empty($csod_meta)) {
791 foreach($csod_meta as $key => $entry) {
792 //20110208ysk start
793 $csod_key = 'csod_'.$key;
794 //$checked = ($chk_ord[$entry['name']] == 1) ? ' checked' : '';
795 $checked = (isset($chk_ord[$csod_key]) && $chk_ord[$csod_key] == 1) ? ' checked' : '';
796 $name = esc_attr($entry['name']);
797 //echo '<label for="chk_ord['.$name.']"><input type="checkbox" class="check_order" id="chk_ord['.$name.']" value="'.$name.'"'.$checked.' />'.$name.'</label>';
798 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
799 //20110208ysk end
800 }
801 }
802 ?>
803 <?php do_action( 'usces_action_chk_ord_order', $chk_ord ); ?>
804 </fieldset>
805 </div>
806 <!--20100908ysk end-->
807 <?php echo apply_filters('usces_filter_order_list_footer', '');//20120612ysk 0000501 ?>
808
809 <!--<div class="chui">
810 <h3>受注詳細画面(作成中)について</h3>
811 <p>各行の受注番号をクリックすると受注詳細画面が表示されます。受注詳細画面では注文商品の追加、修正、削除など受注に関する�
812 �ての�
813 報を編集することができま、問い合わせや電話での変更依頼に対応します。</p>
814 <p>「見積り」ステイタスを利用することで見積りをメール送信できます。見積書印刷でFAX対応も可能です。注文をいただいた場合は「受注」ステイタスに変更することで、見積りの�
815 容がそのまま受注データとなります。</p>
816 <p>その他のステイタスには銀行振り込みの場合の「�
817 �金」ステイタス、発送完了した場合の「完了」、注文の「キャンセル」などがあり、各業務の終了後にステイタスを変更することを習�
818 �付ければ、複数の�
819 当�
820 での業務もスムーズに行うことができます。</p>
821 </div>
822 -->
823 </form>
824 </div><!--usces_admin-->
825 </div><!--wrap-->
826 <script type="text/javascript">
827 // rowSelection("mainDataTable");
828 </script>
829