Zusatz zur Küchenliste für ' . $event_name . '



' . '' . '' . '' . '' . '' . '' . '' . ''; } public function __construct() { global $_POST, $_REQUEST, $dbHandler; $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 ($participant->allergien == '') { continue; } if ( $i == 0 ) { $output .= $this->get_table_header( $event->event_name ); } $i ++; $output .= '' . '' . '' . '' . '' . '' . '' . ''; if ( $i == 13 ) { $output .= '
VornameNachnameStammAllergienEssgewohnheitAnreiseAbreise
' . $participant->vorname . '

' . $participant->nachname . '' . $tribe . '' .$participant->allergien . '' .$participant->essgewohnheit . '' .\DateTime::createFromFormat('Y-m-d', $participant->anreise)->format('d.m.Y') . '' .\DateTime::createFromFormat('Y-m-d', $participant->abreise)->format('d.m.Y'). '
'; $i = 0; } } } $output .= ''; kompass_create_pdf($output,$event->event_name . ' Zusatz Küchenliste.pdf', 'landscape'); } }