-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathstud_header.php
More file actions
103 lines (91 loc) · 2.21 KB
/
stud_header.php
File metadata and controls
103 lines (91 loc) · 2.21 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
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
body {
font-family: "Lato", sans-serif;
}
.sidenav {
height: 100%;
width: 0;
position: fixed;
z-index: 1;
top: 0;
left: 0;
background-color: #F8F8F8;
overflow-x: hidden;
transition: 0.5s;
padding-top: 60px;
}
.sidenav a {
padding: 8px 8px 8px 32px;
text-decoration: none;
font-size: 20px;
color: black;
display: block;
transition: 0.3s;
}
.sidenav a:hover {
display: block;
color: #8a2be2;
}
.sidenav .closebtn {
position: absolute;
top: 0;
right: 25px;
font-size: 36px;
margin-left: 50px;
}
#main {
transition: margin-left .5s;
padding: 16px;
}
.z{
color: white;
border:2px;
}
.active
{
color: #8a2be2;
}
#sa
{
color:#8a2be2;
}
@media screen and (max-height: 450px) {
.sidenav {padding-top: 15px;}
.sidenav a {font-size: 18px;}
}
</style>
</head>
<body>
<div id="mySidenav" class="sidenav">
<a href="javascript:void(0)" class="closebtn" onclick="closeNav()">×</a>
<br>
<a href="#" id="sa" style="text-align:center"><strong> TEACHER</strong></a>
<hr class="z">
<br>
<br>
<li class="<?php $t=isset($_GET['dash'])?'active':''; echo $t ?>"><a href="db.php?dash=1"><i class="fa fa-tachometer" aria-hidden="true"></i>Dashboard</a></li>
<br>
<li class="<?php $t=isset($_GET['chat'])?'active':''; echo $t ?>"><a href="db.php?chat=1"><i class="fa fa-comments" aria-hidden="true"></i>Chat</a></li>
<br>
<li class="<?php $t=isset($_GET['acc'])?'active':''; echo $t ?>"><a href="db.php?acc=1"><i class="fa fa-id-card-o" aria-hidden="true"></i>My Account</a></li>
<br>
<li class="<?php $t=isset($_GET['log'])?'active':''; echo $t ?>"><a href="db.php?log=1"><i class="fa fa-sign-out" aria-hidden="true"></i>Log out</a></li>
</div>
<script>
function openNav() {
document.getElementById("mySidenav").style.width = "250px";
document.getElementById("main").style.marginLeft = "250px";
document.body.style.backgroundColor = "white";
}
function closeNav() {
document.getElementById("mySidenav").style.width = "0";
document.getElementById("main").style.marginLeft= "0";
document.body.style.backgroundColor = "white";
}
</script>
</body>
</html>