-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathheader.php
55 lines (49 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<?php
$id_uzytkownika="";
if(isset($_SESSION['id'])){
$id_uzytkownika=$_SESSION['id'];
}
?>
<nav style="margin-bottom:30px;" class="navbar navbar-expand-lg navbar-light bg-light">
<?php
if(isset($_SESSION['funkcja'])){
if($_SESSION['funkcja']=='magazynier'){
?>
<a class="navbar-brand" href="admin.php">Panel magazyniera</a>
<?php
}
}
?>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarText" aria-controls="navbarText" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarText">
<ul class="navbar-nav mr-auto">
<li class="nav-item active">
<a class="nav-link" href="sklep.php">Strona główna <span class="sr-only">(current)</span></a>
</li>
<li class="nav-item">
<a class="nav-link" href="koszyk.php">Mój koszyk [<?php
if (isset($_SESSION['chart-num']))
{
echo $_SESSION['chart-num'];
}else{
echo 0;
}?>]</a>
</li>
<li class="nav-item">
<a class="nav-link" href="moje-dane.php?<?php echo "id=$id_uzytkownika" ?>">Moje dane</a>
</li>
<li class="nav-item">
<a class="nav-link" href="moje-zamowienia.php">Zamówienia</a>
</li>
<li class="nav-item">
<a class="nav-link" href="logout.php">Wyloguj</a>
</li>
</ul>
<span class="navbar-text">
Witaj <?php echo $_SESSION['imie'] ?>
</span>
</div>
</nav>
</div>