2019-04-18 18:37:23 +02:00
|
|
|
|
<?php
|
2019-05-21 16:06:03 +02:00
|
|
|
|
session_start();
|
2019-05-10 10:23:27 +02:00
|
|
|
|
require_once('../connexionBD.php');
|
2019-05-18 00:40:45 +02:00
|
|
|
|
require_once ('../ressources/user.php');
|
2019-05-22 16:41:08 +02:00
|
|
|
|
require_once ('../ressources/trajet.php');
|
|
|
|
|
require_once ('../ressources/verifconnecte.php');
|
2019-04-18 18:37:23 +02:00
|
|
|
|
?>
|
2019-05-16 11:23:12 +02:00
|
|
|
|
<!DOCTYPE html>
|
|
|
|
|
<html lang="fr">
|
|
|
|
|
<head>
|
2019-05-17 06:24:11 +02:00
|
|
|
|
<meta charset="UTF-8">
|
|
|
|
|
<link rel="stylesheet" href="tableauBord.css">
|
|
|
|
|
<link rel="stylesheet" href="../ressources/navbarhtml.css">
|
|
|
|
|
<link rel="icon" type="image/png" href=""/>
|
|
|
|
|
<title>Tableau de bord</title>
|
2019-05-16 11:23:12 +02:00
|
|
|
|
</head>
|
|
|
|
|
<body>
|
2019-05-17 06:24:11 +02:00
|
|
|
|
<?php require('../ressources/navbarhtml.php'); ?>
|
|
|
|
|
<div id="content">
|
2019-04-28 14:53:08 +02:00
|
|
|
|
<div id="tableauBord">
|
2019-05-17 06:24:11 +02:00
|
|
|
|
<h1>Bienvenue <?php echo getLogin($db, $mail); ?></h1>
|
|
|
|
|
<div id="divImgProfil">
|
2019-05-18 00:40:45 +02:00
|
|
|
|
<img id="imgProfil" src="<?php echo getPathImgProfilTableau($mail); ?>">
|
2019-05-17 06:24:11 +02:00
|
|
|
|
</div>
|
|
|
|
|
<div id="trajet">
|
2019-05-22 22:52:03 +02:00
|
|
|
|
<a class="btnTrajet" href="../deposerTrajet/depotTrajet.php">Déposer un trajet</a>
|
2019-05-17 06:24:11 +02:00
|
|
|
|
<a id="btnTrajet2" class="btnTrajet" href="../ah.php">Rechercher un trajet</a>
|
2019-04-28 14:53:08 +02:00
|
|
|
|
</div>
|
2019-05-17 06:24:11 +02:00
|
|
|
|
<div id="recap">
|
|
|
|
|
<div class="recapLine">
|
|
|
|
|
<img class="recapIcon" src="../car.png">
|
|
|
|
|
<p>Vous avez <?php echo getTrajetsProposes($db, $mail); ?> trajets proposés à effectuer.</p>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="recapLine">
|
|
|
|
|
<img class="recapIcon" src="../car.png">
|
|
|
|
|
<p>Vous avez <?php echo getTrajetsReserves($db, $mail); ?> trajets réservés à effectuer.</p>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="recapLine">
|
|
|
|
|
<img class="recapIcon" src="../mail.svg">
|
|
|
|
|
<p>Vous avez <?php echo getMessagesNonLus($db, $mail); ?> messages non lus.</p>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="recapLine">
|
|
|
|
|
<img class="recapIcon" src="../star.png">
|
|
|
|
|
<p>Vous avez <?php echo getAvisNonLus($db, $mail); ?> avis non lus.</p>
|
|
|
|
|
</div>
|
2019-04-28 14:53:08 +02:00
|
|
|
|
</div>
|
2019-04-18 18:37:23 +02:00
|
|
|
|
</div>
|
2019-05-17 06:24:11 +02:00
|
|
|
|
</div>
|
2019-04-18 18:37:23 +02:00
|
|
|
|
</body>
|
2019-05-07 01:03:54 +02:00
|
|
|
|
</html>
|