header.php 1.19 KB

<!-- header -->
<header class="container-fluid header" style="position: fixed; z-index:289;">
	<div class="container">
		<a href ="accueil.php" class="logo"><i class="fa fa-home"></i> Accueil</a>
		<div class="menu flex-column flex-sm-row">
			<?php 
			if(isset($_SESSION['Login'], $_SESSION['Password']))
			{
				require_once("accesBase.php") ;
				$membre = getMembreByIdPwd($_SESSION['Login'], $_SESSION['Password']);
				?>
				<a href="ajoutRaspberry.php"><i class="far fa-plus-square"></i> Raspberry</a>
				<a href="ajoutCapteur.php"><i class="far fa-plus-square"></i> Capteur</a>
				<a href="send.php"><i class="fa fa-file-upload"></i> Upload</a>
				<a href="history.php"><i class="fas fa-history"></i> Historique</a>
				<a href="rechercheGraphe.php"><i class="fas fa-chart-line"></i> Graphiques</a>
				<a href="data.php"><i class="fas fa-database"></i> Valeurs</a>
				<?php
					if(getGroupe($_SESSION['Login'])==0)
					{
						echo '<a href="inscrire.php"><i class="far fa-plus-square"></i> Compte</a>';
					}
				?>
				<a href="deconnecter.php"><i class="fa fa-power-off"></i> Deconnexion</a>
				<?php
			}
			?>
		</div>
	</div>
</header>
<!-- end header -->