forked from gvsankirtana/Airline-Management
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpayment.php
More file actions
142 lines (140 loc) · 5.5 KB
/
payment.php
File metadata and controls
142 lines (140 loc) · 5.5 KB
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
<?php
session_start();
$s=$_SESSION['seats'];
$flightid=$_SESSION['flightid'];
include 'connect.php';
if($_SESSION['class']=="Economy"){
$price = "SELECT buisness_fare from airline where Flight_ID='$flightid'";
}
else if($_SESSION['class']=="Business"){
$price="SELECT economy_Fare from airline where Flight_ID='$flightid'";
}
$result1=mysqli_query($conn, $price);
$pricerow=mysqli_fetch_row($result1);
$query ="SELECT departure_Destination, arrival_destination from airline where Flight_ID='$flightid'";
$result = mysqli_query($conn, $query);
$row = mysqli_fetch_row($result);
?>
<!DOCTYPE html>
<html>
<title>Payment Page</title>
<head>
<meta charset="utf-8">
<link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700" rel="stylesheet">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.5.0/css/all.css" integrity="sha384-B4dIYHKNBt8Bc12p+WXckhzcICo0wtJAoU8YZTY5qE0Id1GSseTk6S+L3BlXeVIU" crossorigin="anonymous">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" type="text/css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<link rel="stylesheet" href="payment.css">
</head>
<body>
<div id="navbar">
<div class="container">
<img src="https://5.imimg.com/data5/TK/AD/MY-36130657/flight-booking-500x500.png" class="img-fluid" width="171.2" height="100" style="float:left">
<ul class="nav navbar-nav navbar-right">
<li style="top: 24px;"><a href="profile.php"><span class="glyphicon glyphicon-user"></span> <?php print_r($_SESSION["user"]);?></a></li>
</ul>
</div>
</div>
<nav id="side">
<ul>
<br><br><br><br><br><br><br><br>
<li><a href="profile.php">Profile</a></li>
<li><a href="searchflights.php">Book Ticket</a></li>
<li><a href="enquiry.php">Enquiry</a></li>
<li style="top: 24px;"><a href="logout.php"><span class="glyphicon glyphicon-log-out"></span> logout</a></li>
</ul>
</nav>
<img style="top: 120px;" src="https://cdn1.iconfinder.com/data/icons/mobile-device/512/settings-option-configurate-gear-blue-round-512.png" style="width: 70px;"id="menu">
<br><br><br>
<div class="row container">
<div class="col-xs-8 container">
<div class="container-fluid" style="padding-right: 50px; padding-left: 50px;">
<form action="ticket.php" method="POST">
<div class="panel" style="left: 34px;">
<div class="panel-heading headingstyle">
<h2><b>Payment Details</b></h2>
</div>
<div class="panel-body">
<div class="form-group">
<label for="Bank_Name">Bank Name</label> <br>
<select class="form-control" aria-label="slect bank" name="BankName">
<option selected value="" disabled> </option>
<option value="sbi">SBI</option>
<option value="hdfc">HDFC</option>
<option value="icici">ICICI</option>
<option value="axis">Axis</option>
<option value="kotak">Kotak</option>
</select>
</div>
<div class="form-group">
<label for="Account_Number">Account Number</label> <br>
<input type="number" class="form-control" name="AccountNumber">
</div>
<div class="form-select">
<input type="checkbox" value="save" name="adetails">
<label for="adetails">Save account details</label>
<input type="hidden" value="0" name="adetails">
</div>
</div>
<div class="panel-footer text-right" style="align-items:center;">
<button class="btn btn-info" value="submit" name="button">Submit</button>
<button class="btn btn-info" value="cancel" name="button">Cancel</button>
</div>
</div>
</form>
</div>
</div>
<div class="col-xs-4 container">
<div class="container-fluid panel-margin">
<br>
<div class="panel">
<div class="panel-heading headingstyle">
<h3><b>Billing Details</b></h3>
</div>
<div class="panel-body">
<table class="table table-hover">
<tr>
<th>Flight Number</th>
<td><?php echo $flightid?></td>
</tr>
<tr>
<th>From</th>
<td>
<?php
echo $row[0];
?></td>
</tr>
<tr>
<th>To</th>
<td><?php echo $row[1] ?> </td>
</tr>
<tr>
<th>Total Passengers</th>
<td><?php echo $_SESSION['seats']; ?> </td>
</tr>
<tr>
<th>Total Charges</th>
<td><?php echo "₹";echo ($pricerow[0])*($_SESSION['seats']) ?></td>
</tr>
</table>
</div>
</div>
</div>
</div>
</div>
<script>
var menu=document.getElementById("menu");
var side=document.getElementById("side");
side.style.right="-250px";
menu.onclick=function(){
if(side.style.right=="-250px"){
side.style.right="0px"
}
else{
side.style.right="-250px"
}
}
</script>
</body>
</html>