-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathsignup.php
110 lines (96 loc) · 6.12 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
<?php
// step1
require_once "controllers/UserController.php";
require_once "controllers/ReservationsController.php";
$controller = new UserController();
$result = $controller->register();
// $result = $controller->add_user();
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css">
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/jquery.slim.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/umd/popper.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"></script>
<title>Sign-in Page</title>
<link rel="icon" href="images/logo.png">
</head>
<body>
<section style="background-image:url('images/signinblur.jpg') ; background-size:cover ">
<div class="container py-5 h-100">
<div class="row d-flex justify-content-center align-items-center h-100">
<div class="col-lg-6 col-xl-6">
<div class="card rounded shadow mb-4" style="width:35em; background-color:#F9F9F9">
<!-- <img src="images/signin.jpg" class="w-100 rounded" style="border-top-left-radius: .3rem; border-top-right-radius: .3rem;" alt=" "> -->
<div class="card-body p-4 p-md-4">
<h3 class="text-center shadow p-3 mb-3 rounded" style="font-size:35px; color:#725A7A; font-family:Playfair Display;"><b><i>Sign-up</i></b></h3>
<?php
if($result === true ){
?>
<div class="alert alert-success" role="alert">
<strong>Success!</strong> You have successfully registered.
</div>
<?php
}else if($result !== false) {
?>
<div class="alert alert-danger" role="alert">
<strong>Error!</strong> <?php echo $result; ?>
</div>
<?php
}
?>
<form class="form-outline px-md-2" enctype="multipart/form-data" method="post" action="<?php htmlspecialchars("")//for added security from injections ?>">
<div>
<div class="mb-3">
<label class="form-label" style="font-family: Open Sans; font-size:20px; color:#FFCE45" for="name">Name</label>
<input type="text" id="name" class="form-control" name="name" placeholder="Enter Your Name" />
</div>
<div class="form-outnline mb-3">
<label for="email" style="font-family: Open Sans; font-size:20px; color:#FFCE45" class="form-label">Email</label>
<input type="email" class="form-control" id="email" name="email" placeholder="Enter your email" />
</div>
<div class="form-outnline mb-3">
<label for="email" style="font-family: Open Sans; font-size:20px; color:#FFCE45" class="form-label">Birth Date</label>
<input type="date" class="form-control" id="date" name="birth_date" />
</div>
<div class="form-outnline mb-3">
<label for="password" style="font-family: Open Sans; font-size:20px; color:#FFCE45" class="form-label">Password</label>
<input type="password" class="form-control" name="password" id="password1" placeholder="Enter Your Password" />
</div>
<div class="form-outnline mb-3">
<label for="password" style="font-family: Open Sans; font-size:20px; color:#FFCE45" class="form-label">Confirm Password</label>
<input type="password" class="form-control" name="confirm_password" id="password2" placeholder="Re-enter Password" />
</div>
<label class="block text-sm mb-3">
<div class="personal image">
<span class="text-gold-700 dark:text-gold-400" style="font-family: Open Sans; font-size:20px; color:#FFCE45">National ID</span>
<input accept=".jpg,.png,.jpeg" name="national_id" type="file" class="block w-full mt-1 text-sm dark:border-gray-600 dark:bg-gray-700 focus:border-purple-400 focus:outline-none focus:shadow-outline-purple dark:text-gray-300 dark:focus:shadow-outline-gray form-input" />
</div>
</label>
<br></br>
<div class="text-center">
<button type="submit" name="submit" class="btn btn-success btn-lg mb-1 " style="background-color:cadetblue;">Submit</button>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</section>
<style>
@media (min-width: 1025px) {
.h-custom {
height: 100vh !important;
}
}
</style>
</body>
</html>