1
0
Fork 0
This repository has been archived on 2024-02-17. You can view files and clone it, but cannot push or open issues or pull requests.
Accommodation_Management/view/manager.php
2021-01-14 19:01:32 +01:00

39 lines
No EOL
1.4 KiB
PHP

<?php
require_once('template/head.php');
?>
<div class="container-fluid section">
<h2>Gestions des réservations</h2>
<table class="table table-hover">
<thead>
<tr>
<th scope="col">#</th>
<th scope="col">Nom de logement</th>
<th scope="col">Adresse</th>
<th scope="col">Type</th>
<th scope="col">Service(s)</th>
<th scope="col">Nombre de Reservation(s)</th>
<th scope="col">Action</th>
</tr>
</thead>
<tbody>
<?php
foreach ($hotels as $hotel){
?>
<tr>
<th scope="row"><?=$hotel->getId()?></th>
<td><?=htmlspecialchars($hotel->getName())?></td>
<td><?=htmlspecialchars($hotel->getAddress()) . ', ' . $hotel->getPostalCode() ?></td>
<td><?=htmlspecialchars($hotel->getType())?></td>
<td><?=$hotel->getServices() ? htmlspecialchars(join(',',$hotel->getServices())) : "Aucun" ?></td>
<td>0</td>
<td><a href="<?=genURL('manager/' . $hotel->getId() . '/view')?>" class="btn btn-primary">Editer une reservation</a></td>
</tr>
<?php
}
?>
</tbody>
</table>
</div>
<?php
require_once('template/footer.php');
?>