forked from mdadeeljawaid/Pharmacy
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathSellerRegForm.html
216 lines (180 loc) · 10 KB
/
SellerRegForm.html
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
+
<!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" />
<title>HOME</title>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.6.1/dist/css/bootstrap.min.css" />
<script src="https://cdn.jsdelivr.net/npm/jquery@3.5.1/dist/jquery.slim.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.1/dist/umd/popper.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@4.6.1/dist/js/bootstrap.bundle.min.js"></script>
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.15.4/css/all.css"
integrity="sha384-DyZ88mC6Up2uqS4h/KRgHuoeGwBcD4Ng9SiP4dIRy0EXTlnuz47vAwmeGwVChigm" crossorigin="anonymous" />
<link rel="stylesheet" href="mystyle.css" />
</head>
<body>
<!-- nav section -->
<nav class="navbar navbar-expand-sm navbar-dark bg-dark p-0">
<div class="container">
<a href="index.html" class="navbar-brand">MediBox</a>
</div>
</nav>
<!-- HEADER -->
<header id="main-header" class="py-2 bg-primary text-white">
<div class="container">
<div class="row">
<div class="col-md-6">
<h1><i class="fas fa-user"></i> MediBox Admin</h1>
</div>
</div>
</div>
</header>
<!-- ACTIONS -->
<section id="actions" class="py-4 mb-4 bg-light">
<div class="container">
<div class="row"></div>
</div>
</section>
<!-- LOGIN -->
<section id="login">
<div class="container">
<div class="row">
<div class="col-md-6 mx-auto">
<div class="card">
<div class="card-header">
<h4>Seller Registration</h4>
</div>
<div class="card-body">
<form>
<div class="form-group">
<label for="email"><b>Email</b></label>
<input type="email" class="form-control" placeholder="Enter Email" name="email"
id="email"placeholder="email" onblur="validation()" required>
</div>
<div class="form-group">
<label for="Password"><b>Password</b></label>
<input type="password" class="form-control" placeholder="Enter Password" name="Password"
id="Password" placeholder="Password" onblur="validation()" required/>
<span id="Password-error" class="text-danger"></span>
</div>
<div class="form-group">
<label for="Confirmpassword"><Confirmpassword</b> </label>
<input type="password" class="form-control" id="Confirmpassword"
name="Confirmpassword" placeholder="Confirmpassword" onblur="validation()" required />
<span id="Confirmpassword" class="text-danger"></span>
</div>
<div class="form-group">
<label for="ShopName"><b>ShopName</b></label>
<input type="text" class="form-control" placeholder="Enter ShopName"
name="ShopName" id="ShopName"placeholder="ShopName" onblur="validation()"required>
<span id="ShopName" class="text-danger"></span>
</div>
<div class="form-group">
<label for="ShopRegNo"><b>ShopRegNo</b></label>
<input type="text" class="form-control" placeholder="EnterShopRegNo "
name="ShopRegNo" id="ShopRegNo" required>
</div>
<div class="form-group">
<label for="ShopContactNo"><b>ShopContactNo</b></label>
<input type="text" class="form-control" placeholder="ShopContactNo "
name="ShopContactNo" id="ShopContactNo" required>
</div>
<div class="form-group">
<label for="ShopAddress"><b>ShopAddress</b></label>
<input type="text" class="form-control" placeholder=" ShopAddress"
name="ShopAddress" id="ShopAddress" required>
</div>
<div class="form-group">
<label for="ShopPincode"><b>Enter a ShopPincode:</b></label>
<input type="text" class="form-control" placeholder="Shop Pin code"
id="ShopPincode" name="pincode" maxlength="6"><br><br>
</div>
<div class="form-group">
<label for="myfile">Select a file:</label>
<input type="file" class="form-control" id="myfile" name="myfile">
</div>
<input type="submit" value="Sign Up" class="btn btn-outline-light btn-block" />
<p class="signinlink">
I already have an account <a href="login.html">Sign In</a>
</p>
</form>
</div>
</div>
</div>
</div>
</div>
<script type="text/javascript">
function validation() {
var ShopName = document.getElementById('ShopName').value;
var email = document.getElementById('email').value;
var password = document.getElementById('password').value;
var Confirmpassword = document.getElementById('Confirmpassword').value;
var mobilenumber = document.getElementById('ShopContactNo').value;
if (ShopName == "") {
document.getElementById('ShopName').innerHTML = " ** Please fill the ShopName field";
return false;
}
if (((ShopName.length <= 3) || (ShopName.length>= 20))) {
document.getElementById('ShopName').innerHTML = " ** ShopName should be between 2 to 20 characters "
} else if (!isNaN(ShopName)) {
document.getElementById('ShopName').innerHTML = " ** Only Characters are allowed"
}
if (password == "") {
document.getElementById('Password').innerHTML = " ** Enter Password"
return false;
} else if (password == ShopName) {
document.getElementById('Password').innerHTML = " ** Password cant'be your ShopName"
return false;
} else if ((password.length <= 8) || (password.length >= 20)) {
document.getElementById('Password').innerHTML =" ** user password should be between 6 to 20 characters "
return false;
}
if (Confirmpassword == "") {
document.getElementById('Confirmpasswordid').innerHTML = " ** Enter ConfirmPassword"
return false;
} else if (password != Confirmpassword) {
document.getElementById('Confirmpasswordid').innerHTML = " ** Password does'nt Match"
return false;
}
if (mobilenumber == "") {
document.getElementById("ShopContactNo").innerHTML = " ** Enter Mobile Number";
return false;
} else if (mobilenumber.length != 10) {
document.getElementById("ShopContactNo").innerHTML = " ** Mobile Number Should be 10 digit "
return false;
} else if (isNaN(mobilenumber)) {
document.getElementById('ShopContactNo').innerHTML = " ** Only digit are Accepted"
return false;
}
if (email == "") {
document.getElementById('email').innerHTML = " ** Enter Email ID"
return false;
} else if (email.indexOf('@') <= 0) {
document.getElementById('email').innerHTML = " ** @ Invalid Position"
return false;
} else if ((email.charAt(email.length - 4) != '.') && (email.charAt(email.length - 3) != '.')) {
document.getElementById('email').innerHTML = " ** . Invalid Position"
return false;
}
}
</script>
</section>
<!-- FOOTER -->
<footer id="main-footer" class="bg-dark text-white mt-5 p-5">
<div class="container">
<div class="row">
<div class="col">
<p class="lead text-center">
Copyright ©
<span id="year"></span>
Blogen
</p>
</div>
</div>
</div>
</footer>
</body>
</html>