forked from SAAR-IITP/SAAR-IITP
-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathportal.php
532 lines (494 loc) · 27.3 KB
/
portal.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
<?php
session_start();
if(!isset($_SESSION["loggedin"]) || $_SESSION["loggedin"]==false)
{
header("location: signin.php");
}
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>SAAR Profile</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="apple-touch-icon" href="apple-touch-icon.png">
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" href="css/bootstrap-theme.min.css">
<link rel="stylesheet" href="css/fontAwesome.css">
<link rel="stylesheet" href="css/light-box.css">
<link rel="stylesheet" href="css/owl-carousel.css">
<link rel="stylesheet" href="css/profile.css">
<link rel="stylesheet" href="css/award.css">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.7.2/css/all.css" integrity="sha384-fnmOCqbTlWIlj8LyTjo7mOUStjsKC4pOpQbqyi7RrhN7udi9RwhKkMHpvLbHG9Sr" crossorigin="anonymous">
<link href="https://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700,800" rel="stylesheet">
<link rel="stylesheet" href="css/cards.css" >
<link rel="stylesheet" href="css/main.css" />
<noscript><link rel="stylesheet" href="css/noscript.css" /></noscript>
<script src="js/vendor/modernizr-2.8.3-respond-1.4.2.min.js"></script>
<style>
@media screen and (max-width:991px){
.row .col-md-3{
padding: unset;
}
.row .col-md-4{
padding: 0;
}
}
@media screen and (max-width:980px){
.image.fit img{
width: 300px;
margin: 0px auto;
}
}
@media screen and (max-width:767px){
.row.gtr-150{
margin-left: unset;
}
.row .col-md-4{
padding: 0;
width: 100%;
}
}
@media screen and (max-width:444px){
#extra{
padding-left: 20px !important;
}
.image.fit img{
width: 100%;
}
.inner h1{
font-size: 35px;
}
}
.imp-medium .fa s{
padding: 20px;
font-size: 30px;
width: 50px;
text-align: center;
text-decoration: none;
}
/* .imp-medium .fa-facebook {
background: #3B5998;
color: white;
}
.imp-medium .fa-linkedin {
background: #55ACEE;
color: white;
} */
.imp-medium .fa-cog {
background: #dd4b39;
color: white;
}
@media(max-width:614px){
#contact{
padding-left: 0;
}
}
</style>
</head>
<body style="background: #fff;font-family: 'Open Sans',serif; overflow-x: hidden;">
<header class="nav-down responsive-nav hidden-lg hidden-md">
<button type="button" id="nav-toggle" class="navbar-toggle" data-toggle="collapse" data-target="#main-nav">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<!--/.navbar-header-->
<div id="main-nav" class="collapse navbar-collapse">
<nav>
<ul class="nav navbar-nav">
<li><a href="#video">Profile</a></li>
<li><a href="#extra">Settings</a></li>
<li><a href="#blog">Utilities</a></li>
<li><a href="yearbookForm.php" class="smoothscroll-off">Yearbook Form</a></li>
<li><a href="#contact">Contact Us</a></li>
<li>
<form action="index.php" method="post" id="log">
<button class="button" style="vertical-align:middle" onclick="location.href = 'index.php';"><span>Home </span></button>
</form>
</li>
<li>
<form action="logout.php" method="post" id="log">
<button class="button" style="vertical-align:middle" onclick="location.href = 'logout.php';"><span>Logout </span></button>
</form>
</li>
</ul>
</nav>
</div>
</header>
<div class="sidebar-navigation hidde-sm hidden-xs">
<div class="logo">
<img src="img/logo1.png" class="static">
</div>
<br>
<nav>
<ul>
<li>
<a href="#video">
<span class="rect"></span>
<span class="circle"></span>
Profile
</a>
</li>
<li>
<a href="#extra">
<span class="rect"></span>
<span class="circle"></span>
Settings
</a>
</li>
<!-- <li>
<a href="#awards">
<span class="rect"></span>
<span class="circle"></span>
Achivements
</a>
</li> -->
<li>
<a href="#blog">
<span class="rect"></span>
<span class="circle"></span>
Utilities
</a>
</li>
<li>
<a href="yearbookForm.php" class="smoothscroll-off">
<span class="rect"></span>
<span class="circle"></span>
Yearbook Form
</a>
</li>
<li>
<a href="#contact-cp">
<span class="rect"></span>
<span class="circle"></span>
Contact Us
</a>
</li>
<li>
<form action="index.php" method="post" id="log">
<button class="button" style="vertical-align:middle" onclick="location.href = 'index.php';"><span>Home </span></button>
</form>
</li>
<li>
<form action="logout.php" method="post" id="log">
<button class="button" style="vertical-align:middle" onclick="location.href = 'logout.php';"><span>Logout </span></button>
</form>
</li>
</ul>
</nav>
<ul class="social-icons">
<li><a href="https://www.facebook.com/saar.iitp" target="_blank"><i class="fa fa-facebook"></i></a></li>
<li><a href="https://www.twitter.com/saar_iitp" target="_blank"><i class="fa fa-twitter"></i></a></li>
<li><a href="https://www.linkedin.com/company/saar-iitp" target="_blank"><i class="fa fa-linkedin"></i></a></li>
</ul>
</div>
<div class="page-content">
<section id="video" class="content-section">
<section id="one" class="main style1" style="background-image: url(./img/bggg.png);">
<?php if(isset($_SESSION['msg'])){
echo "<div class='message-beauty'>".$_SESSION['msg']."</div>";
unset($_SESSION['msg']);
} ?>
<div class="row gtr-150" style="background: transparent;">
<div class="col-7 col-12-medium imp-medium" style="text-align: left; padding-left: 12%;">
<img src="./imggg/saar6.png" alt="SAAR" />
<div class="section-heading" style="text-align: center;">
<h1><?php echo "".$_SESSION["fname"];?><em> <?php echo " ".$_SESSION["lname"];?></em></h1>
<!-- <br><ul class="actions special">
</ul> -->
</div>
<!-- <p class="mb-5" style="font-size: 20px;" >I am experienced in leveraging agile frameworks to provide a robust synopsis for high level overviews. Iterative approaches to corporate strategy foster collaborative thinking to further the overall value proposition.</p> -->
<p style="font-size: 20px;">College Id : <?php echo $_SESSION["cid"];?> </p>
<p style="font-size: 20px;">DOB : <?php echo $_SESSION["dob"]; ?></p>
<p style="font-size: 20px;">Graduation year : <?php echo $_SESSION["graduation"];?> </p>
<p style="font-size: 20px;">Degree : <?php echo $_SESSION["degree"];?> </p>
<p style="font-size: 20px;">Department : <?php echo $_SESSION["dept"];?> </p>
<p style="font-size: 20px;">Employment Type : <?php echo $_SESSION["employment_type"];?> </p>
<p style="font-size: 20px;">Present Employer : <?php echo $_SESSION["present_employer"];?> </p>
<p style="font-size: 20px;">Designation : <?php echo $_SESSION["designation"];?> </p>
<!-- <p>Achivements : <?php// echo $_SESSION["achievements"];?> </p> -->
<ul class="list-inline social-icon-f top-data">
<?php if(isset($_SESSION['fb']) && $_SESSION['fb'] != ''){ ?>
<li><a href="<?php echo $_SESSION['fb']; ?>" target="_empty"><i class="fa top-social fa-facebook" ></i></a></li>
<?php } ?>
<?php if(isset($_SESSION['linkden']) && $_SESSION['linkden'] != ''){ ?>
<li class="list-inline-item">
<a href="<?php echo $_SESSION['linkden']; ?>" target="_blank">
<span class="fa-stack fa-lg">
<i class="fa top-social fa-linkedin" ></i>
</span>
</a>
</li>
<?php } ?>
</ul>
</div>
<div class="col-5 col-12-medium" style="background-image: url('<?php echo $_SESSION['img_url']; ?>');background-position: center;background-size: cover;">
</div>
</div>
</section>
</section>
<!-- update profle picture -->
<div class="modal fade" id="profilepic" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">Update Profle Picture</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<form action="updatepic.php" method="POST">
<div class="form-group">
<label for="dp">Select Profile Pic</label>
<input type="file" class="form-control" name="dp" id="dp">
</div>
<button type="button" class="btn btn-default">Cancel</button>
<button type="submit" class="btn btn-primary">Submit</button>
</form>
</div>
</div>
</div>
</div>
<section id="extra" class="content-section">
<button class="button" style="vertical-align:middle; background: #003C4D; padding: 10px; margin-left: 15px;" onclick="location.href = 'changePassword.php';"><span>Change Password</span></button>
</form>
<button class="button" style="vertical-align:middle; background: #003C4D; padding: 10px; margin-left: 15px;" onclick="location.href = 'updateProfile.php';"><span>Update Profile</span></button>
</form>
<button class="button" style="vertical-align:middle; background: #003C4D; padding: 10px; margin-left: 15px;" onclick="location.href = 'changeEmail.php';"><span>Change E-mail</span></button>
<!-- <button type="button" class="button" style="vertical-align:middle; background: #003C4D; padding: 10px; margin-left: 15px;" data-toggle="modal" data-target="#profilepic">
<span>Update Profile Picture</span>
</button> -->
<button class="button" style="vertical-align:middle; background: #003C4D; padding: 10px; margin-left: 15px;" onclick="window.location.href='don.html'" ><span>Donate Now </span></button>
</section>
<!-- <section class="resume-section p-3 p-lg-5 d-flex flex-column" id="awards">
<div class="row my-auto">
<div class="col-12">
<h2 class="text-center" style="padding-left: 12%;">Achivements</h2>
<div class="mb-5 heading-border"></div>
</div>
<div class="main-award" id="award-box" style="padding-left: 12%;">
<div class="award">
<div class="award-icon"></div>
<div class="award-content">
<span class="date">Apr 2017 - Mar 2018</span>
<h5 class="title">Google Analytics Certified Developer</h5>
<p class="description">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum mattis felis vitae risus pulvinar tincidunt. Nam ac venenatis enim. Aenean hendrerit justo sed.
</p>
</div>
</div>
<div class="award">
<div class="award-icon"></div>
<div class="award-content">
<span class="date">Apr 2018 - Mar 2019</span>
<h5 class="title">Mobile Web Specialist - Google Certification</h5>
<p class="description">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum mattis felis vitae risus pulvinar tincidunt. Nam ac venenatis enim. Aenean hendrerit justo sed.
</p>
</div>
</div>
</div>
</div>
</section> -->
<section id="blog" class="content-section">
<section class="details-card">
<div class="row">
<div class="col-md-4 col-sm-12">
<div class="card-content" onclick="location.href = 'findAluminiNearby.php';" style="background:#fc1c0d;">
<div class="card-img" align="center">
<i class="fas fa-route" style="font-size:50px; padding: 20px; color:#fff;"></i>
</div>
<div class="card-desc" align="center">
<h3 style="color:#fff;">Alumni Near You</h3>
</div>
</div>
</div>
<div class="col-md-4 col-sm-12">
<div class="card-content" onclick="location.href = 'findFriends.php';" style="background:#2cc2de;">
<div class="card-img" align="center">
<i class="fas fa-user-friends" style="font-size:50px; padding: 20px; color:#fff;"></i>
</div>
<div class="card-desc" align="center">
<h3 style="color:#fff;">Find Friends</h3>
</div>
</div>
</div>
<div class="col-md-4 col-sm-12">
<div class="card-content" onclick="window.open('https://saar.iitp.ac.in/anusmriti/vol4/issue1.pdf', '_blank');" style="background:#0ad80f;">
<div class="card-img" align="center">
<i class="fas fa-book-reader" style="font-size:50px; padding: 20px; color:#fff;"></i></div>
<div class="card-desc" align="center">
<h3 style="color:#fff;">Download Anusmriti</h3>
</div>
</div>
</div>
</div>
</section>
</section>
<!-- <div class="container">
<form id="contact" action="" method="post">
<span align="center"><h3 style="color: #327a81">NEED HELP ?</h3></span>
<fieldset>
<input placeholder="Name" type="text" tabindex="1" required autofocus>
</fieldset>
<fieldset>
<input placeholder="Email" type="email" tabindex="2" required>
</fieldset>
<fieldset>
<input placeholder="Phone Number " type="tel" tabindex="3" required>
</fieldset>
<fieldset>
<textarea placeholder="Type your message here.." tabindex="4" required></textarea>
</fieldset>
<fieldset>
<button name="submit" type="submit" id="contact-submit" data-submit="...Sending">Submit</button>
</fieldset>
</form>
</div> -->
<section class="resume-section p-3 p-lg-5 d-flex flex-column">
<div class="row my-auto" id="contact-cp">
<div class="col-md-8">
<div class="contact-cont">
<h3>CONTACT US</h3>
<div class="heading-border-light"></div>
</div>
<form action="contactUs.php" method="post" id="contactUs">
<div class="row con-form">
<!-- <div class="col-md-12 col-sm-12 col-xs-12">
<input type="text" name="full-name" placeholder="Full Name" class="form-control contact-input">
</div>
<div class="col-md-12 col-sm-12 col-xs-12">
<input type="text" name="email" placeholder="Email Id" class="form-control contact-input">
</div> -->
<div class="col-md-12 col-sm-12 col-xs-12">
<input type="text" name="subject" placeholder="Subject" class="form-control contact-input" required>
</div>
<div class="col-md-12 col-sm-12 col-xs-12 contact-input"><textarea name="message" required></textarea></div>
<div class="col-md-12 col-sm-12 col-xs-12 sub-but"><button form="contactUs" value="submit" class="btn btn-primary" role="button">Send</button></div>
</div>
</form>
</div>
<div class="col-md-4 col-sm-12 mt-5">
<div class="contact-cont2">
<div class="contact-add contact-box-desc">
<h3><i class="fa fa-map-marker cl-atlantis fa-2x"></i> Address</h3>
<p>IIT Patna Campus, Patna, 801110</p>
</div>
<div class="contact-phone contact-side-desc contact-box-desc">
<h3><i class="fa fa-phone cl-atlantis fa-2x"></i> Phone</h3>
<p>8827275145</p>
</div>
<div class="contact-mail contact-side-desc contact-box-desc">
<h3><i class="fa fa-envelope-o cl-atlantis fa-2x"></i> Email</h3>
<address class="address-details-f">
Email: <a href="mailto:saar@iitp.ac.in" class="">saar@iitp.ac.in</a>
</address>
<ul class="list-inline social-icon-f top-data">
<li><a href="https://www.facebook.com/saar.iitp" target="_empty"><i class="fa top-social fa-facebook" style="color: #4267b2; border-color:#4267b2;"></i></a></li>
<li><a href="https://www.linkedin.com/company/saar-iitp" target="_empty"><i class="fa top-social fa-linkedin" style="color: #4AB3F4; border-color:#4AB3F4;"></i></a></li>
<li><a href="https://twitter.com/saar_iitp" target="_empty"><i class="fa top-social fa-twitter" style="color: #4AB3F4; border-color:#4AB3F4;"></i></a></li>
</ul>
</div>
</div>
</div>
</div>
</section>
<!-- <p>Email id : <?php //echo $_SESSION["email"];?> </p> -->
<!-- <p>Contact no. : <?php// echo $_SESSION["contact"];?> </p> -->
<section id="contact" class="content-section">
<div id="con">
<div class="col-md-12" style="padding:0;">
<div id="map">
<!-- How to change your own map point
1. Go to Google Maps
2. Click on your location point
3. Click "Share" and choose "Embed map" tab
4. Copy only URL and paste it within the src="" field below
-->
<iframe src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d14399.37835508978!2d84.8434447170254!3d25.54355318850096!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x398d567a193702ff%3A0xc9c527c7faec3056!2sIIT+Patna+Administration+Block!5e0!3m2!1sen!2sin!4v1539177184721" width="100%" height="400px" frameborder="0" style="border:0" allowfullscreen></iframe>
</div>
</div>
<div class="col-md-4">
<div class="teext">
<h1 style="font-size:24px;">External <span>Links</span></h1><br>
<p> <i class="fa fa-envelope" aria-hidden="true" style="font-size: 18px; color: #26C1ED; margin-right: 14px;"></i>saar@iitp.ac.in<br><br>
<i class="fa fa-phone" aria-hidden="true" style="font-size: 20px; color: #26C1ED; margin-right: 14px;"></i>8827275145<br><br>
<i class="fa fa-map-marker" aria-hidden="true" style="font-size: 20px; color: #26C1ED; margin-right: 14px;"></i> IIT Patna Campus, Patna, 801110</p>
</div>
</div>
<div class="col-md-4">
<div class="teext">
<h1 style="font-size:24px;">Social <span> Media</span></h1><br>
<p> <a style="text-decoration:none; color:#fff" href="https://www.facebook.com/saar.iitp/"><i class="fab fa-facebook-f" aria-hidden="true" style="font-size: 18px; color: #26C1ED; margin-right: 14px;"></i>SAAR, IIT Patna</a><br><br>
<a style="text-decoration:none; color:#fff" href="https://www.instagram.com/saar.iitp"><i class="fab fa-instagram" aria-hidden="true" style="font-size: 20px; color: #26C1ED; margin-right: 14px;"></i>Instagram</a><br><br>
<a style="text-decoration:none; color:#fff" href="https://www.linkedin.com/company/saar-iitp"><i class="fab fa-linkedin-in" aria-hidden="true" style="font-size: 20px; color: #26C1ED; margin-right: 14px;"></i>LinkedIn</a></p>
</div>
</div>
<div class="col-md-4">
<div class="teext">
<h1 style="font-size:24px;">Contact <span> US</span></h1><br>
<p> <i class="fa fa-envelope" aria-hidden="true" style="font-size: 18px; color: #26C1ED; margin-right: 14px;"></i>saar@iitp.ac.in<br><br>
<i class="fa fa-phone" aria-hidden="true" style="font-size: 20px; color: #26C1ED; margin-right: 14px;"></i>8827275145<br><br>
<i class="fa fa-map-marker" aria-hidden="true" style="font-size: 20px; color: #26C1ED; margin-right: 14px;"></i> IIT Patna Campus, Patna, 801110</p>
</div>
</div>
</div>
</section>
<section class="footer">
<p>|| Copyright || © IIT Patna SAAR Team ||</p>
</section>
</div>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
<script>window.jQuery || document.write('<script src="js/vendor/jquery-1.11.2.min.js"><\/script>')</script>
<script src="js/vendor/bootstrap.min.js"></script>
<script src="js/jquery.min.js"></script>
<script src="js/jquery.scrolly.min.js"></script>
<script src="js/browser.min.js"></script>
<script src="js/breakpoints.min.js"></script>
<script src="js/util.js"></script>
<script src="js/main2.js"></script>
<script src="js/plugins.js"></script>
<script src="js/main.js"></script>
<script>
// Hide Header on on scroll down
var didScroll;
var lastScrollTop = 0;
var delta = 5;
var navbarHeight = $('header').outerHeight();
$(window).scroll(function(event){
didScroll = true;
});
setInterval(function() {
if (didScroll) {
hasScrolled();
didScroll = false;
}
}, 250);
function hasScrolled() {
var st = $(this).scrollTop();
// Make sure they scroll more than delta
if(Math.abs(lastScrollTop - st) <= delta)
return;
// If they scrolled down and are past the navbar, add class .nav-up.
// This is necessary so you never see what is "behind" the navbar.
if (st > lastScrollTop && st > navbarHeight){
// Scroll Down
$('header').removeClass('nav-down').addClass('nav-up');
} else {
// Scroll Up
if(st + $(window).height() < $(document).height()) {
$('header').removeClass('nav-up').addClass('nav-down');
}
}
lastScrollTop = st;
}
</script>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js" type="text/javascript"></script>
</body>
</html>