Mise à jour avec branche bandeau
@ -1,53 +1,18 @@
|
||||
<!DOCTYPE html>
|
||||
|
||||
<html>
|
||||
|
||||
<head>
|
||||
|
||||
<meta charset="utf-8"/>
|
||||
<link rel="stylesheet" href="Recherche.css"/>
|
||||
|
||||
|
||||
</head>
|
||||
|
||||
|
||||
<body>
|
||||
|
||||
<div class="global bord">
|
||||
|
||||
<p class="fort">Rechercher un trajet</p>
|
||||
|
||||
<form method="post" action="Liste.php">
|
||||
|
||||
<p>
|
||||
|
||||
<input name="lieu_depart" type="text" placeholder="Lieu de départ" class="centrage">
|
||||
|
||||
</p>
|
||||
|
||||
<p>
|
||||
|
||||
<input name="lieu_arrivée" type="text" placeholder="Lieu d'arrivée" class="centrage" >
|
||||
|
||||
</p>
|
||||
|
||||
<p>
|
||||
|
||||
<input name="date_heure" type="text" placeholder="Date et heure de départ" class="centrage" >
|
||||
|
||||
</p>
|
||||
|
||||
|
||||
<p>
|
||||
|
||||
<input name="submit" type="submit" value="Rechercher" class="centrage">
|
||||
|
||||
</p>
|
||||
|
||||
<p><input name="lieu_depart" type="text" placeholder="Lieu de départ" class="centrage"></p>
|
||||
<p><input name="lieu_arrivée" type="text" placeholder="Lieu d'arrivée" class="centrage"></p>
|
||||
<p><input name="date_heure" type="text" placeholder="Date et heure de départ" class="centrage"></p>
|
||||
<p><input name="submit" type="submit" value="Rechercher" class="centrage"></p>
|
||||
</form>
|
||||
|
||||
</div>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
@ -0,0 +1,7 @@
|
||||
<?php
|
||||
|
||||
$host = "localhost";
|
||||
$dbname = "projet";
|
||||
$user = "utilisateur";
|
||||
$pass = "-stri-";
|
||||
$db = pg_connect("host=$host port=5432 dbname=$dbname user=$user password=$pass") or die("Erreur lors de la connexion à la base de données.");
|
@ -1,21 +1,11 @@
|
||||
<?php
|
||||
/**
|
||||
* Created by PhpStorm.
|
||||
* User: REMI
|
||||
* Date: 19/04/2019
|
||||
* Time: 10:10
|
||||
*/
|
||||
|
||||
require 'connectionBD.php';
|
||||
$db = connexionBD();
|
||||
init();
|
||||
require_once ('connexionBD.php');
|
||||
|
||||
function init(){
|
||||
session_start();
|
||||
|
||||
if (isset($_SESSION['mail'])){
|
||||
session_unset();
|
||||
session_destroy();
|
||||
}
|
||||
header('Location: index.php');
|
||||
exit();
|
||||
}
|
@ -0,0 +1,39 @@
|
||||
#menuDiv{
|
||||
width: 100%;
|
||||
display: block;
|
||||
}
|
||||
|
||||
#menuDiv a{
|
||||
font-family: "Arial";
|
||||
font-size: 1em;
|
||||
}
|
||||
|
||||
#menu {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
flex-wrap: wrap;
|
||||
justify-content: center;
|
||||
background-color: rgb(65, 154, 28);
|
||||
}
|
||||
|
||||
.menuItem {
|
||||
display: flex;
|
||||
flex-wrap: nowrap;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
color: white;
|
||||
width: 10%;
|
||||
min-width: 5em;
|
||||
font-weight: bold;
|
||||
text-decoration: none;
|
||||
padding: 0.8em;
|
||||
border-bottom: 4px solid rgb(65, 154, 28);
|
||||
border-top: 4px solid rgb(65, 154, 28);
|
||||
font-size: 1.1em;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.menuItem:hover{
|
||||
cursor: pointer;
|
||||
border-bottom: 4px solid orange;
|
||||
}
|
@ -0,0 +1,19 @@
|
||||
<?php
|
||||
$protocol = "https";
|
||||
if (!isset($_SERVER['HTTPS_HOST'])){
|
||||
$protocol = "http";
|
||||
}
|
||||
$path = "$protocol://".$_SERVER['HTTP_HOST'];
|
||||
?>
|
||||
<div id="menuDiv">
|
||||
<nav id="menu">
|
||||
<a class="menuItem" href="<?php echo $path ; ?>/tableauBord/tableauBord.php">Tableau de bord</a>
|
||||
<a class="menuItem" href="<?php echo $path ; ?>/inscription.php">Trajets publiés</a>
|
||||
<a class="menuItem" href="<?php echo $path ; ?>/inscription.php">Trajets réservés</a>
|
||||
<a class="menuItem" href="<?php echo $path ; ?>/inscription.php">Messagerie</a>
|
||||
<a class="menuItem" href="<?php echo $path ; ?>/inscription.php">Avis reçus</a>
|
||||
<a class="menuItem" href="<?php echo $path ; ?>/inscription.php">Avis laissés</a>
|
||||
<a class="menuItem" href="<?php echo $path ; ?>/profil.php">Profil</a>
|
||||
<a class="menuItem" href="<?php echo $path ; ?>/deconnexion.php">Se déconnecter</a>
|
||||
</nav>
|
||||
</div>
|
Before Width: | Height: | Size: 259 KiB After Width: | Height: | Size: 259 KiB |
Before Width: | Height: | Size: 250 KiB After Width: | Height: | Size: 250 KiB |
Before Width: | Height: | Size: 889 KiB After Width: | Height: | Size: 889 KiB |
Before Width: | Height: | Size: 887 KiB After Width: | Height: | Size: 887 KiB |
Before Width: | Height: | Size: 132 KiB After Width: | Height: | Size: 132 KiB |