attendeelist
-
Hi,
I have a problem with the attendeeslist.php file.
In the previous version, I modified this file to add some informations in the list (booking space & Booking comment). To do that I replace with this code :
<?php $bookings = array(); foreach($EM_Event->get_bookings()->bookings as $EM_Booking){ if ($EM_Booking->status == 1){ array_push($bookings, array(‘person_name’=>$EM_Booking->person->get_name(),’person_email’=>$EM_Booking->person->user_email,’person_phone’=>$EM_Booking->person->phone,’booking_space’=>$EM_Booking->get_spaces(),’booking_comment’=>$EM_Booking->booking_comment,’Tickets_Bookings’=>$EM_Booking->get_tickets_bookings())); } } asort($bookings); ?> <?php foreach($bookings as $EM_Booking) { ?> <tr> <td><?php echo $EM_Booking[‘person_name’] ?><font color="Black"> // </font></td> <td><font color="Black"><?php echo $EM_Booking[’booking_space’] ?> place(s) // </font></td> <td><font color="Black"><i><?php echo $EM_Booking[’booking_comment’] ?></i></font></td> <td></br></td></tr><?php } ?>
But in the new version, this file is not the same and i don’t know how to add my informations.
<?php /* @var $EM_Event EM_Event */ $people = array(); $EM_Bookings = $EM_Event->get_bookings(); if( count($EM_Bookings->bookings) > 0 ){ ?> <ul class="event-attendees"> <?php foreach( $EM_Bookings as $EM_Booking){ /* @var $EM_Booking EM_Booking */ if($EM_Booking->booking_status == 1 && !in_array($EM_Booking->get_person()->ID, $people) ){ $people[] = $EM_Booking->get_person()->ID; echo '<li>'. $EM_Booking->get_person()->get_name() .'</li>'; }elseif($EM_Booking->booking_status == 1 && $EM_Booking->is_no_user() ){ echo '<li>'. $EM_Booking->get_person()->get_name() .'</li>'; } } ?> </ul> <?php }
someone have an idea to help me please ?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘attendeelist’ is closed to new replies.