From 9f674c505ae27478a07a5329926ec6ef92ed014d Mon Sep 17 00:00:00 2001
From: George Kaklamanos
Date: Sat, 18 Jul 2015 04:18:52 +0300
Subject: [PATCH] Added a header with the id/name of the stop/route/line the
page is talking about.
---
ShowLine.php | 1 +
ShowRoute.php | 5 +++--
ShowStop.php | 3 ++-
3 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/ShowLine.php b/ShowLine.php
index 9001d71..1f791f0 100644
--- a/ShowLine.php
+++ b/ShowLine.php
@@ -18,6 +18,7 @@ on the map.
include 'libdata.php';
if (isValidLine($_GET["line"])){
+ echo 'Line ' . $_GET["line"] . '
';
PrintRoutes($_GET["line"]);
} else {
echo 'No such line. Go back?';
diff --git a/ShowRoute.php b/ShowRoute.php
index 455fc07..c79406d 100644
--- a/ShowRoute.php
+++ b/ShowRoute.php
@@ -17,8 +17,9 @@ and view its position on a map.
' . $route['line'] . ' - ' . $route['name'] . '
';
PrintStops($route,'go');
PrintStops($route,'come');
} else {
diff --git a/ShowStop.php b/ShowStop.php
index 7072030..2e5a5cc 100644
--- a/ShowStop.php
+++ b/ShowStop.php
@@ -20,8 +20,9 @@ is also a map showing the location of the requested stop.
include 'libdata.php';
if (isValidStop($_GET["stop"])){
- PrintRoutes($_GET["stop"]);
$stop=getStopInfo($_GET["stop"]);
+ echo '' . $stop['id'] . ' - ' . $stop['name'] . '
';
+ PrintRoutes($_GET["stop"]);
ShowMap($stop['lat'],$stop['lon']);
} else {
echo 'No such stop. Go back?';