can_manage('manage_bookings','manage_others_bookings') ) { if( $_REQUEST['action'] == 'bookings_add_note' ){ $EM_Booking->add_note($_REQUEST['booking_note']); function em_booking_save_notification(){ global $EM_Booking; ?>

feedback_message; ?>

get_bookings()->export_csv(); exit(); } } } add_action('admin_init','em_admin_actions_bookings',100); /** * Decide what content to show in the bookings section. */ function em_bookings_page(){ global $action; //First any actions take priority if( !empty($_REQUEST['action']) && substr($_REQUEST['action'],0,7) != 'booking' ){ //actions not starting with booking_ do_action('em_bookings_'.$action); }elseif( !empty($_REQUEST['booking_id']) ){ em_bookings_single(); }elseif( !empty($_REQUEST['person_id']) ){ em_bookings_person(); }elseif( !empty($_REQUEST['event_id']) ){ em_bookings_event(); }elseif( !empty($_REQUEST['ticket_id']) ){ em_bookings_ticket(); }else{ em_bookings_dashboard(); } } /** * Generates the bookings dashboard, showing information on all events */ function em_bookings_dashboard(){ global $EM_Notices; ?>


status = get_option('dbem_bookings_approval') ? 'needs-attention':'confirmed'; $EM_Bookings_Table->output(); ?>

can_manage('manage_bookings','manage_others_bookings') ){ ?>

start); $localised_end_date = date_i18n('D d M Y', $EM_Event->end); ?>

event_name}'"); ?>

: event_start_time, 0, 5 ) . " - " . substr ( $EM_Event->event_end_time, 0, 5 ); ?>

: get_location()->location_name); ?>


status = get_option('dbem_bookings_approval') ? 'needs-attention':'confirmed'; $EM_Bookings_Table->output(); ?>
get_event(); //check that user can access this page if( is_object($EM_Ticket) && !$EM_Ticket->can_manage() ){ ?>


name}'"); ?>

ticket_name; ?>
     ticket_description) ? $EM_Ticket->ticket_description : '-'; ?>
ticket_price) ? $EM_Ticket->ticket_price : '-'; ?>
ticket_spaces) ? $EM_Ticket->ticket_spaces : '-'; ?>
ticket_min) ? $EM_Ticket->ticket_min : '-'; ?>
ticket_max) ? $EM_Ticket->ticket_max : '-'; ?>
ticket_start) ? $EM_Ticket->ticket_start : '-'; ?>
ticket_end) ? $EM_Ticket->ticket_end : '-'; ?>

status = get_option('dbem_bookings_approval') ? 'needs-attention':'confirmed'; $EM_Bookings_Table->output(); ?>
can_manage() ){ ?>


get_event(); $localised_start_date = date_i18n('D d M Y', $EM_Event->start); $localised_end_date = date_i18n('D d M Y', $EM_Event->end); ?>
event_name); ?>
       start_time, 0, 5 ) . " - " . substr ( $EM_Event->end_time, 0, 5 ); ?>

get_person()->display_summary(); ?>

get_event(); $localised_start_date = date_i18n('D d M Y', $EM_Event->start); $localised_end_date = date_i18n('D d M Y', $EM_Event->end); $shown_tickets = array(); ?>

: get_status(); ?>

get_tickets_bookings()->tickets_bookings as $EM_Ticket_Booking): ?> ticket_id; ?> get_bookings()->get_tickets()->tickets)): ?>get_bookings()->get_tickets()->tickets as $EM_Ticket): ?> ticket_id, $shown_tickets) ): ?> 0 ): ?>
get_ticket()->ticket_name ?> get_price(true,true); ?>
ticket_name ?> 0.00
get_spaces(); ?> get_price(true, true); ?>
% get_price() * (get_option('dbem_bookings_tax')/100),2); ?>
  get_price()* (1 + get_option('dbem_bookings_tax')/100),2); ?>

booking_id); ?>'/> Note: ticket availability not taken into account (i.e. you can overbook). Confirmation email is not resent automatically.','dbem'); ?>

get_custom() as $custom_option ){ ?>
      booking_comment; ?>

notes as $note ): $user = new EM_Person($note['author']); ?>
get_name(); ?> :


get_bookings(); $has_booking = false; foreach($EM_Person->get_bookings() as $EM_Booking){ if($EM_Booking->can_manage('manage_bookings','manage_others_bookings')){ $has_booking = true; } } if( !$has_booking ){ ?>


display_summary(); ?>


status = 'all'; $EM_Bookings_Table->scope = 'all'; $EM_Bookings_Table->output(); ?>
can_manage('edit_events','edit_others_events') ){ ?>