added attendence overview
This commit is contained in:
@@ -174,7 +174,7 @@ setlocale (LC_ALL, 'de_DE@euro', 'de_DE', 'de', 'ge');
|
||||
$attendanceCountH1 = 0;
|
||||
$attendanceCountH2 = 0;
|
||||
foreach($months as $month=>$days){
|
||||
if(1<=$month and $month<=7){
|
||||
if(1<=$month and $month<=6){
|
||||
$attendanceCountH1 += count($days);
|
||||
}
|
||||
if(7<=$month and $month <= 12){
|
||||
@@ -185,7 +185,7 @@ setlocale (LC_ALL, 'de_DE@euro', 'de_DE', 'de', 'ge');
|
||||
$htmlTableString .= "<dt>Gesamt zweites Halbjahr:</dt><dd>".$attendanceCountH2."</dd>";
|
||||
krsort($months);
|
||||
foreach($months as $month=>$days){
|
||||
$htmlTableString .= "<dt>".Attendance::$NameOfMonth[$month-1]."</dt>";
|
||||
$htmlTableString .= "<dt>".Attendance::$NameOfMonth[$month]."</dt>";
|
||||
$htmlTableString .= "<dd>".join(", ", $days)."</dd>";
|
||||
}
|
||||
$htmlTableString .= "</dl></li>";
|
||||
@@ -273,7 +273,7 @@ foreach($usersKids as $k){
|
||||
if($_SESSION['login']){
|
||||
?>
|
||||
<main>
|
||||
<?php User::htmlTable( User::getUsers($dbConnection, ['attributeId' => UserAttribute::InTraining]));?>
|
||||
<?php //User::htmlTable( User::getUsers($dbConnection, ['attributeId' => UserAttribute::InTraining]));?>
|
||||
<?php // show own ...
|
||||
$ownAttendances = Attendance::getUsersAttendance($dbConnection, $_SESSION['user']['userId']);
|
||||
if (!empty($ownAttendances)){
|
||||
|
||||
Reference in New Issue
Block a user