From c27de597e60a7afcbded6a559cf4b95ae5ca277f Mon Sep 17 00:00:00 2001 From: Patrick Davison Date: Tue, 29 Jan 2013 15:53:44 -0800 Subject: ajax stuff for scores.php --- ajax/scores.ajax.php | 61 +++++++++++++++++++++++++++++++++++++++++++++++----- 1 file changed, 56 insertions(+), 5 deletions(-) (limited to 'ajax') diff --git a/ajax/scores.ajax.php b/ajax/scores.ajax.php index 2b27ca2..b95d22e 100644 --- a/ajax/scores.ajax.php +++ b/ajax/scores.ajax.php @@ -1,20 +1,71 @@ name == '') + $map->name = $mapNamesByType[$mapType]; + $r[$mapID] = $map; -$mapID = $_GET['mapID']; + } + return $r; +} -$code = getMapCode($mapID); -$map = GenerateMapByCode($code); -echo displaymap($map, $mapID); +function getMapNavigation(&$maps) { + foreach ($maps as $mapID => &$map) { + $r .= "
"; + $r .= $map->name; + $r .= DisplayMapThumbnail($map); + $r .= "
";; + } + return $r; +} -- cgit v1.2.3