-
Notifications
You must be signed in to change notification settings - Fork 0
/
pass-profile.php
111 lines (102 loc) · 4.88 KB
/
pass-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
99
100
101
102
103
104
105
106
107
108
109
110
111
<?php
session_start();
include('assets/inc/config.php');
include('assets/inc/checklogin.php');
check_login();
$aid=$_SESSION['pass_id'];
?>
<!DOCTYPE html>
<html lang="en">
<!--Head-->
<?php include('assets/inc/head.php');?>
<!--End Head-->
<body>
<div class="be-wrapper be-fixed-sidebar">
<!--Navigation Bar-->
<?php include("assets/inc/navbar.php");?>
<!--End Naigation Bar-->
<!--Sidebar-->
<?php include('assets/inc/sidebar.php');?>
<!--End Sidebar-->
<!--Server Side Scrit To Fetch all details of logged in user-->
<?php
$aid=$_SESSION['pass_id'];//Assaign session variable to passenger ID
$ret="select * from orrs_passenger where pass_id=?"; //sELECT ALL FROM PASSENGERS WHERE PASSENGER ID IS THE LOGGED ONE
$stmt= $mysqli->prepare($ret) ;
$stmt->bind_param('i',$aid);
$stmt->execute() ;//ok
$res=$stmt->get_result();
//$cnt=1;
while($row=$res->fetch_object()) //Display all passenger details
{
?>
<!--End Server Side Script-->
<div class="be-content">
<div class="main-content container-fluid">
<div class="user-profile">
<div class="row">
<div class="col-lg-12">
<div class="user-display">
<div class="user-display-bg"><img src="assets/img/profile/<?php echo $row->pass_dpic;?>" alt="Profile Background"></div>
<div class="user-display-bottom">
<div class="user-display-avatar"><img src="assets/img/profile/<?php echo $row->pass_dpic;?>" alt="Avatar"></div>
<div class="user-display-info">
<div class="name"><?php echo $row->pass_fname;?> <?php echo $row->pass_lname;?> </div>
<div class="nick"><span class="mdi mdi-account"></span><?php echo $row->pass_uname;?></div>
</div>
</div>
</div>
<div class="user-info-list card">
<div class="card-header card-header-divider">About Me<span class="card-subtitle"><?php echo $row->pass_bio;?></span></div>
<div class="card-body">
<table class="no-border no-strip skills">
<tbody class="no-border-x no-border-y">
<tr>
<td class="icon"><span class="mdi mdi-cake"></span></td>
<td class="item">Birthday<span class="icon s7-gift"></span></td>
<td><?php echo $row->pass_bday;?></td>
</tr>
<tr>
<td class="icon"><span class="mdi mdi-smartphone-android"></span></td>
<td class="item">Mobile<span class="icon s7-phone"></span></td>
<td><?php echo $row->pass_phone;?></td>
</tr>
<tr>
<td class="icon"><span class="mdi mdi-globe-alt"></span></td>
<td class="item">Location<span class="icon s7-map-marker"></span></td>
<td><?php echo $row->pass_addr;?></td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
<!--footer-->
<?php include('assets/inc/footer.php');?>
<!--EndFooter-->
</div>
</div>
<?php }?>
</div>
<script src="assets/lib/jquery/jquery.min.js" type="text/javascript"></script>
<script src="assets/lib/perfect-scrollbar/js/perfect-scrollbar.min.js" type="text/javascript"></script>
<script src="assets/lib/bootstrap/dist/js/bootstrap.bundle.min.js" type="text/javascript"></script>
<script src="assets/js/app.js" type="text/javascript"></script>
<script src="assets/lib/jquery-flot/jquery.flot.js" type="text/javascript"></script>
<script src="assets/lib/jquery-flot/jquery.flot.pie.js" type="text/javascript"></script>
<script src="assets/lib/jquery-flot/jquery.flot.time.js" type="text/javascript"></script>
<script src="assets/lib/jquery-flot/jquery.flot.resize.js" type="text/javascript"></script>
<script src="assets/lib/jquery-flot/plugins/jquery.flot.orderBars.js" type="text/javascript"></script>
<script src="assets/lib/jquery-flot/plugins/curvedLines.js" type="text/javascript"></script>
<script src="assets/lib/jquery-flot/plugins/jquery.flot.tooltip.js" type="text/javascript"></script>
<script src="assets/lib/jquery-ui/jquery-ui.min.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function(){
//-initialize the javascript
App.init();
App.pageProfile();
});
</script>
</body>
</html>