-
Notifications
You must be signed in to change notification settings - Fork 0
/
academicOfficerSignIn.php
303 lines (292 loc) · 20.5 KB
/
academicOfficerSignIn.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
<?php
if (isset($_GET["code"])) {
$code = $_GET["code"];
if ($code == "include") {
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Academic Officer SignIn - Online Student Management System</title>
<link rel="stylesheet" href="bootstrap.css" />
<link rel="stylesheet" href="style.css" />
<link rel="icon" type="image/x-icon" href="resources/images/favicon.ico" />
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.2/font/bootstrap-icons.css">
</head>
<body style="background-image: linear-gradient(24deg, #3972eb, #59ccfa);background-repeat: no-repeat;height: 100vh;">
<div class="container-fluid">
<div class="row">
<div class="offset-0 offset-lg-1 col-12 col-lg-10 pt-4 pt-lg-5">
<div class="row">
<div class="offset-lg-2 offset-1 col-10 col-lg-8">
<div class="row d-flex flex-row justify-content-center">
<div class="col-2 col-lg-2 pt-2 pb-2 ps-2 mt-1 mt-lg-3 d-flex flex-row justify-content-end">
<img class="img-fluid" src="resources/images/logo.png" style="height: 60px;" />
</div>
<div class="col-10 col-lg-10 d-flex flex-row align-items-center justify-content-start mt-1 mt-lg-3">
<h1 class="text-white" style="font-family: 'barlow-bold';font-size:40px;text-shadow: 0px 3px 2px rgba(19, 70, 129, 0.3);">Online Student Management system</h1>
</div>
</div>
</div>
<div class="offset-lg-2 offset-1 col-10 col-lg-8 def-card pt-3 ps-2 pe-2 pb-3 mt-5">
<div class="row g-1">
<div class="col-12 text-center border-bottom">
<h2 class="pb-2">Academic Officer SignIn</h2>
</div>
<div class="col-12 p-2 mt-2">
<div class="row">
<div class="offset-0 offset-lg-1 col-12 col-lg-10 mt-2">
<div class="row">
<div class="col-12">
<span class="form-label fs-5">Username</span>
</div>
<div class="col-12 d-grid">
<input class="def-input" type="text" id="username" />
</div>
</div>
</div>
<div class="offset-0 offset-lg-1 col-12 col-lg-10 mt-2">
<div class="row">
<div class="col-12">
<span class="form-label fs-5">Password</span>
</div>
<div class="col-12">
<div class="row g-2">
<div class="col-10 d-grid">
<input class="def-input" type="password" id="password" />
</div>
<div class="col-2 d-grid">
<button class="def-btn def-btn-primary" onclick="hiddenPassword();"><i class="bi bi-eye-slash-fill text-white" id="pass-icon"></i></button>
</div>
</div>
</div>
</div>
</div>
<div class="offset-0 offset-lg-1 col-12 col-lg-4 mt-2">
<div class="row">
<div class="col-12">
<span class="form-label fs-5">One-Time Code</span>
</div>
<div class="col-12 d-grid">
<input class="def-input" type="text" id="one-time-code" />
</div>
</div>
</div>
<div class="offset-0 offset-lg-1 col-12 col-lg-10 mt-2" style="height: 15px;">
<span class="form-label" style="color: #f81919;font-size: 13px;" id="error-text"></span>
</div>
<div class="offset-0 offset-lg-4 col-12 col-lg-4 d-grid mt-3">
<button class="def-btn def-btn-primary text-white" onclick="officerFirstSignIn();">SignIn</button>
</div>
</div>
</div>
</div>
</div>
<div class="col-12 text-center fixed-bottom pb-3">
<span class="text-white" style="opacity: 0.9;">© 2022 OSMS | All Rights Reserved</span>
</div>
</div>
</div>
</div>
</div>
<script src="script.js"></script>
<script src="bootstrap.bundle.js"></script>
</body>
</html>
<?php
} else {
echo ("Something Went Wrong");
}
} else {
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Academic Officer SignIn - Online Student Management System</title>
<link rel="stylesheet" href="bootstrap.css" />
<link rel="stylesheet" href="style.css" />
<link rel="icon" type="image/x-icon" href="resources/images/favicon.ico" />
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.2/font/bootstrap-icons.css">
</head>
<body style="background-image: linear-gradient(24deg, #3972eb, #59ccfa);background-repeat: no-repeat;height: 100vh;">
<div class="container-fluid">
<div class="row">
<div class="offset-0 offset-lg-1 col-12 col-lg-10 pt-4 pt-lg-5">
<div class="row">
<div class="offset-lg-2 offset-1 col-10 col-lg-8">
<div class="row d-flex flex-row justify-content-center">
<div class="col-2 col-lg-2 pt-2 pb-2 ps-2 mt-1 mt-lg-3 d-flex flex-row justify-content-end">
<img class="img-fluid" src="resources/images/logo.png" style="height: 60px;" />
</div>
<div class="col-10 col-lg-10 d-flex flex-row align-items-center justify-content-start mt-1 mt-lg-3">
<h1 class="text-white" style="font-family: 'barlow-bold';font-size:40px;text-shadow: 0px 3px 2px rgba(19, 70, 129, 0.3);">Online Student Management system</h1>
</div>
</div>
</div>
<div class="offset-lg-2 offset-1 col-10 col-lg-8 def-card pt-3 ps-2 pe-2 pb-3 mt-5">
<div class="row g-1">
<div class="col-12 text-center border-bottom">
<h2 class="pb-2">Academic Officer SignIn</h2>
</div>
<!-- Academic officer signin content -->
<div class="col-12 p-2 mt-2" id="techer-signin-content">
<div class="row">
<div class="offset-0 offset-lg-1 col-12 col-lg-10 mt-2">
<div class="row">
<div class="col-12">
<span class="form-label fs-5">Username</span>
</div>
<div class="col-12 d-grid">
<?php
if (isset($_COOKIE["ao_username"])) {
?>
<input class="def-input" type="text" value="<?php echo ($_COOKIE["ao_username"]); ?>" id="username2" />
<?php
} else {
?>
<input class="def-input" type="text" id="username2" />
<?php
}
?>
</div>
</div>
</div>
<div class="offset-0 offset-lg-1 col-12 col-lg-10 mt-2">
<div class="row">
<div class="col-12">
<span class="form-label fs-5">Password</span>
</div>
<div class="col-12">
<div class="row g-2">
<div class="col-10 d-grid">
<?php
if (isset($_COOKIE["ao_password"])) {
?>
<input class="def-input" type="password" value="<?php echo ($_COOKIE["ao_password"]); ?>" id="password2" />
<?php
} else {
?>
<input class="def-input" type="password" id="password2" />
<?php
}
?>
</div>
<div class="col-2 d-grid">
<button class="def-btn def-btn-primary" onclick="hiddenPassword2();"><i class="bi bi-eye-slash-fill text-white" id="pass-icon2"></i></button>
</div>
</div>
</div>
</div>
</div>
<div class="offset-0 offset-lg-1 col-12 col-lg-10 mt-2" style="height: 15px;">
<span class="form-label" style="color: #f81919;font-size: 13px;" id="error-text2"></span>
</div>
<div class="offset-0 offset-lg-1 col-12 col-lg-10 mt-2">
<div class="row pt-2">
<div class="col-6">
<div class="form-check">
<input class="form-check-input" type="checkbox" id="remember-me">
<label class="form-check-label" for="remember-me">Remember Me</label>
</div>
</div>
<div class="col-6 text-end">
<a href="#" class="link text-decoration-none" onclick="officerPasswordVerify();">Forgot Password</a>
</div>
</div>
</div>
<div class="offset-0 offset-lg-4 col-12 col-lg-4 d-grid mt-3">
<button class="def-btn def-btn-primary text-white" onclick="officerSignIn();">SignIn</button>
</div>
</div>
</div>
<!-- Academic officer signin content -->
<!-- verify content -->
<div class="col-12 p-2 mt-2 d-none" id="verify">
<div class="row">
<div class="offset-0 offset-lg-1 col-5 col-md-6 col-lg-5 mt-2">
<div class="row">
<div class="col-12">
<span class="form-label fs-5">New Password</span>
</div>
<div class="col-12">
<div class="row g-2">
<div class="col-10 d-grid">
<input class="def-input" type="password" id="password3" />
</div>
<div class="col-2 d-grid">
<button class="def-btn def-btn-primary" onclick="hiddenPassword3();"><i class="bi bi-eye-slash-fill text-white" id="pass-icon3"></i></button>
</div>
</div>
</div>
</div>
</div>
<div class="col-5 offset-1 offset-md-0 offset-lg-0 col-5 col-md-6 col-lg-5 mt-2">
<div class="row">
<div class="col-12">
<span class="form-label fs-5">Retype Password</span>
</div>
<div class="col-12">
<div class="row g-2">
<div class="col-10 d-grid">
<input class="def-input" type="password" id="password4" />
</div>
<div class="col-2 d-grid">
<button class="def-btn def-btn-primary" onclick="hiddenPassword4();"><i class="bi bi-eye-slash-fill text-white" id="pass-icon4"></i></button>
</div>
</div>
</div>
</div>
</div>
<div class="offset-0 offset-lg-1 col-12 col-lg-10 d-grid mt-2">
<span class="form-label fs-5">Enter Verification Code</span>
<input class="def-input" type="text" id="verificationcode" placeholder="6 characters" />
</div>
<div class="offset-0 offset-lg-1 col-12 col-lg-10 pb-1">
<div class="col-12 text-end pe-3 d-flex flex-row align-items-start justify-content-start" style="height: 15px;">
<span class="form-label mt-1" style="color: #f81919;font-size: 13px;" id="error-text3"></span>
</div>
</div>
<div class="offset-0 offset-lg-1 col-12 col-lg-10 d-grid mt-2 mt-lg-3">
<button class="def-btn def-btn-primary text-white" onclick="officerAddPasswordVerify();">Verify</button>
</div>
<div class="offset-0 offset-lg-1 col-12 col-lg-10 d-grid mt-2 mt-lg-3">
<button class="def-btn def-btn-body text-black-50" onclick="changeView2();">Try Again</button>
</div>
</div>
<!-- verify content -->
</div>
</div>
<div class="col-12 text-center fixed-bottom pb-3">
<span class="text-white" style="opacity: 0.9;">© 2022 OSMS | All Rights Reserved</span>
</div>
</div>
</div>
</div>
<!-- Toast message -->
<div class="col-12 d-none d-md-block d-lg-block">
<div class="toast-container bg-transparent position-fixed bottom-0 end-0 p-3">
<div id="liveToast" class="toast def-card border-0" style="background-color: #cdf1ff;" role="alert" aria-live="assertive" aria-atomic="true">
<div class="toast-header bg-transparent def-card ps-3 pe-3">
<div class="col-2 justify-content-start">
<i class="bi bi-x-circle-fill fs-4 text-warning justify-content-start" id="toast-icon"></i>
</div>
<div class="col-8 text-start ps-2 text-capitalize text-primary" style="font-family: 'quicksand-bold';" id="toast-body"></div>
<div class="col-2 d-flex flex-row justify-content-end">
<button type="button" class="btn-close" data-bs-dismiss="toast" aria-label="Close"></button>
</div>
</div>
</div>
</div>
</div>
<!-- Toast message -->
</div>
<script src="script.js"></script>
<script src="bootstrap.bundle.js"></script>
</body>
</html>
<?php
}
?>