-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathheader.php
175 lines (174 loc) · 9.71 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
<header>
<div class="bg-white d-flex align-items-center fixed-top shadow" style="min-height: 60px; z-index: 10;">
<div class="container-fluid">
<div class="row align-items-center">
<!-- search -->
<div class="col d-flex align-items-center">
<!--logo -->
<a href="index.php" class="text-decoration-none">
<img class="logoImage" src="./img/logo.png" alt="University of Greenwich">
</a>
</div>
<script>
// Clear search input when X button is clicked
document.getElementById('clearSearch').addEventListener('click', function () {
document.getElementById('searchInput').value = '';
});
</script>
<!-- menus -->
<div class="col d-flex align-items-center justify-content-end">
<!-- notifications -->
<div class="rounded-circle p-1 bg-gray d-flex align-items-center justify-content-center mx-2"
style="width: 38px; height: 38px" type="button" id="notMenu" data-bs-toggle="dropdown"
aria-expanded="false" data-bs-auto-close="outside">
<i class="fas fa-bell"></i>
</div>
<!-- notification dd -->
<ul class="dropdown-menu border-0 shadow p-3" aria-labelledby="notMenu"
style="width: 23em; max-height: 600px; overflow-y: auto">
<!-- header -->
<li class="p-1">
<div class="d-flex justify-content-between">
<h2>Notifications</h2>
<div>
<i class="fas fa-ellipsis-h pointer p-2 rounded-circle bg-gray" type="button"
data-bs-toggle="dropdown"></i>
<ul class="dropdown-menu">
<li class="dropdown-item d-flex align-items-center" type="button">
<i class="fas fa-check me-3 text-muted"></i>
<p class="m-0">Mark all as read</p>
</li>
</ul>
</div>
</div>
<div class="d-flex" type="button">
<p class="rounded-pill bg-gray p-2">All</p>
<p class="ms-3 rounded-pill bg-primary p-2 text-white">
Unread
</p>
</div>
</li>
<!-- news -->
<div class="d-flex justify-content-between mx-2">
<h5>New</h5>
<a href="#" class="text-decoration-none">See All</a>
</div>
<!-- news 1 -->
<li class="my-2 p-1">
<a href="#" class="
d-flex
align-items-center
justify-content-evenly
text-decoration-none text-dark
">
<div class="d-flex align-items-center justify-content-evenly">
<div class="p-2">
<img src="https://source.unsplash.com/random/1" alt="avatar"
class="rounded-circle"
style="width: 58px; height: 58px; object-fit: cover"/>
</div>
<div>
<p class="fs-7 m-0">
Lorem ipsum dolor sit amet consectetur adipisicing elit.
Harum unde amet at nulla quae porro.
</p>
<span class="fs-7 text-primary">about an hour ago</span>
</div>
</div>
<i class="fas fa-circle fs-7 text-primary"></i>
</a>
</li>
<!-- news 2 -->
<li class="my-2 p-1">
<a href="#" class="
d-flex
align-items-center
justify-content-evenly
text-decoration-none text-dark
">
<div class="d-flex align-items-center justify-content-evenly">
<div class="p-2">
<img src="https://source.unsplash.com/random/2" alt="avatar"
class="rounded-circle"
style="width: 58px; height: 58px; object-fit: cover"/>
</div>
<div>
<p class="fs-7 m-0">
Lorem ipsum dolor sit amet consectetur adipisicing elit.
Harum unde amet at nulla quae porro.
</p>
<span class="fs-7 text-primary">about an hour ago</span>
</div>
</div>
<i class="fas fa-circle fs-7 text-primary"></i>
</a>
</li>
<!-- news 3 -->
<li class="my-2 p-1">
<a href="#" class="
d-flex
align-items-center
justify-content-evenly
text-decoration-none text-dark
">
<div class="d-flex align-items-center justify-content-evenly">
<div class="p-2">
<img src="https://source.unsplash.com/random/3" alt="avatar"
class="rounded-circle"
style="width: 58px; height: 58px; object-fit: cover"/>
</div>
<div>
<p class="fs-7 m-0">
Lorem ipsum dolor sit amet consectetur adipisicing elit.
Harum unde amet at nulla quae porro.
</p>
<span class="fs-7 text-primary">about an hour ago</span>
</div>
</div>
<i class="fas fa-circle fs-7 text-primary"></i>
</a>
</li>
</ul>
<!-- second menu -->
<div class="
rounded-circle
p-1
bg-gray
d-flex
align-items-center
justify-content-center
mx-2
" style="width: 38px; height: 38px" type="button" id="secondMenu" data-bs-toggle="dropdown"
aria-expanded="false" data-bs-auto-close="outside">
<i class="fas fa-caret-down"></i>
</div>
<!-- sec dd -->
<ul class="dropdown-menu border-0 shadow p-3" aria-labelledby="secMenu"
style="width: 23em;max-height: 600px;">
<!-- avatar -->
<li class="dropdown-item p-1 rounded d-flex" type="button"
onclick="window.location.href = 'Settings.php';">
<img src="https://source.unsplash.com/collection/happy-people" alt="avatar"
class="rounded-circle me-2" style="width: 45px; height: 45px; object-fit: cover;">
<div>
<p class="m-0"><?php echo $_SESSION['full_name']; ?></p>
<p class="m-0 text-muted">My Profile</p>
</div>
</li>
<hr/>
<!-- log out -->
<form id="logout-form" method="POST" action="logout.php">
<li class="dropdown-item p-1 rounded d-flex align-items-center" type="button"
onclick="document.getElementById('logout-form').submit();">
<i class="fa-solid fa-right-from-bracket bg-gray p-2 rounded-circle"></i>
<div class="ms-3">
<p class="m-0" type="button">Log Out</p>
</div>
</li>
</form>
</ul>
</div>
</div>
</div>
</div>
</header>