diff --git a/WEB/avis_laisses/avis_laisses.css b/WEB/avis_laisses/avis_laisses.css index b28d24b..c4a475d 100755 --- a/WEB/avis_laisses/avis_laisses.css +++ b/WEB/avis_laisses/avis_laisses.css @@ -7,9 +7,9 @@ Page CSS : avis_laisses.css body { color:black; background-color:white; + background-attachment: fixed; background-image:url("../ressources/image/background.jpg"); - background-repeat:no-repeat; - background-size:100%; + background-size:cover; margin: 0; font-family: Ubuntu,Helvetica,sans-serif; } diff --git a/WEB/avis_laisses/avis_laisses.php b/WEB/avis_laisses/avis_laisses.php index 64faea2..7cbc969 100755 --- a/WEB/avis_laisses/avis_laisses.php +++ b/WEB/avis_laisses/avis_laisses.php @@ -12,7 +12,7 @@ $mail = $_SESSION['mail']; $login = getLogin($db,$mail); -$requete = "SELECT DISTINCT Utilisateur.login, Avis.commentaire, Avis.dateavis, Avis.note FROM Utilisateur, Avis, Trajet WHERE Avis.mailemetteur = $1 AND Avis.mailemetteur = Utilisateur.mail;"; +$requete = "SELECT DISTINCT Avis.codetrajet, Utilisateur.login, Avis.commentaire, Avis.dateavis, Avis.note FROM Utilisateur, Avis, Trajet WHERE Avis.codetrajet = Trajet.codetrajet AND Avis.mailemetteur = $1 AND Trajet.mailproposition = Utilisateur.mail;"; $result = pg_query_params($db, $requete, array($mail)); ?> diff --git a/WEB/avis_recus/avis_recus.css b/WEB/avis_recus/avis_recus.css index bed344e..707b5e1 100755 --- a/WEB/avis_recus/avis_recus.css +++ b/WEB/avis_recus/avis_recus.css @@ -8,8 +8,8 @@ body { color:black; background-color:white; background-image:url("../ressources/image/background.jpg"); - background-repeat:no-repeat; - background-size:104%; + background-attachment: fixed; + background-size:cover; margin: 0; font-family: Ubuntu,Helvetica,sans-serif; } diff --git a/WEB/avis_recus/avis_recus.php b/WEB/avis_recus/avis_recus.php index 626727a..c0dc93b 100755 --- a/WEB/avis_recus/avis_recus.php +++ b/WEB/avis_recus/avis_recus.php @@ -12,7 +12,7 @@ $mail = $_SESSION['mail']; $login = getLogin($db, $mail); -$requete = "SELECT DISTINCT Utilisateur.login, Avis.commentaire, Avis.dateavis, Avis.note FROM Utilisateur, Avis, Trajet WHERE Avis.codetrajet = Trajet.codetrajet AND Trajet.mailproposition = $1 AND Trajet.mailproposition = Utilisateur.mail;"; +$requete = "SELECT DISTINCT Avis.mailemetteur, Avis.codetrajet, Utilisateur.login, Avis.commentaire, Avis.dateavis, Avis.note FROM Utilisateur, Avis, Trajet WHERE Avis.codetrajet = Trajet.codetrajet AND Trajet.mailproposition = $1 AND Avis.mailemetteur = Utilisateur.mail;"; $result = pg_query_params($db, $requete, array($mail)); ?> @@ -37,6 +37,7 @@ $result = pg_query_params($db, $requete, array($mail));
";
- echo " $date_depart - $source vers $dest proposé par : $login | ";
+ echo "Annuler le trajet | "; } diff --git a/WEB/listeTrajetReserve/liste_trajet_reserve.css b/WEB/listeTrajetReserve/liste_trajet_reserve.css index 01ca29c..4a67ada 100644 --- a/WEB/listeTrajetReserve/liste_trajet_reserve.css +++ b/WEB/listeTrajetReserve/liste_trajet_reserve.css @@ -2,8 +2,8 @@ body { color:black; background-color:white; background-image:url("../ressources/image/background.jpg"); - background-repeat:no-repeat; - background-size:104%; + background-attachment: fixed; + background-size:cover; margin: 0; font-family: Ubuntu,Helvetica,sans-serif; } diff --git a/WEB/listeTrajetReserve/liste_trajet_reserve.php b/WEB/listeTrajetReserve/liste_trajet_reserve.php index 2a52dcf..ebcfe45 100644 --- a/WEB/listeTrajetReserve/liste_trajet_reserve.php +++ b/WEB/listeTrajetReserve/liste_trajet_reserve.php @@ -43,14 +43,17 @@ require_once("../ressources/navbarhtml.php"); $date = date('Y-m-d H:i:s'); $dest = getFin($db, $codetrajet); echo "|||||
$date_depart - $source vers $dest proposé par : $login | ";
+ echo "$date_depart - ".$source['nomville']." (".$source['codepostal'].") vers ".$dest['nomville']." (".$dest['codepostal'].") proposé par : $login | ";
+
if ($date <= $row['datearrivee']){
echo "Annuler la reservation | "; } else{ echo "Trajet effectué | ";
}
- echo "Déposer un avis | "; + if (!avisExiste($db, $mail, $codetrajet)){ + echo "Déposer un avis | "; + } echo "
";
- echo " $date_depart - $source vers $dest proposé par : $login | ";
+ echo "Réserver | "; echo "