-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.php
236 lines (186 loc) · 10.4 KB
/
index.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title> mkShop</title>
<link rel="icon" href="resourses/logo.png">
<link rel="stylesheet" href="bootstrap.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/font/bootstrap-icons.css">
<link rel="stylesheet" href="style.css">
</head>
<body class="main-body">
<div class="container-fluid vh-100 d-flex justify-content-center">
<div class="row align-content-center">
<!--header -->
<div class="col-12">
<div class="row">
<div class="col-12 logo"></div>
<div class="col-12">
<p class="text-center title01"
3px;">Hi,Welcome to mkShop</p>
</div>
</div>
</div>
<!--header -->
<!--content -->
<div class="col-12 p-3">
<div class="row">
<div class="col-6 d-none d-lg-block background"></div>
<!--signup box-->
<div class="col-12 col-lg-6" id="SignUpBox">
<div class="row g-2">
<div class="col-12">
<p class="title02">Create New Account.</p>
</div>
<div class="col-12 d-none" id="msgdiv">
<div class="alert alert-danger" role="alert" id="msg">
</div>
</div>
<div class="col-6">
<label class="form-label">First Name</label>
<input class="form-control" type="text" placeholder="ex:Jhon" id="fname" />
</div>
<div class="col-6">
<label class="form-label">Last Name</label>
<input class="form-control" type="text" placeholder="ex:Lincolin" id="lname" />
</div>
<div class="col-6">
<label class="form-label">Email</label>
<input class="form-control" type="email" placeholder="ex:[email protected]" id="email" />
</div>
<div class="col-6">
<label class="form-label">Password</label>
<input class="form-control" type="password" placeholder="***********" id="password" />
</div>
<div class="col-6">
<label class="form-label">Mobile</label>
<input class="form-control" type="text" placeholder="0700000000" id="mobile" />
</div>
<div class="col-6">
<label class="form-label">Gender</label>
<select class="form-control" id="gender">
<option value="0">Select your Gender</option>
<?php
require "connection.php";
$rs = Database::search("SELECT * FROM `gender`");
$n = $rs->num_rows;
for ($x = 0; $x < $n; $x++) {
$d = $rs->fetch_assoc();
?>
<option value="<?php echo $d["id"]; ?>"><?php echo $d["gender_name"]; ?></option>
<?php
}
?>
</select>
</div>
<div class="col-12 col-lg-6 d-grid">
<button class="btn btn-primary" onclick="signUp();"> Sign Up</button>
</div>
<div class="col-12 col-lg-6 d-grid">
<button class="btn btn-dark" onclick="ChangeView();">
Already have an Account? Sign In</button>
</div>
</div>
</div>
<!--signup box-->
<!-- signin box -->
<div class="col-12 col-lg-6 d-none" id="SignInBox">
<div class="row g-2">
<div class="col-12">
<p class="tittle02">Sign in to your Account.</p>
</div>
<?php
$email = "";
$password = "";
if (isset($_COOKIE["email"])) {
$email = $_COOKIE["email"];
}
if (isset($_COOKIE["password"])) {
$password = $_COOKIE["password"];
}
?>
<div class="col-12">
<label class="form-label">Email</label>
<input class="form-control" type="email" id="email2" value="<?php echo $email; ?>" placeholder="ex:[email protected]" />
</div>
<div class="col-12">
<label class="form-label">Password</label>
<input class="form-control" type="password" id="password2" value="<?php echo $password; ?>" placeholder="12345678" />
</div>
<div class="col-6">
<div class="form-check">
<input class="form-check-input" type="checkbox" value="" id="rememberme">
<label class="form-check-label" for="rememberme">
Remember Me
</label>
</div>
</div>
<div class="col-6 text-end">
<a href="#" class="link-primary" onclick="forgotPassword();"> Forgotten Password?</a>
</div>
<div class="col-12 col-lg-6 d-grid">
<button class="btn btn-primary" onclick="signin();"> Sign In</button>
</div>
<div class="col-12 col-lg-6 d-grid">
<button class="btn btn-danger" onclick="ChangeView();"> New to mkshop? Join Now </button>
</div>
</div>
</div>
<!-- signin box -->
</div>
</div>
<!--content -->
<!-- modal -->
<div class="modal" tabindex="-1" id="forgotPasswordModal">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title">Forgot Password?</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
<div class="row g-3">
<div class="col-6">
<label class="form-label">New Password</label>
<div class="input-group mb-3">
<input type="password" class="form-control" id="np" />
<button class="btn btn-outline-secondary" type="button" id="npb" onclick="showPassword();">
<i class="bi bi-eye"></i>
</button>
</div>
</div>
<div class="col-6">
<label class="form-label">Retype New Password</label>
<div class="input-group mb-3">
<input type="password" class="form-control" id="rnp" />
<button class="btn btn-outline-secondary" type="button" id="rnpb" onclick="showPassword2();">
<i class="bi bi-eye"></i>
</button>
</div>
</div>
<div class="col-12">
<label class="form-label">Verifiction Code</label>
<input type="text" class="form-control" id="vc" />
</div>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button>
<button type="button" class="btn btn-primary" onclick="resetPassword();">Reset Password</button>
</div>
</div>
</div>
</div>
<!-- modal -->
<!-- footer -->
<div class="col-12 d-none d-lg-block fixed-bottom">
<p class="text-center">©2023 mkshop.lk || ALL Rights Reserved</p>
</div>
<!--footer -->
</div>
</div>
<script src="script.js"></script>
<script src="bootstrap.js"></script>
</body>
</html>