-
Notifications
You must be signed in to change notification settings - Fork 0
/
header.php
35 lines (33 loc) · 1.55 KB
/
header.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<?php
/******************************************************************************/
/*************** [POLYTECH] Web Project - Project Designer *******************/
/************************** Année 2017-2018 ***********************************/
/******* Detcheberry Valentin - Vuillemin Anthony - Corentin TROADEC **********/
/******************************************************************************/
/**
* @file ~ header.php
* @descritpion ~ Header par défaut du site.
*/
?>
<script src="js/sweetalert2.js"></script>
<script type="text/javascript" src="js/connexion_inscription.js"></script>
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.0.13/css/all.css" integrity="sha384-DNOHZ68U8hZfKXOrtjWvjxusGo9WQnrNx2sqG0tfsghAvtVlRW3tvkXWZh58N9jp" crossorigin="anonymous">
<header>
<nav id="menu">
<ul>
<a href="index.php"><li>Home</li></a>
<?php
if(isset($_SESSION['user_pseudo']))
echo "<a href='myproject.php'><li>My Projects</li></a>";
?>
</ul>
<ul id="rightNavBar">
<?php
if(isset($_SESSION['user_pseudo']))
echo "<a href='#'><li>Utilsateur : ".$_SESSION['user_pseudo']." </li></a><a href='#' onclick='logOut()'><li> Log Out </li></a>";
else
echo "<a href='#' onclick='display_connexionIHM()'><li>Login</li></a><a href='#' onclick='display_inscriptionIHM()'><li>Sign In</li></a>";
?>
</ul>
</nav>
</header>