Getränkeliste (alkoholfrei) für ' . $event_name . '
Vorname | ' . 'Nachname | ' . 'Stamm | ' . 'Geburtsdatum | ' . 'Getränke | '; } public function __construct() { global $_POST, $_REQUEST, $dbHandler; $group_name = ['participant' => 'Teili', 'volunteer' => 'Teami', 'other' => 'Sonstige']; $event = Event::loadById( $_REQUEST['event-id'] ); $output = ''; $i = 0; foreach ( $event->tribes as $tribe => $participants ) { if ( count( $participants ) == 0 ) { continue; } foreach ( $participants as $participant ) { if ( $i == 0 ) { $output .= $this->get_table_header( $event->event_name ); } $i ++; $output .= '
' . $participant->vorname .
('' != $participant->pfadiname ? ' (' . $participant->pfadiname . ')' : '') . ' | ' .
'' . $participant->nachname . ' | ' . '' . $tribe . ' | ' . '' .
\DateTime::createFromFormat( 'Y-m-d', $participant->geburtsdatum )->format( 'd.m.Y' ) . ' ' . '(' . $participant->get_age() . ' Jahre) | ' .
'