changed the total score to a station ranking on the homepage
This commit is contained in:
@@ -78,6 +78,22 @@ function load_total_score($con) {
|
||||
echo "</tbody>\n";
|
||||
}
|
||||
|
||||
function load_station_ranking($con) {
|
||||
echo "<thead> \n
|
||||
<th scope=\"col\">Station</th>\n
|
||||
<th scope=\"col\">Gesamtpunkte</th>\n
|
||||
</thead>\n
|
||||
<tbody>\n";
|
||||
$stmt = get_station_ranking($con);
|
||||
foreach($stmt->fetchAll() as $row) {
|
||||
echo "<tr>\n";
|
||||
echo "<td>" . $row['Stationsname'] . "</td>\n";
|
||||
echo "<td>" . $row['Gesamtpunkte'] . "</td>\n";
|
||||
echo "</tr>\n";
|
||||
}
|
||||
echo "</tbody>\n";
|
||||
}
|
||||
|
||||
function load_options_stations($con, $session, $stats) {
|
||||
$stmt = get_stations_all($con);
|
||||
if ($session == "total-score"){
|
||||
|
||||
Reference in New Issue
Block a user