'Teili', 'volunteer' => 'Teami', 'other' => 'Sonstige'];
$admin_link = 'admin.php?page=kompass-events&action=';
switch ($active_tab) {
case 'tab1':
foreach ($event->groups as $group_int_name => $group) {
$gruppen_id = $group_int_name;
if ( count( $group ) === 0 ) {
continue;
}
$total_amount = 0;
foreach ($group as $item ) {
$total_amount += $item->beitrag - $item->beitrag_bezahlt;
}
$total_amount = number_format($total_amount,2,',');
echo '
' . $group_name[$group_int_name] . ' (' . count( $group ) . ')
';
echo '
' . __('Missing amount') . ': ' .$total_amount . ' Euro
';
echo '
Rundmail an alle ' . $group_name[$group_int_name] . '';
include dirname( __FILE__ ) . '/list-by-groups.php';
}
break;
case 'tab2':
foreach ($event->tribes as $tribe => $tmp_group) {
$gruppen_id = $tribe;
if ( count( $tmp_group ) === 0 ) {
continue;
}
$count_underaged = 0;
$count_fullaged = 0;
$total_amount = 0;
foreach ($tmp_group as $item ) {
$total_amount += $item->beitrag - $item->beitrag_bezahlt;
if (kompass_is_fullaged($item->geburtsdatum)) {
$count_fullaged++;
} else {
$count_underaged++;
}
}
$total_amount = number_format($total_amount,2,',');
$group = new stdClass();
$group = $tmp_group;
echo '
' . $tribe . ' (' . $count_underaged . ' WÖs / Pfadi // ' . $count_fullaged . ' RRs)
';
echo '
' . __('Missing amount') . ': ' .$total_amount . ' Euro
';
echo '
Rundmail an alle vom Stamm ' . $tribe . '';
include dirname( __FILE__ ) . '/list-by-groups.php';
}
break;
}
$admin_link = 'admin.php?page=kompass-events&action=';
?>