-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFinalheader.php
More file actions
168 lines (145 loc) · 5.01 KB
/
Finalheader.php
File metadata and controls
168 lines (145 loc) · 5.01 KB
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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
<?php
error_reporting(E_ALL & ~E_NOTICE);
session_start();
session_start(); // Make sure to start the session at the beginning of your script
// Check if the "user" key is set in the session
if (isset($_SESSION['user'])) {
$user = $_SESSION['user'];
} else {
// The "user" key is not set, handle accordingly
$user = "Guest"; // Default value for non-logged in users
}
// echo $user;
?>
<!DOCTYPE html>
<html>
<head>
<title>Fashion</title>
<meta charset="UTF-8">
<meta name="description" content="test">
<meta name="keywords" content="HTML, CSS, BOOTSTRAP">
<meta name="author" content="Bipul">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css" integrity="sha384-9aIt2nRpC12Uk9gS9baDl411NQApFmC26EwAOH8WgZl5MYYxFfc+NcPb1dKGj7Sk" crossorigin="anonymous">
<link href="https://fonts.googleapis.com/css2?family=Raleway:wght@700&display=swap" rel="stylesheet">
<!--font-family: 'Raleway', sans-serif;-->
<link rel="favicon" type="text/css" href="#favicon">
<link rel="stylesheet" type="text/css" href="css/style.css">
<link rel="stylesheet" type="text/css" href="css/responsive.css">
<style >
.navbar {
background-color: #f2f2f2;
padding: 15px 0;
height:60px;
}
.navbar-brand {
color: skyblue;
font-size: 23px;
font-family: 'Raleway', sans-serif;
font-weight: bold;
margin-right: 20px;
}
.navbar-nav .nav-link {
color: white;
font-weight: bold;
margin:10px;
}
.navbar-nav .nav-link:hover {
color: white;
background-color:skyblue;
border: 1px solid whitesmoke;
border-radius: 20px;
}
.navbar-toggler {
border: none;
outline: none;
}
.navbar-toggler-icon {
background-color: #007bff;
width: 24px;
height: 2px;
}
.navbar-toggler-icon:before,
.navbar-toggler-icon:after {
background-color: #007bff;
content: "";
display: block;
width: 24px;
height: 2px;
}
.logo b {
/* color: skyblue;
font: 23px arial sans-serif;
margin-left:100px;
.logo b { */
color: skyblue;
font-size: 30px;
font-weight: bold;
text-transform: uppercase;
letter-spacing: 2px;
margin-bottom: 0;
display: inline-block;
/* } */
}
#navbarSupportedContent{
margin-left:290px;
}
</style>
</head>
<body>
<nav class="navbar navbar-expand-lg navbar-light bg-light">
<div class="container">
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="logo">
<a href="Home.php"> <b>THIRD EYE</b></div></a>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav mr-auto">
<li class="nav-item">
<a class="nav-link" href="Home.php">Home</a>
</li>
<li class="nav-item">
<a class="nav-link" href="Glasses.php">Store</a>
</li>
<li class="nav-item">
<a class="nav-link" href="pfglasses.php">Prescription Frames</a>
</li>
<!-- <li class="nav-item">
<a class="nav-link" href="booktime.php">Book Time</a>
</li> -->
<!-- <li class="nav-item">
<a class="nav-link" href="Mybookings.php">My Bookings</a>
</li> -->
<?php if($user=="Guest"){ ?>
<li class="nav-item">
<a class="nav-link" href=""></a>
</li> <?php }
else{ ?>
<li class="nav-item">
<a class="nav-link" href="Cart.php">Cart</a>
</li>
<?php }
?>
<li class="nav-item">
<a class="nav-link" href="StoreLocator.php">Store Locator</a>
</li>
</ul>
<!-- <form class="form-inline" action="search(1).php" method="post">
<input class="form-control" type="search" placeholder="Search" aria-label="Search" name="name">
<button class="btn btn-outline-dark" type="submit" style="margin-left:px;margin-right:7px;"><img src="search.png"></button>
</form> -->
<?php if($user=="Guest"){ ?>
<a href="Loginpage.html">Login</a>
<?php }
else{ ?>
<a href="Logout.php">Logout</a>
<a href="profile.php">Profile</a>
<?php }
?>
</div>
</div>
</nav>
</body>
</html>