This repository has been archived on 2025-07-13. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
open-heraklion-bus/Routes.php

45 lines
938 B
PHP
Raw Permalink Normal View History

2015-07-16 14:15:26 +03:00
<!DOCTYPE html>
<html>
<head>
2016-02-21 16:19:06 +02:00
<title>OpenHB - Routes</title>
2015-07-19 14:24:36 +03:00
<?php include 'modules/head.php'; ?>
2015-07-16 14:15:26 +03:00
</head>
<body>
2015-07-19 14:24:36 +03:00
<?php include 'modules/nav.php'; ?>
2015-07-16 14:15:26 +03:00
<h1>Routes</h1>
<p>This is a table of all the routes. Click on a route's name to see a list of
its bus stops and the position of the bus on the map. Click on a line number
to see a list of routes that have this line number</p>
<table class="table table-striped table-bordered">
<thead>
<tr>
<th>Line #</th>
<th>Name</th>
</tr>
</thead>
<tbody>
<?php
2015-07-19 14:24:36 +03:00
include 'modules/libdata.php';
2015-07-16 14:15:26 +03:00
foreach ($routes as $route){
echo '<tr>';
echo '<td><a href="ShowLine.php?line=' . $route['line'] . '">' . $route['line'] . '</a></td>';
echo '<td><a href="ShowRoute.php?route=' . $route['id'] . '">' . $route['name'] . '</a></td>';
echo '</tr>';
}
?>
</tbody>
</table>
2015-07-19 14:24:36 +03:00
<?php include 'modules/foot.php'; ?>
2015-07-16 14:15:26 +03:00
</body>
</html