-
Notifications
You must be signed in to change notification settings - Fork 0
/
customer_homepage.php
94 lines (92 loc) · 2.98 KB
/
customer_homepage.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
<?php
session_start();
// if($_SESSION['login_user']==null){
// header('location:home_page.php');
// }
?>
<html>
<head>
<title>
Welcome
</title>
<style>
td{
font-size: 20px;
}
input {
border: 1.5px solid #030337;
border-radius: 4px;
padding: 7px 30px;
}
input[type=submit] {
background-color: #030337;
color: white;
border-radius: 4px;
padding: 7px 45px;
margin: 0px 127px
}
input[type=date] {
border: 1.5px solid #030337;
border-radius: 4px;
padding: 5.5px 44.5px;
}
select {
border: 1.5px solid #030337;
border-radius: 4px;
padding: 6.5px 75.5px;
}
</style>
<link rel="stylesheet" type="text/css" href="css/style.css"/>
<link rel="stylesheet" href="font-awesome-4.7.0\css\font-awesome.min.css">
</head>
<body>
<img class="logo" src="images/railogo.png"/>
<h1 id="title" style="color: navy;">
IRCTC
</h1>
<div>
<ul>
<li><a href="home_page.php"><i class="fa fa-home" aria-hidden="true"></i> Home</a></li>
<li><a href="customer_homepage.php"><i class="fa fa-desktop" aria-hidden="true"></i> Dashboard</a></li>
<li><a href="home_page.php"><i class="fa fa-plane" aria-hidden="true"></i> About Us</a></li>
<li><a href="home_page.php"><i class="fa fa-phone" aria-hidden="true"></i> Contact Us</a></li>
<li><a href="logout_handler.php"><i class="fa fa-sign-out" aria-hidden="true"></i> Logout</a></li>
</ul>
</div>
<?php
echo "<fieldset style=\"margin: 50px;\"><legend><h2>Welcome ".$_SESSION['login_user']." </h2></legend>";
require_once('Database Connection file/mysqli_connect.php');
$query="SELECT count(*),frequent_flier_no,mileage FROM Frequent_Flier_Details WHERE customer_id=?";
$stmt=mysqli_prepare($dbc,$query);
mysqli_stmt_bind_param($stmt,"s",$_SESSION['login_user']);
mysqli_stmt_execute($stmt);
mysqli_stmt_bind_result($stmt,$cnt,$frequent_flier_no,$mileage);
mysqli_stmt_fetch($stmt);
if($cnt==1)
{
echo "<h4 style='padding-left: 20px;'>Frequent Flier No.: ".$frequent_flier_no."                      Mileage: ".$mileage." points</h4><br>";
}
mysqli_stmt_close($stmt);
mysqli_close($dbc);
?>
<table cellpadding="5">
<tr>
<td class="admin_func"><h3><a href="book_tickets.php"><i class="fa fa-subway" aria-hidden="true"></i> Book Tickets</a></h3>
</td>
</tr>
<tr>
<td class="admin_func"><h3><a href="view_booked_tickets.php"><i class="fa fa-subway" aria-hidden="true"></i> View Booked Tickets</a>
</h3></td>
</tr>
<tr>
<td class="admin_func"><h3><a href="cancel_booked_tickets.php"><i class="fa fa-subway" aria-hidden="true"></i> Cancel Tickets</a>
</h3></td>
</tr>
</table>
<!--Following data fields were empty!
...
ADD VIEW FLIGHT DETAILS AND VIEW JETS/ASSETS DETAILS for ADMIN
PREDEFINED LOCATION WHEN BOOKING TICKETS
-->
</body>
</html>