From 01135b89a6848059df608e8c23e8684233772b4f Mon Sep 17 00:00:00 2001
From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= <jerome.benoit@piment-noir.org>
Date: Wed, 17 Jan 2018 10:55:31 +0100
Subject: [PATCH] Cosmetic iand spell fixes.
MIME-Version: 1.0
Content-Type: text/plain; charset=utf8
Content-Transfer-Encoding: 8bit

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
---
 includes/account.php      | 3 ++-
 includes/formbooking.php  | 2 +-
 includes/home.php         | 2 +-
 includes/login.php        | 1 +
 includes/register.php     | 3 ++-
 includes/reservations.php | 1 +
 includes/search.php       | 1 +
 styles/airpolytech.css    | 2 +-
 8 files changed, 10 insertions(+), 5 deletions(-)

diff --git a/includes/account.php b/includes/account.php
index 9e725c3..c7099db 100644
--- a/includes/account.php
+++ b/includes/account.php
@@ -3,9 +3,10 @@ global $is_logged_in;
 if (!$is_logged_in) {
     echo "Please login first.";
     redirect("index.php?page=login", 2);
+    include('footer.html');
     exit();
 }
 ?>
 
 <h2>Mes informations</h2>
-<h2>Mes re&#769;versations</h2>
+<h2><a href="<?php echo $configs['root_url']; ?>/index.php?page=reservations">Mes re&#769;servations</a></h2>
diff --git a/includes/formbooking.php b/includes/formbooking.php
index 8df025e..dd4189e 100644
--- a/includes/formbooking.php
+++ b/includes/formbooking.php
@@ -55,7 +55,7 @@ if (!$input_failure && $is_logged_in && !empty($form_nb_place) && !empty($form_c
         echo "(Simulation de paiement d'une re&#769;servation) <br>";
         echo "Vous avez re&#769;serve&#769; et paye&#769; " . $form_nb_place . " place(s) sur le vol " .$form_flight_id .
              " au de&#769;part de " . $row['VilleD'].  " a&#768; " . $row['DateD'] . " arrivant a&#768; " . $row['VilleA'] . " a&#768; " . $row['DateA'] .
-             " pour un montant de " . $form_place_price * $form_nb_place . "&euro;. <br>";
+             " pour un montant total de " . $form_place_price * $form_nb_place . "&euro;. <br>";
     }
     if ($form_return_flight) {
         redirect("index.php?page=search", 3);
diff --git a/includes/home.php b/includes/home.php
index 058b19a..db4fe90 100644
--- a/includes/home.php
+++ b/includes/home.php
@@ -5,8 +5,8 @@ global $is_logged_in;
 if (!$is_logged_in) {
     $root_url = $configs['root_url'];
     echo "  <tr>\n";
-    echo "    <td><a href=\"$root_url/index.php?page=login\">S'identifier</a></td>\n";
     echo "    <td><a href=\"$root_url/index.php?page=register\">Cre&#769;er un compte</a></td>\n";
+    echo "    <td><a href=\"$root_url/index.php?page=login\">S'identifier</a></td>\n";
     echo "  </tr>\n";
 }
 ?>
diff --git a/includes/login.php b/includes/login.php
index 05f8714..7b8f349 100644
--- a/includes/login.php
+++ b/includes/login.php
@@ -8,3 +8,4 @@
  <input type="password" size="15" name="password" required/>
  <input type="submit" value="Valider">
 </form>
+<br>
diff --git a/includes/register.php b/includes/register.php
index 5c1a107..09918a4 100644
--- a/includes/register.php
+++ b/includes/register.php
@@ -22,5 +22,6 @@
  <input type="password" minlength="8" size="15" name="confirmpassword" pattern="(?=.*\d)(?=.*[a-z])(?=.*[A-Z]).*" title="Doit contenir 8 caracte&#768;res minimum dont une majuscule, une minuscule et un chiffre" required/>
  <input type="submit" value="Valider">
 </form>
-
+<br>
 <p> * : Champs obligatoire. </p>
+<br>
diff --git a/includes/reservations.php b/includes/reservations.php
index 44208ba..e986fb6 100644
--- a/includes/reservations.php
+++ b/includes/reservations.php
@@ -3,6 +3,7 @@ global $is_logged_in;
 if (!$is_logged_in) {
     echo "Please login first.";
     redirect("index.php?page=login", 2);
+    include('footer.html');
     exit();
 }
 ?>
diff --git a/includes/search.php b/includes/search.php
index aab5733..03a9560 100644
--- a/includes/search.php
+++ b/includes/search.php
@@ -15,3 +15,4 @@
  <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>
diff --git a/styles/airpolytech.css b/styles/airpolytech.css
index a05683e..a5e5ebc 100644
--- a/styles/airpolytech.css
+++ b/styles/airpolytech.css
@@ -76,7 +76,7 @@ table {
 
 table#home {
     font-size: 3em;
-    line-height: 1em;
+    line-height: 2.5em;
 }
 
 table#search {
-- 
2.43.0