forked from cervantes-yadira/ATT
-
Notifications
You must be signed in to change notification settings - Fork 0
/
signup_form.php
114 lines (102 loc) · 6.22 KB
/
signup_form.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
<?php
session_start();
ob_start();
$location = '';
$pageTitle ='Signup Form';
// If user is logged in, Log user out if idle time or logged in time is past max
if (isset($_SESSION['user_id'])){
$uID = $_SESSION['user_id'];
include 'php/roles/timeout_check.php';
}
// Logout and return to login.php if ?logout=true
include 'php/roles/logout_check.php';
// Redirect users to user dashboard
include 'php/roles/user_kick.php';
// Redirect admins to admin dashboard
include 'php/roles/admin_kick.php';
include 'header.php';
include 'php/nav_bar.php'
?>
<main>
<div class="container p-3" id="main-container">
<h3 class="form-header p-3 mb-0">Sign-up</h3>
<div class="form-container mb-5">
<div class="form-body">
<form onsubmit="return validateForm()" method="POST" action="php/signup_submit.php" class="my-3">
<div class="mb-3">
<label for="name" class="form-label">Name*</label>
<small id="name-error" class="warning ps-1">Please enter your first and last name</small>
<div class="row">
<div class="col-sm">
<input type="text" id="input-first-name" class="form-control" name="firstName" placeholder="First name"
aria-label="First name" maxlength="30">
</div>
<div class="col-sm pt-sm-0 pt-2">
<input type="text" id="input-last-name" class="form-control" name="lastName" placeholder="Last name"
aria-label="Last name" maxlength="30">
</div>
</div>
</div>
<div class="mb-4">
<label for="input-email" class="form-label">Email*</label>
<small id="email-error" class="warning ps-1">Please enter a valid email</small>
<input type="email" class="form-control" id="input-email" name="email" placeholder="e.g. [email protected]" maxlength="60">
<small id="email-note">Note: an @greenriver.edu email is preferred</small>
</div>
<div class="row">
<div class="col">
<label for="input-password" class="form-label">Password*</label>
<input type="text" class="form-control" id="input-password" name="password" minlength="8" maxlength="16">
</div>
<div class="col">
<label for="input-password-confirm" class="form-label">Re-enter Password*</label>
<input type="text" class="form-control" id="input-password-confirm" name="password-confirm" minlength="8" maxlength="16">
</div>
<small id="password-error" class="warning">Please enter a valid password, refer to the requirements below</small>
</div>
<ul class="mb-3 list-unstyled">
<li><i class="fa-solid fa-circle-xmark requirement" style="color: #D14900"></i>  Between 8-16 characters</li>
<li><i class="fa-solid fa-circle-xmark requirement" style="color: #D14900"></i>  Must include at least 1 number</li>
<li><i class="fa-solid fa-circle-xmark requirement" style="color: #D14900"></i>  Both passwords must match</li>
<li><i class="fa-solid fa-circle-minus" style="color: #939393"></i>  Can include special characters: !@#$%&*_-.</li>
</ul>
<div class="mb-3">
<label for="input-cohort-num" class="form-label">Cohort Number*</label>
<small id="cohort-error" class="warning ps-1">Please enter a number between 1 and 100</small>
<input type="number" class="form-control" id="input-cohort-num" name="cohort-num" min="1" max="100" placeholder="1-100">
</div>
<div class="mb-3">
<label class="form-label">Status*</label>
<small id="status-error" class="warning ps-1">Please select a status</small>
<div class="form-check">
<input type="radio" class="form-check-input" id="seekingInternship" name="status" value="Seeking Internship">
<label for="seekingInternship" class="form-check-label">Seeking Internship</label>
</div>
<div class="form-check">
<input type="radio" class="form-check-input" id="seekingJob" name="status" value="Seeking Job">
<label for="seekingJob" class="form-check-label">Seeking Job</label>
</div>
<div class="form-check">
<input type="radio" class="form-check-input" id="notSearching" name="status" value="Not Actively Searching">
<label for="notSearching" class="form-check-label">Not Actively Searching</label>
</div>
</div>
<div class="mb-3">
<label for="input-roles" class="form-label">What roles are you looking for?</label>
<small id="roles-error" class="warning">You have exceeded the maximum character limit of 500</small>
<textarea class="form-control" id="input-roles" name="roles"
minlength="0" maxlength="500" placeholder="Type here..."></textarea>
<small id="roles-error" class="warning">You have exceeded the maximum character limit of 500</small>
</div>
<button type="submit" class="submit-btn">Submit</button>
</form>
</div>
</div>
</div>
</main>
<?php include 'php/footer.php' ?>
<!-- Special Javascript to allow special signup things work -->
<script src="js/signupscript.js"></script>
<script src="js/main.js"></script>
</body>
</html>