From 65b431c6a369fd32b523b0748a6970b3cdd7e4bf Mon Sep 17 00:00:00 2001 From: George Kaklamanos Date: Thu, 16 Jul 2015 20:18:24 +0300 Subject: [PATCH] Display information about a selected stop --- ShowStop.php | 57 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 ShowStop.php diff --git a/ShowStop.php b/ShowStop.php new file mode 100644 index 0000000..ecdb911 --- /dev/null +++ b/ShowStop.php @@ -0,0 +1,57 @@ + + + + uBus - ShowStop + + + + + +

ShowStop

+

Below you can find two tables. One of them shows a list of routes tha visit +this bus stop. Click on a route's name to see a list of its bus stops and the +position of the bus on the map. The other table shows upcoming arrivals. There +is also a map showing the location of the requested stop.

+ + + +No such stop. Go back?'; +} + +function PrintRoutes($stp){ + global $routes; + echo ''; + echo ''; + echo ''; + foreach ($routes as $route){ + foreach ($route['stops'] as $direction){ + foreach ($direction as $stop){ + if ($stop == $stp){ + echo ''; + echo ''; + } + } + + } + } + echo '
Line #Route Name
' . $route['line'] . '' . $route['name'] . '
'; +} +?> + + + + + + + + + +