From b9307c2f5abcce7a4928b46d4463777b16305787 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20G=C3=BCnther?=
Vorname | ' . + 'Nachname | ' . + 'Teili-Gruppe | ' . + 'Stamm | ' . + 'Geburtsdatum | ' . + 'Beitrag | ' . + 'Tage | ' . + 'Notizen | '; + } + + 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 ($participant->beitrag == 0) { + continue; + } + + if ( $i == 0 ) { + $output .= $this->get_table_header( $event->event_name ); + } + $i ++; + + $output .= '
' . $participant->vorname .
+ ('' != $participant->pfadiname ? ' (' . $participant->pfadiname . ')' : '') . ' | ' .
+ '' . $participant->nachname . ' | ' . + '' . $group_name[$participant->teilnahme] . ' | ' . + '' . $tribe . ' | ' . + '' . \DateTime::createFromFormat( 'Y-m-d', $participant->geburtsdatum )->format( 'd.m.Y' ) . ' | ' . + '' . str_replace('.', ',', $participant->beitrag) . ' Euro | ' . + '' . AnwesenheitRequest::send($participant) . ' | ' . + '