header2.html 1.18 KB
<!-- header -->
<header class="header" style="position: fixed; z-index:289;">
	<nav class="navbar navbar-inverse">
		<div class="container-fluid">
			<div class="navbar-header">
				<a class="navbar-brand" href="accueil.php">Accueil</a>
			</div>
			<?php 
			if(isset($_SESSION['Login'], $_SESSION['Password']))
			{
				require_once("accesBase.php") ;
				$membre = getMembreByIdPwd($_SESSION['Login'], $_SESSION['Password']);
				?>
				<ul class="nav navbar-nav">
					<li><a href="gestionRaspberry.php">Raspberry</a></li>
					<li><a href="gestionCapteur.php">Capteur</a></li>
					<li><a href="send.php">Upload</a></li>
					<li><a href="history.php">Historique</a></li>
					<li><a href="rechercheGraphe.php">Graphiques</a></li>
					<li><a href="data.php">Valeurs</a></li>
				</ul>
				<ul class="nav navbar-nav navbar-right">
					<?php
						if(getGroupe($_SESSION['Login'])==1)
						{
							echo '<li><a href="inscrire.php"><span class="glyphicon glyphicon-user"></span> Comptes</a></li>';
						}
					?>
					<li><a href="deconnecter.php"><span class="glyphicon glyphicon-log-out"></span> Deconnexion</a></li>
				</ul>
				<?php
			}
			?>
		</div>
	</nav> 
</header>
<!-- end header -->