| @@ -1,300 +1,424 @@ | ||
| 1 | -<?php | |
| 2 | -$status = $this->action_status; | |
| 3 | -$message = $this->action_message; | |
| 4 | -$this->action_status = 'none'; | |
| 5 | -$this->action_message = ''; | |
| 6 | - | |
| 7 | -$management_status = get_option('usces_management_status'); | |
| 8 | - | |
| 9 | - | |
| 10 | -$oa = 'editpost'; | |
| 11 | - | |
| 12 | -$ID = $_REQUEST['member_id']; | |
| 13 | -$member_metas = $this->get_member_meta($ID); | |
| 14 | -ksort($member_metas); | |
| 15 | -global $wpdb; | |
| 16 | - | |
| 17 | -$tableName = $wpdb->prefix . "usces_member"; | |
| 18 | -$query = $wpdb->prepare("SELECT * FROM $tableName WHERE ID = %d", $ID); | |
| 19 | -$data = $wpdb->get_row( $query, ARRAY_A ); | |
| 20 | - | |
| 21 | -$usces_member_history = $this->get_member_history($ID); | |
| 22 | - | |
| 23 | -//20100818ysk start | |
| 24 | -$csmb_meta = usces_has_custom_field_meta('member'); | |
| 25 | -if(is_array($csmb_meta)) { | |
| 26 | - $keys = array_keys($csmb_meta); | |
| 27 | - foreach($keys as $key) { | |
| 28 | - $csmb_key = 'csmb_'.$key; | |
| 29 | - $csmb_meta[$key]['data'] = maybe_unserialize($this->get_member_meta_value($csmb_key, $ID)); | |
| 30 | - } | |
| 31 | -} | |
| 32 | -//20100818ysk end | |
| 33 | - | |
| 34 | -if( usces_is_member_system() ){ | |
| 35 | - $colspan = 8; | |
| 36 | -}else{ | |
| 37 | - $colspan = 6; | |
| 38 | -} | |
| 39 | - | |
| 40 | -//$deli = unserialize($data['order_delivery']); | |
| 41 | -//$cart = unserialize($data['order_cart']); | |
| 42 | -//$condition = unserialize($data['order_condition']); | |
| 43 | -//$ordercheck = unserialize($data['order_check']); | |
| 44 | -//if( !is_array($ordercheck) ) $ordercheck = array(); | |
| 45 | -// | |
| 46 | -//if($this->is_status('duringorder', $data['order_status'])) | |
| 47 | -// $taio = 'duringorder'; | |
| 48 | -//else if($this->is_status('cancel', $data['order_status'])) | |
| 49 | -// $taio = 'cancel'; | |
| 50 | -//else if($this->is_status('completion', $data['order_status'])) | |
| 51 | -// $taio = 'completion'; | |
| 52 | -//else | |
| 53 | -// $taio = 'new'; | |
| 54 | -// | |
| 55 | -//if($this->is_status('estimate', $data['order_status'])) | |
| 56 | -// $admin = 'estimate'; | |
| 57 | -//else if($this->is_status('adminorder', $data['order_status'])) | |
| 58 | -// $admin = 'adminorder'; | |
| 59 | -//else | |
| 60 | -// $admin = ''; | |
| 61 | -// | |
| 62 | -//if($this->is_status('noreceipt', $data['order_status'])) | |
| 63 | -// $receipt = 'noreceipt'; | |
| 64 | -//else if($this->is_status('receipted', $data['order_status'])) | |
| 65 | -// $receipt = 'receipted'; | |
| 66 | -//else | |
| 67 | -// $receipt = ''; | |
| 68 | - | |
| 69 | -?> | |
| 70 | -<script type="text/javascript"> | |
| 71 | -jQuery(function($){ | |
| 72 | -<?php if($status == 'success'){ ?> | |
| 73 | - $("#anibox").animate({ backgroundColor: "#ECFFFF" }, 2000); | |
| 74 | -<?php }else if($status == 'caution'){ ?> | |
| 75 | - $("#anibox").animate({ backgroundColor: "#FFF5CE" }, 2000); | |
| 76 | -<?php }else if($status == 'error'){ ?> | |
| 77 | - $("#anibox").animate({ backgroundColor: "#FFE6E6" }, 2000); | |
| 78 | -<?php } ?> | |
| 79 | - | |
| 80 | - $(".num").bind("change", function(){ usces_check_num($(this)); }); | |
| 81 | - | |
| 82 | - $('form').submit(function() { | |
| 83 | - var error = 0; | |
| 84 | - | |
| 85 | - if( "" == $("input[name='member\[email\]']").val() ) { | |
| 86 | - error++; | |
| 87 | - $("input[name='member\[email\]']").css({'background-color': '#FFA'}).click(function() { | |
| 88 | - $(this).css({'background-color': '#FFF'}); | |
| 89 | - }); | |
| 90 | - } | |
| 91 | - if( !checkNum( $("input[name='member\[point\]']").val() ) ) { | |
| 92 | - error++; | |
| 93 | - $("input[name='member\[point\]']").css({'background-color': '#FFA'}).click(function() { | |
| 94 | - $(this).css({'background-color': '#FFF'}); | |
| 95 | - }); | |
| 96 | - } | |
| 97 | - | |
| 98 | - if( 0 < error ) { | |
| 99 | - $("#aniboxStatus").removeClass("none"); | |
| 100 | - $("#aniboxStatus").addClass("error"); | |
| 101 | - $("#info_image").attr("src", "<?php echo USCES_PLUGIN_URL; ?>/images/list_message_error.gif"); | |
| 102 | - $("#info_massage").html("データに不備があります"); | |
| 103 | - $("#anibox").animate({ backgroundColor: "#FFE6E6" }, 2000); | |
| 104 | - return false; | |
| 105 | - } else { | |
| 106 | - return true; | |
| 107 | - } | |
| 108 | - }); | |
| 109 | -}); | |
| 110 | - | |
| 111 | -function addComma(str) | |
| 112 | -{ | |
| 113 | - cnt = 0; | |
| 114 | - n = ""; | |
| 115 | - for (i=str.length-1; i>=0; i--) | |
| 116 | - { | |
| 117 | - n = str.charAt(i) + n; | |
| 118 | - cnt++; | |
| 119 | - if (((cnt % 3) == 0) && (i != 0)) n = ","+n; | |
| 120 | - } | |
| 121 | - return n; | |
| 122 | -}; | |
| 123 | -</script> | |
| 124 | -<div class="wrap"> | |
| 125 | -<div class="usces_admin"> | |
| 126 | -<form action="<?php echo USCES_ADMIN_URL.'?page=usces_memberlist&member_action='.$oa; ?>" method="post" name="editpost"> | |
| 127 | - | |
| 128 | -<h2>Welcart Management <?php _e('Edit membership data','usces'); ?></h2> | |
| 129 | -<p class="version_info">Version <?php echo USCES_VERSION; ?></p> | |
| 130 | -<div id="aniboxStatus" class="<?php echo $status; ?>"> | |
| 131 | - <div id="anibox" class="clearfix"> | |
| 132 | - <img id="info_image" src="<?php echo USCES_PLUGIN_URL; ?>/images/list_message_<?php echo $status; ?>.gif" /> | |
| 133 | - <div class="mes" id="info_massage"><?php echo $message; ?></div> | |
| 134 | - </div> | |
| 135 | -</div> | |
| 136 | -<div class="ordernavi"><input name="upButton" class="upButton" type="submit" value="<?php _e('change decision', 'usces'); ?>" /><?php _e("When you change amount, please click 'Edit' before you finish your process.", 'usces'); ?></div> | |
| 137 | -<div class="info_head"> | |
| 138 | -<div class="error_message"><?php echo $this->error_message; ?></div> | |
| 139 | -<table class="mem_wrap"> | |
| 140 | -<tr> | |
| 141 | -<td class="label"><?php _e('membership number', 'usces'); ?></td><td class="col1"><div class="rod large short"><?php echo esc_html($data['ID']); ?></div></td> | |
| 142 | -<td colspan="2" rowspan="5" class="mem_col2"> | |
| 143 | -<table class="mem_info"> | |
| 144 | - <tr> | |
| 145 | - <td class="label">e-mail</td> | |
| 146 | - <td><input name="member[email]" type="text" class="text long" value="<?php echo esc_attr($data['mem_email']); ?>" /></td> | |
| 147 | - </tr> | |
| 148 | - | |
| 149 | -<?php echo uesces_get_admin_addressform( 'member', $data, $csmb_meta ); ?> | |
| 150 | - | |
| 151 | -</table> | |
| 152 | -</td> | |
| 153 | -<td colspan="2" rowspan="5" class="mem_col3"> | |
| 154 | -<table class="mem_info"> | |
| 155 | -<?php | |
| 156 | - foreach($member_metas as $value){ | |
| 157 | - if( in_array($value['meta_key'], array('partofcard','limitofcard','remise_memid',)) ){ | |
| 158 | -?> | |
| 159 | - <tr> | |
| 160 | - <td class="label"><?php echo esc_html($value['meta_key']); ?></td> | |
| 161 | - <td><div class="rod_left"><?php echo esc_html($value['meta_value']); ?></div></td> | |
| 162 | - </tr> | |
| 163 | -<?php }} ?> | |
| 164 | -</table> | |
| 165 | - | |
| 166 | - | |
| 167 | -</td> | |
| 168 | - </tr> | |
| 169 | -<tr> | |
| 170 | -<td class="label"><?php _e('Rank', 'usces'); ?></td><td class="col1"><select name="member[status]"> | |
| 171 | -<?php | |
| 172 | - foreach ((array)$this->member_status as $rk => $rv) { | |
| 173 | - $selected = ($rk == $data['mem_status']) ? ' selected="selected"' : ''; | |
| 174 | -?> | |
| 175 | - <option value="<?php echo esc_attr($rk); ?>"<?php echo $selected; ?>><?php echo esc_html($rv); ?></option> | |
| 176 | -<?php } ?> | |
| 177 | -</select></td> | |
| 178 | -</tr> | |
| 179 | -<tr> | |
| 180 | -<td class="label"><?php _e('current point', 'usces'); ?></td><td class="col1"><input name="member[point]" type="text" class="text right short num" value="<?php echo esc_html($data['mem_point']); ?>" /></td> | |
| 181 | -<?php if( USCES_JP ): ?> | |
| 182 | -<?php endif; ?> | |
| 183 | -</tr> | |
| 184 | -<tr> | |
| 185 | -<td class="label"><?php _e('Strated date', 'usces'); ?></td><td class="col1"><div class="rod shortm"><?php echo esc_html(sprintf(__('%2$s %3$s, %1$s', 'usces'),substr($data['mem_registered'],0,4),substr($data['mem_registered'],5,2),substr($data['mem_registered'],8,2))); ?></div></td> | |
| 186 | -</tr> | |
| 187 | -<tr> | |
| 188 | -<td colspan="2"><?php do_action( 'usces_action_member_edit_form_left_blank', $ID ); ?></td> | |
| 189 | -</tr> | |
| 190 | -</table> | |
| 191 | -</div> | |
| 192 | -<div id="member_history"> | |
| 193 | -<table> | |
| 194 | -<?php if ( !count($usces_member_history) ) : ?> | |
| 195 | -<tr> | |
| 196 | -<td><?php _e('There is no purchase history for this moment.', 'usces'); ?></td> | |
| 197 | -</tr> | |
| 198 | -<?php endif; ?> | |
| 199 | -<?php foreach ( (array)$usces_member_history as $umhs ) : $cart = $umhs['cart']; ?> | |
| 200 | -<tr> | |
| 201 | -<th class="historyrow"><?php _e('Purchase date', 'usces'); ?></th> | |
| 202 | -<th class="historyrow"><?php _e('Purchase price', 'usces'); ?></th> | |
| 203 | -<th class="historyrow"><?php _e('Used points','usces'); ?></th> | |
| 204 | -<th class="historyrow"><?php echo apply_filters( 'usces_member_discount_label', __('Special Price', 'usces'), $umhs['ID'] ); ?></th> | |
| 205 | -<th class="historyrow"><?php _e('Shipping', 'usces'); ?></th> | |
| 206 | -<th class="historyrow"><?php _e('C.O.D', 'usces'); ?></th> | |
| 207 | -<th class="historyrow"><?php _e('consumption tax', 'usces'); ?></th> | |
| 208 | -<th class="historyrow"><?php _e('Acquired points', 'usces'); ?></th> | |
| 209 | -</tr> | |
| 210 | -<tr> | |
| 211 | -<td><?php echo $umhs['date']; ?></td> | |
| 212 | -<td class="rightnum"><?php usces_crform( $this->get_total_price($cart)-$umhs['usedpoint']+$umhs['discount']+$umhs['shipping_charge']+$umhs['cod_fee']+$umhs['tax'], true, false ); ?></td> | |
| 213 | -<td class="rightnum"><?php echo number_format($umhs['usedpoint']); ?></td> | |
| 214 | -<td class="rightnum"><?php usces_crform( $umhs['discount'], true, false ); ?></td> | |
| 215 | -<td class="rightnum"><?php usces_crform( $umhs['shipping_charge'], true, false ); ?></td> | |
| 216 | -<td class="rightnum"><?php usces_crform( $umhs['cod_fee'], true, false ); ?></td> | |
| 217 | -<td class="rightnum"><?php usces_crform( $umhs['tax'], true, false ); ?></td> | |
| 218 | -<td class="rightnum"><?php echo number_format($umhs['getpoint']); ?></td> | |
| 219 | -</tr> | |
| 220 | -<tr> | |
| 221 | -<td class="retail" colspan="8"> | |
| 222 | - <table id="retail_table"> | |
| 223 | - <tr> | |
| 224 | - <th scope="row" class="num"><?php echo __('No.','usces'); ?></th> | |
| 225 | - <th class="thumbnail"> </th> | |
| 226 | - <th><?php _e('Items','usces'); ?></th> | |
| 227 | - <th class="price "><?php _e('Unit price','usces'); ?>(<?php usces_crcode(); ?>)</th> | |
| 228 | - <th class="quantity"><?php _e('Quantity','usces'); ?></th> | |
| 229 | - <th class="subtotal"><?php _e('Amount','usces'); ?>(<?php usces_crcode(); ?>)</th> | |
| 230 | - </tr> | |
| 231 | - <?php | |
| 232 | - for($i=0; $i<count($cart); $i++) { | |
| 233 | - $cart_row = $cart[$i]; | |
| 234 | - $post_id = $cart_row['post_id']; | |
| 235 | - $sku = urldecode($cart_row['sku']); | |
| 236 | - $quantity = $cart_row['quantity']; | |
| 237 | - $options = $cart_row['options']; | |
| 238 | - $advance = $this->cart->wc_serialize($cart_row['advance']); | |
| 239 | - $itemCode = $this->getItemCode($post_id); | |
| 240 | - $itemName = $this->getItemName($post_id); | |
| 241 | - $cartItemName = $this->getCartItemName($post_id, $sku); | |
| 242 | - //$skuPrice = $this->getItemPrice($post_id, $sku); | |
| 243 | - $skuPrice = $cart_row['price']; | |
| 244 | - $pictid = (int)$this->get_mainpictid($itemCode); | |
| 245 | - $optstr = ''; | |
| 246 | - foreach((array)$options as $key => $value){ | |
| 247 | -//20110629ysk start 0000190 | |
| 248 | - //if( !empty($key) ) | |
| 249 | - // $optstr .= esc_html($key) . ' : ' . nl2br(esc_html(urldecode($value))) . "<br />\n"; | |
| 250 | - if( !empty($key) ) { | |
| 251 | - $key = urldecode($key); | |
| 252 | - if(is_array($value)) { | |
| 253 | - $c = ''; | |
| 254 | - $optstr .= esc_html($key) . ' : '; | |
| 255 | - foreach($value as $v) { | |
| 256 | - $optstr .= $c.nl2br(esc_html(urldecode($v))); | |
| 257 | - $c = ', '; | |
| 258 | - } | |
| 259 | - $optstr .= "<br />\n"; | |
| 260 | - } else { | |
| 261 | - $optstr .= esc_html($key) . ' : ' . nl2br(esc_html(urldecode($value))) . "<br />\n"; | |
| 262 | - } | |
| 263 | - } | |
| 264 | -//20110629ysk end | |
| 265 | - } | |
| 266 | - $materials = compact('i', 'cart_row', 'post_id', 'sku', 'quantity', 'options', 'advance', | |
| 267 | - 'itemCode', 'itemName', 'cartItemName', 'skuPrice', 'pictid'); | |
| 268 | - $optstr = apply_filters( 'usces_filter_member_edit_form_row', $optstr, $cart, $materials ); | |
| 269 | - ?> | |
| 270 | - <tr> | |
| 271 | - <td><?php echo $i + 1; ?></td> | |
| 272 | - <td><?php echo wp_get_attachment_image( $pictid, array(60, 60), true ); ?></td> | |
| 273 | - <td class="aleft"><?php echo esc_html($cartItemName); ?><br /><?php echo $optstr; ?></td> | |
| 274 | - <td class="rightnum"><?php usces_crform( $skuPrice, true, false ); ?></td> | |
| 275 | - <td class="rightnum"><?php echo number_format($cart_row['quantity']); ?></td> | |
| 276 | - <td class="rightnum"><?php usces_crform( $skuPrice * $cart_row['quantity'], true, false ); ?></td> | |
| 277 | - </tr> | |
| 278 | - <?php | |
| 279 | - } | |
| 280 | - ?> | |
| 281 | - </table> | |
| 282 | -</td> | |
| 283 | -</tr> | |
| 284 | -<?php endforeach; ?> | |
| 285 | -</table> | |
| 286 | -</div> | |
| 287 | -<input name="member_action" type="hidden" value="<?php echo $oa; ?>" /> | |
| 288 | -<input name="member_id" id="member_id" type="hidden" value="<?php echo $data['ID']; ?>" /> | |
| 289 | - | |
| 290 | - | |
| 291 | -<div id="mailSendAlert" title=""> | |
| 292 | - <div id="order-response"></div> | |
| 293 | - <fieldset> | |
| 294 | - </fieldset> | |
| 295 | -</div> | |
| 296 | - | |
| 297 | -</form> | |
| 298 | - | |
| 299 | -</div><!--usces_admin--> | |
| 300 | -</div><!--wrap--> | |
| 1 | +<?php | |
| 2 | +/** | |
| 3 | + * Member Edit Screen | |
| 4 | + * | |
| 5 | + * @package Welcart | |
| 6 | + */ | |
| 7 | + | |
| 8 | +if ( 'new' === $member_action ) { | |
| 9 | + $page = 'usces_membernew'; | |
| 10 | + $oa = 'newpost'; | |
| 11 | + $member_id = null; | |
| 12 | + $member_metas = array(); | |
| 13 | + $post_data = wp_unslash( $_POST ); | |
| 14 | + $data = array( | |
| 15 | + 'ID' => '', | |
| 16 | + 'mem_email' => ( isset( $post_data['member']['email'] ) ) ? $post_data['member']['email'] : '', | |
| 17 | + 'mem_pass' => ( isset( $post_data['member']['password'] ) ) ? $post_data['member']['password'] : '', | |
| 18 | + 'mem_status' => ( isset( $post_data['member']['status'] ) ) ? $post_data['member']['status'] : 0, | |
| 19 | + 'mem_cookie' => '', | |
| 20 | + 'mem_point' => ( isset( $post_data['member']['point'] ) ) ? $post_data['member']['point'] : 0, | |
| 21 | + 'mem_name1' => ( isset( $post_data['member']['name1'] ) ) ? $post_data['member']['name1'] : '', | |
| 22 | + 'mem_name2' => ( isset( $post_data['member']['name2'] ) ) ? $post_data['member']['name2'] : '', | |
| 23 | + 'mem_name3' => ( isset( $post_data['member']['name3'] ) ) ? $post_data['member']['name3'] : '', | |
| 24 | + 'mem_name4' => ( isset( $post_data['member']['name4'] ) ) ? $post_data['member']['name4'] : '', | |
| 25 | + 'mem_zip' => ( isset( $post_data['member']['zipcode'] ) ) ? usces_convert_zipcode( $post_data['member']['zipcode'] ) : '', | |
| 26 | + 'mem_pref' => ( isset( $post_data['member']['pref'] ) ) ? $post_data['member']['pref'] : '', | |
| 27 | + 'mem_address1' => ( isset( $post_data['member']['address1'] ) ) ? $post_data['member']['address1'] : '', | |
| 28 | + 'mem_address2' => ( isset( $post_data['member']['address2'] ) ) ? $post_data['member']['address2'] : '', | |
| 29 | + 'mem_address3' => ( isset( $post_data['member']['address3'] ) ) ? $post_data['member']['address3'] : '', | |
| 30 | + 'mem_tel' => ( isset( $post_data['member']['tel'] ) ) ? $post_data['member']['tel'] : '', | |
| 31 | + 'mem_fax' => ( isset( $post_data['member']['fax'] ) ) ? $post_data['member']['fax'] : '', | |
| 32 | + 'mem_delivery_flag' => '', | |
| 33 | + 'mem_delivery' => '', | |
| 34 | + 'mem_registered' => '', | |
| 35 | + 'mem_nicename' => '', | |
| 36 | + ); | |
| 37 | + | |
| 38 | + $usces_member_history = array(); | |
| 39 | + | |
| 40 | + $csmb_meta = usces_has_custom_field_meta( 'member' ); | |
| 41 | + if ( is_array( $csmb_meta ) ) { | |
| 42 | + $keys = array_keys( $csmb_meta ); | |
| 43 | + foreach ( $keys as $key ) { | |
| 44 | + if ( isset( $post_data['custom_member'][ $key ] ) ) { | |
| 45 | + $csmb_meta[ $key ]['data'] = $post_data['custom_member'][ $key ]; | |
| 46 | + } | |
| 47 | + } | |
| 48 | + } | |
| 49 | + $admb_meta = usces_has_custom_field_meta( 'admin_member' ); | |
| 50 | + if ( is_array( $admb_meta ) ) { | |
| 51 | + $keys = array_keys( $admb_meta ); | |
| 52 | + foreach ( $keys as $key ) { | |
| 53 | + if ( isset( $post_data['admin_custom_member'][ $key ] ) ) { | |
| 54 | + $admb_meta[ $key ]['data'] = $post_data['admin_custom_member'][ $key ]; | |
| 55 | + } | |
| 56 | + } | |
| 57 | + } | |
| 58 | + $navibutton = ''; | |
| 59 | +} else { | |
| 60 | + $page = 'usces_memberlist'; | |
| 61 | + $oa = 'editpost'; | |
| 62 | + $member_id = wp_unslash( $_REQUEST['member_id'] ); | |
| 63 | + $member_metas = $this->get_member_meta( $member_id ); | |
| 64 | + if ( ! $member_metas ) { | |
| 65 | + $member_metas = array(); | |
| 66 | + } | |
| 67 | + ksort( $member_metas ); | |
| 68 | + global $wpdb; | |
| 69 | + | |
| 70 | + $member_table = usces_get_tablename( 'usces_member' ); | |
| 71 | + $query = $wpdb->prepare( "SELECT * FROM $member_table WHERE `ID` = %d", $member_id ); | |
| 72 | + $data = $wpdb->get_row( $query, ARRAY_A ); | |
| 73 | + | |
| 74 | + $usces_member_history = $this->get_member_history( $member_id ); | |
| 75 | + if ( ! $usces_member_history ) { | |
| 76 | + $usces_member_history = array(); | |
| 77 | + } | |
| 78 | + $csmb_meta = usces_has_custom_field_meta( 'member' ); | |
| 79 | + if ( is_array( $csmb_meta ) ) { | |
| 80 | + $keys = array_keys( $csmb_meta ); | |
| 81 | + foreach ( $keys as $key ) { | |
| 82 | + $csmb_meta[ $key ]['data'] = wel_safe_maybe_unserialize( $this->get_member_meta_value( 'csmb_' . $key, $member_id ) ); | |
| 83 | + } | |
| 84 | + } | |
| 85 | + $admb_meta = usces_has_custom_field_meta( 'admin_member' ); | |
| 86 | + if ( is_array( $admb_meta ) ) { | |
| 87 | + $keys = array_keys( $admb_meta ); | |
| 88 | + foreach ( $keys as $key ) { | |
| 89 | + $admb_meta[ $key ]['data'] = wel_safe_maybe_unserialize( $this->get_member_meta_value( 'admb_' . $key, $member_id ) ); | |
| 90 | + } | |
| 91 | + } | |
| 92 | + | |
| 93 | + $exopt = get_option( 'usces_ex', array() ); | |
| 94 | + if ( isset( $exopt['system']['datalistup']['memberlist_flag'] ) && $exopt['system']['datalistup']['memberlist_flag'] ) { | |
| 95 | + $navibutton = ''; | |
| 96 | + $navibutton .= '<a javascript:; class="prev-page" style="display:none"><span class="dashicons dashicons-arrow-left-alt2"></span>' . __( 'to prev page', 'usces' ) . '</a>'; | |
| 97 | + | |
| 98 | + $url = admin_url( 'admin.php?page=usces_memberlist&returnList=1' ); | |
| 99 | + $nonce_url = wp_nonce_url( $url, 'member_list', 'wc_nonce' ); | |
| 100 | + $navibutton .= '<a href="' . esc_url( $nonce_url ) . '" class="back-list"><span class="dashicons dashicons-list-view"></span>' . __( 'to member list', 'usces' ) . '</a>'; | |
| 101 | + $navibutton .= '<a javascript:; class="next-page" style="display:none">' . __( 'to next page', 'usces' ) . '<span class="dashicons dashicons-arrow-right-alt2"></span></a>'; | |
| 102 | + } else { | |
| 103 | + $url = admin_url( 'admin.php?page=usces_memberlist&returnList=1' ); | |
| 104 | + $nonce_url = wp_nonce_url( $url, 'member_list', 'wc_nonce' ); | |
| 105 | + $navibutton = '<a href="' . esc_url( $nonce_url ) . '" class="back-list"><span class="dashicons dashicons-list-view"></span>' . __( 'to member list', 'usces' ) . '</a>'; | |
| 106 | + } | |
| 107 | +} | |
| 108 | + | |
| 109 | +$mem_registered = ( ! empty( $data['mem_registered'] ) ) ? sprintf( __( '%2$s %3$s, %1$s', 'usces' ), substr( $data['mem_registered'], 0, 4 ), substr( $data['mem_registered'], 5, 2 ), substr( $data['mem_registered'], 8, 2 ) ) : ''; | |
| 110 | + | |
| 111 | +$curent_url = urlencode( esc_url( USCES_ADMIN_URL . '?' . $_SERVER['QUERY_STRING'] ) ); | |
| 112 | +?> | |
| 113 | +<script type="text/javascript"> | |
| 114 | +jQuery(document).ready(function($) { | |
| 115 | + // load show nav prev, next link. | |
| 116 | + var sub_uri_link = '<?php echo esc_url_raw( USCES_ADMIN_URL ) . '?page=usces_memberlist&member_action=edit&wc_nonce=' . wp_create_nonce( 'member_list' ) . '&member_id='; ?>'; | |
| 117 | + welPageNav.checkShowNextprevPage( 'wel_member_current_page_ids', sub_uri_link, <?php echo esc_attr( $member_id ); ?> ); | |
| 118 | +}); | |
| 119 | +function addComma(str) { | |
| 120 | + cnt = 0; | |
| 121 | + n = ""; | |
| 122 | + for (i=str.length-1; i>=0; i--) { | |
| 123 | + n = str.charAt(i) + n; | |
| 124 | + cnt++; | |
| 125 | + if (((cnt % 3) == 0) && (i != 0)) n = ","+n; | |
| 126 | + } | |
| 127 | + return n; | |
| 128 | +}; | |
| 129 | +</script> | |
| 130 | +<div class="wrap"> | |
| 131 | +<div class="usces_admin"> | |
| 132 | +<form action="<?php echo esc_url( USCES_ADMIN_URL . '?page=' . $page . '&member_action=' . $oa ); ?>" method="post" name="editpost"> | |
| 133 | +<?php if ( 'new' === $member_action ) : ?> | |
| 134 | +<h1>Welcart Management <?php esc_html_e( 'New Membership Registration', 'usces' ); ?></h1> | |
| 135 | +<?php else : ?> | |
| 136 | +<h1>Welcart Management <?php esc_html_e( 'Edit membership data', 'usces' ); ?></h1> | |
| 137 | +<?php endif; ?> | |
| 138 | +<p class="version_info">Version <?php echo esc_html( USCES_VERSION ); ?></p> | |
| 139 | +<?php usces_admin_action_status(); ?> | |
| 140 | +<?php | |
| 141 | +if ( $navibutton ) { | |
| 142 | + echo '<div class="edit_pagenav">' . wp_kses_post( $navibutton ) . '</div>'; | |
| 143 | +} | |
| 144 | +?> | |
| 145 | +<div class="usces_tablenav usces_tablenav_top"> | |
| 146 | +<div class="ordernavi"><input name="upButton" class="button button-primary" type="submit" value="<?php esc_attr_e( 'change decision', 'usces' ); ?>" /><?php esc_html_e( "When you change amount, please click 'Edit' before you finish your process.", 'usces' ); ?></div> | |
| 147 | +</div> | |
| 148 | + | |
| 149 | +<div class="info_head"> | |
| 150 | +<table class="mem_wrap"> | |
| 151 | +<tr> | |
| 152 | +<td class="label"><?php esc_html_e( 'membership number', 'usces' ); ?></td><td class="col1"><div class="rod large short"><?php echo esc_html( $data['ID'] ); ?></div></td> | |
| 153 | +<td colspan="2" rowspan="5" class="mem_col2"> | |
| 154 | +<table class="mem_info"> | |
| 155 | + <tr> | |
| 156 | + <td class="label">e-mail</td> | |
| 157 | + <td><input name="member[email]" type="text" class="text long" value="<?php echo esc_attr( $data['mem_email'] ); ?>" /></td> | |
| 158 | + </tr> | |
| 159 | +<?php if ( 'new' === $member_action ) : ?> | |
| 160 | + <tr> | |
| 161 | + <td class="label"><?php esc_html_e( 'password', 'usces' ); ?></td> | |
| 162 | + <td><input name="member[password]" type="text" class="text" value="<?php echo esc_attr( $data['mem_pass'] ); ?>" autocomplete="off" /></td> | |
| 163 | + </tr> | |
| 164 | +<?php endif; ?> | |
| 165 | +<?php | |
| 166 | +uesces_get_admin_addressform( 'member', $data, $csmb_meta, 'echo' ); | |
| 167 | +usces_admin_custom_field_input( $admb_meta, 'admin_member', 'fax_after' ); | |
| 168 | +?> | |
| 169 | +</table> | |
| 170 | +</td> | |
| 171 | +<td colspan="2" rowspan="5" class="mem_col3"> | |
| 172 | +<table class="mem_info"> | |
| 173 | +<?php do_action( 'usces_action_admin_member_info', $data, $member_metas, $usces_member_history ); ?> | |
| 174 | +</table> | |
| 175 | + | |
| 176 | + | |
| 177 | +</td> | |
| 178 | + </tr> | |
| 179 | +<tr> | |
| 180 | +<td class="label"><?php esc_html_e( 'Rank', 'usces' ); ?></td><td class="col1"><select name="member[status]"> | |
| 181 | +<?php foreach ( (array) $this->member_status as $rk => $rv ) : ?> | |
| 182 | + <option value="<?php echo esc_attr( $rk ); ?>"<?php selected( $data['mem_status'], $rk ); ?>><?php echo esc_html( $rv ); ?></option> | |
| 183 | +<?php endforeach; ?> | |
| 184 | +</select></td> | |
| 185 | +</tr> | |
| 186 | +<?php if ( usces_is_membersystem_point() ) : ?> | |
| 187 | +<tr> | |
| 188 | +<td class="label"><?php esc_html_e( 'current point', 'usces' ); ?></td><td class="col1"><input name="member[point]" type="text" class="text right short num" value="<?php echo esc_attr( $data['mem_point'] ); ?>" /></td> | |
| 189 | +</tr> | |
| 190 | +<?php endif; ?> | |
| 191 | +<tr> | |
| 192 | +<td class="label"><?php esc_html_e( 'Strated date', 'usces' ); ?></td><td class="col1"><div class="rod shortm"><?php echo esc_html( $mem_registered ); ?></div></td> | |
| 193 | +</tr> | |
| 194 | +<tr> | |
| 195 | +<td colspan="2"><?php do_action( 'usces_action_member_edit_form_left_blank', $member_id, $data, $csmb_meta ); ?></td> | |
| 196 | +</tr> | |
| 197 | +</table> | |
| 198 | +<?php if ( ! usces_is_membersystem_point() ) : ?> | |
| 199 | +<input name="member[point]" type="hidden" value="<?php echo esc_attr( $data['mem_point'] ); ?>" /> | |
| 200 | +<?php endif; ?> | |
| 201 | +</div> | |
| 202 | +<div id="member_history"> | |
| 203 | +<table> | |
| 204 | +<?php if ( 0 === count( $usces_member_history ) ) : ?> | |
| 205 | +<tr> | |
| 206 | +<td><?php esc_html_e( 'There is no purchase history for this moment.', 'usces' ); ?></td> | |
| 207 | +</tr> | |
| 208 | +<?php endif; ?> | |
| 209 | +<?php | |
| 210 | +$management_status = apply_filters( 'usces_filter_management_status', get_option( 'usces_management_status' ) ); | |
| 211 | +ob_start(); | |
| 212 | +foreach ( (array) $usces_member_history as $umhs ) : | |
| 213 | + $cart = $umhs['cart']; | |
| 214 | + $order_id = $umhs['ID']; | |
| 215 | + $total_price = $umhs['total_items_price'] - $umhs['usedpoint'] + $umhs['discount'] + $umhs['shipping_charge'] + $umhs['cod_fee'] + $umhs['tax']; | |
| 216 | + if ( $total_price < 0 ) { | |
| 217 | + $total_price = 0; | |
| 218 | + } | |
| 219 | + $condition = $umhs['condition']; | |
| 220 | + $tax_display = ( isset( $condition['tax_display'] ) ) ? $condition['tax_display'] : usces_get_tax_display(); | |
| 221 | + $tax_mode = ( isset( $condition['tax_mode'] ) ) ? $condition['tax_mode'] : usces_get_tax_mode(); | |
| 222 | + $tax_target = ( isset( $condition['tax_target'] ) ) ? $condition['tax_target'] : usces_get_tax_target(); | |
| 223 | + $tax_label = ( 'exclude' === $tax_mode ) ? __( 'consumption tax', 'usces' ) : __( 'Internal tax', 'usces' ); | |
| 224 | + $member_system_point = ( isset( $condition['membersystem_point'] ) && 'activate' === $condition['membersystem_point'] ) ? true : usces_is_membersystem_point(); | |
| 225 | + $point_coverage = ( isset( $condition['point_coverage'] ) ) ? $condition['point_coverage'] : usces_point_coverage(); | |
| 226 | + | |
| 227 | + $value = $umhs['order_status']; | |
| 228 | + | |
| 229 | + $p_status = ''; | |
| 230 | + if ( $this->is_status( 'duringorder', $value ) ) { | |
| 231 | + $p_status = isset( $management_status['duringorder'] ) ? esc_html( $management_status['duringorder'] ) : ''; | |
| 232 | + } elseif ( $this->is_status( 'cancel', $value ) ) { | |
| 233 | + $p_status = isset( $management_status['cancel'] ) ? esc_html( $management_status['cancel'] ) : ''; | |
| 234 | + } elseif ( $this->is_status( 'completion', $value ) ) { | |
| 235 | + $p_status = isset( $management_status['completion'] ) ? esc_html( $management_status['completion'] ) : ''; | |
| 236 | + } else { | |
| 237 | + $p_status = esc_html( __( 'new order', 'usces' ) ); | |
| 238 | + } | |
| 239 | + $p_status = apply_filters( 'usces_filter_orderlist_process_status', $p_status, $value, $management_status, $umhs['ID'] ); | |
| 240 | + | |
| 241 | + $r_status = ''; | |
| 242 | + if ( $this->is_status( 'noreceipt', $value ) ) { | |
| 243 | + $r_status = isset( $management_status['noreceipt'] ) ? esc_html( $management_status['noreceipt'] ) : ''; | |
| 244 | + } elseif ( $this->is_status( 'pending', $value ) ) { | |
| 245 | + $r_status = isset( $management_status['pending'] ) ? esc_html( $management_status['pending'] ) : ''; | |
| 246 | + } elseif ( $this->is_status( 'receipted', $value ) ) { | |
| 247 | + $r_status = isset( $management_status['receipted'] ) ? esc_html( $management_status['receipted'] ) : ''; | |
| 248 | + } | |
| 249 | + $r_status = apply_filters( 'usces_filter_orderlist_receipt_status', $r_status, $value, $management_status, $umhs['ID'] ); | |
| 250 | + | |
| 251 | + $shipping = usces_have_shipped( $cart ); | |
| 252 | + $delivery_company = ''; | |
| 253 | + $tracking_number = ''; | |
| 254 | + $delivery_company_url = ''; | |
| 255 | + if ( $shipping ) { | |
| 256 | + $tracking_number = $this->get_order_meta_value( apply_filters( 'usces_filter_tracking_meta_key', 'tracking_number' ), $umhs['ID'] ); | |
| 257 | + $delivery_company = $this->get_order_meta_value( 'delivery_company', $umhs['ID'] ); | |
| 258 | + $delivery_company_url = usces_get_delivery_company_url( $delivery_company, $tracking_number ); | |
| 259 | + } | |
| 260 | + ?> | |
| 261 | +<tr> | |
| 262 | +<table><tr> | |
| 263 | +<th class="historyrow"><?php esc_html_e( 'Purchase date', 'usces' ); ?></th> | |
| 264 | +<th class="historyrow"><?php esc_html_e( 'Order number', 'usces' ); ?></th> | |
| 265 | +<th class="historyrow"><?php esc_html_e( 'Processing status', 'usces' ); ?></th> | |
| 266 | + <?php if ( ! empty( $r_status ) ) : ?> | |
| 267 | +<th class="historyrow"><?php esc_attr_e( 'transfer statement', 'usces' ); ?></th> | |
| 268 | + <?php endif; ?> | |
| 269 | +<th class="historyrow"><?php esc_html_e( 'Purchase price', 'usces' ); ?></th> | |
| 270 | +<th class="historyrow"><?php echo esc_html( apply_filters( 'usces_member_discount_label', __( 'Special Price', 'usces' ), $umhs['ID'] ) ); ?></th> | |
| 271 | + <?php if ( $tax_display && 'products' === $tax_target ) : ?> | |
| 272 | +<th class="historyrow"><?php echo esc_html( $tax_label ); ?></th> | |
| 273 | + <?php endif; ?> | |
| 274 | + <?php if ( $member_system_point && 0 === (int) $point_coverage ) : ?> | |
| 275 | +<th class="historyrow"><?php esc_html_e( 'Used points', 'usces' ); ?></th> | |
| 276 | + <?php endif; ?> | |
| 277 | +<th class="historyrow"><?php esc_html_e( 'Shipping', 'usces' ); ?></th> | |
| 278 | +<th class="historyrow"><?php echo esc_html( apply_filters( 'usces_filter_member_history_cod_label', __( 'C.O.D', 'usces' ), $umhs['ID'] ) ); ?></th> | |
| 279 | + <?php if ( $tax_display && 'all' === $tax_target ) : ?> | |
| 280 | +<th class="historyrow"><?php echo esc_html( $tax_label ); ?></th> | |
| 281 | + <?php endif; ?> | |
| 282 | + <?php if ( $member_system_point && 1 === (int) $point_coverage ) : ?> | |
| 283 | +<th class="historyrow"><?php esc_html_e( 'Used points', 'usces' ); ?></th> | |
| 284 | + <?php endif; ?> | |
| 285 | + <?php if ( $member_system_point ) : ?> | |
| 286 | +<th class="historyrow"><?php esc_html_e( 'Acquired points', 'usces' ); ?></th> | |
| 287 | + <?php endif; ?> | |
| 288 | + <?php if ( ! empty( $tracking_number ) ) : ?> | |
| 289 | +<th class="historyrow"><?php esc_html_e( 'Tracking number', 'usces' ); ?></th> | |
| 290 | + <?php endif; ?> | |
| 291 | +</tr> | |
| 292 | +<tr> | |
| 293 | +<td><?php echo esc_html( $umhs['date'] ); ?></td> | |
| 294 | +<td><a href="<?php echo esc_url( USCES_ADMIN_URL ); ?>?page=usces_orderlist&order_action=edit&order_id=<?php echo esc_attr( $order_id ); ?>&wc_nonce=<?php echo esc_attr( wp_create_nonce( 'order_edit' ) ); ?>&usces_referer=<?php echo esc_url( $curent_url ); ?>"><?php echo esc_attr( usces_get_deco_order_id( $order_id ) ); ?></a></td> | |
| 295 | +<td><?php echo wp_kses_post( $p_status ); ?></td> | |
| 296 | + <?php if ( ! empty( $r_status ) ) : ?> | |
| 297 | +<td><?php echo wp_kses_post( $r_status ); ?></td> | |
| 298 | + <?php endif; ?> | |
| 299 | +<td class="rightnum"><?php usces_crform( $total_price, true, false ); ?></td> | |
| 300 | +<td class="rightnum"><?php usces_crform( $umhs['discount'], true, false ); ?></td> | |
| 301 | + <?php if ( $tax_display && 'products' === $tax_target ) : ?> | |
| 302 | +<td class="rightnum"><?php echo esc_html( usces_order_history_tax( $umhs, $tax_mode ) ); ?></td> | |
| 303 | + <?php endif; ?> | |
| 304 | + <?php if ( $member_system_point && 0 === (int) $point_coverage ) : ?> | |
| 305 | +<td class="rightnum"><?php echo number_format( $umhs['usedpoint'] ); ?></td> | |
| 306 | + <?php endif; ?> | |
| 307 | +<td class="rightnum"><?php usces_crform( $umhs['shipping_charge'], true, false ); ?></td> | |
| 308 | +<td class="rightnum"><?php usces_crform( $umhs['cod_fee'], true, false ); ?></td> | |
| 309 | + <?php if ( $tax_display && 'all' === $tax_target ) : ?> | |
| 310 | +<td class="rightnum"><?php echo esc_html( usces_order_history_tax( $umhs, $tax_mode ) ); ?></td> | |
| 311 | + <?php endif; ?> | |
| 312 | + <?php if ( $member_system_point && 1 === (int) $point_coverage ) : ?> | |
| 313 | +<td class="rightnum"><?php echo number_format( $umhs['usedpoint'] ); ?></td> | |
| 314 | +<?php endif; ?> | |
| 315 | + <?php if ( $member_system_point ) : ?> | |
| 316 | +<td class="rightnum"><?php echo number_format( $umhs['getpoint'] ); ?></td> | |
| 317 | + <?php endif; ?> | |
| 318 | + <?php | |
| 319 | + if ( ! empty( $tracking_number ) ) : | |
| 320 | + if ( ! empty( $delivery_company_url ) ) : | |
| 321 | + ?> | |
| 322 | + <td><a href="<?php echo esc_url( $delivery_company_url ); ?>" target="_blank"><?php echo esc_html( $tracking_number ); ?></a></td> | |
| 323 | + <?php else : ?> | |
| 324 | + <td><?php echo esc_html( $tracking_number ); ?></td> | |
| 325 | + <?php | |
| 326 | + endif; | |
| 327 | + endif; | |
| 328 | + ?> | |
| 329 | +</tr></table> | |
| 330 | +</tr> | |
| 331 | +<tr> | |
| 332 | +<td class="retail"> | |
| 333 | + <table id="retail_table"> | |
| 334 | + <tr> | |
| 335 | + <th scope="row" class="num"><?php esc_html_e( 'No.', 'usces' ); ?></th> | |
| 336 | + <th class="thumbnail"> </th> | |
| 337 | + <th><?php esc_html_e( 'Items', 'usces' ); ?></th> | |
| 338 | + <th class="price "><?php esc_html_e( 'Unit price', 'usces' ); ?>(<?php usces_crcode(); ?>)</th> | |
| 339 | + <th class="quantity"><?php esc_html_e( 'Quantity', 'usces' ); ?></th> | |
| 340 | + <th class="subtotal"><?php esc_html_e( 'Amount', 'usces' ); ?>(<?php usces_crcode(); ?>)</th> | |
| 341 | + </tr> | |
| 342 | + <?php | |
| 343 | + $cart_count = ( $cart && is_array( $cart ) ) ? count( $cart ) : 0; | |
| 344 | + for ( $i = 0; $i < $cart_count; $i++ ) : | |
| 345 | + $cart_row = $cart[ $i ]; | |
| 346 | + $ordercart_id = $cart_row['cart_id']; | |
| 347 | + $post_id = $cart_row['post_id']; | |
| 348 | + $sku = urldecode( $cart_row['sku'] ); | |
| 349 | + $quantity = $cart_row['quantity']; | |
| 350 | + $options = $cart_row['options']; | |
| 351 | + $advance = usces_get_ordercart_meta( 'advance', $ordercart_id ); | |
| 352 | + $itemCode = $cart_row['item_code']; | |
| 353 | + $itemName = $cart_row['item_name']; | |
| 354 | + $cartItemName = $this->getCartItemName_byOrder( $cart_row ); | |
| 355 | + $skuPrice = $cart_row['price']; | |
| 356 | + $pictid = (int) $this->get_mainpictid( $itemCode ); | |
| 357 | + $optstr = ''; | |
| 358 | + foreach ( (array) $options as $key => $value ) { | |
| 359 | + if ( ! empty( $key ) ) { | |
| 360 | + $key = urldecode( $key ); | |
| 361 | + $value = wel_safe_maybe_unserialize( $value ); | |
| 362 | + if ( is_array( $value ) ) { | |
| 363 | + $c = ''; | |
| 364 | + $optstr .= esc_html( $key ) . ' : '; | |
| 365 | + foreach ( $value as $v ) { | |
| 366 | + $optstr .= $c . nl2br( esc_html( urldecode( $v ) ) ); | |
| 367 | + $c = ', '; | |
| 368 | + } | |
| 369 | + $optstr .= "<br />\n"; | |
| 370 | + } else { | |
| 371 | + $optstr .= esc_html( $key ) . ' : ' . nl2br( esc_html( urldecode( $value ) ) ) . "<br />\n"; | |
| 372 | + } | |
| 373 | + } | |
| 374 | + } | |
| 375 | + $materials = compact( 'i', 'cart_row', 'post_id', 'sku', 'quantity', 'options', 'advance', 'itemCode', 'itemName', 'cartItemName', 'skuPrice', 'pictid', 'order_id' ); | |
| 376 | + $optstr = apply_filters( 'usces_filter_member_edit_form_row', $optstr, $cart, $materials ); | |
| 377 | + | |
| 378 | + $cart_item_name = apply_filters( 'usces_filter_admin_cart_item_name', esc_html( $cartItemName ), $materials ) . '<br />' . $optstr; | |
| 379 | + $cart_item_name = apply_filters( 'usces_filter_admin_history_cart_item_name', $cart_item_name, $cartItemName, $optstr, $cart_row, $i ); | |
| 380 | + | |
| 381 | + $cart_thumbnail = ( ! empty( $pictid ) ) ? wp_get_attachment_image( $pictid, array( 60, 60 ), true ) : usces_get_attachment_noimage( array( 60, 60 ), $itemCode ); | |
| 382 | + $cart_thumbnail = apply_filters( 'usces_filter_cart_thumbnail', $cart_thumbnail, $post_id, $pictid, $i, $cart_row ); | |
| 383 | + ?> | |
| 384 | + <tr> | |
| 385 | + <td><?php echo esc_html( $i + 1 ); ?></td> | |
| 386 | + <td><?php echo wp_kses_post( $cart_thumbnail ); ?></td> | |
| 387 | + <td class="aleft"><?php echo wp_kses_post( $cart_item_name ); ?></td> | |
| 388 | + <td class="rightnum"><?php usces_crform( $skuPrice, true, false ); ?></td> | |
| 389 | + <td class="rightnum"><?php echo number_format( $cart_row['quantity'] ); ?></td> | |
| 390 | + <td class="rightnum"><?php usces_crform( $skuPrice * $cart_row['quantity'], true, false ); ?></td> | |
| 391 | + </tr> | |
| 392 | + <?php | |
| 393 | + endfor; | |
| 394 | + ?> | |
| 395 | + <?php do_action( 'usces_action_admin_member_history_row', $member_id, $umhs ); ?> | |
| 396 | + </table> | |
| 397 | +</td> | |
| 398 | +</tr> | |
| 399 | + <?php | |
| 400 | +endforeach; | |
| 401 | +$admin_history = ob_get_contents(); | |
| 402 | +ob_end_clean(); | |
| 403 | +echo apply_filters( 'usces_filter_admin_history', $admin_history, $usces_member_history ); | |
| 404 | +?> | |
| 405 | +</table> | |
| 406 | +</div> | |
| 407 | +<?php if( 'new' !== $member_action ) : ?> | |
| 408 | +<div class="metabox-holder wp-core-ui "> | |
| 409 | + <?php do_meta_boxes( 'member', 'edit', $data ); ?> | |
| 410 | +</div> | |
| 411 | +<?php endif; ?> | |
| 412 | +<?php do_action( 'usces_action_member_edit_footer' ); ?> | |
| 413 | +<input name="member_action" type="hidden" value="<?php echo esc_attr( $oa ); ?>" /> | |
| 414 | +<input name="member_id" id="member_id" type="hidden" value="<?php echo esc_attr( $data['ID'] ); ?>" /> | |
| 415 | +<div id="mailSendAlert" title=""> | |
| 416 | + <div id="order-response"></div> | |
| 417 | + <fieldset> | |
| 418 | + </fieldset> | |
| 419 | +</div> | |
| 420 | +<?php wp_nonce_field( 'post_member', 'wc_nonce' ); ?> | |
| 421 | +</form> | |
| 422 | + | |
| 423 | +</div><!--usces_admin--> | |
| 424 | +</div><!--wrap--> | |