now navbarhtml.php has only the navbarhtml

admin
Flavien Haas 6 years ago
parent f9410e6bdd
commit c10f43f1e5

@ -1,11 +1,4 @@
<?php function navbarhtml($title){?>  <nav class="menu">
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<link rel="stylesheet" href="tableauBord.css"><link rel="icon" type="image/png" href=""/>
<title><?php echo $title;?></title>
<nav class="menu">
<a class="menuItem" href="./../inscription.php">Tableau de bord</a> <a class="menuItem" href="./../inscription.php">Tableau de bord</a>
<a class="menuItem" href="../inscription.php">Trajets publiés</a> <a class="menuItem" href="../inscription.php">Trajets publiés</a>
<a class="menuItem" href="../inscription.php">Trajets réservés</a> <a class="menuItem" href="../inscription.php">Trajets réservés</a>
@ -15,6 +8,3 @@
<a class="menuItem" href="../inscription.php">Profil</a> <a class="menuItem" href="../inscription.php">Profil</a>
<a class="menuItem" href="../deconnexion.php">Se déconnecter</a> <a class="menuItem" href="../deconnexion.php">Se déconnecter</a>
</nav> </nav>
</head>
<body>
<?php }?>

@ -1,7 +1,5 @@
<?php <?php
require ('../ressources/navbarhtml.php'); require ('../ressources/navbarhtml.php');
navbarhtml("Tableau de bord");
require ('../connectionBD.php'); require ('../connectionBD.php');
$mail = null; $mail = null;
$db = connexionBD(); $db = connexionBD();
@ -132,7 +130,14 @@ function showVoiture(){
} }
} }
?> ?>
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<link rel="stylesheet" href="tableauBord.css"><link rel="icon" type="image/png" href=""/>
<title>Tableau de bord</title>
</head>
<body>
<script type="text/javascript"> <script type="text/javascript">
function ShowTab (E){ function ShowTab (E){
document.getElementById("addVoiture").style.display = (E == 1) ? 'block' : 'none'; document.getElementById("addVoiture").style.display = (E == 1) ? 'block' : 'none';

Loading…
Cancel
Save