You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
<?php
|
|
|
|
|
|
|
|
function getError($code)
|
|
|
|
{
|
|
|
|
switch ($code) {
|
|
|
|
case 1:
|
|
|
|
return "Impossible de réserver ce trajet";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
session_start();
|
|
|
|
require_once('../ressources/verifconnecte.php');
|
|
|
|
?>
|
|
|
|
|
|
|
|
<!DOCTYPE html>
|
|
|
|
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<meta charset="utf-8"/>
|
|
|
|
<link rel="stylesheet" href="recherche.css"/>
|
|
|
|
<link rel="stylesheet" href="../ressources/navbarhtml.css"/>
|
|
|
|
<title>Rechercher trajet</title>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<?php
|
|
|
|
require_once("../ressources/navbarhtml.php");
|
|
|
|
?>
|
|
|
|
<div id="container">
|
|
|
|
<div id="entete">
|
|
|
|
<h1>Rechercher trajet</h1><br/>
|
|
|
|
</div>
|
|
|
|
<div class="global bord">
|
|
|
|
<form method="post" action="../liste_trajets/liste_trajet.php">
|
|
|
|
|
|
|
|
<label>
|
|
|
|
<input name="lieu_depart" type="text" placeholder="Lieu de départ" class="centrage" required>
|
|
|
|
<br/>
|
|
|
|
<br/>
|
|
|
|
</label>
|
|
|
|
|
|
|
|
<label>
|
|
|
|
<input name="lieu_arrivee" type="text" placeholder="Lieu d'arrivée" class="centrage" required>
|
|
|
|
<br/>
|
|
|
|
<br/>
|
|
|
|
</label>
|
|
|
|
|
|
|
|
<label>
|
|
|
|
<input name="date_heure" type="date" placeholder="Date et heure de départ" class="centrage"
|
|
|
|
required>
|
|
|
|
<br/>
|
|
|
|
</label>
|
|
|
|
<br/>
|
|
|
|
<label>
|
|
|
|
<input id="submit" name="submit" type="submit" value="Rechercher" class="centrage">
|
|
|
|
</label>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
<?php
|
|
|
|
if (isset($_GET['error'])) {
|
|
|
|
echo "<p class='error'>" . getError($_GET['error']) . "</p>";
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
</div>
|
|
|
|
</body>
|
|
|
|
|
|
|
|
</html>
|