This repository has been archived by the owner on Jan 14, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathheader.php
35 lines (33 loc) · 1.75 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
<header>
<div class="alert-message">Logiciel en cours de développement : les données sont fictives - les résultats ne sont pas utilisables</div>
<div class="container-topbar">
<a href="/" class="left-topbar">
<div class="image">
<img src="../public/images/favicon.ico" alt="logo">
</div>
<div class="logo-site">
<div class="product-name">SmartLab</div>
<div class="entreprise">Living Lab</div>
</div>
</a>
<div class="right-topbar">
<a href="<?=$_SERVER['REQUEST_URI']?>" class="navbar-button"><span class="material-symbols-outlined">sync </span></a>
<?php if(isset($_SESSION['isLogged']) and $_SESSION['isLogged']===true):?>
<?php if($_SESSION["function"]==="Administrateur") echo('<a href="/admin" class="navbar-button"><span class="material-symbols-outlined">settings</span></a>')?>
<a href="/logout" class="navbar-button"><span class="material-symbols-outlined">logout</span></a>
<a href="/" class="navbar-button"><span class="material-symbols-outlined">home</span></a>
<a href="/" class="profile">
<div class="profile-picture">
<img src="../public/images/avatar.png" alt="Avatar">
</div>
<div class="pharmacist-data">
<p class="name"><?php echo $_SESSION["full_name"]?></p>
<p class="function"><?php echo $_SESSION["function"]?></p>
</div>
</a>
<?php else:?>
<a href="/" class="navbar-button"><span class="material-symbols-outlined">help</span></a>
<?php endif;?>
</div>
</div>
</header>