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/add_accomodation.php

62 lines
3.5 KiB
PHP
Raw Normal View History

2020-12-18 20:29:24 +01:00
<?php
require_once('template/head.php');
?>
<div class="container-fluid section">
2021-01-18 13:36:04 +01:00
<h2>Bienvenue M. <?=htmlspecialchars(strtoupper($_SESSION['USER']->getLastName()))?>,</h2>
<h3>Il semblerait que vous n'ayez pas encore ajouté d'hebergement...</h3>
2020-12-18 20:29:24 +01:00
</div>
<div class="container-fluid section">
<form action="" method="POST">
<div class="row justify-content-md-center">
2021-01-05 17:53:26 +01:00
<?=$alert?>
2020-12-18 20:29:24 +01:00
<div class="col col-lg-3">
<div class="form-group">
<label for="exampleInputEmail1">Donnez un nom à votre hebergement</label>
2021-01-05 17:53:26 +01:00
<input type="text" class="form-control" name="accomodationName" id="accomodationName" aria-describedby="accomodationName" placeholder="Le X" value="<?=htmlspecialchars(getPost('accomodationName'))?>">
<!-- <small id="accomodationName" class="form-text text-muted">We'll never share your email with anyone else.</small> -->
2020-12-18 20:29:24 +01:00
</div>
<div class="form-group">
2021-01-05 17:53:26 +01:00
<label for="exampleInputPassword1">Code Postal</label>
<input type="text" class="form-control" name="postalCode" id="postalCode" placeholder="69100" value="<?=htmlspecialchars(getPost('postalCode'))?>">
2020-12-18 20:29:24 +01:00
</div>
2021-01-05 17:53:26 +01:00
<div class="form-group">
<label for="exampleInputPassword1">Adresse</label>
<input type="text" class="form-control" name="address" id="address" placeholder="" value="<?=htmlspecialchars(getPost('address'))?>">
2020-12-18 20:29:24 +01:00
</div>
</div>
<div class="col-md-auto"></div>
<div class="col col-lg-3">
<div class="form-group">
<label for="typeSelect">Sélectionnez un type d'hébergement</label>
2021-01-05 17:53:26 +01:00
<select class="form-control" name="accomodationType" id="typeSelect">
<?php
foreach ($accomodationType as $type){
?>
<option><?=$type?></option>
<?php
}
?>
2020-12-18 20:29:24 +01:00
</select>
</div>
<div class="form-group">
<label for="typeSelect">Quels services proposez-vous ?</label><br>
2020-12-20 13:57:08 +01:00
<?php
$c = 0;
foreach ($services as $service){
$c++;
?><div class="form-check form-check-inline">
2021-01-05 17:53:26 +01:00
<input class="form-check-input" type="checkbox" name='accomodationService[]' id="inlineCheckbox<?=$c?>" value="<?=htmlspecialchars($service->getName())?>">
<label class="form-check-label" for="inlineCheckbox<?=$c?>"><?=htmlspecialchars($service->getName())?></label>
2020-12-18 20:29:24 +01:00
</div>
<?php
}
?>
2021-01-05 17:53:26 +01:00
</div><br>
2021-01-11 17:30:13 +01:00
<button type="submit" class="btn btn-success">Ajouter</button>
2020-12-18 20:29:24 +01:00
</div>
</div>
</form>
</div>
<?php
require_once('template/footer.php');
?>