-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsignup.html
More file actions
188 lines (145 loc) · 5.73 KB
/
Copy pathsignup.html
File metadata and controls
188 lines (145 loc) · 5.73 KB
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
<!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">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<!--font-family-->
<link href="https://fonts.googleapis.com/css?family=Poppins:100,200,300,400,500,600,700,800,900&subset=devanagari,latin-ext" rel="stylesheet">
<!-- title of site -->
<title>Sign up</title>
<!-- For favicon png -->
<link rel="shortcut icon" type="image/icon" href="assets/logo/favicon.png"/>
<!--font-awesome.min.css-->
<link rel="stylesheet" href="assets/css/font-awesome.min.css">
<!--animate.css-->
<link rel="stylesheet" href="assets/css/animate.css">
<!--bootstrap.min.css-->
<link rel="stylesheet" href="assets/css/bootstrap.min.css">
<!-- bootsnav -->
<link rel="stylesheet" href="assets/css/bootsnav.css" >
<!--style.css-->
<link rel="stylesheet" href="assets/css/style.css">
<!--responsive.css-->
<link rel="stylesheet" href="assets/css/responsive.css">
<title>Register</title>
</head>
<body>
<!-- signin end -->
<section class="signin signup">
<div class="container">
<div class="sign-content">
<h2>sign up</h2>
<div class="row">
<div class="col-sm-12">
<div class="signin-form">
<form id="register" action="backend/signup.php" method="post">
<div class="form-group">
<label for="signin_form">Full name</label>
<input type="text" name="fullname" class="form-control" id="signin_form" placeholder="Full name">
</div><!--/.form-group -->
<div class="form-group">
<label for="signin_form">Username</label>
<input type="text" name="username" class="form-control" id="signin_form" placeholder="Enter your username here">
</div><!--/.form-group -->
<div class="form-group">
<label for="signin_form">password</label>
<input type="password" name="password" class="form-control" id="signin_form" placeholder="Password">
</div><!--/.form-group -->
<div class="form-group">
<label for="signin_form">retype password</label>
<input type="password" name="reenter" class="form-control" id="signin_form" placeholder="Retype Password">
</div><!--/.form-group -->
<div class="form-group">
<input type="hidden" value=1 name="accounttype">
<input name="accounttype" type="checkbox" value=2>
<label>Create parent account</label>
</div><!--/.form-group -->
</form><!--/form -->
</div><!--/.signin-form -->
</div><!--/.col -->
</div><!--/.row -->
<script>
function check() {
if (!document.getElementById('styled-checkbox-2').checked) {
alert('Please accept our terms & condition.');
return false;
}
}
</script>
<div class="row">
<div class="col-sm-12">
<div class="signin-password">
<div class="awesome-checkbox-list">
<ul class="unstyled centered">
<li>
<input class="styled-checkbox" id="styled-checkbox-2" type="checkbox" value="value2">
<label for="styled-checkbox-2">accept our terms & condition</label>
</li>
<li></li>
</ul>
</div><!--/.awesome-checkbox-list -->
</div><!--/.signin-password -->
</div><!--/.col -->
</div><!--/.row -->
<div class="row">
<div class="col-sm-12">
<div class="signin-footer">
<div id="hint"></div>
<button type="submit" class="btn signin_btn" form="register" disabled onclick="return check()">
sign up
</button>
<p>
already member ?
<a href="login_main.php">sign in</a>
</p>
</div><!--/.signin-footer -->
</div><!--/.col-->
</div><!--/.row -->
</div><!--/.sign-content -->
</div><!--/.container -->
</section><!--/.signin -->
<!-- signin end -->
<script>
$(document).ready(function() {
$('#register').on('input', function() {
var name = $('input[name="fullname"]').val();
var username = $('input[name="username"]').val();
var password = $('input[name="password"]').val();
var reenter = $('input[name="reenter"]').val();
if (name && username && password && reenter && password == reenter) {
$('#hint').html('');
$('.signin_btn').prop('disabled', false);
} else {
var hint = '';
if (!name) {
hint += 'Please enter your full name.<br>';
}
if (!username) {
hint += 'Please enter your username.<br>';
}
if (!password) {
hint += 'Please enter your password.<br>';
}
if (!reenter) {
hint += 'Please reenter your password.<br>';
}
if (password != reenter) {
hint += 'Passwords do not match.<br>';
}
$('#hint').html(hint);
$('.signin_btn').prop('disabled', true);
}
});
});
</script>
<!--footer copyright start -->
<footer class="footer-copyright">
<div id="scroll-Top">
<i class="fa fa-angle-double-up return-to-top" id="scroll-top" data-toggle="tooltip" data-placement="top" title="" data-original-title="Back to Top" aria-hidden="true"></i>
</div><!--/.scroll-Top-->
</footer><!--/.hm-footer-copyright-->
<!--footer copyright end -->
</body>
</html>