-
Notifications
You must be signed in to change notification settings - Fork 6
/
header.php
82 lines (74 loc) · 3.87 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
<?php
include_once('lib/Session.php');
Session::init();
Session::check_session();
if (isset($_GET['action']) && $_GET['action'] == "logout"){
Session::destroy();
}
?>
<!DOCTYPE html>
<html>
<head>
<title>Home page</title>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" href="http://cdn.jsdelivr.net/semantic-ui/1.2.0/semantic.min.css"/>
<link rel="stylesheet" type="text/css" href="css/_bootstrap-datetimepicker.css">
<link rel="stylesheet" type="text/css" href="fonts/font-awesome/font-awesome.css">
<link rel="stylesheet" type="text/css" href="css/formValidation.css">
<link rel="stylesheet" type="text/css" href="css/animate.css">
<link rel="stylesheet" type="text/css" href="owl.carousel/owl.carousel.css">
<link rel="stylesheet" type="text/css" href="owl.carousel/owl.theme.default.min.css">
<link rel="stylesheet" type="text/css" href="nivo.slider/nivo.slider.css">
<link rel="stylesheet" type="text/css" href="nivo.slider/themes/default/default.css">
<link rel="stylesheet" type="text/css" href="fonts/custom-fonts.css">
<link rel="stylesheet" type="text/css" href="style.css">
<link rel="stylesheet" type="text/css" href="css/responsive.css">
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<!-- ====================== Top nav bar ========================== -->
<nav class="navbar navbar-default header-nav">
<div class="container-fluid">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#mainNavBody" aria-expanded="false">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#"><img src="images/logo.png" class="img-responsive "> </a>
</div>
<!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse" id="mainNavBody">
<ul class="nav navbar-nav right-nav">
<li><a href="index.php">Home</a></li>
<li><a href="user-registration-page.php">Registration</a></li>
<li><a href="contact-us.php"><i class="fa fa-phone" aria-hidden="true"></i>Contact us</a></li>
<li class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="fa fa-user-circle-o" aria-hidden="true"></i> Setting <span class="caret"></span> </a>
<ul class="dropdown-menu custom-dropdown">
<?php
$login_status = Session::get('login_status');
if($login_status != false){ ?>
<li><a href="profile.php">profile</a></li>
<li><a href="?action=logout">Logout</a></li>
<?php } else{?>
<li><a href="user-login.php"><i style="padding-right: 5px;" class="fa fa-lock" aria-hidden="true"></i>
User login</a></li>
<li><a href="cuirer-login.php"><i style="padding-right: 5px;" class="fa fa-lock" aria-hidden="true"></i>
Cuirer Login</a></li>
<li><a href="admin-login.php"><i style="padding-right: 5px;" class="fa fa-lock" aria-hidden="true"></i>
Admin-login</a></li>
<?php }?>
</ul>
</li>
</ul>
</div><!-- /.navbar-collapse -->
</div><!-- /.container-fluid -->
</nav>