diff --git a/WEB/avis_laisses/avis_laisse.php b/WEB/avis_laisses/avis_laisse.php deleted file mode 100644 index 4390cea..0000000 --- a/WEB/avis_laisses/avis_laisse.php +++ /dev/null @@ -1,29 +0,0 @@ - - - - - - - - Liste des trajets - - -
- -
- Bouton retour -

Avis laissés

-
-
- -
-
-
- -
- - - \ No newline at end of file diff --git a/WEB/avis_laisses/avis_laisses.css b/WEB/avis_laisses/avis_laisses.css new file mode 100755 index 0000000..75e64f3 --- /dev/null +++ b/WEB/avis_laisses/avis_laisses.css @@ -0,0 +1,46 @@ +/* +Crée par PALAFFRE Raphael +Fonction: Lister les avis laisses +Page CSS : avis_laisses.css +*/ + +body { + color:black; + background-color:white; + background-image:url(../resources/background.jpg); + background-repeat:no-repeat; + background-size:104%; + margin: 0; + font-family: Ubuntu,Helvetica,sans-serif; +} + +#container{ + margin : 5% 5% 5% 5%; + background-color : white; + border : 2px solid black; +} + +h1{ + text-align : center; + font-size : 250%; + font-weight: bold; +} + +h2{ + text-align : center; + font-size : 150%; + font-weight: bold; +} + +#bouton_retour{ + transform : rotate(45deg); +} + +.etoile{ + height:50px; +} + +#avis_tab{ + width:85%; + padding-left:15%; +} diff --git a/WEB/avis_laisses/avis_laisses.php b/WEB/avis_laisses/avis_laisses.php new file mode 100755 index 0000000..3119df3 --- /dev/null +++ b/WEB/avis_laisses/avis_laisses.php @@ -0,0 +1,89 @@ + + + + + + + + + + Avis Laissés + + + + +
+ +
+ Bouton retour +

Avis Laissés

+
+
+ +
+ + + + + +
+ $i){ + echo "

$login

" + echo "

$resulttab_dateAvis[$i]

" + echo "
$resulttab_dateAvis[$i]
" + $i++; + } + ?> +
+ $j){ + if ($resulttab_note[$j]==0){ + echo "\"star\"\"star\"\"star\""; + } + else if ($resulttab_note[$j]==1) { + echo "\"star\"\"star\"\"star\""; + } + else if ($resulttab_note[$j]==2) { + echo "\"star\"\"star\"\"star\""; + } + else { + echo "\"star\"\"star\"\"star\""; + } + $i++; + } + ?> +
+
+
+ + diff --git a/WEB/liste_trajets/liste.css b/WEB/avis_recus/avis_recus.css old mode 100644 new mode 100755 similarity index 50% rename from WEB/liste_trajets/liste.css rename to WEB/avis_recus/avis_recus.css index c962619..afc9197 --- a/WEB/liste_trajets/liste.css +++ b/WEB/avis_recus/avis_recus.css @@ -1,36 +1,46 @@ -body { - color:black; - background-color:white; - background-image:url(background.jpg); - background-repeat:no-repeat; - background-size:104%; - margin: 0; -} - -#container{ - margin : 5% 5% 5% 5%; - background-color : white; - border : 2px solid black; -} - -h1{ - text-align : center; - font-size : 250%; -} - -h2{ - text-align : center; - font-size : 150%; -} - -#bouton_retour{ - transform : rotate(45deg); -} - -.separation{ - margin-top : 5%; - margin-left : 10%; - height: 200px; - width : 5px; - background: black; - } \ No newline at end of file +/* +Crée par PALAFFRE Raphael +Fonction: Lister les avis recus +Page CSS : avis_recu.css +*/ + +body { + color:black; + background-color:white; + background-image:url(../resources/background.jpg); + background-repeat:no-repeat; + background-size:104%; + margin: 0; + font-family: Ubuntu,Helvetica,sans-serif; +} + +#container{ + margin : 5% 5% 5% 5%; + background-color : white; + border : 2px solid black; +} + +h1{ + text-align : center; + font-size : 250%; + font-weight: bold; +} + +h2{ + text-align : center; + font-size : 150%; + font-weight: bold; +} + +#bouton_retour{ + transform : rotate(45deg); +} + +.etoile{ + height:50px; +} + +#avis_tab{ + width:85%; + padding-left:15%; +} diff --git a/WEB/avis_recus/avis_recus.php b/WEB/avis_recus/avis_recus.php new file mode 100755 index 0000000..3c5038b --- /dev/null +++ b/WEB/avis_recus/avis_recus.php @@ -0,0 +1,82 @@ + + + + + + + + Avis Recus + + +
+
+ Bouton retour +

Avis Recus

