--- a/busui/stopList.php
+++ b/busui/stopList.php
@@ -1,11 +1,20 @@
+
+
+ ';
echo ' ';
$url = $APIurl."/json/timingpoints";
if ($_REQUEST['allstops']) $url = $APIurl."/json/stops";
if ($_REQUEST['lat'] && $_REQUEST['lon']) $url = $APIurl."/json/neareststops?lat={$_REQUEST['lat']}&lon={$_REQUEST['lon']}&limit=15";
$contents = json_decode(getPage($url));
+debug(print_r($contents,true));
foreach ($contents as $key => $row) {
$stopName[$key] = $row[1];
}
@@ -20,14 +29,7 @@
echo '- '.$row[1].'
';
}
echo '
';
-echo'
-
-
-
- ';
+
include_footer();
?>