-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathheader.php
319 lines (309 loc) · 9.03 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
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
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
<?php
include "loginfo.php";
if (!isset($_SESSION['loggedin'])) {
header('Location: ln.php');
exit;
}
$stmt = $con->prepare('SELECT email FROM users WHERE email = ?');
$stmt->bind_param('i', $_SESSION['email']);
$stmt->execute();
$stmt->bind_result($email);
$stmt->fetch();
$stmt->close();
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css" integrity="sha512-Fo3rlrZj/k7ujTnHg4CGR2D7kSs0v4LLanw2qksYuRlEzO+tcaEPQogQ0KaoGN26/zrn20ImR1DfuLWnOo7aBA==" crossorigin="anonymous" referrerpolicy="no-referrer" />
<style>
.sidebar {
margin: 0;
padding: 0;
width: 200px;
background-color: #DCDCDC;
position: fixed;
height: 100%;
overflow: auto;
}
/* Sidebar links */
.sidebar a {
display: block;
color: black;
padding: 16px;
text-decoration: none;
}
/* Links on mouse-over */
.sidebar a:hover{
background-color: #555;
color: white;
}
#message {
display:none;
border: transperent;
background: none;
position: fixed;
margin-top: 120px;
margin-left: 500px;
}
#message p {
font-size: 15px;
}
#message2 {
display:none;
border: transperent;
background: none;
position: fixed;
margin-top: 120px;
margin-left: 500px;
}
#message2 p {
font-size: 15px;
}
.container{
display: flex;
flex-direction: column;
align-items: center;
padding: 25px;
}
.contact-items{
display: flex;
margin: -60px -60px;
margin-top: -180px;
flex-wrap: wrap;
align-items: center;
}
.customer-care{
display: flex;
flex-direction: column;
align-items: center;
margin-right: 0px;
margin-top: 100px;
padding: 20px 0px;
border-radius: 15px;
min-width: 600px;
background-color: skyblue;
}
.customer-care2{
display: flex;
flex-direction: column;
align-items: center;
margin-left: 830px;
margin-top: -10px;
padding: 20px 0px;
min-width: 100px;
height: 5px;
background-color: skyblue;
}
.customer-care{
height: 250px;
box-shadow: 0 15px 15px #888888;
border: 1px solid #888888;
}
.cbtn{
padding: 8px 16px;
font-size: 17px;
border: none;
margin: 15px auto;
cursor: pointer;
color: rgb(255, 255, 255);
}
.cbtn:hover{
color: #000;
}
.YNbtn{
padding: 8px 16px;
font-size: 17px;
border-radius: 25px;
border: none;
margin: 15px auto;
cursor: pointer;
color: rgb(255, 255, 255);
}
.YNbtn:hover{
color: gray;
}
#cust-care{
background: #6960EC;
box-shadow: 0 0 5px black;
}
a{
font-size: 16px;
}
.customer-care a{
color: navy;
text-shadow: 0 0 2px rgba(73, 129, 80, 0.637);
}
.YNbtn{
padding: 8px 16px;
font-size: 17px;
border-radius: 25px;
border: none;
margin: 15px auto;
cursor: pointer;
color: rgb(255, 255, 255);
}
.YNbtn:hover{
color: #000;
}
.btn-close{
margin-left: 550px;
margin-top: -10px
}
.logout{
margin-top: 5px;
background-color: #DCDCDC;
border: none;
}
.usermail{
background-color: #DCDCDC;
border: none;
margin-left: 780px;
margin-top: 10px;
margin-top: -1000px;
}
/* Page content. The value of the margin-left property should match the value of the sidebar's width property */
div.content {
margin-left: 200px;
padding: 1px 16px;
height: 1000px;
}
/* On screens that are less than 700px wide, make the sidebar into a topbar */
@media screen and (max-width: 700px) {
.sidebar {
width: 100%;
height: auto;
position: relative;
}
.sidebar a {float: left;}
div.content {margin-left: 0;}
.usermail{
background-color: #DCDCDC;
border: none;
margin-left: -1px;
margin-top: 15px;
}
}
/* On screens that are less than 400px, display the bar vertically, instead of horizontally */
@media screen and (max-width: 400px) {
.sidebar a {
text-align: center;
float: none;
}
.navbar{
overflow: hidden;
background-color: #DCDCDC;
position: relative;
top: 0;
width: 100%;
}
.usermail{
background-color: #DCDCDC;
border: none;
margin-left: -1px;
margin-top: 15px;
}
}
/* On screens that are less than 1156px wide, make the sidebar into a topbar */
@media screen and (max-width: 1156px) {
.sidebar {
width: 100%;
height: auto;
position: relative;
}
.sidebar a {float: left;}
div.content {margin-left: 0;}
.usermail{
background-color: #DCDCDC;
border: none;
margin-left: -1px;
margin-top: 15px;
}
}
</style>
<title>Dashboard</title>
</head>
<body>
<div>
<div class="sticky-sm-top">
<nav class="navbar navbar-expand-lg navbar-light bg-light">
<div class="container-fluid" style="background-color:#DCDCDC;">
<a class="navbar-brand" href="dashboard.php">Admin Dashboard</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNav">
<ul class="navbar-nav">
<li class="nav-item">
<a class="nav-link" aria-current="page" href="dashboard.php">Home</a>
</li>
<li class="nav-item">
<a class="nav-link" href="career.php">Jobs</a>
</li>
<li class="nav-item">
<a class="nav-link" href="register.php">Register</a>
</li>
</li>
<li class="nav-item" >
<button id="logout" class="logout">Logout</button>
</li>
<li class="nav-item" >
<button id="user" class="usermail">Welcome <?=$_SESSION['email']?></button>
</li>
</ul>
</div>
</div>
</nav>
</div>
<div id="message">
<div class="container">
<div class="contact-items">
<div class="customer-care">
<button type="button" class="btn-close" id="close"></button>
<h2>Do you want to Logout?</h2>
<a href="logout.php"><button class="YNbtn" id="cust-care">Yes</button></a>
<a href="dashboard.php"><button class="YNbtn" id="cust-care">No</button></a>
</div>
</div>
</div>
</div>
<div id="message2">
<div class="container">
<div class="contact-items">
<div class="customer-care2">
<a href="changepass.php"><button class="cbtn" id="cust-care">Change Password</button></a><button style="margin-top: -45px; margin-right: -190px; background:red; font-weight:Bold;" id="close2">X</button>
</div>
</div>
</div>
</div>
<div class="sidebar">
<a class="active" href="dashboard.php">Post</a>
<a href="jobs.php">Candidates Applied</a>
<a href="contact.php">Contact</a>
<a href="about.php">About</a>
</div>
<script>
var myInput = document.getElementById("logout");
var myClick = document.getElementById("close");
var userInput = document.getElementById("user");
var userClick = document.getElementById("close2");
// When the user clicks on the password field, show the message box
myInput.onfocus = function() {
document.getElementById("message").style.display = "block";
}
// When the user clicks outside of the password field, hide the message box
myClick.onfocus = function() {
document.getElementById("message").style.display = "none";
}
// When the user clicks on the password field, show the message box
userInput.onfocus = function() {
document.getElementById("message2").style.display = "block";
}
// When the user clicks outside of the password field, hide the message box
userClick.onfocus = function() {
document.getElementById("message2").style.display = "none";
}
</script>