1 ) ? ($page-1)*$limit : 0; $bookings = $EM_Person->get_bookings(); $bookings_count = count($bookings); if($bookings_count > 0){ //Get events here in one query to speed things up foreach($bookings as $EM_Booking){ $event_ids[] = $EM_Booking->event_id; } $events = EM_Events::get($event_ids); } ?>
/wp-admin/edit.php'> = $limit ) : ?>
= $limit ) { $bookings_nav = em_admin_paginate( $bookings_count, $limit, $page, array('em_ajax'=>0, 'em_obj'=>'em_bookings_confirmed_table')); echo $bookings_nav; } ?>
0 ): ?>
event_id]; if( $EM_Event->can_manage('edit_events','edit_others_events') && ($rowno < $limit || empty($limit)) && ($event_count >= $offset || $offset === 0) ) { $rowno++; ?>
 
event_name); ?> get_spaces() ?> status_array[$EM_Booking->booking_status]; ?> 'bookings_unapprove', 'booking_id'=>$EM_Booking->booking_id)); $approve_url = em_add_get_params($_SERVER['REQUEST_URI'], array('action'=>'bookings_approve', 'booking_id'=>$EM_Booking->booking_id)); $reject_url = em_add_get_params($_SERVER['REQUEST_URI'], array('action'=>'bookings_reject', 'booking_id'=>$EM_Booking->booking_id)); $delete_url = em_add_get_params($_SERVER['REQUEST_URI'], array('action'=>'bookings_delete', 'booking_id'=>$EM_Booking->booking_id)); ?> booking_status == 0 ) ): ?> | booking_status == 1 ): ?> | booking_status == 2 ): ?> | booking_status == 0 || $EM_Booking->booking_status == 1 ): ?> | |
= $limit ) : ?>