-
Notifications
You must be signed in to change notification settings - Fork 0
/
topnav.php
291 lines (270 loc) · 17.5 KB
/
topnav.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
<nav class="navbar navbar-expand navbar-light navbar-bg">
<a class="sidebar-toggle js-sidebar-toggle">
<i class="hamburger align-self-center"></i>
</a>
<!-- <form class="d-none d-sm-inline-block">
<div class="input-group input-group-navbar">
<input type="text" class="form-control" placeholder="Search…" aria-label="Search">
<button class="btn" type="button">
<i class="align-middle" data-feather="search"></i>
</button>
</div>
</form>
<ul class="navbar-nav d-none d-lg-flex">
<li class="nav-item px-2 dropdown">
<a class="nav-link dropdown-toggle" href="#" id="megaDropdown" role="button" data-bs-toggle="dropdown" aria-haspopup="true"
aria-expanded="false">
Mega Menu
</a>
<div class="dropdown-menu dropdown-menu-start dropdown-mega" aria-labelledby="megaDropdown">
<div class="d-md-flex align-items-start justify-content-start">
<div class="dropdown-mega-list">
<div class="dropdown-header">UI Elements</div>
<a class="dropdown-item" href="#">Alerts</a>
<a class="dropdown-item" href="#">Buttons</a>
<a class="dropdown-item" href="#">Cards</a>
<a class="dropdown-item" href="#">Carousel</a>
<a class="dropdown-item" href="#">General</a>
<a class="dropdown-item" href="#">Grid</a>
<a class="dropdown-item" href="#">Modals</a>
<a class="dropdown-item" href="#">Tabs</a>
<a class="dropdown-item" href="#">Typography</a>
</div>
<div class="dropdown-mega-list">
<div class="dropdown-header">Forms</div>
<a class="dropdown-item" href="#">Layouts</a>
<a class="dropdown-item" href="#">Basic Inputs</a>
<a class="dropdown-item" href="#">Input Groups</a>
<a class="dropdown-item" href="#">Advanced Inputs</a>
<a class="dropdown-item" href="#">Editors</a>
<a class="dropdown-item" href="#">Validation</a>
<a class="dropdown-item" href="#">Wizard</a>
</div>
<div class="dropdown-mega-list">
<div class="dropdown-header">Tables</div>
<a class="dropdown-item" href="#">Basic Tables</a>
<a class="dropdown-item" href="#">Responsive Table</a>
<a class="dropdown-item" href="#">Table with Buttons</a>
<a class="dropdown-item" href="#">Column Search</a>
<a class="dropdown-item" href="#">Muulti Selection</a>
<a class="dropdown-item" href="#">Ajax Sourced Data</a>
</div>
</div>
</div>
</li>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" id="resourcesDropdown" role="button" data-bs-toggle="dropdown" aria-haspopup="true"
aria-expanded="false">
Resources
</a>
<div class="dropdown-menu" aria-labelledby="resourcesDropdown">
<a class="dropdown-item" href="https://adminkit.io/" target="_blank"><i class="align-middle me-1" data-feather="home"></i>
Homepage</a>
<a class="dropdown-item" href="https://adminkit.io/docs/" target="_blank"><i class="align-middle me-1" data-feather="book-open"></i>
Documentation</a>
<a class="dropdown-item" href="https://adminkit.io/docs/getting-started/changelog/" target="_blank"><i class="align-middle me-1"
data-feather="edit"></i> Changelog</a>
</div>
</li>
</ul>-->
<div class="navbar-collapse collapse">
<ul class="navbar-nav navbar-align">
<!-- <li class="nav-item dropdown">
<a class="nav-icon dropdown-toggle" href="#" id="alertsDropdown" data-bs-toggle="dropdown">
<div class="position-relative">
<i class="align-middle" data-feather="bell"></i>
<span class="indicator">4</span>
</div>
</a>
<div class="dropdown-menu dropdown-menu-lg dropdown-menu-end py-0" aria-labelledby="alertsDropdown">
<div class="dropdown-menu-header">
4 New Notifications
</div>
<div class="list-group">
<a href="#" class="list-group-item">
<div class="row g-0 align-items-center">
<div class="col-2">
<i class="text-danger" data-feather="alert-circle"></i>
</div>
<div class="col-10">
<div class="text-dark">Update completed</div>
<div class="text-muted small mt-1">Restart server 12 to complete the update.</div>
<div class="text-muted small mt-1">30m ago</div>
</div>
</div>
</a>
<a href="#" class="list-group-item">
<div class="row g-0 align-items-center">
<div class="col-2">
<i class="text-warning" data-feather="bell"></i>
</div>
<div class="col-10">
<div class="text-dark">Lorem ipsum</div>
<div class="text-muted small mt-1">Aliquam ex eros, imperdiet vulputate hendrerit et.</div>
<div class="text-muted small mt-1">2h ago</div>
</div>
</div>
</a>
<a href="#" class="list-group-item">
<div class="row g-0 align-items-center">
<div class="col-2">
<i class="text-primary" data-feather="home"></i>
</div>
<div class="col-10">
<div class="text-dark">Login from 192.186.1.8</div>
<div class="text-muted small mt-1">5h ago</div>
</div>
</div>
</a>
<a href="#" class="list-group-item">
<div class="row g-0 align-items-center">
<div class="col-2">
<i class="text-success" data-feather="user-plus"></i>
</div>
<div class="col-10">
<div class="text-dark">New connection</div>
<div class="text-muted small mt-1">Christina accepted your request.</div>
<div class="text-muted small mt-1">14h ago</div>
</div>
</div>
</a>
</div>
<div class="dropdown-menu-footer">
<a href="#" class="text-muted">Show all notifications</a>
</div>
</div>
</li>
<li class="nav-item dropdown">
<a class="nav-icon dropdown-toggle" href="#" id="messagesDropdown" data-bs-toggle="dropdown">
<div class="position-relative">
<i class="align-middle" data-feather="message-square"></i>
</div>
</a>
<div class="dropdown-menu dropdown-menu-lg dropdown-menu-end py-0" aria-labelledby="messagesDropdown">
<div class="dropdown-menu-header">
<div class="position-relative">
4 New Messages
</div>
</div>
<div class="list-group">
<a href="#" class="list-group-item">
<div class="row g-0 align-items-center">
<div class="col-2">
<img src="img/avatars/avatar-5.jpg" class="avatar img-fluid rounded-circle" alt="Vanessa Tucker">
</div>
<div class="col-10 ps-2">
<div class="text-dark">Vanessa Tucker</div>
<div class="text-muted small mt-1">Nam pretium turpis et arcu. Duis arcu tortor.</div>
<div class="text-muted small mt-1">15m ago</div>
</div>
</div>
</a>
<a href="#" class="list-group-item">
<div class="row g-0 align-items-center">
<div class="col-2">
<img src="img/avatars/avatar-2.jpg" class="avatar img-fluid rounded-circle" alt="William Harris">
</div>
<div class="col-10 ps-2">
<div class="text-dark">William Harris</div>
<div class="text-muted small mt-1">Curabitur ligula sapien euismod vitae.</div>
<div class="text-muted small mt-1">2h ago</div>
</div>
</div>
</a>
<a href="#" class="list-group-item">
<div class="row g-0 align-items-center">
<div class="col-2">
<img src="img/avatars/avatar-4.jpg" class="avatar img-fluid rounded-circle" alt="Christina Mason">
</div>
<div class="col-10 ps-2">
<div class="text-dark">Christina Mason</div>
<div class="text-muted small mt-1">Pellentesque auctor neque nec urna.</div>
<div class="text-muted small mt-1">4h ago</div>
</div>
</div>
</a>
<a href="#" class="list-group-item">
<div class="row g-0 align-items-center">
<div class="col-2">
<img src="img/avatars/avatar-3.jpg" class="avatar img-fluid rounded-circle" alt="Sharon Lessman">
</div>
<div class="col-10 ps-2">
<div class="text-dark">Sharon Lessman</div>
<div class="text-muted small mt-1">Aenean tellus metus, bibendum sed, posuere ac, mattis non.</div>
<div class="text-muted small mt-1">5h ago</div>
</div>
</div>
</a>
</div>
<div class="dropdown-menu-footer">
<a href="#" class="text-muted">Show all messages</a>
</div>
</div>
</li>-->
<li class="nav-item">
<a class="nav-icon js-fullscreen d-none d-lg-block" href="#">
<div class="position-relative">
<i class="align-middle" data-feather="maximize"></i>
</div>
</a>
</li>
<li class="nav-item dropdown">
<a class="nav-icon pe-md-0 dropdown-toggle" href="#" data-bs-toggle="dropdown">
<img src="img/avatars/avatar.png" class="avatar img-fluid rounded" alt="User" />
</a>
<div class="dropdown-menu dropdown-menu-end">
<a class="dropdown-item" href="profile"><i class="align-middle me-1" data-feather="user"></i> <?= (!empty($rowuser->a_username)) ? ucwords($rowuser->a_username) : 'User '; ?> Profile</a>
<!-- <a class="dropdown-item" href="#"><i class="align-middle me-1" data-feather="pie-chart"></i> Analytics</a>-->
<div class="dropdown-divider"></div>
<a class="dropdown-item" href="pages-settings.html"><i class="align-middle me-1" data-feather="settings"></i> Settings &
Privacy</a>
<a class="dropdown-item" href="#" data-bs-toggle="modal" data-bs-target="#myModalpwd"><i class="align-middle me-1" data-feather="key"></i> Change Password</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item" href="pages/loginvalidate.php?submit=logout">Log out</a>
</div>
</li>
</ul>
</div>
</nav>
<div class="modal fade" id="myModalpwd" tabindex="-1">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title">Change Password</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal"></button>
</div>
<div class="modal-body">
<form class="form-horizontal row g-3" role="form" action="pages/action-pwd.php" enctype="multipart/form-data" method="post">
<div class="col-md-12">
<label for="currentPassword" class="form-label">Current Password</label>
<input name="cur_password" type="password" class="form-control" id="currentPassword" required>
</div>
<div class="col-md-12">
<label for="newPassword" class="form-label">New Password</label>
<input name="a_password" type="password" class="form-control" id="newPassword" required>
</div>
<div class="col-md-12">
<label for="renewPassword" class="form-label">Re-enter New Password</label>
<input name="confirm_a_pwd" type="password" class="form-control" id="renewPassword" required>
<span class="pull-right" id='pwdmessage1'></span>
</div>
<div class="text-center">
<button type="submit" class="btn btn-primary">Change Password</button>
<input type="hidden" name="submit" value="updatepwd" />
</div>
</form>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-danger" data-bs-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<script>
$('#renewPassword').on('keyup', function() {
if ($('#newPassword').val() == $('#renewPassword').val()) {
$('#pwdmessage1').html('Password Matching').css('color', 'green');
} else
$('#pwdmessage1').html('Password Not Matching').css('color', 'red');
});
</script>