Added a header with the id/name of the stop/route/line the page is talking about.

This commit is contained in:
George Kaklamanos 2015-07-18 04:18:52 +03:00
parent a830d412d8
commit 9f674c505a
3 changed files with 6 additions and 3 deletions

View file

@ -17,8 +17,9 @@ and view its position on a map.</p>
<?php
include 'libdata.php';
if (isValidRoute($_GET["route"])){
$route = getRouteInfo($_GET["route"]);
if (isValidRoute($_GET['route'])){
$route = getRouteInfo($_GET['route']);
echo '<header><h1>' . $route['line'] . ' - ' . $route['name'] . '</h1></header>';
PrintStops($route,'go');
PrintStops($route,'come');
} else {