-
Notifications
You must be signed in to change notification settings - Fork 31
/
busTicket.php
126 lines (122 loc) · 3.61 KB
/
busTicket.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
<?php
session_start();
if($_SESSION["bus_id"] == "")
{
header("Location: index.php");
exit();
}
$busId = $_SESSION["bus_id"];
$ticketNum = $_SESSION["ticket_id"];
?>
<html>
<head>
<meta charset="utf-8">
<title>Software Project One</title>
<link rel="stylesheet" href="css/mainCSS.css">
<link rel="stylesheet" href="css/responsive.css">
<style type="text/css">
th{
background-color: #FFE4E1;
}
td{
color: #008000;
text-align: center;
background-color: #FFE4E1;
}
</style>
</head>
<body>
<header>
<a href="index.php" id="logo">
<h1>Ticket & Travel Management</h1>
<h2>Software Project One</h2>
</a>
<nav>
<ul>
<li><a href="index.php">Flights</a></li>
<li><a href="bus.php" class="selected">Buses</a></li>
<li><a href="train.php">Train</a></li>
<li><a href="login.php">Login/Signup</a></li>
</ul>
</nav>
</header>
<center>
<h3 style="color: coral"><u>Your Ticket Informations</u></h3>
<table border="1" style="width: 40%">
<tr>
<th>Ticket#: </th>
<td><?php echo $ticketNum ?></td>
</tr>
<tr>
<th>Bus#: </th>
<td><?php echo $_SESSION["bus_id"] ?></td>
</tr>
<tr>
<th>Your Name: </th>
<td><?php echo $_SESSION["fname"] ?></td>
</tr>
<tr>
<th>Your Gender: </th>
<td><?php echo $_SESSION["gender"] ?></td>
</tr>
<tr>
<th>Your Email: </th>
<td><?php echo $_SESSION["email"] ?></td>
</tr>
<tr>
<th>Your Phone: </th>
<td><?php echo $_SESSION["phone"] ?></td>
</tr>
<tr>
<th>Vehicle Name: </th>
<td><?php echo $_SESSION["v_name"] ?></td>
</tr>
<tr>
<th>Journey Date: </th>
<td><?php echo $_SESSION["jdate"] ?></td>
</tr>
<tr>
<th>Time: </th>
<td><?php echo $_SESSION["jtime"] ?></td>
</tr>
<tr>
<th>Route: </th>
<td><?php echo $_SESSION["route"] ?></td>
</tr>
<tr>
<th>Your Seat: </th>
<td><?php echo $_SESSION["seatNum"] ?></td>
</tr>
<tr>
<th>Seat Category: </th>
<td><?php echo $_SESSION["category"] ?></td>
</tr>
<tr>
<th>Fare: </th>
<td><?php echo $_SESSION["amount"] ?></td>
</tr>
<tr>
<th>Payment By: </th>
<td><?php echo $_SESSION["payment"] ?></td>
</tr>
</table>
<a href="bus_t_print.php"><h3 style="background-color: green;border: none;color: white; font-size: 20px;display: inline-block;">Print Your Ticket</h3></a>
</center>
<br/> <br/>
<header>
<nav>
<ul>
<li><a href="about.php">About</a></li>
<li><a href="contact.php">Contact</a></li>
<li class="phone"><a href="tel:+880-16-7509-4640">+8801675094640</a></li>
</ul>
</nav>
<div align="center" style="padding-top: 10px">
<h2>Copyright© 2013-2016 by <b><i>Team 3'S</i></b></h2>
<a href="http://www.facebook.com/msaifulbdjoy"><img src="images/facebook-wrap.png" alt="Facebook Logo" width="35" height="30"></a>
<a href="http://twitter.com/msaifulbdjoy"><img src="images/twitter-wrap.png" alt="Twitter Logo" width="35" height="30"></a>
<a href="http://plus.google.com/+MDSAIFULISLAMBD"><img src="images/google-wrap.png" alt="GooglePlus Logo" width="35" height="30"></a>
</div>
</header>
</body>
</html>