-
Notifications
You must be signed in to change notification settings - Fork 0
/
registration.php
609 lines (552 loc) · 26.3 KB
/
registration.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
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
<?php
session_start();
require_once('includes/dbh.inc.php');
require_once 'vendor/autoload_captcha.php';
include 'includes/simple-crypt.inc.php';
$query="select distinct course_type from courses;";
$resultType = mysqli_query($conn, $query);
$siteKey = '6LdQkkgUAAAAAIv9oUIc0BmKAkBlp7_ZInUS3Kyx
';
$secret = '6LdQkkgUAAAAAC0MnZcqFhQ100nXEB_o-wAuExdi
';
$lang = 'en';
?>
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Registration | IAS</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="css/register.css">
<link rel="stylesheet" href="//code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css">
<link href="https://fonts.googleapis.com/css?family=Roboto:300,300i,400,400i,500,500i,700,700i" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="icon" type="image/jpg"
href="images/logo.jpg" />
</head>
<body>
<nav class="navbar navbar-inverse">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#myNavbar">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a href="index.php" class="pull-left hidden-xs"><img src="images/logo.jpg" height="35" width="48" style="margin:8px;"></a>
<a class="navbar-brand" href="index.php"><span class="brand"><span>I</span>NSTITUTE OF <span>A</span>PPLIED <span>S</span>CIENCE</span></a>
</div>
<div class="collapse navbar-collapse" id="myNavbar">
<ul class="nav navbar-nav navbar-right">
<li><a style="font-size:16px;" href="login.php"><span class="glyphicon glyphicon-log-in"></span> Log In</a></li>
</ul>
</div>
</div>
</nav>
<div class="container-fluid">
<div class="row">
<div class="col-lg-5 col-sm-10 register">
<div class="heading">Register</div>
<p class="require">All the fields below are required.*</p>
<?php
if(isset($_GET['signup']) && ($_GET['signup'] == 'emailtaken') || isset($_GET['wrongcaptcha']))
{
echo '<p class="error" "><span class="fa fa-exclamation-triangle"></span> Please review the errors below!</p>';
}
if(isset($_GET['signup']) && ($_GET['signup'] == 'empty'))
{
echo '<p class="error" style="text-align:center; ">All fields are required. Please fill them carefully. </p>';
}
if(isset($_GET['emp']) && ($_GET['emp'] == '1'))
{
echo '<p class="error" style="text-align:center; "><span class="fa fa-exclamation-triangle"></span> Some fields were left blank. You need to start over again.</p>';
}
?>
<form action="includes/registration.inc.php" method="POST" enctype="multipart/form-data" id="form">
<div class="item"><span>1</span> Your Basic Info</div>
<div class="form-group">
<label for="name">NAME:</label>
<input type="text" class="form-control" name="name" id="name" value="<?php if(isset($_GET['0'])){echo simple_crypt($_GET[0],'d');} ?>" required>
<p for="name" id="error_name" ></p>
<?php
if(isset($_GET['nm']))
{
echo '<p class="error">Please provide a valid name. </p>';
}
?>
</div>
<div class="form-group ">
<label for="gender">GENDER:</label><br>
<input type="radio" name="gender" value="Male" id="gender" <?php if(isset($_GET['10']) && simple_crypt($_GET['10'],'d')=='Male'){echo 'checked';} ?> required> Male<br>
<input type="radio" name="gender" value="Female" <?php if(isset($_GET['10']) && simple_crypt($_GET['10'],'d')=='Female'){echo 'checked';} ?>> Female<br>
<input type="radio" name="gender" value="Other"
<?php if(isset($_GET['10']) && simple_crypt($_GET['10'],'d')=='Other'){echo 'checked'; }?>> Other
</div>
<div class="form-group ">
<label for="datepicker">DATE OF BIRTH (yyyy-mm-dd):</label>
<input type="text" class="form-control" id="datepicker" name="date" value="<?php if(isset($_GET['1'])){echo simple_crypt($_GET[1],'d');} ?>" required/>
</div>
<div class="form-group ">
<label for="email">EMAIL:</label>
<input type="email" required class="form-control" id="email" name="email" value="<?php if(isset($_GET['2'])){echo simple_crypt($_GET[2], 'd');} ?>">
<p for="name" id="error_email"></p>
<?php
if(isset($_GET['em']))
{
echo '<p class="error1">Please provide a valid email address. </p>';
}
if(isset($_GET['signup']) && ($_GET['signup'] == 'emailtaken'))
{
echo '<p class="error1"><span class="fa fa-exclamation-triangle"></span> Email id already registered, please use a different one! </p>';
}
?>
</div>
<div class="form-group ">
<label for="contact">CONTACT NUMBER:</label>
<input type="text" required class="form-control" id="contact" name="contact" maxlength="10" value="<?php if(isset($_GET['3'])){echo simple_crypt($_GET[3],'d');} ?>">
<p for="name" id="error_contact"></p>
<?php
if(isset($_GET['ct']))
{
echo '<p class="error">Please provide a valid contact number. </p>';
}
?>
</div>
<div class="form-group ">
<label for="gname">GURDIAN'S NAME:</label>
<input type="text" required class="form-control" id="gname" name="gname" value="<?php if(isset($_GET['4'])){echo simple_crypt($_GET[4], 'd');} ?>">
<p for="name" id="error_gname"></p>
<?php
if(isset($_GET['gnm']))
{
echo '<p class="error">Please provide a valid name. </p>';
}
?>
</div>
<div class="form-group ">
<label for="gcontact">GURDIAN'S CONTACT NUMBER:</label>
<input type="text" required class="form-control" id="gcontact" maxlength="10" name="gcontact" value="<?php if(isset($_GET['5'])){echo simple_crypt($_GET[5],'d');} ?>">
<p for="name" id="error_gcontact"></p>
<?php
if(isset($_GET['gct']))
{
echo '<p class="error">Please provide a valid contact number. </p>';
}
?>
</div>
<div class="item"><span>2</span> ADDRESS</div>
<div class="form-group ">
<label for="street">STREET ADDRESS / LOCALITY:</label>
<textarea required class="form-control" name="street" id="street" rows="3" style="resize:none"><?php if(isset($_GET['21'])){echo $_GET['21'];} ?></textarea>
</div>
<div class="form-group ">
<label for="city">CITY:</label>
<input type="text" required class="form-control" id="city" value="<?php if(isset($_GET['23'])){echo $_GET['23'];} ?>" name="city">
</div>
<div class="form-group ">
<label for="state">STATE:</label>
<input type="text" id="state" required class="form-control" value="<?php if(isset($_GET['24'])){echo $_GET['24'];} ?>" name="state">
</div>
<div class="form-group ">
<label for="pin">PIN CODE:</label>
<input type="text" required class="form-control" id="pin" value="<?php if(isset($_GET['22'])){echo $_GET['22'];} ?>" name="pin">
</div>
<div class="item"><span>3</span> For Identity Card</div>
<div class="form-group ">
<label for="pin">RELIGION:</label>
<input type="text" required class="form-control" value="<?php if(isset($_GET['18'])){echo $_GET[18];} ?>" name="religion">
</div>
<div class="form-group ">
<label for="cpwd">BLOOD GROUP:</label>
<input type="text" required class="form-control" value="<?php if(isset($_GET['19'])){echo $_GET[19];} ?>" name="blood">
</div>
<div class="form-group ">
<label>CATEGORY:</label><br>
<label class="radio-inline">
<input type="radio" value="General" name="category" <?php if(isset($_GET['20']) && $_GET['20']=='General'){echo 'checked';} ?> required>General
</label>
<label class="radio-inline">
<input type="radio" value="SC" name="category" <?php if(isset($_GET['20']) && $_GET['20']=='SC'){echo 'checked';} ?>>SC
</label>
<label class="radio-inline">
<input type="radio" value="ST" name="category" <?php if(isset($_GET['20']) && $_GET['20']=='ST'){echo 'checked';} ?>>ST
</label>
<label class="radio-inline">
<input type="radio" value="OBC" name="category" <?php if(isset($_GET['20']) && $_GET['20']=='OBC'){echo 'checked';} ?>>OBC
</label>
</div>
<div class="item" id="education"><span>4</span> Education</div>
<div class="form-group ">
<label for="he">EDUCATION YOU ARE CURRENTLY PURSUING:</label>
<select class="form-control" id="he" name="he" required ">
<option selected>Choose your current Education</option>
<?php
if(isset($_GET['class'])){
$class= $_GET['class'];
}
$array = array('Class X', 'Class XI', 'Class XII', 'Btech', 'Mtech', 'Other');
for($i=0; $i<6; $i++){
if($array[$i]==$class){
echo '<option selected>'.$array[$i].'</option>';
$j++;
}
else{
echo '<option>'.$array[$i].'</option>';
}
}
?>
</select>
</div>
<input id="hidden" name="hidden" type="hidden"></input>
<?php
if(isset($_GET['class']) && $_GET['class'] == 'Other'){
echo '
<div class="form-group ">
<label for="address">PLEASE SPECIFY:</label>
<input type="text" class="form-control" name="edu" value="';
if(isset($_GET['11'])){echo $_GET['11'];}
echo'" required/>
</div>
<div class="form-group ">
<label for="address">HIGHEST EDUCATION:</label>
<input type="text" class="form-control" name="he_other" value="';
if(isset($_GET['16'])){echo $_GET['16'];}
echo'" required/>
</div>
<div class="form-group ">
<label for="address">YEAR OF PASSING:</label>
<input type="text" class="form-control" maxlength="4" name="yop" value="';
if(isset($_GET['9'])){echo simple_crypt($_GET['9'],'d');}
echo '" required/>
</div>
<div class="form-group ">
<label for="inst">INSTITUTE WHERE YOU ARE PURSUED YOUR HIGHEST EDUCATION:</label>
<input type="text" class="form-control" name="inst" id="inst" required value="';
if(isset($_GET['8'])){echo simple_crypt($_GET['8'],'d');}
echo '"/>
</div>
';
}
elseif(isset($_GET['class']) && ($_GET['class'] == 'Btech' || $_GET['class'] == 'Mtech')){
echo '
<div class="form-group ">
<label for="address">DEPARTMENT:</label>
<input type="text" class="form-control" name="dept" value="';
if(isset($_GET['12'])){echo $_GET['12'];}
echo'" required/>
</div>
<div class="form-group ">
<label for="address">(EXPECTED) YEAR OF PASSING:</label>
<input type="text" class="form-control" maxlength="4" name="yop" value="';
if(isset($_GET['9'])){echo simple_crypt($_GET['9'],'d');}
echo'" required/>
</div>
<div class="form-group ">
<label for="address">NAME OF YOUR COLLEGE:</label>
<input type="text" class="form-control" name="college" value="';
if(isset($_GET['14'])){echo $_GET['14'];}
echo'" required/>
</div>
<div class="form-group ">
<label for="address">NAME OF YOUR UNIVERSITY:</label>
<input type="text" class="form-control" name="university" value="';
if(isset($_GET['13'])){echo $_GET['13'];}
echo'" required/>
</div>
';
}
elseif(isset($_GET['class']) && ($_GET['class'] == 'Class XI' || $_GET['class'] == 'Class XII')){
echo '
<div class="form-group ">
<label for="address">NAME OF YOUR SCHOOL:</label>
<input type="text" class="form-control" name="school" value="';
if(isset($_GET['15'])){echo $_GET['15'];}
echo'" required/>
</div>
<div class="form-group ">
<label for="address">BOARD:</label>
<input type="text" class="form-control" name="university" value="';
if(isset($_GET['13'])){echo $_GET['13'];}
echo'" required/>
</div>
<div class="form-group ">
<label for="address">YOUR SUBJECT COMBINATION (Separated by commas " , " ):</label>
<input type="text" class="form-control" name="sub_combo" value="';
if(isset($_GET['17'])){echo $_GET['17'];}
echo'" required/>
</div>
';
}
elseif(isset($_GET['class']) && ($_GET['class'] == 'Class X')){
echo '
<div class="form-group ">
<label for="address">NAME OF YOUR SCHOOL:</label>
<input type="text" class="form-control" name="school" value="';
if(isset($_GET['15'])){echo $_GET['15'];}
echo'" required/>
</div>
<div class="form-group ">
<label for="address">BOARD:</label>
<input type="text" class="form-control" name="university" value="';
if(isset($_GET['13'])){echo $_GET['13'];}
echo'" required/>
</div>
';
}
?>
<?php
if(isset($_GET['class'])){
$class= $_GET['class'];
$query="select * from course_edu where edu='$class'";
$result= mysqli_query($conn, $query);
echo '
<div class="form-group ">
<label for="course">NAME OF THE COURSE:</label>
<select class="form-control" id="course" name="course_type" required onchange="this.form.submit()">
<option selected>Choose Course Name</option>
';
$type='';
while($row = mysqli_fetch_array($result)){
$cid = $row['course_id'];
$query = "select course_type from courses where course_id = $cid";
$res= mysqli_query($conn, $query);
while($rowCtype = mysqli_fetch_array($res)){
global $type;
if($type != $rowCtype['course_type']){
if(isset($_GET['select']) && $rowCtype['course_type'] == $_GET['select']){
echo '<option value="'.$rowCtype['course_type'].'" selected>'.$rowCtype['course_type'].'</option>';
}
elseif(isset($_GET['select']) && $rowCtype['course_type'] == '10+2 Entrance Exams' && $_GET['select']=='10 2 Entrance Exams'){
echo '<option value="'.$rowCtype['course_type'].'" selected>'.$rowCtype['course_type'].'</option>';
}
elseif(isset($_GET['select']) && $rowCtype['course_type'] == 'Training & Project Work' && $_GET['select']=='Training '){
echo '<option value="'.$rowCtype['course_type'].'" selected>'.$rowCtype['course_type'].'</option>';
}
else{
echo '<option value="'.$rowCtype['course_type'].'">'.$rowCtype['course_type'].'</option>';
}
}
$type=$rowCtype['course_type'];
}
}
echo '
</select>
</div>
';
}
?>
<?php
if(isset($_GET['select'])){
if($_GET['select'] == '10 2 Entrance Exams'){
$select = '10+2 Entrance Exams';
}
elseif($_GET['select'] == 'Training '){
$select = 'Training & Project Work';
}
else{
$select = $_GET['select'];
}
$class=$_GET['class'];
echo '
<div class="form-group ">
<label for="course">TYPE OF COURSE YOU ARE OPTING FOR:</label>
<select class="form-control" id="course_name" name="course_name" required onchange="this.form.submit()">
<option selected>Choose Course Type</option>
';
$query = "select course_name from courses where course_type='$select'";
$res = mysqli_query($conn, $query);
while($row = mysqli_fetch_array($res)){
if(isset($_GET['courseName']) && $_GET['courseName'] == $row['course_name']){
echo '<option value="'.$row['course_name'].'" selected>'.$row['course_name'].'</option>';
}
elseif(isset($_GET['courseName']) && $_GET['courseName'] == 'Robotics with ARDUINO ' && $row['course_name'] == 'Robotics with ARDUINO & PID'){
echo '<option value="'.$row['course_name'].'" selected>'.$row['course_name'].'</option>';
}
else{
echo '<option value="'.$row['course_name'].'">'.$row['course_name'].'</option>';
}
}
/*$j=20;
for($i=0; $i<$_GET['limit']; $i++){
if(isset($_GET['courseName']) && $_GET['courseName'] == simple_crypt($_GET[$j], 'd')){
echo '<option value="'.simple_crypt($_GET[$j], 'd').'" selected>'.simple_crypt($_GET[$j], 'd').'</option>';
$j++;
}
else{
echo '<option value="'.simple_crypt($_GET[$j], 'd').'">'.simple_crypt($_GET[$j], 'd').'</option>';
$j++;
}
}*/
echo '
</select>
</div>
';
}
if(isset($_GET['cid'])){
$cor_id= $_GET['cid'];
$query = "select center_id from course_center where course_id='$cor_id'";
$res = mysqli_query($conn, $query);
echo '
<div class="form-group ">
<label for="course">CENTER WHERE YOU WANT TO ENROLL:</label>
<select class="form-control" id="course_name" name="center_name" required>
<option selected>Choose Center</option>
';
while($row = mysqli_fetch_array($res)){
$id = $row['center_id'];
$query = "select center_name from centers where center_id= $id";
$result = mysqli_query($conn, $query);
while($rowName = mysqli_fetch_array($result)){
echo '<option value="'.$rowName['center_name'].'">'.$rowName['center_name'].'</option>';
}
}
echo '
</select>
</div>
';
}
?>
<div class="item"><span>5</span> Identity</div>
<div class="form-group ">
<label for="img">UPLOAD PHOTO:</label>
<input type="file" class="form-control" name="image" id="img" accept=".jpg, .jpeg, .png" required />
<p style="color:teal;">Accepted types are jpg, png and jpeg. Square dimensions preferred.(MAX Size 1mb)</p>
<p for="name" id="error_image"></p>
</div>
<div class="item"><span>6</span> Password</div>
<div class="form-group ">
<label for="pwd">PASSWORD:</label>
<input type="password" required class="form-control" id="pwd" name="pwd">
</div>
<div class="form-group ">
<label for="cpwd">CONFIRM PASSWORD:</label>
<input type="password" required class="form-control" id="cpwd" name="cpwd">
</div>
<?php
$no1=rand(1,30);
$no2=rand(1,30);
$operators = array("+", "-", "*");
$operator = rand(0,2);
$operator= $operators[$operator];
?>
<div class="item"><span>7</span> Solve the Captcha</div>
<div class="captcha"><?php echo $no1.' '.$operator.' '.$no2 ?></div>
<input type="text" required class="form-control" id="captcha" name="captcha">
<input type="hidden" required class="form-control" value="<?php echo $no1; ?>" id="no1" name="no1">
<input type="hidden" required class="form-control" value="<?php echo $no2; ?>" id="no2" name="no2">
<input type="hidden" required class="form-control" value="<?php echo $operator; ?>" id="operator" name="operator">
<?php
if(isset($_GET['wrongcaptcha']))
{
echo '<p class="error1"><span class="fa fa-exclamation-triangle"></span> Captcha answer provided was wrong.</p>';
}
?>
<div class="checkbox">
<label><input type="checkbox" value="" required><span>I agree with the terms and conditions.</span></label><a data-target="#terms" data-toggle="modal" class="tnc">Read T&C</a>
</div>
<p id="message" style="margin-top: 20px; font-size:16px;"></p>
<p id="message1" style="margin-top: 20px; font-size:16px;"></p>
<button type="submit" id="register" name="register" class="submit">Register</button>
</form>
</div>
</div>
</div>
<div class="modal fade" id="terms">
<div class="modal-dialog">
<div class="modal-content" >
<div class="modal-body">
<button type="button" class="close" data-dismiss="modal">×</button>
<h4>IAS TERMS AND CONDITIONS</h4>
<div class="tc">
<ol>
<li>The user should certify that he/she is at least 18 (eighteen) years of age or has the
adequate consent of a parent or legal guardian.</li>
<li>All prices and fees, unless otherwise specified are in INR.</li>
<li>All prices, fees and availability of courses are subject to change without prior notice
at the sole discretion of Institute of Applied Science (IAS).</li>
<li>Scholarship can only be availed by the student over the tuition fees.</li>
<li>Any request for cancellation of studentship during the mid-term shall not be
entertained.</li>
<li>The user agrees to provide authenticate and true information. IAS reserves the right to
confirm and validate the information and other details provided by the user at any
point of time. If upon confirmation such user details are found to be flawed or
incorrect (wholly or partly), IAS has the right in its sole discretion to reject the
registration and debar the user from IAS, without prior intimation whatsoever and
without the refund of the paid amount.</li>
<li>Any change in the information given to the Institute shall be updated without failure.
Failure of such updating may result in the expulsion of the student from the Institute.</li>
<li>The user agrees to be abide by the rules and Code of Conduct of the Institute.</li>
<li>Any student enrolled with IAS will have to regularly work hard. In case the teacher
feel that the student is not working hard, creating indiscipline or using unfair means in
the institute, irregular in attendance, not responding properly, he/she may be expelled
from the Institute. The decision of the Centre-In- charge in this regard will be final and
binding on the student/parent. No fee or part of the fee will be refunded in such cases.</li>
<li>If any student absents himself/herself for more than 10 days continuously without any
prior written application, he/she will not be allowed to attend/join the classes and will
not be given any test paper(s), he/she may be deemed to be expelled from the
Institute. No separate intimation will be sent to the parents. No fee or part of the fee
paid/encashed will be refunded in such cases. The decision of the Centre-In- charge in
this regard will be final and binding on the students & parents.</li>
<li>If any student undergoing any Training Course or Seminar or Workshop at IAS absents himself/herself for at most one day, he/she may not be allowed to sit for evaluation test/tests of that respective course and may not get certificate from IAS as the reason of incompletion of respective course.
</li>
<li>After depositing money towards Registration & Admission, if a student becomes
disinterested in the Institute due to any reason whatsoever and wants to take his/her
money back, the Institute will not refund the money deposited towards Registration
fee/Admission fee. However, if a student applies for refund before the
commencement of course/classes, only admission fee and first instalment of tuition
fee will be refunded along with post-dated cheques submitted, if any. The
registration/admission fee deposited towards a particular course will not be adjusted
against any other course.</li>
<li>If any student/parent insists on lump sum payment of fee, the Institute can accept the
same. The refund policy for such students will be same as students, who would pay
the fee in instalments.</li>
<li>If a student is absent or misses a test, he/she can collect his/her question paper from
the office within 10 days from the date of the test, failing which the question paper
will not be given to him/her.</li>
</ol>
</div>
</div>
</div>
</div>
</div>
<script src="js/jquery-3.2.1.min.js"></script>
<script src="js/register.js"></script>
<script src="js/bootstrap.js"></script>
<script src="https://code.jquery.com/jquery-1.12.4.js"></script>
<script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
<script>
$(document).ready(function(){
$("#he").change(function(){
$("#hidden").val("he"),
$("#form").submit();
});
});
</script>
<script>
window.onload = function () {
document.getElementById('button').onclick = function () {
document.getElementById('success-modal').style.display = "none"
window.location.replace('registration.php');
};
};
</script>
<?php
if(isset($_GET['success']))
{
echo '
<div id="success-modal">
<div class="modalconent">
<div class="head">
<span class="fa fa-check"></span>
</div>
<p class="hello">Hello '. strtok(simple_crypt($_GET['success'],'d'), ' ').'!</p>
<p>Greetings for the day! Your application for registering you as a student of Course: <b>'.simple_crypt($_GET['crs'],'d').'</b> at Center: <b>'.simple_crypt($_GET['cen'],'d').'</b> having Application No: <b>'.simple_crypt($_GET['appid'],'d').'</b> Dated: <b>'.date('d/m/Y').'</b> is successfully submitted and is waiting for approval. You shall be notified once your request is approved.</p><br>
<button id="button" class="btn btn-sm">Close</button><br><br>
<a href="index.php">Back to home</a>
</div>
</div>
';
}
?>
</body>
</html>