-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathcust_regist.php
More file actions
103 lines (99 loc) · 4.99 KB
/
cust_regist.php
File metadata and controls
103 lines (99 loc) · 4.99 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<?php session_start(); include("conn_db.php"); include('head.php');?>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="css/login.css" rel="stylesheet">
<title>Customer Registration | EATERIO</title>
</head>
<body class="d-flex flex-column">
<header class="navbar navbar-light fixed-top bg-light shadow-sm mb-auto">
<div class="container-fluid mx-4">
<a href="index.php">
<img src="img/LOGO_BLACK.png" width="125" class="me-2" alt="EATERIO Logo">
</a>
</div>
</header>
<div class="container mt-4"></div>
<div class="container form-signin mt-auto">
<a class="nav nav-item text-decoration-none text-muted" href="#" onclick="history.back();">
<i class="bi bi-arrow-left-square me-2"></i>Go back
</a>
<form method="POST" action="add_cust.php" class="form-floating">
<h2 class="mt-4 mb-3 fw-normal text-bold"><i class="bi bi-person-plus me-2"></i>Sign Up</h2>
<div class="form-floating mb-2">
<input type="text" class="form-control" id="username" placeholder="Username" name="username"
minlength="5" maxlength="45" required>
<label for="username">Username</label>
</div>
<div class="form-floating mb-2">
<input type="password" class="form-control" id="pwd" placeholder="Password" name="pwd" minlength="8"
maxlength="45" required>
<label for="pwd">Password</label>
</div>
<div class="form-floating mb-2">
<input type="password" class="form-control" id="cfpwd" placeholder="Confirm Password" minlength="8"
maxlength="45" name="cfpwd" required>
<label for="cfpwd">Confirm Password</label>
<div id="passwordHelpBlock" class="form-text smaller-font">
Your password must be at least 8 characters long.
</div>
</div>
<div class="form-floating mb-2">
<input type="text" class="form-control" id="firstname" placeholder="First Name" name="firstname"
required>
<label for="firstname">First Name</label>
</div>
<div class="form-floating mb-2">
<input type="text" class="form-control" id="lastname" placeholder="Last Name" name="lastname" required>
<label for="lastname">Last Name</label>
</div>
<div class="form-floating mb-2">
<input type="email" class="form-control" id="email" placeholder="E-mail" name="email" required>
<label for="email">E-mail</label>
</div>
<div class="form-floating">
<select class="form-select mb-2" id="gender" name="gender">
<option selected value="-">---</option>
<option value="M">Male</option>
<option value="F">Female</option>
<option value="N">Non-binary</option>
</select>
<label for="gender">Your Gender</label>
</div>
<div class="form-floating">
<select class="form-select mb-2" id="type" name="type">
<option selected value="-">---</option>
<option value="STD">Student</option>
<option value="INS">Professor</option>
<option value="TAS">Teaching Assistant</option>
<option value="STF">Faculty Staff</option>
<option value="GUE">Visitor</option>
<option value="OTH">Other</option>
</select>
<label for="gender">Your role</label>
</div>
<div class="form-floating">
<div class="mb-2 form-check">
<input type="checkbox" class="form-check-input " id="tandc" name="tandc" required>
<label class="form-check-label small" for="tandc">I agree to the terms and conditions and the
privacy policy</label>
</div>
</div>
<button class="w-100 btn btn-success mb-3" type="submit">Sign Up</button>
</form>
</div>
<div class="container mt-4"></div>
<footer
class="footer d-flex flex-wrap justify-content-between align-items-center px-5 py-3 mt-auto bg-secondary text-light">
<span class="smaller-font">© 2021 SeriousEater Group<br /><span class="xsmall-font">Paphana Y. Sirada C.
Thanakit L.</span></span>
<ul class="nav justify-content-end list-unstyled d-flex">
<li class="ms-3"><a class="text-light" target="_blank" href="https://github.com/waterthatfrozen/EATERIO"><i
class="bi bi-github"></i></a></li>
</ul>
</footer>
</body>
</html>