Merge branch 'homepage' of https://gitea.cwsvjudo.dedyn.io/marko/cwsvJudo into homepage
This commit is contained in:
@@ -108,6 +108,8 @@ SQL;
|
||||
$this->unlockingAchievementId = ($unlockingAchievementId == null ? null : (int)$unlockingAchievementId);
|
||||
$this->imageUrl = $imageUrl;
|
||||
$this->canHaveRecords = (bool)$canHaveRecords;
|
||||
# echo("bool(".$canHaveRecords.")=".$this->canHaveRecords."\n");
|
||||
# var_dump($canHaveRecords, $this->canHaveRecords);
|
||||
}
|
||||
|
||||
/// get the next achievement, the user has to accomplish in that group
|
||||
@@ -160,6 +162,8 @@ SQL;
|
||||
if(!$getAll)
|
||||
$params[':achievementGroupId'] = array('value'=>$this->getId(), 'data_type'=>PDO::PARAM_INT);
|
||||
$result = dbQuery($this->getDbConnection(), $query, $params);
|
||||
# var_dump($query);
|
||||
# var_dump($result);
|
||||
return $result;
|
||||
}
|
||||
|
||||
|
||||
@@ -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]."</dt>";
|
||||
$htmlTableString .= "<dt>".Attendance::$NameOfMonth[$month-1]."</dt>";
|
||||
$htmlTableString .= "<dd>".join(", ", $days)."</dd>";
|
||||
}
|
||||
$htmlTableString .= "</dl></li>";
|
||||
|
||||
Reference in New Issue
Block a user