forked from students-alumni-cell-iitkgp/sac
-
Notifications
You must be signed in to change notification settings - Fork 0
/
signup1.php
322 lines (258 loc) · 9.18 KB
/
signup1.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
<html>
<head>
<title>Register | Annual Alumni Meet · IIT Kharagpur</title>
<link rel="stylesheet" href="css/materialize.min.css">
<script type="text/javascript" src="https://code.jquery.com/jquery-2.1.1.min.js"></script>
<script src="js/materialize.min.js"></script>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="css/style.css">
<link rel="stylesheet" href="//code.jquery.com/ui/1.12.0/themes/base/jquery-ui.css">
<script src="https://code.jquery.com/jquery-1.12.4.js"></script>
<script src="https://code.jquery.com/ui/1.12.0/jquery-ui.js"></script>
<script src="https://unpkg.com/sweetalert/dist/sweetalert.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.0/jquery.min.js"></script>
<script>
$(function () {
$('form').on('submit', function (e) {
e.preventDefault();
$.ajax({
type: 'post',
url: 'register.php',
data: $('form').serialize(),
success: function (response) {
if(response== 0 )
{
swal({
title: "WRONG CAPTCHA!",
text: "Please re-enter the captcha!",
icon: "error",
buttons: true,
dangerMode: true,
}).then((value) => {
});
}
else if(response== 1)
{
swal({
title: "REGISTERED!",
text: "You can login now!",
icon: "success",
buttons: true,
dangerMode: true,
}).then((value) => {
window.location="registration-complete.php";
});
//alert('success');
}
else
{
alert(response);
}
}
});
});
});
</script>
<style type="text/css">
@media only screen and (min-width: 768px){
.signup{
padding: 5px 100px;
}
.mentor-reg a{
margin-top: 30px;
display: inline-block;
}
.mentor-text {
margin-left: 60px !important;
}
.mentor-top {
margin-top: 20px;
margin-left: 60px;
width: 860px;
height: 60px;
border-radius: 6px;
margin-bottom: 20px;
}
.ac-mentor img{
margin-left: 80px;
}
}
@media only screen and (max-width: 468px){
.ac-mentor img{
margin: 0px auto;
max-width:100%;
}
.mentor-top {
max-width: 100%;
height: 60px;
}
}
.heading{
padding-top: 10px;
margin-top: 0px;
margin-bottom: 30px;
}
</style>
<script>
$(document).ready(function(){
$('.slider').slider({full_width: true});
});
$( function() {
$( ".datepicker" ).datepicker({ dateFormat: 'dd-mm-yy' ,maxDate: '0'});
} );
</script>
</head>
<body>
<div class="_wrapper">
<?php include 'navbar.php';?>
<div class="row signup">
<form >
<div class="heading">
<center>
<div><a class="waves-effect waves-light btn-large modal-trigger" href="aam.php#modal1" >LOGIN - If already Registered</a></div>
<hr><hr><br>
<p style="text-align:center">The registration fee per alumnus/alumna: Rs. 7000 and Rs. 4000 per additional guest. It covers all expenses the moment you step into your campus. It includes food, accommodation and entertainment. The payment can be made via cheque, DD or NEFT. Please fill the registration form below and take note of the password for future login. You will be contacted by Students' Alumni Cell. </p><br><hr><hr><br>
<br>
<h class="subheading"><b>Personal Details</b> </h>
</center>
</div>
<div class="input-field col s12">
<input type="text" name="name" id="name" class="validate" required>
<label for="name">Name *</label>
</div>
<div class="input-field col s12">
<input type="email" name="email" id="email" required>
<label for="email">Email ID *</label>
</div>
<div class="input-field col s12">
<input type="password" id="password" name="password" required>
<label for="password">Password (For future login) *</label>
</div>
<div class="input-field col s12">
<input type="text" name="address" id="address" required>
<label for="address">Address *</label>
</div>
<div class="input-field col s12">
<input type="text" id="city" name="city" required>
<label for="city">City *</label>
</div>
<div class="input-field col s12">
<input type="text" id="state" name="state" required>
<label for="state">State *</label>
</div>
<div class="input-field col s12">
<input type="text" name="country" id="country" required>
<label for="country">Country *</label>
</div>
<div class="input-field col s12">
<input type="text" id="zipcode" name="zipCode" required>
<label for="zipcode">Zip Code *</label>
</div>
<div class="input-field col s12">
<input type="text" name="mobile" id="mobile" required>
<label for="mobile">Mobile *</label>
</div>
<div class="col s12" style="margin-top:15px;">
<label for="dob">DOB *</label>
<input type="date" name="dob" required id="dob">
</div>
<div class="input-field col s12" style="margin-bottom:30px;">
<input type="text" name="marital" id="marital">
<label for="marital">Marital Status</label>
</div>
<div class="heading">
<center>
<h class="subheading" >Work Experience</h>
</center><br><center style="color:#9e9e9e">
Current or past work experiences as per relevance
</center> </div>
<div class="input-field col s12">
<input type="text" id="ind" name="industry" required>
<label for="ind">Industry *</label>
</div>
<div class="input-field col s12">
<input type="text" id="prof" name="profession" required>
<label for="prof">Profession *</label>
</div>
<div class="input-field col s12">
<input type="text" id="org" name="orgName" required>
<label for="org">Organisation Name *</label>
</div>
<div class="input-field col s12">
<input type="text" id="desig" name="designation" required>
<label for="desig">Designation *</label>
</div>
<div class="input-field col s12">
<input type="text" id="city" name="work_city">
<label for="city">City</label>
</div>
<div class="input-field col s12">
<input type="text" id="state" name="work_state">
<label for="state">State</label>
</div>
<div class="input-field col s12">
<input type="text" id="Country" name="work_country">
<label for="Country">Country</label>
</div>
<div class="input-field col s12">
<input type="text" id="zip" name="work_zipCode">
<label for="zip">Zip Code</label>
</div>
<div class="input-field col s12" style="margin-bottom:30px;">
<input type="text" id="address" name="work_address">
<label for="address">Address</label>
</div>
<div class="heading">
<center><br>
<h class="subheading"><b>Nostalgic Section</b> </h>
</center>
</div>
<div class="input-field col s12">
<input type="text" id="roll" name="rollNum">
<label for="roll">Roll Number</label>
</div>
<div class="input-field col s12">
<input type="number" min="1951" max="2006" id="join" name="joinYear" required>
<label for="join">Join Year *</label>
</div>
<div class="input-field col s12">
<input type="text" id="degree" name="degree" required>
<label for="degree">Degree *</label>
</div>
<div class="input-field col s12">
<input type="text" id="dept" name="department" required>
<label for="dept">Department *</label>
</div>
<div class="input-field col s12">
<input type="text" id="hall" name="hall" required>
<label for="hall">Hall *</label>
</div>
<div class="input-field col s12">
<input type="number" min="1955" max="2010" id="yog" name="graduatingYear" value="1993" required>
<label for="yog">Year of Graduating *</label>
</div>
<div class="input-field col s12">
<input type="text" id="involvements" name="involvements">
<label for="yog">Involvements within the campus(societies,hall events,etc)?</label>
</div>
<div class="input-field col s12">
<input type="text" id="hobbies" name="hobbies">
<label for="yog">Hobbies.</label>
</div>
<br>
<div class="input-field col s12" style="margin-bottom:20px;margin-top:3%">
<input type="number" min="0" id="accompanyingNo" name="accompanyingNo">
<label for="accompanyingNo">Accompaniments(Number of guests)</label>
</div>
<div class="col s12">
<center>
<button type="submit" class="btn btn-success btn-lg btn-block" name="button" style="width:25%" >SUBMIT</button>
</center>
</div>
</form>
</div>
</div>
<?php include 'footer.php';?>
</body>
</html>