simplified the echo
This commit is contained in:
parent
a2e72de86c
commit
2ab4061db9
@ -1,5 +1,20 @@
|
|||||||
<?php
|
<?php function navbarHTML($title){?>
|
||||||
function navbarHTML($title){
|
<!DOCTYPE html>
|
||||||
echo '<!DOCTYPE html><html lang="fr"><head><meta charset="UTF-8"><link rel="stylesheet" href="tableauBord.css"><link rel="icon" type="image/png" href=""/><title>'.$title.'</title><nav class="menu"><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 réservés</a><a class="menuItem" href="../inscription.php">Messagerie</a><a class="menuItem" href="../inscription.php">Avis reçus</a><a class="menuItem" href="../inscription.php">Avis laissés</a><a class="menuItem" href="../inscription.php">Profil</a><a class="menuItem" href="../deconnexion.php">Se déconnecter</a></nav></head><body>';
|
<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">Trajets publiés</a>
|
||||||
|
<a class="menuItem" href="../inscription.php">Trajets réservés</a>
|
||||||
|
<a class="menuItem" href="../inscription.php">Messagerie</a>
|
||||||
|
<a class="menuItem" href="../inscription.php">Avis reçus</a>
|
||||||
|
<a class="menuItem" href="../inscription.php">Avis laissés</a>
|
||||||
|
<a class="menuItem" href="../inscription.php">Profil</a>
|
||||||
|
<a class="menuItem" href="../deconnexion.php">Se déconnecter</a>
|
||||||
|
</nav>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<?php }?>
|
||||||
|
Loading…
Reference in New Issue
Block a user