Spiele bearbeiten"; echo "

Zurück zum Admin-Menü

\n"; $order = isset($_GET['order']) ? $_GET['order'] : 'none'; $slice = isset($_GET['slice']) ? $_GET['slice'] : 'goals'; if ($order == "time") { echo "

Nach Gruppen sortieren"; echo "  Nach Zeit sortiert

"; $order = " ORDER BY time ASC"; } else { echo "

Nach Gruppe sortiert"; echo "  Nach Zeit sortieren

"; $order = ""; } echo "

Spalten editieren:  "; if ($slice == 'time') echo "Datum/Zeit"; else echo "Datum/Zeit"; echo "  "; if ($slice == 'meta') echo "Ort/Sender"; else echo "Ort/Sender"; echo "  "; if ($slice == 'teams') echo "Mannschaften"; else echo "Mannschaften"; echo "  "; if ($slice == 'goals') echo "Ergebnis"; else echo "Ergebnis"; echo "

\n"; StartQuery("SELECT * FROM wm_matches$order"); echo "
"; echo "\n"; echo "\n"; echo "\n"; $gr = ""; while (($match = NextRow())) { $id = $match['id']; $mg = MatchGroup($match['class'], $match['number'], $teams[$match['teamA']]['group']); $mn = MatchName($match['class'], $match['number'], $teams[$match['teamA']]['group']); if (($mg != $gr) && (!$order)) { echo "\n"; echo " \n"; echo "\n"; $gr = $mg; } echo "\n"; echo " \n"; echo " \n"; if ($slice == 'time') { echo " \n"; echo " \n"; } else { echo " \n"; echo " \n"; } if ($slice == 'meta') { echo " \n"; echo " \n"; } else { echo " \n"; echo " \n"; } if ($slice == 'teams') { echo " \n"; echo " \n"; } else { echo " \n"; echo " \n"; } echo " \n"; } else { echo "{$match['goalsA']} : {$match['goalsB']}"; } echo "\n"; } echo "
NrSpielDatumZeitOrtSenderMannschaft AMannschaft BErgebnis
$mg
{$match['id']}.$mn" . GermanDate($match['time']) . "" . GermanTime($match['time']) . ""; PutSelector("l$id", $locations, $match['location']); echo ""; PutSelector("s$id", $stations, $match['station']); echo "{$locations[$match['location']]['name']}{$stations[$match['station']]['name']}"; PutSelector("ta$id", $teams, $match['teamA']); echo ""; PutSelector("tb$id", $teams, $match['teamB']); echo "{$teams[$match['teamA']]['name']}{$teams[$match['teamB']]['name']}"; if ($slice == 'goals') { echo ":"; echo "
\n"; echo "

\n"; echo "
\n"; CloseQuery(); echo "

 

Zurück zum Admin-Menü

\n"; EndPage(); CloseDB(); ?>