-
Notifications
You must be signed in to change notification settings - Fork 0
/
head_res.php
66 lines (55 loc) · 1.91 KB
/
head_res.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
56
57
58
59
60
61
62
63
64
65
66
<!-- Header -->
<header class="header">
<nav class="navbar navbar-expand-lg header-nav">
<div class="navbar-header ">
<a id="mobile_btn" href="javascript:void(0);">
<span class="bar-icon">
<span></span>
<span></span>
<span></span>
</span>
</a>
<a href="index.php" class="navbar-brand logo">
<img src="assets/img/logo.png" style="height: 50px;width:90px;" class="img-fluid ml-5" alt="Logo">
</a>
</div>
<div class="main-menu-wrapper">
<div class="menu-header">
<a href="index.php" class="menu-logo">
<img src="assets/img/logo.png" class="img-fluid" alt="Logo">
</a>
<a id="menu_close" class="menu-close" href="javascript:void(0);">
<i class="fas fa-times"></i>
</a>
</div>
<ul class="main-nav">
<li class="active">
<a style="color:white;" href="index.php">Home</a>
</li>
<li>
<a style="color:white;" href="services.php
" >Services</a>
</li>
<li>
<a style="color:white;" href="register.php" >Register</a>
</li>
<li>
<a style="color:white;" href="posts.php" >Get Help</a>
</li>
<?php @session_start(); echo (isset($_SESSION['name']))?'<li><a href="admin" style="color:white;"> '.$_SESSION['name'].'</a></li><li> <a style="color:white;" href="admin/logout.php" >Logout</a> </li>':'<li><a style="color:white;" href="admin" >Sign In</a></li>'; ?>
<script>
function logout_ask()
{
if (confirm("Click Yes To Logout"))
{
window.location.href = "admin/logout.php";
} else {
//window.location.href = "index.php";
}
}
</script>
</ul>
</div>
</nav>
</header>
<!-- /Header -->