-
Notifications
You must be signed in to change notification settings - Fork 0
/
navbar.php
28 lines (25 loc) · 1.64 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
<nav class="navbar navbar-expand-lg navbar-light fixed-top py-3" id="mainNav">
<div class="container">
<a class="navbar-brand js-scroll-trigger" href="./"><?php echo $_SESSION['setting_name'] ?></a>
<button class="navbar-toggler navbar-toggler-right" type="button" data-toggle="collapse"
data-target="#navbarResponsive" aria-controls="navbarResponsive" aria-expanded="false"
aria-label="Toggle navigation"><span class="navbar-toggler-icon"></span></button>
<div class="collapse navbar-collapse" id="navbarResponsive">
<ul class="navbar-nav ml-auto my-2 my-lg-0">
<li class="nav-item"><a class="nav-link js-scroll-trigger" href="index.php?page=home">Home</a></li>
<li class="nav-item"><a class="nav-link js-scroll-trigger" href="index.php?page=doctors"></span>
Appointment</a></li>
<li class="nav-item"><a class="nav-link js-scroll-trigger" href="index.php?page=about">About</a></li>
<!--onced loged in-->
<?php if (isset($_SESSION['login_id'])): ?>
<li class="nav-item"><a class="nav-link js-scroll-trigger"
href="admin/ajax.php?action=logout2"><?php echo "Welcome " . $_SESSION['login_name'] ?>
<i class="fa fa-power-off"></i></a></li>
<?php else: ?>
<li class="nav-item"><a class="nav-link js-scroll-trigger" href="javascript:void(0)" id="login_now">Login</a>
</li>
<?php endif; ?>
</ul>
</div>
</div>
</nav>