Cosmetic iand spell fixes.
[Project_webapp.git] / includes / search.php
index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..03a956079e021cac06febe8b22112186155dba38 100644 (file)
@@ -0,0 +1,18 @@
+<h1> Rechercher un vol </h1>
+
+<?php if (isset($_SESSION['return_flight'])) ?>
+
+<form action="index.php" id="search" method="post">
+ <input type="hidden" name="form" value="search" />
+ <input type="hidden" name="date_now" value="<?php echo date('Y-m-d\TH:i'); ?>" />
+ <label> De&#769;part : Ville -> </label>
+ <input type="text" size="15" name="departure_city" required/>
+ <label> Date -> </label>
+ <input type="datetime-local" name="departure_date" value="<?php echo date('Y-m-d\TH:i'); ?>" required/>
+ <label> Arrive&#769;e : Ville -> </label>
+ <input type="text" size="15" name="arrival_city" required/>
+ <label> Date -> </label>
+ <input type="datetime-local" name="arrival_date" value="<?php echo date('Y-m-d\TH:i', time() + 86400); ?>" required/>
+ <input type="submit" value="Valider">
+</form>
+<br>