Commit 002de3aae953e8d2f4e86dd290ec18ed008d5fab

Authored by grouille
1 parent 9f27ccc1

Test navbar

Showing 3 changed files with 92 additions and 19 deletions   Show diff stats
site/header.php
1   -
2 1 <!-- header -->
3   -<header class="container-fluid header" style="position: fixed; z-index:289;">
4   - <div class="container">
5   - <a href ="accueil.php" class="logo"><i class="fa fa-home"></i> Accueil</a>
6   - <div class="menu flex-column flex-sm-row">
  2 +<header class="header" style="position: fixed; z-index:289;">
  3 + <nav class="navbar navbar-inverse">
  4 + <div class="container-fluid">
  5 + <div class="navbar-header">
  6 + <a class="navbar-brand" href="accueil.php">Accueil</a>
  7 + </div>
7 8 <?php
8 9 if(isset($_SESSION['Login'], $_SESSION['Password']))
9 10 {
10 11 require_once("accesBase.php") ;
11 12 $membre = getMembreByIdPwd($_SESSION['Login'], $_SESSION['Password']);
12 13 ?>
13   - <a href="gestionRaspberry.php"><i class="fas fa-cogs"></i> Raspberry</a>
14   - <a href="gestionCapteur.php"><i class="fas fa-cogs"></i> Capteur</a>
15   - <a href="send.php"><i class="fa fa-file-upload"></i> Upload</a>
16   - <a href="history.php"><i class="fas fa-history"></i> Historique</a>
17   - <a href="rechercheGraphe.php"><i class="fas fa-chart-line"></i> Graphiques</a>
18   - <a href="data.php"><i class="fas fa-database"></i> Valeurs</a>
19   - <?php
20   - if(getGroupe($_SESSION['Login'])==1)
21   - {
22   - echo '<a href="inscrire.php"><i class="fas fa-users-cog"></i> Compte</a>';
23   - }
24   - ?>
25   - <a href="deconnecter.php"><i class="fa fa-power-off"></i> Deconnexion</a>
  14 + <ul class="nav navbar-nav">
  15 + <li><a href="gestionRaspberry.php">Raspberry</a></li>
  16 + <li><a href="gestionCapteur.php">Capteur</a></li>
  17 + <li><a href="send.php">Upload</a></li>
  18 + <li><a href="history.php">Historique</a></li>
  19 + <li><a href="rechercheGraphe.php">Graphiques</a></li>
  20 + <li><a href="data.php">Valeurs</a></li>
  21 + </ul>
  22 + <ul class="nav navbar-nav navbar-right">
  23 + <?php
  24 + if(getGroupe($_SESSION['Login'])==1)
  25 + {
  26 + echo '<li><a href="inscrire.php"><span class="glyphicon glyphicon-user"></span> Comptes</a></li>';
  27 + }
  28 + ?>
  29 + <li><a href="deconnecter.php"><span class="glyphicon glyphicon-log-out"></span> Deconnexion</a></li>
  30 + </ul>
26 31 <?php
27 32 }
28 33 ?>
29 34 </div>
30   - </div>
  35 + </nav>
31 36 </header>
32 37 <!-- end header -->
... ...
site/header2.html 0 → 100644
... ... @@ -0,0 +1,37 @@
  1 +<!-- header -->
  2 +<header class="header" style="position: fixed; z-index:289;">
  3 + <nav class="navbar navbar-inverse">
  4 + <div class="container-fluid">
  5 + <div class="navbar-header">
  6 + <a class="navbar-brand" href="accueil.php">Accueil</a>
  7 + </div>
  8 + <?php
  9 + if(isset($_SESSION['Login'], $_SESSION['Password']))
  10 + {
  11 + require_once("accesBase.php") ;
  12 + $membre = getMembreByIdPwd($_SESSION['Login'], $_SESSION['Password']);
  13 + ?>
  14 + <ul class="nav navbar-nav">
  15 + <li><a href="gestionRaspberry.php">Raspberry</a></li>
  16 + <li><a href="gestionCapteur.php">Capteur</a></li>
  17 + <li><a href="send.php">Upload</a></li>
  18 + <li><a href="history.php">Historique</a></li>
  19 + <li><a href="rechercheGraphe.php">Graphiques</a></li>
  20 + <li><a href="data.php">Valeurs</a></li>
  21 + </ul>
  22 + <ul class="nav navbar-nav navbar-right">
  23 + <?php
  24 + if(getGroupe($_SESSION['Login'])==1)
  25 + {
  26 + echo '<li><a href="inscrire.php"><span class="glyphicon glyphicon-user"></span> Comptes</a></li>';
  27 + }
  28 + ?>
  29 + <li><a href="deconnecter.php"><span class="glyphicon glyphicon-log-out"></span> Deconnexion</a></li>
  30 + </ul>
  31 + <?php
  32 + }
  33 + ?>
  34 + </div>
  35 + </nav>
  36 +</header>
  37 +<!-- end header -->
... ...
site/header2.php 0 → 100644
... ... @@ -0,0 +1,31 @@
  1 +<!-- header -->
  2 +<header class="container-fluid header" style="position: fixed; z-index:289;">
  3 + <div class="container">
  4 + <a href ="accueil.php" class="logo"><i class="fa fa-home"></i> Accueil</a>
  5 + <div class="menu flex-column flex-sm-row">
  6 + <?php
  7 + if(isset($_SESSION['Login'], $_SESSION['Password']))
  8 + {
  9 + require_once("accesBase.php") ;
  10 + $membre = getMembreByIdPwd($_SESSION['Login'], $_SESSION['Password']);
  11 + ?>
  12 + <a href="gestionRaspberry.php"><i class="fas fa-cogs"></i> Raspberry</a>
  13 + <a href="gestionCapteur.php"><i class="fas fa-cogs"></i> Capteur</a>
  14 + <a href="send.php"><i class="fa fa-file-upload"></i> Upload</a>
  15 + <a href="history.php"><i class="fas fa-history"></i> Historique</a>
  16 + <a href="rechercheGraphe.php"><i class="fas fa-chart-line"></i> Graphiques</a>
  17 + <a href="data.php"><i class="fas fa-database"></i> Valeurs</a>
  18 + <?php
  19 + if(getGroupe($_SESSION['Login'])==1)
  20 + {
  21 + echo '<a href="inscrire.php"><i class="fas fa-users-cog"></i> Compte</a>';
  22 + }
  23 + ?>
  24 + <a href="deconnecter.php"><i class="fa fa-power-off"></i> Deconnexion</a>
  25 + <?php
  26 + }
  27 + ?>
  28 + </div>
  29 + </div>
  30 +</header>
  31 +<!-- end header -->
... ...