summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--index.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/index.php b/index.php
index 049c945..9b9e65c 100644
--- a/index.php
+++ b/index.php
@@ -14,6 +14,7 @@ tr:nth-child(even) {background-color: #f2f2f2;}
<body>
<h2>bus.of.je | Liberty Bus Timetables</h2>
+<br><a href="https://www.blatech.co.uk/ars/bus.of.je">source?</a>
<?php
@@ -98,7 +99,9 @@ if (isset($_GET['route'])) {
$trips = getData('trips', $route, $direction, $day);
// TODO: sort $stopList by $stopList['order']
// TODO: must be a more efficient way to search for $rowStop['stop_name'] in $trip?
+ // search for $stopList['stop_name'] in each trip and print time in row on table
foreach ($stopList as $rowStop) {
+ // TODO: don't use $rowStop if it doesn't appear in $trip
echo '<tr><td><b>' . $rowStop['stop_name'] . '</b></td>';
foreach ($trips as $trip) {
$found=False;
@@ -130,6 +133,7 @@ else {
foreach ($servUpdates as $update) {
echo $update['content'] . '- <b>Affected Routes: </b>' . implode(", ",$update['services']) . '<br><br>';
}
+ // TODO: sort routes to print in (alpha)numerical order
foreach ($routes as $route) {
echo '<h4><a href="index.php?route=' . $route['service_number'] . '">' . $route['service_number'] . ' - ' . $route['service_name'] . '</a></h4>';
}