forked from gvsankirtana/Airline-Management
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcancelticket.php
More file actions
66 lines (64 loc) · 2.7 KB
/
cancelticket.php
File metadata and controls
66 lines (64 loc) · 2.7 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
<?php
session_cache_limiter('private_no_expire'); // works
session_start();
require 'connect.php';
$s=$_SESSION['seats'];
for ($i = 1; $i <= $s; $i++){
$adhaar =$_SESSION["adhaar$i"];
$query = "call cancelticket('$adhaar')";
$result = mysqli_query($conn, $query);
}
$user=$_SESSION["user"];
?>
<!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="ticket.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($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">
<div class="container text-center flex-container" style="vertical-position:center;">
<div>
<div style="color:white; font-size:64px;"><b>THANK YOU!</b></div>
<div style="color:white; font-size:17px;">Your booking has been cancelled...<br><a href="searchflights.php"style="color:yellow;">click to continue booking flights!</a></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>