-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsignup.php
264 lines (259 loc) · 9.93 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
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
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
<?php include 'includes/header.php'; ?>
<!-- Contact section -->
<section class="contact-section">
<div class="container">
<div class="row">
<div class="col-lg-3 order-2 order-lg-1">
<div class="filter-widget">
<h2 class="fw-title">Categories</h2>
<ul class="category-menu">
<li><a href="category.php?cat_id=13" class="active">Rings</a>
<ul class="sub-menu">
<?php
$getRingsCat = $cat->getRings();
if ($getRingsCat) {
while ($result = $getRingsCat->fetch_assoc()) {
?>
<li><a href="category.php?cat_id=<?= $result['id'] ?>"><?= $result['cat_name'] ?></a></li>
<?php } } ?>
</ul>
</li>
<li><a href="category.php?cat_id=18" class="active">Earrings</a>
<ul class="sub-menu">
<?php
$getEarringsCat = $cat->getEarrings();
if ($getEarringsCat) {
while ($result = $getEarringsCat->fetch_assoc()) {
?>
<li><a href="category.php?cat_id=<?= $result['id'] ?>"><?= $result['cat_name'] ?></a></li>
<?php } } ?>
</ul>
</li>
<?php
$getParentCats = $cat->getParentCat();
if ($getParentCats) {
while ($result = $getParentCats->fetch_assoc()) {
?>
<li><a href="category.php?cat_id=<?= $result['id']; ?>"><?= $result['cat_name']; ?></a></li>
<?php } } ?>
</ul>
</div>
<div class="filter-widget">
<h2 class="fw-title">Latest Products</h2>
<ul class="category-menu">
<li>
<?php
$getRelatedPd = $pd->getFeaturedProduct();
if ($getRelatedPd) {
while ($result = $getRelatedPd->fetch_assoc()) {
?>
<div class="lp-item">
<div class="lp-thumb">
<a href=""><img src="admin/<?= $result['product_img']; ?>" alt=""></a>
</div>
<div class="lp-content">
<a href="" class="title"><?= $result['product_title']; ?></a>
<span><?= $result['new_price']; ?> <span class="old-price"> <?= $result['regular_price']; ?></span>
<a href="product.php?id=<?= $result['id']; ?>" class="readmore">Read More</a>
</div>
</div>
<?php } } ?>
</li>
</ul>
</div>
</div>
<?php
$cmr = new Customer();
if ($_SERVER['REQUEST_METHOD'] == 'POST' && isset($_POST['submit'])) {
$customerReg = $cmr->customerRegistration($_POST, $_FILES);
}
?>
<div class="col-lg-9 order-1 order-lg-2 mb-5 mb-lg-0">
<!-- Page info -->
<div class="page-top-info">
<div class="breadcrumb"> <a href="index.php">Home </a> » <a href="signup.php">Create New Account </a> </div>
<div class="section-title">
<h3><span>Create New Account</span></h3>
</div>
<div class="category-info">
<p>Ut wisi enim ad minim veniam, quis nostrud exerci tation ulla. Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat.</p>
</div>
</div>
<!-- Page info end -->
<?php
if (isset($customerReg)) {
echo $customerReg;
}
?>
<div class="wizard-v5-content">
<div class="wizard-form">
<form class="form-register" id="form-register" action="" method="POST" enctype="multipart/form-data">
<div id="form-total">
<!-- SECTION 1 -->
<h2>
<span class="step-icon"><i class="fa fa-check"></i></span>
<span class="step-text">Account Information</span>
</h2>
<section>
<div class="inner">
<div class="form-row">
<div class="form-holder">
<label class="" for="first_name">First Name</label>
<input type="text" placeholder="ex: Ranzu" class="form-control" id="first_name" name="first_name">
</div>
<div class="form-holder">
<label for="last_name">Last Name</label>
<input type="text" placeholder="ex: Alam" class="form-control" id="last_name" name="last_name">
</div>
</div>
<div class="form-row">
<div class="form-holder">
<label for="phone">Phone Number</label>
<input type="number" placeholder="Enter Phone Number" class="form-control" id="phone" name="phone">
</div>
<div class="form-holder">
<label for="email">Email Address</label>
<input type="email" name="email" class="email input-step-2-1" id="email" placeholder="ex: [email protected]" pattern="[^@]+@[^@]+.[a-zA-Z]{2,6}">
</div>
</div>
<div class="form-row">
<div class="form-holder">
<label for="phone">Username</label>
<input type="text" placeholder="enter username" class="form-control" id="username" name="username">
</div>
<div class="form-holder">
<label for="password">Password</label>
<input type="password" name="password" class="form-control" id="password" placeholder="enter password">
</div>
</div>
<div class="form-row">
<div class="form-holder">
<label for="product_image" class="">Upload Profile Image</label>
<input name="image" id="product_image" type="file" class="form-control-file">
</div>
</div>
</div>
</section>
<!-- SECTION 2 -->
<h2>
<span class="step-icon"><i class="fa fa-check"></i></span>
<span class="step-text">Billing Information</span>
</h2>
<section>
<div class="inner">
<div class="form-row">
<div class="form-holder form-holder-2">
<label for="address">Billing Address</label>
<input type="text" placeholder="622 Dixie Path, South Tobinchester, UT 98336" class="form-control" id="address" name="address">
</div>
</div>
<div class="form-row">
<div class="form-holder">
<label for="city">City / Town</label>
<input type="text" placeholder="ex: Dhaka" class="form-control" id="city" name="city">
</div>
<div class="form-holder">
<label for="code">Zip Code</label>
<input type="number" placeholder="ex: 1207" class="form-control" id="account_number" name="code">
</div>
</div>
<div class="form-row">
<div class="form-holder form-holder-2">
<label for="notes" class="form-label">Special Notes</label>
<textarea type="text" name="special_note" id="account_name" placeholder="Notes about your order, e.g. special notes for delivery." class="valid" aria-invalid="false"></textarea>
</div>
</div>
</div>
</section>
<!-- SECTION 3 -->
<h2>
<span class="step-icon"><i class="fa fa-check"></i></span>
<span class="step-text">Confirm Details</span>
</h2>
<section>
<div class="inner">
<h3>Comfirm Details</h3>
<div class="table-responsive" style="padding: 0 20px;">
<table class="table table-hover table-bordered table-sm">
<tbody>
<tr class="space-row">
<th>Username:</th>
<td id="username-val" name="username"> </td>
</tr>
<tr class="space-row">
<th>Full Name:</th>
<td id="fullname-val" name="fullname"> </td>
</tr>
<tr class="space-row">
<th>Email Address:</th>
<td id="email-val" name="email"></td>
</tr>
<tr class="space-row">
<th>Phone Number:</th>
<td id="phone-val" name="phone"></td>
</tr>
<tr class="space-row">
<th>Billing Address:</th>
<td id="address-val" name="billing"></td>
</tr>
<tr class="space-row">
<th>City / Town:</th>
<td id="city-val" name="city"></td>
</tr>
<tr class="space-row">
<th>Postcode / ZIP:</th>
<td id="account-number-val" name="postcode"></td>
</tr>
<tr class="space-row">
<th>Special Notes:</th>
<td id="account-name-val" name="bio"></td>
</tr>
</tbody>
</table>
<p class="terms">By clicking 'Create Account' you agree to the <a href="#">Terms & Conditions</a>.</p>
</div>
<div class="rright">
<input value="Create Account" type="submit" name="submit" class="site-btn">
</div>
</div>
</section>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- Contact section end -->
<!-- Related product section -->
<section class="related-product-section">
<div class="container">
<div class="section-title">
<h2><span>RELATED PRODUCTS</span></h2>
</div>
<div class="product-slider owl-carousel" style="display: inline-block;">
<?php
$getRelatedPd = $pd->getAllProduct();
if ($getRelatedPd) {
while ($result = $getRelatedPd->fetch_assoc()) {
?>
<div class="product-item">
<div class="pi-pic">
<a href=""><img src="admin/<?= $result['product_img']; ?>" alt=""></a>
</div>
<div class="pi-text">
<a href=""><p class="pi-title"><?= $result['product_title']; ?></p></a>
<p class="pi-desc"><?= substr($result['product_desc'], 0, 80) ?></p>
<h6><?= $result['new_price'] ?> <span class="old-price"> <?= $result['regular_price'] ?></span></h6>
<div class="pi-links">
<a href="product.php?id=<?= $result['id'] ?>" class="add-card"><i class="flaticon-bag"></i><span>VIEW DETAILS</span></a>
</div>
</div>
</div>
<?php } }?>
</div>
</div>
</section>
<!-- Related product section end -->
<?php include 'includes/footer.php'; ?>