+
+
+
+ + + + + +
+ $i){ + echo "

$resulttab_login[$i]

" + echo "

$resulttab_dateAvis[$i]

" + echo "
$resulttab_dateAvis[$i]
" + $i++; + } + ?> +
+ \"star\"\"star\""; + } + elseif ($note==1){ + echo "\"star\"\"star\"\"star\""; + } + elseif ($note==2){ + echo "\"star\"\"star\"\"star\""; + } + else { + echo "\"star\"\"star\"\"star\""; + } + ?> +
+
+
+ + diff --git a/WEB/deposer_avis/background.jpg b/WEB/deposer_avis/background.jpg deleted file mode 100644 index ca3e7af..0000000 Binary files a/WEB/deposer_avis/background.jpg and /dev/null differ diff --git a/WEB/deposer_avis/deposer_avis.css b/WEB/deposer_avis/deposer_avis.css old mode 100644 new mode 100755 index 7930696..88906c9 --- a/WEB/deposer_avis/deposer_avis.css +++ b/WEB/deposer_avis/deposer_avis.css @@ -1,57 +1,59 @@ -/* -Crée par PALAFFRE Raphael -Fonction:Depot d'avis -Page PHP : deposer_avis.php -Page HTML : deposer_avis.html -*/ - -body { - color:black; - background-color:white; - background-image:url(background.jpg); - background-repeat:no-repeat; - background-size:104%; - margin: 0; -} - -#container{ - margin : 5% 15% 5% 15%; - background-color : white; - border : 2px solid black; -} - -h1{ - text-align : center; - font-size : 250%; -} - -#form{ - text-align:center; -} - -#avis_laisse{ - resize: none -} - -#submit{ - margin-bottom: 1%; -} - -.rating { - direction: rtl; -} - -.rating a { - color: #aaa; - text-decoration: none; - font-size: 3em; - transition: color .4s; -} - -.rating a:hover, -.rating a:focus, -.rating a:hover ~ a, -.rating a:focus ~ a { - color: orange; - cursor: pointer; +/* +Crée par PALAFFRE Raphael +Fonction:Depot d'avis +Page PHP : deposer_avis.php +Page HTML : deposer_avis.html +*/ + +body { + color:black; + background-color:white; + background-image:url(../resources/background.jpg); + background-repeat:no-repeat; + background-size:104%; + margin: 0; + font-family: Ubuntu,Helvetica,sans-serif; +} + +#container{ + margin : 5% 15% 5% 15%; + background-color : white; + border : 2px solid black; +} + +h1{ + text-align : center; + font-size : 250%; + font-weight: bold; +} + +#form{ + text-align:center; +} + +#avis_laisse{ + resize: none +} + +#submit{ + margin-bottom: 1%; +} + +.rating { + direction: rtl; +} + +.rating a { + color: #aaa; + text-decoration: none; + font-size: 3em; + transition: color .4s; +} + +.rating a:hover, +.rating a:focus, +.rating a:hover ~ a, +.rating a:focus ~ a { + color: orange; + cursor: pointer; } \ No newline at end of file diff --git a/WEB/deposer_avis/deposer_avis.html b/WEB/deposer_avis/deposer_avis.html deleted file mode 100644 index aede655..0000000 --- a/WEB/deposer_avis/deposer_avis.html +++ /dev/null @@ -1,56 +0,0 @@ - - - - - - - - Deposer un avis - - -
- -
-

Deposer un avis

-
- -
-
- -
- -
- -

NOTE

- -
- - - - - - - - - - -
- -
- -
- -
- -
-
- -
- - - \ No newline at end of file diff --git a/WEB/deposer_avis/deposer_avis.php b/WEB/deposer_avis/deposer_avis.php old mode 100644 new mode 100755 index 039b31d..7f9591f --- a/WEB/deposer_avis/deposer_avis.php +++ b/WEB/deposer_avis/deposer_avis.php @@ -1,38 +1,75 @@ - - - \ No newline at end of file + + + + + + + + + Deposer un avis + + +
+
+

Deposer un avis

+
+
+
+
+ +
+

NOTE

+
+ + + + + + +
+
+
+ +
+
+
+
+ + diff --git a/WEB/deposer_avis/return.png b/WEB/deposer_avis/return.png deleted file mode 100644 index 0292fcb..0000000 Binary files a/WEB/deposer_avis/return.png and /dev/null differ diff --git a/WEB/liste_trajets/background.jpg b/WEB/liste_trajets/background.jpg deleted file mode 100644 index ca3e7af..0000000 Binary files a/WEB/liste_trajets/background.jpg and /dev/null differ diff --git a/WEB/liste_trajets/liste.php b/WEB/liste_trajets/liste.php deleted file mode 100644 index 0e5d0e5..0000000 --- a/WEB/liste_trajets/liste.php +++ /dev/null @@ -1,33 +0,0 @@ - - - - - - - - Liste des trajets - - -
- -
- Bouton retour -

Liste des trajets

