| Current Path : /home/happyrenas/myreco.online/includes/ |
Linux webd005.cluster105.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64 |
| Current File : /home/happyrenas/myreco.online/includes/hebergements_head.php |
<nav class="navbar fixed-top navbar-light py-3 shadow-sm">
<div class="container-fluid">
<div class="container d-flex align-items-center" style="max-width: 1900px; min-height: 120px; border: 1px solid #6B757D; border-radius: 8px;">
<!-- Logo à gauche -->
<div class="mr-4">
<a href="/">
<img src="img/logo_myreco.png" alt="Logo" class="d-none d-md-block" style="height: 40px;">
<img src="img/logo_myreco.png" alt="Logo Mobile" class="d-md-none" style="height: 20px;">
</a>
</div>
<!-- Formulaire -->
<div class="flex-grow-1 d-flex justify-content-end align-items-center h-100">
<form method="get" action="hebergement_resultat.php" style="max-width: 1000px; width: 100%;">
<div class="form-row align-items-center h-100 d-flex flex-wrap mt-2">
<div class="col-md-3 position-relative">
<input
type="text"
name="ville_pays"
id="ville_pays"
class="form-control form-control-sm pr-5 awesomplete"
placeholder="Ville"
autocomplete="off"
value="<?= htmlspecialchars($_GET["ville_pays"]) ?>"
style="padding-right: 2rem;"
>
<span id="clear_ville"
style="position: absolute; right: 12px; top: 50%; transform: translateY(-50%); cursor: pointer; color: #6b757d; display: none; font-size: 1.2em;">
×
</span>
</div>
<!-- Date arrivée -->
<div class="col-md-2 w-100 w-md-auto">
<input type="text" id="date_arrivee" name="date_arrivee" class="form-control form-control-sm" placeholder="Date d’arrivée"
value="<?= htmlspecialchars($_GET['date_arrivee'] ?? '') ?>">
</div>
<!-- Date départ -->
<div class="col-md-2 w-100 w-md-auto">
<input type="text" id="date_depart" name="date_depart" class="form-control form-control-sm" placeholder="Date de départ"
value="<?= htmlspecialchars($_GET['date_depart'] ?? '') ?>">
</div>
<div class="col-md-2 w-100 w-md-auto">
<button type="submit" id="btn_rechercher" class="btn btn-sm btn-primary rounded-circle" style="width: 36px; height: 36px; padding: 0;" >
<i class="fas fa-search"></i>
</button>
</div>
<!-- Dropdown langue avec drapeau -->
<div class="col-md-3 w-100 w-md-auto">
<div class="dropdown ml-1">
<button class="btn btn-sm btn-outline-secondary dropdown-toggle d-flex align-items-center" type="button" id="dropdownLangue" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<img src="img/flag/ico/<?php echo strtolower($langue ?? 'fr'); ?>.png" alt="flag" style="height: 16px; width: auto; margin-right: 5px;">
<?php echo strtoupper($langue ?? 'FR'); ?>
</button>
<div class="dropdown-menu dropdown-menu-right" aria-labelledby="dropdownLangue">
<?php
foreach ($langues as $l) {
$params = [
'ville_pays' => $_GET['ville_pays'] ?? '',
'date_arrivee' => $_GET['date_arrivee'] ?? '',
'date_depart' => $_GET['date_depart'] ?? '',
'langue' => $l ?? '',
];
$url = 'hebergement_resultat.php?' . http_build_query($params);
$img = "img/flag/ico/" . strtolower($l) . ".png";
echo "<a class='dropdown-item d-flex align-items-center' href='$url'>
<img src='$img' alt='$l' style='height: 16px; width: auto; margin-right: 8px;'> $l
</a>";
}
?>
</div>
</div>
</div>
</div>
</form>
</div>
</div>
</div>
</nav>