Display all the stops in a table.
This commit is contained in:
parent
88bd2595f2
commit
7e5b91a73f
1 changed files with 44 additions and 0 deletions
44
Stops.php
Normal file
44
Stops.php
Normal file
|
@ -0,0 +1,44 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>uBus - Stops</title>
|
||||
<?php include 'head.php'; ?>
|
||||
</head>
|
||||
<body>
|
||||
<?php include 'nav.php'; ?>
|
||||
|
||||
<h1>Stops</h1>
|
||||
<p>This is a table of all the bus stops. Click on a stop's name to view its
|
||||
position on the map, a list of all the routes that visit it and the buses
|
||||
on their way to it.</p>
|
||||
<table class="table table-striped table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Stop #</th>
|
||||
<th>Stop Name</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
|
||||
<?php
|
||||
include 'libdata.php';
|
||||
|
||||
foreach ($stops as $stop){
|
||||
echo '<tr>';
|
||||
echo '<td>' . $stop['id'] . '</td>';
|
||||
echo '<td><a href="ShowStop.php?stop=' . $stop['id'] . '">' . $stop['name'] . '</a></td>';
|
||||
echo '</tr>';
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
|
||||
<?php include 'foot.php'; ?>
|
||||
</body>
|
||||
</html
|
||||
|
||||
|
Reference in a new issue