-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathcreate_acount.html
More file actions
198 lines (165 loc) · 7.31 KB
/
Copy pathcreate_acount.html
File metadata and controls
198 lines (165 loc) · 7.31 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
<!DCOTYPE html>
<html lang="en">
<head>
<title> New Acount </title>
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"></script>
<script src="js/document_ready.js"></script>
<script src="js/check_match.js"></script>
<link href="//maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<link rel='stylesheet' href='css/carousel_style.css'>
<style>
body{ padding-top: 80px; }
.profile-img-card {
width: 96px;
height: 96px;
margin: 0 auto 10px;
display: block;
-moz-border-radius: 50%;
-webkit-border-radius: 50%;
border-radius: 50%;
}
.carousel-item img:hover{
border-style: solid;
border-width: 3px;
}
label > input{ /* HIDE RADIO */
visibility: hidden; /* Makes input not-clickable */
position: absolute; /* Remove input from document flow */
}
label > input + img{ /* IMAGE STYLES */
cursor:pointer;
border:2px solid transparent;
}
label > input:checked + img{ /* (RADIO CHECKED) IMAGE STYLES */
border:2px solid;
}
</style>
</head>
<body>
<div id="HEADER"></div>
<div class="container-fluid row justify-content-center">
<div class="card col-md-7 col-11 ml-4 text-center">
<h2 class="card_header text-center mt-3">
~Join Us~
</h2>
<div class="card-body">
<img class="profile-img-card" src="//ssl.gstatic.com/accounts/ui/avatar_2x.png" alt="card image cap">
<form>
<div class="form-group row">
<div class="input-group col">
<input type="text" class="form-control" id="name" placeholder="User name" required autofocus name="name">
<!--div class="input-group-append">
<span class="input-group-text"></span>
</div-->
</div>
</div>
<div class="form-group row">
<div class="col-md mb-1"><input type="password" class="form-control col" placeholder="Password" id="newPwd" required name="passwd"></div>
<div class="input-group col-md">
<input type="password" class="form-control" placeholder="Enter password again" id="conPwd" name="confirm_pwd" onkeyup="checkMatch();">
<div class="input-group-append">
<span class="input-group-text" id="confirm_status"></span>
</div>
</div>
</div>
<div class="form-group row">
<div class="col-md mb-1"><input type="text" class="form-control" placeholder="Birthday: yyyy/mm/dd" id="birthday" name="birthday"></div>
<div class="col-md mb-1"><input type="text" class="form-control" placeholder="Gender: M/F/U" id="gender" name="gender"></div>
<div class="col-md"><input type="text" class="form-control" placeholder="Single/Married" id="marriage" name="marriage"></div>
</div>
<div class="form-group row">
<div class="col-md-7"><input type="email" class="form-control" placeholder="Email" id="email" name="email"></div>
<div class="col-md-5"><input type="tel" class="form-control" placeholder="Phone" id="phone" name="phone" minlength="10" maxlength="10"></div>
</div>
<div class="form-group row">
<div class="carousel slide col" id="avatorSelection" data-ride="carousel" data-interval="false">
<div class="carousel-inner row">
<div class="carousel-item col-md-4 active">
<label>
<input type="radio" name="avator" value="girl01">
<img src="image/avator/girl01.png" width="150px">
</label>
</div>
<div class="carousel-item col-md-4">
<label>
<input type="radio" name="avator" value="boy01">
<img src="image/avator/boy01.png" width="150px">
</label>
</div>
<div class="carousel-item col-md-4">
<label>
<input type="radio" name="avator" value="no01">
<img src="image/avator/no01.png" width="150px">
</label>
</div>
<div class="carousel-item col-md-4">
<label>
<input type="radio" name="avator" value="boy02">
<img src="image/avator/boy02.png" width="150px">
</label>
</div>
<div class="carousel-item col-md-4">
<label>
<input type="radio" name="avator" value="girl02">
<img src="image/avator/girl02.png" width="150px">
</label>
</div>
<div class="carousel-item col-md-4">
<label>
<input type="radio" name="avator" value="girl03">
<img src="image/avator/girl03.png" width="150px">
</label>
</div>
<div class="carousel-item col-md-4">
<label>
<input type="radio" name="avator" value="boyreal">
<img src="image/avator/boyreal.png" width="150px">
</label>
</div>
<div class="carousel-item col-md-4">
<label>
<input type="radio" name="avator" value="girlreal">
<img src="image/avator/girlreal.png" width="150px">
</label>
</div>
</div>
<a class="carousel-control-prev disable" href="#avatorSelection" role="button" data-slide="prev">
<span class="carousel-control-prev-icon" aria-hidden="true"></span>
<span class="sr-only">Previous</span>
</a>
<a class="carousel-control-next" href="#avatorSelection" role="button" data-slide="next">
<span class="carousel-control-next-icon" aria-hidden="true"></span>
<span class="sr-only">Next</span>
</a>
</div>
<script src='js/carousel_control.js'></script>
</div>
<div class="form-group justify-content-center">
<input type="submit" class="btn btn-primary disabled col-md-4" value="submit" name="submit" id="submit">
</div>
</form>
</div>
</div>
</div>
</body>
</html>
<script>
$('form').on('submit', function(event){
event.preventDefault();
$.ajax({
url: "php/createAccount.php",
data: $(this).serialize(),
dataType: "json",
method: "POST"
})
.done(function(result){
alert(result.msg);
if(result.success) window.location.href = "./index.html";
})
.fail(function(xhr, status, errorThrown){
alert(errorThrown);
});
});
</script>