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:
@@ -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>";
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user