-
Notifications
You must be signed in to change notification settings - Fork 0
/
register.php
208 lines (190 loc) · 11.6 KB
/
register.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Bootstarp CSS cdn -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-T3c6CoIi6uLrA9TneNEoa7RxnatzjcDSCmG1MXxSR1GAsXEV/Dwwykc2MPK8M2HN" crossorigin="anonymous">
<script src="https://cdn.jsdelivr.net/npm/sweetalert2@11"></script>
<title>Register | Techසර LK</title>
<!-- Favicon -->
<link href="src/imgs/logo.png" rel="icon">
<!-- Google Web Fonts -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link
href="https://fonts.googleapis.com/css2?family=Heebo:wght@400;500;600&family=Nunito:wght@600;700;800&display=swap"
rel="stylesheet">
<!-- Icon Font Stylesheet -->
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.10.0/css/all.min.css" rel="stylesheet">
<link href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.4.1/font/bootstrap-icons.css" rel="stylesheet">
<!-- Libraries Stylesheet -->
<link href="src/lib/animate/animate.min.css" rel="stylesheet">
<link href="src/lib/owlcarousel/assets/owl.carousel.min.css" rel="stylesheet">
<!-- Customized Bootstrap Stylesheet -->
<link href="styles/bootstrap.min.css" rel="stylesheet">
<!-- Template Stylesheet -->
<link href="styles/style2.css" rel="stylesheet">
</head>
<body>
<!-- Navbar Start -->
<nav class="navbar navbar-expand-lg bg-white navbar-light shadow sticky-top p-0">
<a href="index.php" class="navbar-brand d-flex align-items-center px-4 px-lg-5">
<h2 class="m-0 text-primary"><img src="src/imgs/logo.png" width="70" height="70" alt="Logo"
style="border-radius: 50%;"> Techසර LK School</h2>
</a>
<button type="button" class="navbar-toggler me-4" data-bs-toggle="collapse" data-bs-target="#navbarCollapse">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarCollapse">
<div class="navbar-nav ms-auto p-4 p-lg-0">
<a href="index.php" class="nav-item nav-link active">Home</a>
</div>
<a href="login.php" class="btn btn-primary py-4 px-lg-5 d-none d-lg-block">Join Now<i
class="fa fa-arrow-right ms-3"></i></a>
</div>
</nav>
<!-- Navbar End -->
<section class="vh-100" style="background-color: #9A616D;">
<div class="container py-5 h-100">
<div class="row d-flex justify-content-center align-items-center h-100">
<div class="col col-xl-10">
<div class="card" style="border-radius: 1rem;">
<div class="row g-0">
<div class="col-md-6 col-lg-5 d-none d-md-block">
<img src="./src/imgs/img2.webp" alt="login form" class="img-fluid"
style="border-radius: 1rem 0 0 1rem;" />
</div>
<div class="col-md-6 col-lg-7 d-flex align-items-center">
<div class="card-body p-4 p-lg-5 text-black">
<?php if (isset($_GET['error'])) { ?>
<script>
Swal.fire({
icon: 'error',
title: 'Error',
text: "<?= $_GET['error'] ?>"
})
</script>
<?php } ?>
<?php if (isset($_GET['warning'])) { ?>
<script>
Swal.fire({
icon: 'warning',
title: 'Oops...',
text: "<?= $_GET['warning'] ?>"
})
</script>
<?php } ?>
<form action="./data/register-data.php" method="post">
<div class="d-flex align-items-center mb-3 pb-1">
</div>
<h4 class="fw-normal mb-3 pb-3" style="letter-spacing: 1px;">Register Now...
</h4>
<div class="row mb-4">
<div class="col">
<div data-mdb-input-init class="form-outline">
<label class="form-label" for="form3Example1">First name</label>
<input type="text" id="form3Example1" class="form-control"
name="fname" required />
</div>
</div>
<div class="col">
<div data-mdb-input-init class="form-outline">
<label class="form-label" for="form3Example2">Last name</label>
<input type="text" id="form3Example2" class="form-control"
name="lname" required />
</div>
</div>
</div>
<div class="form-outline mb-4">
<label class="form-label" for="form2Example17">Email address</label>
<input type="email" id="form2Example17" class="form-control" name="email"
required />
</div>
<div class="form-outline mb-4">
<label class="form-label" for="form2Example27">Password</label>
<input type="password" id="form2Example27" class="form-control"
name="password" required />
</div>
<div class="pt-1 mb-4">
<!-- <button class="btn btn-dark btn-lg btn-block" type="submit">Login</button> -->
<input type="submit" value="Register" name="register"
class="btn btn-dark btn-lg btn-block" />
<button class="btn btn-link" onclick="redirectToLog()">I have an
account</button>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Footer Start -->
<div class="container-fluid bg-dark text-light footer pt-5 mt-5 wow fadeIn" data-wow-delay="0.1s">
<div class="container py-5">
<div class="row g-5">
<div class="col-lg-3 col-md-6">
<h4 class="text-white mb-3">Quick Link</h4>
<a class="btn btn-link" href="index.php">Home</a>
<a class="btn btn-link" href="login.php">Login</a>
<a class="btn btn-link" href="register.php">Register</a>
</div>
<div class="col-lg-4 col-md-6">
<h4 class="text-white mb-3">Contact</h4>
<p class="mb-2"><i class="fa fa-map-marker-alt me-3"></i>Cinnamon Garden, Majuwana, Keradewala,
Southern Province, Sri Lanka</p>
<!-- <p class="mb-2"><i class="fa fa-phone-alt me-3"></i>+012 345 67890</p> -->
<p class="mb-2"><i class="fa fa-envelope me-3"></i>techsaralk.pro@gmail.com</p>
<div class="d-flex pt-2">
<a class="btn btn-outline-light btn-social" href="https://youtube.com/@techsaralk"><i
class="fab fa-youtube"></i></a>
<a class="btn btn-outline-light btn-social" href=""><i class="fab fa-twitter"></i></a>
<a class="btn btn-outline-light btn-social" href=""><i class="fab fa-facebook-f"></i></a>
<a class="btn btn-outline-light btn-social" href=""><i class="fab fa-linkedin-in"></i></a>
</div>
</div>
<div class="col-lg-4 col-md-6">
<div class="col-md-5 text-md-end">
<div class="text-end">
<img src="src/imgs/logo.png" width="80%" alt="Logo" style="border-radius: 50%;">
</div>
</div>
</div>
</div>
</div>
<div class="container">
<div class="copyright">
<div class="row">
<div class="col-md-6 text-center text-md-start mb-3 mb-md-0">
© <a class="border-bottom" href="index.php">Techසර LK School</a>, All Right Reserved.
<!--/*** This template is free as long as you keep the footer author’s credit link/attribution link/backlink. If you'd like to use the template without the footer author’s credit link/attribution link/backlink, you can purchase the Credit Removal License from "https://htmlcodex.com/credit-removal". Thank you for your support. ***/-->
Designed & Distributed By <a class="border-bottom" href="www.techsaralk.epizy.com">Dasun
Nethsara</a>
</div>
<div class="col-md-6 text-center text-md-end">
<div class="footer-menu">
<a href="index.php">Home</a>
<a href="login.php">Login</a>
<a href="register.php">Register</a>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Footer End -->
</section>
<script>
function redirectToLog() {
window.location.href = "./login.php";
}
</script>
<!-- Bootstrap js cdn -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js"
integrity="sha384-C6RzsynM9kWDrMNeT87bh95OGNyZPhcTNXj1NW7RuBCsyN/o0jlpcV8Qyq46cDfL"
crossorigin="anonymous"></script>
</body>
</html>