you can now set if a station needs points or get the results of the excersice and the website should calculate the points

This commit is contained in:
Grisu
2022-09-22 11:22:25 +02:00
parent eacf3ce9b5
commit c3873744be
5 changed files with 45 additions and 5 deletions

View File

@@ -38,14 +38,20 @@ function load_stations_table($con) {
$stmt = get_stations_all($con);
foreach($stmt->fetchAll() as $row) {
if ($row['gewertet'] == '1') {
$checked = "ja";
$checked = "Ja";
} else {
$checked = "nein";
$checked = "Nein";
}
if ($row['direkte_punkte'] == '1') {
$direkte_punkte = "Ja";
} else {
$direkte_punkte = "Nein";
}
echo "<tr id=\"" . $row['s_id'] . "\">";
echo "<td>" . $row['name'] . "</td>";
echo "<td>" . $row['standort'] . "</td>";
echo "<td>". $checked . "</td>";
echo "<td>" . $direkte_punkte . "</td>";
echo "</tr>";
}
}