-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsignup.php
539 lines (458 loc) · 20.5 KB
/
signup.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
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
<?php
include_once 'functions.php';
$login = '';
if (isset($_SESSION['user_id']) && isset($_SESSION['user_type'])) {
$user_id = preg_replace('#[^0-9]#','',$_SESSION['user_id']);
$user_type = test_input($_SESSION["user_type"]);
$login = true;
}
?>
<!DOCTYPE html>
<html lang="en" class="body-full-height">
<head>
<title>SpeakUp</title>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=Edge">
<meta name="description" content="">
<meta name="keywords" content="">
<meta name="author" content="">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" href="css/font-awesome.min.css">
<link rel="stylesheet" href="css/aos.css">
<link rel="stylesheet" href="css/owl.carousel.min.css">
<link rel="stylesheet" href="css/owl.theme.default.min.css">
<!-- MAIN CSS -->
<link rel="stylesheet" href="css/style.css">
</head>
<!-- MENU BAR -->
<nav class="navbar navbar-expand-lg">
<div class="container">
<a class="navbar-brand" href="./">
<i class="fa fa-bullhorn"></i>
SpeakUp
</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-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 ml-auto">
<li class="nav-item">
<a href="home#how-it-works" class="nav-link smoothScroll">How it Works</a>
</li>
<li class="nav-item">
<a href="tips" class="nav-link smoothScroll">Guides & Tips</a>
</li>
<li class="nav-item">
<a href="home#frequently-question" class="nav-link smoothScroll">FAQ's</a>
</li>
<?php if(!$login){ ?>
<li class="nav-item">
<a href="signup" class="nav-link">Signup</a>
</li>
<li class="nav-item">
<a href="login" class="nav-link login">Login</a>
</li>
<?php }else{ ?>
<li class="nav-item">
<a href="app/logout" class="nav-link login">Logout</a>
</li>
<?php } ?>
</ul>
</div>
</div>
</nav>
<!-- SIGNUP -->
<section class="signup section-padding-half pb-20" id="signup" >
<div class="container">
<div class="row">
<div class="col-lg-12 col-12 signup-header">
<h2 class="text-center" data-aos="fade-up"> Welcome! </h2>
<p class="text-center mb-5" data-aos="fade-up" id="as">Signup as</p>
</div>
</div>
<!-- Choose User type-->
<div class="row" id="signup-as" data-aos="fade-up" data-aos-delay="100">
<div class="offset-md-2 col-md-8 mt-5">
<button class="btn btn-light pull-left signup-button" id="reporter"><i class="fa fa-user"></i> Reporter</button>
<button class="btn btn-light pull-right signup-button" id="responder"><i class="fa fa-user-md"></i> Responder</button>
</div>
</div>
<!-- Signup as reporter-->
<div style="display: none;" class="signup-container mb-5" id="signup-as-reporter">
<div class="signup-box" data-aos="fade-up">
<div class="signup-body">
<div class="signup-title"><strong>Basic Information</strong></div>
<div id="alert_box" style="display: none;" class="error_alert" >
<span aria-label="close" onclick="close_alert('alert_box')" >×</span>
<p><i class="fa fa-exclamation-circle"></i> <span id="alert"></span></p>
</div>
<form action="" autocomplete="off" id="signup-form1" class="form-horiontal" method="post">
<div class="form-row">
<div class="col-md-6 mb-3">
<label>Lastname</label>
<input type="text" id="lastname" class="form-control" placeholder="Enter your lastname"/>
<span class="invalid-feedback">Please enter your lastname</span>
</div>
<div class="col-md-6 mb-3">
<label>Firstname</label>
<input type="text" id="firstname" class="form-control" placeholder="Enter your firstname"/>
<span class="invalid-feedback">Please enter your firstname</span>
</div>
</div>
<div class="form-row">
<div class="col-md-6 mb-3">
<label>Email</label>
<input type="text" id="email" class="form-control" placeholder="Enter your e-mail address"/>
<span class="invalid-feedback" id="email_alert">Please enter your email address</span>
</div>
<div class="col-md-6 mb-3">
<label>Occupation</label>
<select class="form-control" id="occupation">
<option value="">--Select occupation--</option>
<option value="student">Student</option>
<option value="others">Others</option>
</select>
<span class="invalid-feedback">Please select your occupation</span>
</div>
</div>
<div class="form-row">
<div class="col-md-6 mb-3">
<label>State of residence</label>
<select class="form-control" id="state">
<option value="">--Select state--</option>
<option value="Abia">Abia</option>
<option value="Adamawa">Adamawa</option>
<option value="AkwaIbom">AkwaIbom</option>
<option value="Anambra">Anambra</option>
<option value="Bauchi">Bauchi</option>
<option value="Bayelsa">Bayelsa</option>
<option value="Benue">Benue</option>
<option value="Borno">Borno</option>
<option value="Cross River">Cross River</option>
<option value="Delta">Delta</option>
<option value="Ebonyi">Ebonyi</option>
<option value="Edo">Edo</option>
<option value="Ekiti">Ekiti</option>
<option value="Enugu">Enugu</option>
<option value="FCT">FCT</option>
<option value="Gombe">Gombe</option>
<option value="Imo">Imo</option>
<option value="Jigawa">Jigawa</option>
<option value="Kaduna">Kaduna</option>
<option value="Kano">Kano</option>
<option value="Katsina">Katsina</option>
<option value="Kebbi">Kebbi</option>
<option value="Kogi">Kogi</option>
<option value="Kwara">Kwara</option>
<option value="Lagos">Lagos</option>
<option value="Nasarawa">Nasarawa</option>
<option value="Niger">Niger</option>
<option value="Ogun">Ogun</option>
<option value="Ondo">Ondo</option>
<option value="Osun">Osun</option>
<option value="Oyo">Oyo</option>
<option value="Plateau">Plateau</option>
<option value="Rivers">Rivers</option>
<option value="Sokoto">Sokoto</option>
<option value="Taraba">Taraba</option>
<option value="Yobe">Yobe</option>
<option value="Zamfara">Zamafara</option>
</select>
<span class="invalid-feedback">Please select your state of residence</span>
</div>
<div class="col-md-6 mb-3">
<label>Address</label>
<input type="text" id="address" class="form-control" placeholder="Enter your address"/>
<span class="invalid-feedback">Please enter your address</span>
</div>
</div>
<div class="form-row">
<div class="col-md-6 mb-3">
<label>Password</label>
<input type="password" id="password" class="form-control" placeholder="Enter your password"/>
<span class="invalid-feedback" id="password_alert">Please enter your password</span>
</div>
<div class="col-md-6 mb-3">
<label>Confirm password</label>
<input type="password" id="cpassword" class="form-control" placeholder="Confirm password"/>
<span class="invalid-feedback" id="cpassword_alert">Please confirm your password</span>
</div>
</div>
<div class="form-group">
<div class="col-md-12 text-center">
<button class="btn btn-info btn-sm" type="button" id="reporter-signup">Signup <i class="fa fa-sign-in"></i></button>
</div>
</div>
<div class="signup-subtitle text-center">
Already have an account? <a href="login">Login</a>
</div>
</form>
</div>
<div class="signup-footer">
<div class="pull-left">
© <script>document.write(new Date().getFullYear());</script> SpeakUp
</div>
<div class="pull-right">
<a href="tips">Tips</a> |
<a href="privacy">Privacy</a>
</div>
</div>
</div>
</div>
<!-- Signup as responter page 1-->
<div style="display: none;" class="signup-container mb-5" id="signup-as-responder1">
<div class="signup-box" data-aos="fade-up">
<div class="signup-body">
<div class="signup-title"><strong>Basic Information</strong></div>
<form action="" autocomplete="off" id="signup-form2" class="form-horiontal" method="post">
<div class="form-row">
<div class="col-md-6 mb-3">
<label>Lastname</label>
<input type="text" id="lastname1" class="form-control" placeholder="Enter your lastname"/>
<span class="invalid-feedback">Please enter your lastname</span>
</div>
<div class="col-md-6 mb-3">
<label>Firstname</label>
<input type="text" id="firstname1" class="form-control" placeholder="Enter your firstname"/>
<span class="invalid-feedback">Please enter your firstname</span>
</div>
</div>
<div class="form-row">
<div class="col-md-6 mb-3">
<label>Email</label>
<input type="text" id="email1" class="form-control" placeholder="Enter your e-mail address"/>
<span class="invalid-feedback" id="email1_alert">Please enter your email address</span>
</div>
<div class="col-md-6 mb-3">
<label>Phone number</label>
<input type="tel" id="phone" class="form-control" placeholder="Enter phone number"/>
<span class="invalid-feedback" id="phone_alert">Please enter your phone number</span>
</div>
</div>
<div class="form-row">
<div class="col-md-6 mb-3">
<label>State of residence</label>
<select class="form-control" id="state1">
<option value="">--Select state--</option>
<option value="Abia">Abia</option>
<option value="Adamawa">Adamawa</option>
<option value="AkwaIbom">AkwaIbom</option>
<option value="Anambra">Anambra</option>
<option value="Bauchi">Bauchi</option>
<option value="Bayelsa">Bayelsa</option>
<option value="Benue">Benue</option>
<option value="Borno">Borno</option>
<option value="Cross River">Cross River</option>
<option value="Delta">Delta</option>
<option value="Ebonyi">Ebonyi</option>
<option value="Edo">Edo</option>
<option value="Ekiti">Ekiti</option>
<option value="Enugu">Enugu</option>
<option value="FCT">FCT</option>
<option value="Gombe">Gombe</option>
<option value="Imo">Imo</option>
<option value="Jigawa">Jigawa</option>
<option value="Kaduna">Kaduna</option>
<option value="Kano">Kano</option>
<option value="Katsina">Katsina</option>
<option value="Kebbi">Kebbi</option>
<option value="Kogi">Kogi</option>
<option value="Kwara">Kwara</option>
<option value="Lagos">Lagos</option>
<option value="Nasarawa">Nasarawa</option>
<option value="Niger">Niger</option>
<option value="Ogun">Ogun</option>
<option value="Ondo">Ondo</option>
<option value="Osun">Osun</option>
<option value="Oyo">Oyo</option>
<option value="Plateau">Plateau</option>
<option value="Rivers">Rivers</option>
<option value="Sokoto">Sokoto</option>
<option value="Taraba">Taraba</option>
<option value="Yobe">Yobe</option>
<option value="Zamfara">Zamafara</option>
</select>
<span class="invalid-feedback">Please select your state of residence</span>
</div>
<div class="col-md-6 mb-3">
<label>Address</label>
<input type="text" id="address1" class="form-control" placeholder="Enter your address"/>
<span class="invalid-feedback">Please enter your address</span>
</div>
</div>
<div class="form-row">
<div class="col-md-6 mb-3">
<label>Password</label>
<input type="password" id="password1" class="form-control" placeholder="Enter your password"/>
<span class="invalid-feedback" id="password1_alert">Please enter your password</span>
</div>
<div class="col-md-6 mb-3">
<label>Confirm password</label>
<input type="password" id="cpassword1" class="form-control" placeholder="Confirm password"/>
<span class="invalid-feedback" id="cpassword1_alert">Please confirm your password</span>
</div>
</div>
<div class="form-group">
<div class="col-md-12 text-center">
<button class="btn btn-info btn-sm" type="button" id="responder-next">Next <i class="fa fa-long-arrow-right"></i></button>
</div>
</div>
<div class="signup-subtitle text-center">
Already have an account? <a href="login">Login</a>
</div>
</form>
</div>
<div class="signup-footer">
<div class="pull-left">
© <script>document.write(new Date().getFullYear());</script> SpeakUp
</div>
<div class="pull-right">
<a href="tips">Tips</a> |
<a href="privacy">Privacy</a>
</div>
</div>
</div>
</div>
<!-- Signup as responter page 2-->
<div style="display: none;" class="signup-container mb-5" id="signup-as-responder2">
<div class="signup-box" data-aos="fade-up">
<div class="signup-body">
<div class="signup-title"><strong>Additional Information</strong></div>
<div id="alert1_box" style="display: none;" class="error_alert" >
<span aria-label="close" onclick="close_alert('alert1_box')" >×</span>
<p><i class="fa fa-exclamation-circle"></i> <span id="alert1"></span></p>
</div>
<form action="" autocomplete="off" id="signup-form3" class="form-horiontal" method="post">
<div class="form-row">
<div class="col-md-6 mb-3">
<label>Gender</label>
<select class="form-control" id="gender">
<option value="">--Select gender--</option>
<option value="male">Male</option>
<option value="female">Female</option>
</select>
<span class="invalid-feedback">Please select your gender</span>
</div>
<div class="col-md-6 mb-3">
<label>Date of Birth</label>
<input type="date" id="dob" class="form-control" placeholder="Enter your address"/>
<span class="invalid-feedback" id="dob_alert">Please select your date of birth</span>
</div>
</div>
<div class="form-row">
<div class="col-md-6 mb-3">
<label>Occupation</label>
<input type="text" id="occupation1" class="form-control" placeholder="Enter your occupation"/>
<span class="invalid-feedback">Please enter your occupation</span>
</div>
<div class="col-md-6 mb-3">
<label>Organization</label>
<input type="text" id="organization" class="form-control" placeholder="Enter your Organization"/>
<span class="invalid-feedback">Please enter your organization</span>
</div>
</div>
<div class="form-row">
<div class="col-md-6 mb-3">
<label>Position in your organization</label>
<input type="text" id="position" class="form-control" placeholder="Enter your position in your organization"/>
<span class="invalid-feedback">Please enter your position in your organization</span>
</div>
<div class="col-md-6 mb-3">
<label>Curriculum vitae</label>
<div class="custom-file">
<input type="file" id="cv" class="form-control custom-file-input" id="custom-file" />
<label class="custom-file-label" id="cv1" for="custom-file">Select curriculum vitae</label>
<span class="invalid-feedback">Please upload your curriculum vitae</span>
</div>
</div>
</div>
<div class="form-row">
<div class="col-md-12 mb-3">
<label>What's your motive for doing this?</label>
<textarea id="motive" class="form-control" placeholder="Enter your motive for doing this"></textarea>
<span class="invalid-feedback">Please enter your motive</span>
</div>
</div>
<div class="form-group">
<div class="col-md-12 text-center">
<button class="btn btn-success btn-sm" type="button" id="responder-pre"><i class="fa fa-long-arrow-left"></i> Previous</button>
<button class="btn btn-info btn-sm" type="button" id="responder-signup">Signup <i class="fa fa-sign-in"></i></button>
</div>
</div>
<div class="signup-subtitle text-center">
Already have an account? <a href="login">Login</a>
</div>
</form>
</div>
<div class="signup-footer">
<div class="pull-left">
© <script>document.write(new Date().getFullYear());</script> SpeakUp
</div>
<div class="pull-right">
<a href="tips">Tips</a> |
<a href="privacy">Privacy</a>
</div>
</div>
</div>
</div>
</div>
</section>
<div aria-hidden="true" aria-labelledby="staticBackdropLabel" role="dialog" tabindex="-1" id="success" class="modal fade">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-body text-center success-box">
<center class="alert"><i class="fa fa-check"></i></center>
<p id="success_text">Signed up successfully!</p>
<p class="redirect">redirecting in 5 seconds...</p>
<button class="btn btn-primary pull-right" data-dismiss="modal" type="button">Ok</button>
</div>
</div>
</div>
</div>
<div aria-hidden="true" aria-labelledby="staticBackdropLabel" role="dialog" tabindex="-1" id="success1" class="modal fade">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-body text-center success-box">
<center class="alert"><i class="fa fa-check"></i></center>
<p id="success_text">Application under review!</p>
<p class="get-back">We would get back to you shortly through the details provided.</p>
<button class="btn btn-primary pull-right" data-dismiss="modal" type="button">Ok</button>
</div>
</div>
</div>
</div>
<footer class="site-footer">
<div class="container">
<div class="row footer-row">
<div class="col-md-6 col-12">
<h4 class="text-white text-center">Safe the world <strong>SpeakUp</strong> Today.</h4>
</div>
<div class="col-md-6 col-12 ">
<ul class="social-icon">
<li><a href="#" class="fa fa-instagram"></a></li>
<li><a href="#" class="fa fa-twitter"></a></li>
<li><a href="#" class="fa fa-facebook"></a></li>
<li><a href="#" class="fa fa-whatsapp"></a></li>
<li><a href="#" class="fa fa-envelope"></a></li>
</ul>
</div>
</div>
<div class="row">
<div class="text-center col-md-12 col-12" >
<p class="copyright-text">Copyright © <script>document.write(new Date().getFullYear());</script> SpeakUp
<br>Design: Inventor Build For SGD Team 004</p>
</div>
</div>
</div>
</footer>
<!-- SCRIPTS -->
<script src="js/jquery.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/aos.js"></script>
<script src="js/owl.carousel.min.js"></script>
<script src="js/smoothscroll.js"></script>
<script src="js/custom.js"></script>
</body>
</html>