forked from students-alumni-cell-iitkgp/sac
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsignup.php
352 lines (300 loc) · 12.8 KB
/
signup.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
<html>
<head>
<meta charset="UTF-8">
<title>Register | Annual Alumni Meet · IIT Kharagpur</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<link rel="icon" href="img/meet_14.png">
<link rel="stylesheet" href="css/materialize.min.css">
<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 type="text/javascript" src="https://code.jquery.com/jquery-2.2.4.min.js"></script>
<script type="text/javascript" src="js/materialize.min.js"></script>
<script src="https://unpkg.com/sweetalert/dist/sweetalert.min.js"></script>
<!-- <script type="text/javascript" src="https://code.jquery.com/jquery-1.12.4.js"></script>
<script type="text/javascript" src="https://code.jquery.com/ui/1.12.0/jquery-ui.js"></script> -->
<!-- <script type="text/javascript" src="https://unpkg.com/sweetalert/dist/sweetalert.min.js"></script>
<script type="text/javascript"src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.0/jquery.min.js"></script> -->
<script>
$(function () {
$('form').on('submit', function (e) {
e.preventDefault();
swal ({
title: "",
text: "Kindly register only if you have no objections to being accommodated in the Halls of Residence due to shortage of accommodation which do not have attached bathrooms and facilities at par with the other Institute Guest Houses. Also, we request you not to bring any accompaniments due to the same reason.",
icon: "warning",
buttons: {
cancel: "No",
confirm: "Register",
},
}).then((value) => {
if(value){
$.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: false,
timer: 2000,
}).then((value) => {
window.location="aam.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>
</head>
<body>
<div class="_wrapper">
<?php include 'navbar.php';?>
<div class="row signup">
<form>
<center>
<div class="heading">
<hr><hr><br>
<div>
<p style="text-align: center; max-width: 800px">We have already crossed <b>300 registrations – the highest ever - </b>for the Annual Alumni Meet. We cannot thank you enough for the overwhelming response. However, those who still wish to register please note that we may have to accommodate you in the Halls of Residence given the constraints regarding accommodation. Please register only if you have no objections to being accommodated in the Halls of Residence which do not have attached bathrooms and facilities at par with the other Institute Guest Houses. Also, we request you not to bring any accompaniments due to the shortage of accommodation.<br>
The registration fee per alumnus/alumna is INR 7000 and INR 4000 per every additional guest. It includes food, accommodation and travel with in the campus. Please make the payment along with the registration to confirm your participation in the event. It can be done via the online payment portal that will be accessible after registration. Please fill the registration form below and take note of password for future login.</p>
</div>
<br><hr><hr><br><br>
<div><a class="waves-effect waves-light btn-large modal-trigger" href="aam.php#modal1" >LOGIN - If already Registered</a></div>
<br><br>
</div>
<h class="subheading"><b>Personal Details</b> </h>
<br><br><br>
<div class="row1">
<div class="input-field col s12">
<input type="text" name="name" id="name" class="validate" required>
<label for="name">Name <span style="color:red;">*</span></label>
</div>
</div>
<div class="row1">
<div class="input-field col s6">
<input type="email" name="email" id="email" required>
<label for="email">Email ID <span style="color:red;">*</span></label>
</div>
<div class="input-field col s6">
<input type="password" id="password" name="password" required>
<label for="password">Password (For future login) <span style="color:red;">*</span></label>
</div>
</div>
<div class="input-field col s12">
<input type="text" name="address" id="personal_address">
<label for="address">Address </label>
</div>
<div class="row1">
<div class="input-field col s6">
<input type="text" id="personal_city" name="city" required>
<label for="city">City <span style="color:red;">*</span></label>
</div>
<div class="input-field col s6">
<input type="text" id="personal_state" name="state" >
<label for="state">State </label>
</div>
</div>
<div class="row1">
<div class="input-field col s6">
<input type="text" name="country" id="country" required>
<label for="country">Country <span style="color:red;">*</span></label>
</div>
<div class="input-field col s6">
<input type="text" id="zipcode" name="zipCode" >
<label for="zipcode">Zip Code </label>
</div>
</div>
<div class="row1">
<div class="input-field col s6" style="margin-top:31.5px;">
<input type="text" name="mobile" id="mobile" required>
<label for="mobile">Mobile <span style="color:red;">*</span></label>
</div>
<div class="col s6" style="margin-top:15px;">
<label for="dob">DOB <span style="color:red;">*</span></label>
<input type="date" name="dob" required id="dob">
</div>
</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"><b>Work Experience</b></h>
</center><br>
<center style="color:#9e9e9e">Current or past work experiences as per relevance
</center>
</div>
<div class="row1">
<div class="input-field col s6">
<input type="text" id="ind" name="industry" >
<label for="ind">Industry </label>
</div>
<div class="input-field col s6">
<input type="text" id="prof" name="profession" >
<label for="prof">Profession </label>
</div>
</div>
<div class="row1">
<div class="input-field col s6">
<input type="text" id="org" name="orgName" required>
<label for="org">Organisation Name <span style="color:red;">*</span></label>
</div>
<div class="input-field col s6">
<input type="text" id="desig" name="designation" required>
<label for="desig">Designation <span style="color:red;">*</span></label>
</div>
</div>
<div class="input-field col s12" style="margin-bottom:0px;">
<input type="text" id="address" name="work_address">
<label for="address">Address</label>
</div>
<div class="row1">
<div class="input-field col s6">
<input type="text" id="city" name="work_city">
<label for="city">City</label>
</div>
<div class="input-field col s6">
<input type="text" id="state" name="work_state">
<label for="state">State</label>
</div>
</div>
<div class="row1">
<div class="input-field col s6">
<input type="text" id="Country" name="work_country">
<label for="Country">Country</label>
</div>
<div class="input-field col s6">
<input type="text" id="zip" name="work_zipCode">
<label for="zip">Zip Code</label>
</div>
</div>
<div class="row"></div>
<p></p>
<div class="heading" >
<center><br><br>
<h class="subheading"><b>Nostalgic Section</b> </h>
</center>
</div>
<div class="row1">
<div class="input-field col s6">
<input type="text" id="roll" name="rollNum">
<label for="roll">Roll Number</label>
</div>
<div class="input-field col s6">
<input type="number" min="1951" max="2006" id="join" name="joinYear" required>
<label for="join">Join Year <span style="color:red;">*</span></label>
</div>
</div>
<div class="row1">
<div class="input-field col s6">
<input type="text" id="degree" name="degree" required>
<label for="degree">Degree <span style="color:red;">*</span></label>
</div>
<div class="input-field col s6">
<input type="text" id="dept" name="department" required>
<label for="dept">Department <span style="color:red;">*</span></label>
</div>
</div>
<div class="row1">
<div class="input-field col s6">
<input type="text" id="hall" name="hall" required>
<label for="hall">Hall <span style="color:red;">*</span></label>
</div>
<div class="input-field col s6">
<input type="number" min="1955" max="2010" id="yog" name="graduatingYear" required>
<label for="yog">Year of Graduating <span style="color:red;">*</span></label>
</div>
</div>
<div class="row1">
<div class="input-field col s6">
<input type="text" id="involvements" name="involvements">
<label for="yog">Involvements (Societies, Hall Events, etc) </label>
</div>
<div class="input-field col s6">
<input type="text" id="hobbies" name="hobbies">
<label for="yog">Hobbies</label>
</div>
</div>
<div class="input-field col s12" style="margin-bottom:20px;">
<input type="number" min="0" id="accompanyingNo" name="accompanyingNo" required>
<label for="accompanyingNo">Accompaniments(Number of guests)<span style="color:red;">*</span></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>
</center>
</form>
</div>
</div>
<?php include 'footer.php';?>
</body>
</html>
<script type="text/javascript">
$('.btn').click(function() {
});
</script>