-
Notifications
You must be signed in to change notification settings - Fork 56
/
navbar.php
50 lines (44 loc) · 1.5 KB
/
navbar.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
<nav class="navbar navbar-expand-lg navbar-light white" style="position: fixed; width: 100%;z-index: 20;">
<a class="navbar-brand" href="checkproduct.php">
<img src="images/fibble.png" style="width: 30px;">  
</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#basicExampleNav"
aria-controls="basicExampleNav" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon" style="color: #4287f5;"></span>
</button>
<div class="collapse navbar-collapse" id="basicExampleNav">
<ul class="navbar-nav mr-auto">
<?php
if ( isset( $_SESSION['role'] ) ){
?>
<li class="nav-item">
<a class="nav-link" href="checkproduct.php">Check Products</a>
</li>
<?php
if ( $_SESSION['role']==0 ){
?>
<li class="nav-item">
<a class="nav-link" href="addproduct.php">Add Products</a>
</li>
<?php
}if ( $_SESSION['role']==1 || $_SESSION['role']==0 ){
?>
<li class="nav-item">
<a class="nav-link" href="scanshipment.php">Scan Shipment</a>
</li>
<?php
}
}
?>
<li class="nav-item">
<a class="nav-link" id="aboutbtn"> About </a>
</li>
</ul>
<form class="form-inline">
<div class="md-form my-0">
<a class="nav-link" href="logout.php" style="padding-left:5px;padding-right:5px;margin-left:0px;"> Logout </a>
</div>
</form>
</div>
</nav>
<!-- Developed by Anubhav Dutta : https://www.linkedin.com/in/iamanubhavdutta/ -->