-
Notifications
You must be signed in to change notification settings - Fork 0
/
signup-merchant.php
executable file
·490 lines (433 loc) · 27.9 KB
/
signup-merchant.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
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
<!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">
<meta name="description" content="">
<meta name="keywords" content="" />
<meta name="author" content="Dreacot">
<title>GameTrade.ng | Merchant Login</title>
<link href="https://fonts.googleapis.com/css?family=Raleway:400,700,800,900" rel="stylesheet">
<link rel="shortcut icon" type="image/x-icon" href="assets/img/favicon.ico" />
<link href="assets/css/bootstrap.min.css" rel="stylesheet">
<link href="assets/css/font-awesome.min.css" rel="stylesheet">
<link href="assets/css/infinite-slider.css" rel="stylesheet">
<link href='assets/fonts/FontAwesome.otf' rel='stylesheet' type='text/css'>
<link href="assets/css/style.css" rel="stylesheet">
<link href="assets/css/animate.css" rel="stylesheet">
<link href="assets/css/w3.css" rel="stylesheet">
<link href="assets/css/hover-min.css" rel="stylesheet">
</head>
<body>
<div class="container-fluid main-signin limiter" style="width:100%;">
<div class="container-login100">
<div class="col-md-4 centered">
<div class="container-fluid text-center">
<img id="logo-main" src="assets/img/logo.png" width="200" alt="Logo Thing main logo">
</div>
<h1 style="font-size: 26px; text-align: center">MerchantHQ</h1>
<form id="regForm" class="signup-form-container" action="/exchange/process_login" method="post">
<div class="out-box">
<!-- Circles which indicates the steps of the form: -->
<div style="text-align:center;margin-top:40px;">
<span class="step"></span>
<span class="step"></span>
<span class="step"></span>
</div>
<h1 style="font-size: 14px; text-align: center">Create Account</h1>
<p style="text-align: center; color: brown">
for errors
</p>
<div class="tab">
<h4 class="text-center bold">Company Information:</h4>
<div class="form-group col-md-12">
<label for="businesstype"><b>Business Type </b></label><br>
<select class="diff" id="businesstype" name="businesstype" value=""
oninput="this.className = ''" required>
<option value=""></option>
<option value="Individual">Individual</option>
<option value="Professional">Registered Business</option>
</select>
<span class="help-block"></span>
</div>
<div class="form-group col-md-12">
<label for="nid-number"><b>National ID card number</b></label>
<input id="nid-number" type="text" placeholder="National ID card number"
name="nid-number" oninput="this.className = ''" required>
<span class="help-block"></span>
</div>
<div class="form-group col-md-12">
<label for="nid-docs"><i class="fa fa-cloud-upload"></i>
<b>National ID card copy
</b></label>
<span id="file-selected"></span>
<input id="nid-docs" type="file" size="30" id="file-upload" required>
<span class="help-block"></span>
</div>
<div class="form-group col-md-12">
<label for="rc-number"><b>Business registration number</b></label>
<input id="rc-number" type="text" placeholder="Business registration number"
name="rc-number" oninput="this.className = ''" required>
<span class="
help-block"></span>
</div>
<div class="form-group col-md-12">
<label for="companyname"><b>Legal company name </b></label>
<input class="mb-0" id="companyname" type="text"
placeholder="Legal company name "
name="companyname" oninput="this.className = ''" required>
<div id="nb" class="nb">The name of your company.</div>
<span class="help-block"></span>
</div>
<div class="form-group col-md-12">
<label for="rc-docs"><b>Business registration documents</b></label>
<input id="rc-docs" type="file" size="30" required>
<div id="nb" class="nb">Upload your documents - only
official
documents will be accounted</div>
<span class="help-block"></span>
</div>
<div class="form-group col-md-12">
<label for="address"><b>Company address / Your address</b></label>
<input class="mb-0" id="address" type="text"
placeholder="Company address / Your address" name="address"
oninput="this.className = ''" required>
<div id="
nb" class="nb">The registered
nigerian address of
the
company must be a physical address (can be either a residential or commercial
address)
and cannot be a P.O. Box.</div>
<span class="help-block"></span>
</div>
<div class="form-group col-md-12">
<label for="city"><b>City</b></label>
<input class="city" id="city" type="text" placeholder="City" name="city" minlength="8"
oninput="this.className = ''" required>
<span class="
help-block"></span>
</div>
<div class="form-group col-md-12">
<p id="no_match" style="color: brown; text-align: center; display: none;">Passwords do
not
match</p>
<label for="confirm_password"><b>Please indicate your state of residence </b></label>
<select id="field60580324" name="field60580324" size="1" class="fsField">
<option value=""> </option>
<option value="Lagos">Lagos State</option>
<option value="Abuja">Federal Capital Territory / Abuja</option>
<option value="Umuahia">Abia State / Umuahia</option>
<option value="Yola">Adamawa State / Yola</option>
<option value="Uyo">Akwa Ibom State / Uyo</option>
<option value="Awka">Anambra State / Awka</option>
<option value="Bauchi">Bauchi State / Bauchi</option>
<option value="Yenagoa">Bayelsa State / Yenagoa</option>
<option value="Makurdi">Benue State / Makurdi</option>
<option value="Maiduguri">Borno State / Maiduguri</option>
<option value="Calabar">Cross River State / Calabar</option>
<option value="Gombe">Gombe State / Gombe</option>
<option value="Asaba">Delta State / Asaba</option>
<option value="Abakaliki">Ebonyi State / Abakaliki</option>
<option value="Benin">Edo State / Benin</option>
<option value="Ado-Ekiti">Ekiti State / Ado-Ekiti</option>
<option value="Enugu">Enugu State / Enugu</option>
<option value="Owerri">Imo State / Owerri</option>
<option value="Dutse">Jigawa State / Dutse</option>
<option value="Kaduna">Kaduna State / Kaduna</option>
<option value="Kano">Kano State / Kano</option>
<option value="Katsina">Katsina State / Katsina</option>
<option value="Birnin Kebbi">Kebbi State / Birnin Kebbi</option>
<option value="Lokoja">Kogi State / Lokoja</option>
<option value="Ilorin">Kwara State / Ilorin</option>
<option value="Ikeja">Lagos State / Ikeja</option>
<option value="Lafia">Nasarawa State / Lafia</option>
<option value="Minna">Niger State / Minna</option>
<option value="Abeokuta">Ogun State / Abeokuta</option>
<option value="Akure">Ondo State / Akure</option>
<option value="Oshogbo">Osun State / Oshogbo</option>
<option value="Ibadan">Oyo State / Ibadan</option>
<option value="Jos">Plateau State / Jos</option>
<option value="Port Harcourt">Rivers State / Port Harcourt</option>
<option value="Sokoto">Sokoto State / Sokoto</option>
<option value="Jalingo">Taraba State / Jalingo</option>
<option value="Damaturu">Yobe State / Damaturu</option>
<option value="Gusau">Zamfara / Gusau</option>
</select>
<span class="help-block"></span>
</div>
</div>
<div class="tab">
<h4 class="text-center bold">About your store:</h4>
<div class="form-group col-md-12">
<label for="storename"><b>Preferred store name</b></label>
<input id="storename" type="text" placeholder="Preferred store name" name="storename"
oninput="this.className = ''" required>
<span class="help-block"></span>
</div>
<div class="form-group col-md-12">
<label for="warehouse"><b>Would you like to store your products with
Gametrade?</b></label>
<div class="fieldset-content">
<label class="fsOptionLabel" for="warehouse"><input type="radio"
id="field60580327_1" name="warehouse" value="Yes"
class="fsField horizontal">Yes</label>
<label class="fsOptionLabel horizontal" for="warehouse"><input type="radio"
id="field60580327_2" name="warehouse" value="No"
class="fsField horizontal">No</label>
</div>
<span class="help-block"></span>
</div>
<div class="form-group col-md-12">
<label for="referral"><b>Were you reffered?</b></label>
<div class="fieldset-content">
<label class="fsOptionLabel horizontal" for="field60580327_1"><input type="radio"
id="field60580327_1" name="referral" value="Yes"
class="fsField horizontal">Yes</label>
<label class="fsOptionLabel horizontal" for="field60580327_2"><input type="radio"
id="field60580327_2" name="referral" value="No"
class="fsField horizontal">No</label>
</div>
<span class="help-block"></span>
</div>
<div class="form-group col-md-12">
<label for="email"><b>Email of the person that reffered you</b></label>
<input id="email" type="email" placeholder="Email of the person that reffered you"
name="email" oninput="this.className = ''" required>
<span class="help-block"></span>
</div>
<div class="form-group col-md-12">
<label for="firstname"><b>How did you hear of MerchantHQ by GameTrade? </b></label>
<select name="referrer" class="ng-pristine ng-valid ng-touched"
oninput="this.className = ''" required>
<option value="" class="">
Select One
</option>
<option value="0" label="Billboard">Billboard</option>
<option value="1" label="Konga Flyer">GameTrade Flyer</option>
<option value="2" label="Konga Website">GameTrade Website</option>
<option value="3" label="Newspaper">Newspaper</option>
<option value="4" selected="selected" label="Online Advertisement">Online
Advertisement
</option>
<option value="5" label="Other">Other</option>
<option value="6" label="Radio">Radio</option>
<option value="7" label="Recommended by a Friend">Recommended by a Friend</option>
<option value="8" label="Recommended by a Konga Employee">Recommended by a GameTrade
Employee</option>
<option value="9" label="Recommended by a Konga Seller">Recommended by a GameTrade
Merchant
</option>
</select>
<span class="help-block"></span>
</div>
<div class="form-group col-md-12">
<label for="othersites"><b>Are you selling on other websites?</b></label>
<div class="fieldset-content">
<label class="fsOptionLabel horizontal" for="field60580327_1"><input type="radio"
id="field60580327_1" name="othersites" value="Yes"
class="fsField horizontal">Yes</label>
<label class="fsOptionLabel horizontal" for="field60580327_2"><input type="radio"
id="field60580327_2" name="othersites" value="No"
class="fsField horizontal">No</label>
</div>
<span class="help-block"></span>
</div>
<div class="form-group col-md-12">
<label for="email"><b>Please provide your online store link(s) </b></label>
<textarea id="field60580334" class="fsField" name="field60580334" rows="6" cols="50"
aria-describedby="fsCallout60580334"></textarea>
<span class="help-block"></span>
</div>
<div class="form-group col-md-12">
<label for="firstname"><b>How many products will you list on GameTrade? </b></label>
<select id="field60580336" name="field60580336" size="1" class="fsField"
oninput="this.className = ''" required>
<option value=" 0">
</option>
<option value="10">less than 20</option>
<option value="70">20 to 100</option>
<option value="150">100 to 200</option>
<option value="300">200 to 400</option>
<option value="600">400 to 1000</option>
<option value="1000">more than 1000</option>
</select>
<span class="help-block"></span>
</div>
</div>
<div class="tab">
<h4 class="text-center bold">Account Setup:</h4>
<div class="form-group col-md-12">
<label for="firstname"><b>First Name</b></label>
<input id="firstname" type="text" placeholder="Enter First Name" name="firstname"
oninput="this.className = ''" required>
<span class="help-block"></span>
</div>
<div class="form-group col-md-12">
<label for="lastname"><b>Last Name</b></label>
<input id="lastname" type="text" placeholder="Enter Last Name" name="lastname"
oninput="this.className = ''" required>
<span class="help-block"></span>
</div>
<div class="form-group col-md-12">
<label for="email"><b>Email</b></label>
<input class="mb-0" id=" email" type="email" placeholder="Enter Email" name="email"
oninput="this.className = ''" required>
<div id="nb" class="nb">Will be
used to send you a
verification
and activation email</div>
<span class="help-block"></span>
</div>
<div class="form-group col-md-12">
<label for="phonenumber"><b>Phone Number</b></label>
<input id="number" type="tel" placeholder="Enter Phone Number" name="phonenumber"
minlength="11" maxlength="11" oninput="this.className = ''" required>
<span class="help-block"></span>
</div>
<div class="form-group col-md-12">
<label for="password"><b>Password</b></label>
<input class="pass" id="password" type="password" placeholder="Enter Password"
name="password" minlength="8" oninput="this.className = ''" required>
<span class="help-block"></span>
</div>
<div class="form-group col-md-12">
<p id="no_match" style="color: brown; text-align: center; display: none;">Passwords do
not
match</p>
<label for="confirm_password"><b>Confirm Password</b></label>
<input class="pass" id="cpassword" type="password" placeholder="Confirm Password"
name="confirm_password" minlength="8" oninput="this.className = ''" required>
<span class="help-block"></span>
</div>
<div style=" padding-bottom: 20px;margin-top: -20px;">
<p class="col-md-12">
<input type="checkbox" placeholder="Confirm Password" name="psw" required>
I have read and accepted the <a class="brown" href="#xterms">terms and
conditions</a>
</p>
<p class="col-md-12">
<input type="checkbox" placeholder="Confirm Password" name="psw" checked>
Send me Promotions, Offers and Useful Informations
</p>
</div>
</div>
<div class="col-md-12" style=" margin-top:20px;">
<button type="submit" class="btn" id="nextBtn" onclick="nextPrev(1)">Continue</button>
</div>
<div class="text-center">
<p>Have an account? <a href="login" class="brown">Login here</a></p>
</div>
</div>
</form>
</div>
</div>
</div>
<script>
$(document).ready(function() {
$('#file-upload').bind('change', function() {
var fileName = '';
fileName = $(this).val();
$('#file-selected').html(fileName);
})
});
</script>
<script>
var currentTab = 0; // Current tab is set to be the first tab (0)
showTab(currentTab); // Display the current tab
function showTab(n) {
// This function will display the specified tab of the form...
var x = document.getElementsByClassName("tab");
x[n].style.display = "block";
//... and fix the Previous/Next buttons:
if (n == (x.length - 1)) {
document.getElementById("nextBtn").innerHTML = "Submit";
} else {
document.getElementById("nextBtn").innerHTML = "Next";
}
//... and run a function that will display the correct step indicator:
fixStepIndicator(n)
}
function nextPrev(n) {
// This function will figure out which tab to display
var x = document.getElementsByClassName("tab");
// Exit the function if any field in the current tab is invalid:
if (n == 1 && !validateForm()) return false;
// Hide the current tab:
x[currentTab].style.display = "none";
// Increase or decrease the current tab by 1:
currentTab = currentTab + n;
// if you have reached the end of the form...
if (currentTab >= x.length) {
// ... the form gets submitted:
document.getElementById("regForm").submit();
return false;
}
// Otherwise, display the correct tab:
showTab(currentTab);
}
function validateForm() {
// This function deals with validation of the form fields
var x, y, i, valid = true;
x = document.getElementsByClassName("tab");
y = x[currentTab].getElementsByTagName("input");
// A loop that checks every input field in the current tab:
for (i = 0; i < y.length; i++) {
// If a field is empty...
if (y[i].value == "") {
// add an "invalid" class to the field:
y[i].className += " invalid";
// and set the current valid status to false
valid = false;
}
}
// If the valid status is true, mark the step as finished and valid:
if (valid) {
document.getElementsByClassName("step")[currentTab].className += " finish";
}
return valid; // return the valid status
}
function fixStepIndicator(n) {
// This function removes the "active" class of all steps...
var i, x = document.getElementsByClassName("step");
for (i = 0; i < x.length; i++) {
x[i].className = x[i].className.replace(" active", "");
}
//... and adds the "active" class on the current step:
x[n].className += " active";
}
</script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.5/js/materialize.min.js"></script>
<!-- <script>
$(document).ready(function() {
if ($("#businesstype").val() == "Individual") {
$("#nid-number").show().prop('required', true);
$("#nid-docs").show().prop('required', true);
$("#rc-number").hide().removeAttr('required');
$("#companyname").hide().removeAttr('required');
$("#rc-docs").hide().removeAttr('required');
// $("#destination").val($("#destination option:first").val());
// $("#flight").val($("#flight option:first").val());
// $("#destinationairport").val($("#destinationairport option:first").val());
// $("#airport").val($("#airport option:first").val());
// $("#departuretime").val($("#departuretime option:first").val());
} else if ($("#businesstype").val() == "Professional") {
$("#nid-number").hide().removeAttr('required');
$("#nid-docs").hide().removeAttr('required');
$("#rc-number").show().prop('required', true);
$("#companyname").show().prop('required', true);
$("#rc-docs").show().prop('required', true);
} else {
$("#nid-number").hide().removeAttr('required');
$("#nid-docs").hide().removeAttr('required');
$("#rc-number").hide().removeAttr('required');
$("#companyname").hide().removeAttr('required');
$("#rc-docs").hide().removeAttr('required');
}
});
</script> -->
</body>
</html>