diff options
author | Asa Venton <asav1410@gmail.com> | 2019-10-19 19:59:59 +0100 |
---|---|---|
committer | Asa Venton <asav1410@gmail.com> | 2019-10-19 19:59:59 +0100 |
commit | 6d70e210746a391a13f7797baf5b850dfa271dc1 (patch) | |
tree | 3dc67b830b0dfc4a494c10449b2ae030d3eddbdd | |
parent | d70b88f27b4442686ec8ce1430cc3eeb6e650801 (diff) |
add TODOs and link to source
-rw-r--r-- | index.php | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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>'; } |