32 lines
1.4 KiB
PHTML
32 lines
1.4 KiB
PHTML
<?php require('template/header.phtml') ?>
|
|
|
|
<div class="row">
|
|
<div class="col-5">
|
|
<p><?php echo $view->dbMessage; ?></p>
|
|
</div>
|
|
<div class="col-7">
|
|
<p>Current script <?php echo $_SERVER["PHP_SELF"]; ?></p>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row">
|
|
<table class="table table-bordered">
|
|
<thead> <tr> <th>Facility ID</th> <th>Title</th> <th>Category</th> <th>Description</th> <th>Address</th> <th>Postcode</th> <th>Lat/Long</th> <th>Contributor</th> </tr>
|
|
</thead>
|
|
<tbody>
|
|
<?php foreach ($view->facilityDataSet as $facilityData) {
|
|
echo '<tr> <td>' . $facilityData->getId() .
|
|
'</td> <td>' . $facilityData->getTitle() .
|
|
'</td> <td>' . $facilityData->getCategory() .
|
|
'</td> <td>' . $facilityData->getDescription() .
|
|
'</td> <td>' . $facilityData->getHouseNumber() . " " . $facilityData->getStreetName() . " " . $facilityData->getCounty() . " " . $facilityData->getTown() .
|
|
'</td> <td>' . $facilityData->getPostcode() .
|
|
'</td> <td>' . $facilityData->getLatitude() . " " . $facilityData->getLongitude() .
|
|
'</td> <td>' . $facilityData->getContributor() .
|
|
'</td> </td> </tr>';
|
|
} ?>
|
|
</tbody>
|
|
</table>
|
|
|
|
|
|
<?php require('template/footer.phtml') ?> |