-
Notifications
You must be signed in to change notification settings - Fork 4
/
profile.php
98 lines (92 loc) · 2.99 KB
/
profile.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
<?php //PAGE-10
session_start();
//include files
require_once("app-includes/app-include.php");
require_once("app-includes/_profile.php");
$login=0;
if(isset($_SESSION['userId'])){
$login=1;
$userId = $_SESSION['userId'];
$fullName = fullName($conn, $userId);
}
function indexApp($appIcon, $appName, $link="#"){
echo('
<a href="'.$link.'"><div class="index-app">
<div class="ip-pic"><i class="material-icons">'.$appIcon.'</i></div>
<h4 class="ip-name">'.$appName.'</h4>
</div></a>
');
}
?>
<!doctype html>
<html lang="en">
<head>
<title>John Doe</title>
<?php include('meta-tags.html'); ?>
<link rel="stylesheet" href="css/main.css"/>
<style>
#smProfile{background:#eee; }
</style>
</head>
<body>
<?php siteHeader();
if($login==0) die('Login to view your profile! <a href="login.php"><button>Click Here</button></a>');
?>
<section class="index-section">
<div class="cover-box" style="background:red;">
<img src="assets/images/cover.jpg" class="cover-pic"/>
<div class="profile-box">
<img src="assets/images/profile.jpg" class="profile-pic"/>
<h3 class="profile-name"><?php echo $fullName; ?></h3>
<div style="clear:both"></div>
</div>
</div>
<div class="pm-box">
<ul class="pm-menu">
<a href="index.php"><li class="pm-item pm-icon"><i class="material-icons">home</i></li></a>
<a href="profile.php"><li class="pm-item pm-name"><?php echo $fullName; ?></li></a>
<a href="#siteHead"><li class="pm-item pm-icon"><i class="material-icons">keyboard_arrow_up</i></li></a>
<div style="clear:both"></div>
</ul>
</div>
<div class="index-box">
<header class="ib-head"><h4 class="ib-label">Heyy there,</h4></header>
<section class="ib-section">
<?php
indexApp('android', 'Agents');
indexApp('android', 'Advertisements');
indexApp('android', 'Book Meal');
indexApp('android', 'Clean Rail');
indexApp('android', 'Enquiries');
indexApp('android', 'Flights');
indexApp('android', 'Loyalty Program');
indexApp('android', 'Offers');
indexApp('android', 'Refund Rule');
indexApp('android', 'Tourism');
indexApp('android', 'User Guide');
?>
</section>
</div>
<div class="index-box expand-box" style="text-align:left;">
<header class="ex-head">
<h4 class="ex-title">Share your experience</h4>
<button class="ex-plus"><pre> + </pre></button>
<div style="clear:both"></div>
</header>
<hr class="sh-low-hr"/>
<div class="ex-div">
<form class="ex-form" method="get" action="share-experience.php">
<label class="ex-label">From</label><br/>
<input type="text" class="ex-input" name="start" value="PATIALA - PTA" placeholder="Your Location..." required/><br/>
<label class="ex-label">To</label><br/>
<input type="text" class="ex-input" name="finish" value="PUNE JN - PUNE" placeholder="Your Destination..." required/><br/>
<button type="submit" class="ex-button">Go</button>
</form>
</div>
</div>
</section>
<footer>
<?php siteFooter(); ?>
</footer>
</body>
</html>