| 1 | <h1> Rechercher un vol </h1> |
| 2 | |
| 3 | <?php if (isset($_SESSION['return_flight'])) ?> |
| 4 | |
| 5 | <form action="index.php" id="search" method="post"> |
| 6 | <input type="hidden" name="form" value="search" /> |
| 7 | <input type="hidden" name="date_now" value="<?php echo date('Y-m-d\TH:i'); ?>" /> |
| 8 | <label> Départ : Ville -> </label> |
| 9 | <input type="text" size="15" name="departure_city" required/> |
| 10 | <label> Date -> </label> |
| 11 | <input type="datetime-local" name="departure_date" value="<?php echo date('Y-m-d\TH:i'); ?>" required/> |
| 12 | <label> Arrivée : Ville -> </label> |
| 13 | <input type="text" size="15" name="arrival_city" required/> |
| 14 | <label> Date -> </label> |
| 15 | <input type="datetime-local" name="arrival_date" value="<?php echo date('Y-m-d\TH:i', time() + 86400); ?>" required/> |
| 16 | <input type="submit" value="Valider"> |
| 17 | </form> |
| 18 | <br> |