1 ) ? ($page-1)*$limit : 0; if( is_object($EM_Ticket) ){ $EM_Bookings = $EM_Ticket->get_bookings()->get_pending_bookings(); }else{ if( is_object($EM_Event) ){ $EM_Bookings = $EM_Event->get_bookings()->get_pending_bookings(); }else{ //To optimize performance, we can do one query here for all pending bookings to show. $EM_Bookings = EM_Bookings::get(array('status'=>0)); $events = array(); //Now let's create events and bookings for this: foreach($EM_Bookings->bookings as $EM_Booking){ //create event if( !array_key_exists($EM_Booking->event_id,$events) ){ $events[$EM_Booking->event_id] = new EM_Event($EM_Booking->event_id); } } } } $bookings_count = (is_array($EM_Bookings->bookings)) ? count($EM_Bookings->bookings):0; ?>
/wp-admin/edit.php'> = $limit ) : ?>
= $limit ) { $bookings_nav = em_admin_paginate( $bookings_count, $limit, $page, array('em_ajax'=>0, 'em_obj'=>'em_bookings_pending_table')); echo $bookings_nav; } ?>
0 ): ?>
bookings as $EM_Booking) { if( ($rowno < $limit || empty($limit)) && ($event_count >= $offset || $offset === 0) ) { $rowno++; ?>
 
person->get_name() ?> event_id]->name ?> person->user_email ?> person->phone ?> get_spaces() ?> '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)); ?> | | |
= $limit ) : ?>