-
-

Trajets recherchés : -->

-
- -
-
-
- -
- - - \ No newline at end of file diff --git a/WEB/avis_laisses/avis_laisse.css b/WEB/liste_trajets/liste_trajet.css old mode 100644 new mode 100755 similarity index 53% rename from WEB/avis_laisses/avis_laisse.css rename to WEB/liste_trajets/liste_trajet.css index 04edc78..ee12bc7 --- a/WEB/avis_laisses/avis_laisse.css +++ b/WEB/liste_trajets/liste_trajet.css @@ -1,36 +1,54 @@ -body { - color:black; - background-color:white; - background-image:url(background.jpg); - background-repeat:no-repeat; - background-size:104%; - margin: 0; -} - -#container{ - margin : 5% 5% 5% 5%; - background-color : white; - border : 2px solid black; -} - -h1{ - text-align : center; - font-size : 250%; -} - -h2{ - text-align : center; - font-size : 150%; -} - -#bouton_retour{ - transform : rotate(45deg); -} - -.separation{ - margin-top : 5%; - margin-left : 10%; - height: 200px; - width : 5px; - background: black; +/* +Crée par PALAFFRE Raphael +Fonction: Lister les trajets recherché +Page PHP : liste.php +*/ + +body { + color:black; + background-color:white; + background-image:url(../resources/background.jpg); + background-repeat:no-repeat; + background-size:104%; + margin: 0; + font-family: Ubuntu,Helvetica,sans-serif; +} + +#container{ + margin : 5% 5% 5% 5%; + background-color : white; + border : 2px solid black; +} + +h1{ + text-align : center; + font-size : 250%; + font-weight: bold; +} + +h2{ + text-align : center; + font-size : 150%; + font-weight: bold; +} + +#bouton_retour{ + transform : rotate(45deg); +} + +.separation{ + margin-top : 5%; + margin-left : 20%; + height: 200px; + width : 5px; + background: black; +} + +#ligne{ + padding-left:10%; + width: 33%; +} + +#info{ + width: 60%; } \ No newline at end of file diff --git a/WEB/liste_trajets/liste_trajet.php b/WEB/liste_trajets/liste_trajet.php new file mode 100755 index 0000000..cef8c7d --- /dev/null +++ b/WEB/liste_trajets/liste_trajet.php @@ -0,0 +1,73 @@ + contact.php +*/ + +$source=$_POST['lieu_depart']; +$dest=$_POST['lieu_arrivee']; +$date_depart=$_POST['date_heure']; + +$requete="SELECT codeTrajet, dateDepart, dateArrivee, mailProposition FROM Trajet WHERE Trajet.dateDepart=$date_depart AND (SELECT codeTrajet FROM Traverser WHERE nomVille=$source AND nomVille=$dest)=Trajet.codeTrajet;"; + +$envoi = pg_query($db,$requete); + +if ($envoi == FALSE){ + echo 'Erreur !'; +} +?> + + + + + + + Liste des trajets + + +
+
+ Bouton retour +

Liste des trajets

+
+

Trajets recherchés : ".$dest; ?>

+
+
+ + + + + + +
+
+
+ $dest : $login"; + //sourcedest recupéré avec le code du trajet, afficher plusieurs avec un while + ?> + +
+ "; + echo ""; + ?> + +
+
+
+
+ + diff --git a/WEB/liste_trajets/return.png b/WEB/liste_trajets/return.png deleted file mode 100644 index 0292fcb..0000000 Binary files a/WEB/liste_trajets/return.png and /dev/null differ diff --git a/WEB/avis_laisses/background.jpg b/WEB/ressources/image/background.jpg old mode 100644 new mode 100755 similarity index 100% rename from WEB/avis_laisses/background.jpg rename to WEB/ressources/image/background.jpg diff --git a/WEB/ressources/image/favicon.ico b/WEB/ressources/image/favicon.ico new file mode 100755 index 0000000..504564d Binary files /dev/null and b/WEB/ressources/image/favicon.ico differ diff --git a/WEB/avis_laisses/return.png b/WEB/ressources/image/return.png old mode 100644 new mode 100755 similarity index 100% rename from WEB/avis_laisses/return.png rename to WEB/ressources/image/return.png diff --git a/WEB/ressources/image/star.png b/WEB/ressources/image/star.png new file mode 100755 index 0000000..233beaf Binary files /dev/null and b/WEB/ressources/image/star.png differ diff --git a/WEB/ressources/image/star_full.png b/WEB/ressources/image/star_full.png new file mode 100755 index 0000000..b6a8f83 Binary files /dev/null and b/WEB/ressources/image/star_full.png differ diff --git a/WEB/ressources/image/star_half.png b/WEB/ressources/image/star_half.png new file mode 100755 index 0000000..7b25538 Binary files /dev/null and b/WEB/ressources/image/star_half.png differ