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
usc-e-shop / includes / member_edit_form.php

member_edit_form.php in Welcart e-Commerce 2.12.4, at includes/member_edit_form.php

425 lines 20.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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">&nbsp;</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-->
425