forked from students-alumni-cell-iitkgp/sac
-
Notifications
You must be signed in to change notification settings - Fork 0
/
aam.php
445 lines (411 loc) · 15.6 KB
/
aam.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
<?php
/*
if(isset($_POST['action'])){
session_start();
if ($_SESSION["email"] != "") {
header('Location: ./home.php');
exit();
}
include 'connection.php';
$email = $_POST["email"];
$q="SELECT password FROM users WHERE email=$email";
$password = $connection->query($q);
$password = hash('sha256', $password);
echo "Email ID $email <br>";
echo "Password after hash: $password <br>";
$sql = "SELECT email, password FROM users";
$result = $connection->query($sql);
if ($result->num_rows > 0) {
// output num rows
while ($row = $result->fetch_assoc()) {
// echo "email: " . $row["email"]. " - password: " . $row["password"]."<br>";
if ($email == $row["email"]) {
if ($password == $row["password"]) {
$_SESSION["email"] = $email;
$connection->close();
header('Location: ./home.php');
exit;
/*
else {
header('Location: ./signin.php?err=pass');
}
} else {
header('Location: ./aam.php?err=email');
}
}
} else {
$connection->close();
header('Location: ./signup.php?alert=Please register before logging in.');
exit;
}
}
}
*/
?>
<script type="text/javascript" src="https://code.jquery.com/jquery-2.2.4.min.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 type="text/javascript">
$(function () {
$('#form1').on('submit', function (e) {
e.preventDefault();
$.ajax({
type: 'post',
url: 'aamlogin.php',
data: $('#form1').serialize(),
success: function (response) {
if(response== 0 )
{
swal({
title: "INCOMPLETE DETAILS!",
text: "Please enter email-id and password!",
icon: "error",
buttons: true,
dangerMode: true,
}).then((value) => {
});
}
else if(response== 1 )
{
swal({
title: "INVALID LOGIN!",
text: "Please re-enter your email and password!",
icon: "error",
buttons: true,
dangerMode: true,
}).then((value) => {
});
}
else if(response== 2 )
{
window.location="home.php";
//alert(response);
}
else
{
alert(response);
}
}
});
});
});
</script>
<script type="text/javascript">
$(function () {
$('#sweetalert').on('click', function () {
swal({
title: "SORRY!",
text: "Registrations have been closed",
icon: "error",
buttons: true,
dangerMode: true,
});
});
});
</script>
<html>
<head>
<title>Annual Alumni Meet · IIT Kharagpur</title>
<link rel="stylesheet" href="css/materialize.min.css">
<link rel="icon" href="img/meet_14.png">
<script type="text/javascript" src="https://code.jquery.com/jquery-2.2.4.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/css?family=Lato" rel="stylesheet">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="css/style.css">
<script type="text/javascript">
$(document).ready(function(){
// the "href" attribute of .modal-trigger must specify the modal ID that wants to be triggered
$('.modal-trigger').leanModal();
});
</script>
<style type="text/css">
.hr{
align-conten
}
#button{
padding:10px;
display:inline;
}
@media only screen and (min-width: 768px){
.ac-head{
margin-top:-20px;
}
.aam-reg{
height: 380px;
}
.aam-reg a{
margin-top: 60px;
display: inline-block;
}
.ac-aam{
margin-left: 0px;
width:100vw;
}
}
@media only screen and (max-width: 468px){
*{
margin:0px;
padding:0px;}
.ac-aam img{ height: 30%;
margin: 0px auto;
max-width:100%;
}
.info {
width: 330px;
text-align: center;
}
.aam-reg{
height: 150px;
margin-top: 10px;
}
.aam-reg a{
margin-top: 10px;
}
.view{
position:absolute;
left:0px;
}
#button{
display: inherit;
width: 300px;
padding: 0px
}
.hr{
margin-left: 13%;
}
}
</style>
</head>
<body>
<div class="_wrapper" style="overflow: hidden;background:white">
<?php include 'navbar.php';?>
<div class="row ac-aam">
<div class="col l9"><img style="width: 98%;padding: 10px 30px 10px 10px" src="img/15th_aam/aam_cover.jpg"></div>
<div class="col l3" style="margin-top:3%;margin-left: -2.5%">
<div align="center" style="font-size: 25px;font-weight: 700">
16th Annual Alumni Meet
</div>
<div style="margin-top: 30%"><a class="waves-effect waves-light btn-large modal-trigger" href="#modal1" style="width: 105%" >LOGIN</a>
<br><br><a class="waves-effect waves-light btn" id="sweetalert" style="width: 105%;height: 5em">16th Annual Alumni Meet <br> Registration</a>
</div>
</div></div>
<div class="row">
<div class="col l12 s12 m12">
<center>
<div class="heading ac-head" style="border:3px black solid;display:inline-block;padding-top:2px;margin:3px;padding-right:20px;padding-left:20px;">
<h4 style="margin-bottom: 0px;" ><b>15th Annual Alumni Meet</b> </h4> <br>
<h5 style="margin-top: 0px;">12th to 14th January, 2018</h5>
</div>
</center>
<center>
<p style="width:90%;padding:10px;font-size:17px;text-align:justify">
We live our day to day lives oblivious to the beauty that surrounds us and by the time we do realise what exactly it is that we've been blessed with, it's generally too late. However when the good ol' days call yet again, nostalgia surrounds us as we walk the hallowed boulevards of our youth. The Annual Alumni Meet brings to our alumni a chance to reconnect with their Alma Mater. It lets them relive the carefree days of their college lives as they get a chance to visit all the locations they once frequented.<br><br>The <b>15th Annual Alumni Meet</b> was organised from <b>12th to 14th January, 2018</b> at our Institute campus. This year the <b>batch of 1968</b>, the <b> batch of 1978</b> and the <b> batch of 1993</b> were the special guests of honor. The Meet is now a major event anticipated by both the alumni and the students. As the years pass by and winds of change keep blowing, the Alumni Meet too shall keep evolving with the pace of time, hoping to bring to the alumni an experience that they may cherish all their lives.
</p>
</center>
</div>
</div>
<hr class="hr" style="color:grey;width:70%">
<!--- Modal Structure For login - -->
<div id="modal1" class="modal ">
<div class="modal-content">
<div class="row">
<form class="col s12 center-align" id="form1">
<div class="row">
<h2>LOGIN</h2>
<div class="input-field col s12">
<i class="material-icons prefix">account_circle</i>
<input id="icon_prefix" type="email" class="validate" name="email">
<label for="icon_prefix">Email ID</label>
</div>
<div class="input-field col s12">
<i class="material-icons prefix">vpn_key</i>
<input id="icon_telephone" type="password" class="validate" name="password">
<label for="icon_telephone">Password</label>
</div>
<button class="btn-large waves-effect waves-light " type="submit" name="action" style="margin-top:15px; width:200px;">Log In
<i class="material-icons right">send</i> </button>
</div>
</form>
</div>
</div>
<div class="modal-footer">
<a href="#!" class=" modal-action modal-close waves-effect waves-blue btn-flat">CLOSE</a>
</div>
</div>
<!-- login Modal end -->
<div class="images" style="background:white;">
<div class="row">
<div class="col l6">
<center>
<br>
<img src="img/14th_aam/reunion.jpg" style="width:90%;">
</center>
</div>
<div class="col l6">
<br>
<center>
<h4 style="padding-top:20px">Grand Reunion</h4>
<p style="width:90%;padding:20px;font-size:17px">
Students' Alumni Cell recently organised 14th Annual Alumni Meet which was a fun and fascinating trip down the memory lane that gave our alumni an opportunity to see old friends again and catch up with them. They came across places and stories that were almost forgotten. Some things changed, some stayed the same. After some great conversation, all those years wherein they had not seen each other seem to just fade away. You would never want to miss the excitement and renewed camaraderie during the reunion.
</p>
</center>
</div>
</div>
<hr class="hr" style="color:grey;width:70%">
<div class="row">
<div class="col l6">
<br>
<center>
<h4 style="padding-top:20px">Arena</h4>
<p style="width:90%;padding:20px;font-size:17px">
The Arena unveiled itself in all its glory on Day 1 of the 14th Annual Alumni Meet. What took months of planning and diligent execution was finally ready to welcome the alumni. For the first time, Chai-Cheddis-Charcha was introduced wherein the alumni shared their old memories with us. During the time of illumination, the arena had a spectacular view. Without any doubt, Arena has always been the charm of the Alumni Meet.
</p>
</center>
</div>
<div class="col l6">
<center>
<br>
<img src="img/14th_aam/arena.jpg" style="width:90%;">
</center>
</div>
</div>
<hr class="hr" style="color:grey;width:70%">
<div class="row">
<div class="col l6">
<center>
<br>
<img src="img/14th_aam/dept_visit.jpg" style="width:90%;">
</center>
</div>
<div class="col l6">
<br>
<center>
<h4 style="font-style:;padding-top:20px">Department Visit</h4>
<p style="width:90%;padding:20px;font-size:17px">
Sweet and salty memories of slogging in labs, fighting sleep and attempting to learn is something that all our departments gave us. If IIT Kharagpur was a temple of knowledge then our department is where the main shrine of this temple resides. A visit back to this shrine is sure to bring back the blended feelings of hard work, procrastination, learning and excitement.
</p>
</center>
</div>
</div>
<hr class="hr" style="color:grey;width:70%">
<div class="row">
<div class="col l6">
<br>
<center>
<h4 style="font-style:;padding-top:20px">Musical Night</h4>
<p style="width:90%;padding:20px;font-size:17px">
Music has been the one thing common in our lives. It has always helped us connect with people. So, taking a trip back to memory lane, Students' alumni cell presented Eastern Technology Music Society that took our alumni back, straight to their KGP days. The Alumni exercised their vocal chords and sang, just like they used to do in their college days.
</p>
</center>
</div>
<div class="col l6">
<center>
<br>
<img src="img/14th_aam/musical_night.jpg" style="width:90%;">
</center>
</div>
</div>
<hr class="hr" style="color:grey;width:70%">
<div class="row">
<div class="col l6">
<center>
<br>
<img src="img/14th_aam/hall_visit.jpg" style="width:90%;">
</center>
</div>
<div class="col l6">
<br>
<center>
<h4 style="font-style:;padding-top:20px">Hall Visit</h4>
<p style="width:90%;padding:20px;font-size:17px">
Every KGPian shares a strong bond with their Hall. Visiting a place where we spent the 4 most important years of our life is a stimulus enough to send shivers down our body. The place where we learnt and lived is sure to have latched a fragment of our soul inside it. To come back to our hall of residence is nothing less than a reunion of the parts of our soul. The alumni got the chance to walk through the corridors and reminisce the impressions that they left.
</p>
</center>
</div>
</div>
<hr class="hr" style="color:grey;width:70%">
<div class="row">
<div class="col l6">
<br>
<center>
<h4 style="padding-top:20px">Campus Tour</h4>
<p style="width:90%;padding:20px;font-size:17px">
In the progressive world we live in, there are a lot of changes and yet a lot of constants remain too. The pleasure pulses kick in when we get to see the same old buildings and roads lying in harmony with the new developments all around. Campus Tour is our way of showing the 2200 acre campus in a nutshell and highlighting all the major developments around.
</p>
</center>
</div>
<div class="col l6">
<center>
<br>
<img src="img/14th_aam/campus_tour.jpg" style="width:90%;">
</center>
</div>
</div>
<hr class="hr" style="color:grey;width:70%">
<div class="row">
<div class="col l6">
<br>
<center>
<h4 style="font-style:;padding-top:20px">Entertainia</h4>
<p style="width:90%;padding:20px;font-size:17px">
Smiles can cast the most powerful spell of love and happiness. With Kenny Sebastian taking the tough task to fill the open air theatre with a burst of laughter, the event became one of the most talked about event of the meet. The alumni as well as the students had a great time laughing their heart out.
</p>
</center>
</div>
<div class="col l6">
<center>
<br>
<img src="img/14th_aam/entertania.jpg" style="width:90%;">
</center>
</div>
</div>
<hr class="hr" style="color:grey;width:70%">
<div class="row">
<div class="col l6">
<center>
<br>
<img src="img/14th_aam/illu.jpg" style="width:90%;">
</center>
</div>
<div class="col l6">
<br>
<center>
<h4 style="font-style:;padding-top:20px">Illumination</h4>
<p style="width:90%;padding:20px;font-size:17px">
An evening of Euphoria as the name suggests fills the hearts of all the people present with a sense of serenity and calm. The Illumination with diyas followed by the release of sky lanterns creates an aura of happiness all around. With all this we move to the DJ night around the bonfire that beautifully escalates the emotions all around and the alumni do "shake a leg".
</p>
</center>
</div>
</div>
<hr class="hr" style="color:grey;width:70%">
<div class="row">
<div class="col l6">
<br>
<center>
<h4 style="font-style:;padding-top:20px">2.2 Marathon</h4>
<p style="width:90%;padding:20px;font-size:17px">
The iconic marathon track that our campus possesses is inviting enough for everyone to run their problems off. With the alumni coming back after such a long time the Institute fails not to teach them a thing or two again with the run for health in the 2.2 marathon organized early in the morning. Students and alumni run together to foster the spirit of good health and harmony.
</p>
</center>
</div>
<div class="col l6">
<center>
<br>
<img src="img/14th_aam/marathon.jpg" style="width:90%;">
</center>
</div>
</div>
</div>
<hr class="hr" style="color:grey;width:70%">
</div>
<div class="photos" style="padding-bottom:10px">
<center>
<p style="width:90%;padding:5px;display: inline;font-size:17px">For more photos, kindly click on:</p>
<a id="button" class="waves-effect waves-light btn" href=" https://goo.gl/photos/iDMk6fwtfjKMyVAw8">16th Annual Alumni Meet Memories</a>
</center>
</div>
<?php include"footer.php"; ?>
</body>
</html>