Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // template to show attendee list
- // @var $EM_Event EM_Event
- $people = array();
- $EM_Bookings = $EM_Event->get_bookings();
- if( count($EM_Bookings->bookings) > 0 ) {
- echo "\n";
- ?>
- <table class="event-attendees">
- <tr class="">
- <th class="attendee-name">Name</th>
- <th class="attendee-country">Country</th>
- <th class="attendee-discipline">Rides</th>
- <th class="attendee-status">Status</th>
- </tr>
- <?php
- $guest_bookings = get_option('dbem_bookings_registration_disable');
- $guest_booking_user = get_option('dbem_bookings_registration_user');
- $counter = 0;
- foreach( $EM_Bookings as $EM_Booking){
- $attendees_list = "";
- $attendees = $EM_Booking->booking_meta['attendees'];
- if ( !empty($attendees) ) {
- $attendees_list = "";
- foreach($attendees as $key => $value) {
- foreach($value as $key_attendee => $value_attendee) {
- $attendees_list .= "<tr>";
- $attendees_list .= "<td>".$value_attendee["attendee_name"]."</td>";
- $attendees_list .= "<td>".$value_attendee["attendee_country"]."</td>";
- $attendees_list .= "<td>".$value_attendee["attendee_discipline"]."</td>";
- $attendees_list .= "<td>".$EM_Booking->get_status()."</td>";
- $attendees_list .= "</tr>";
- }
- }
- }
- echo $attendees_list;
- }
- echo "\n";
- ?>
- </table>
- <?php
- }
- if( count($EM_Bookings->bookings) == 0 ) {
- echo '<p>No one registered yet... Will you be the first ?</p>';
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement