-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflightcheck.php
129 lines (91 loc) · 4.88 KB
/
flightcheck.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
127
128
129
<?php
session_start();
error_reporting(0);
$con=mysqli_connect("localhost","root","","airline_reservation");
$q=mysqli_query($con,"select pnr from flight_details where departure_date='".$_SESSION['user']."'");
$n= mysqli_fetch_assoc($q);
$stname= $n['pnr'];
$id=$_SESSION['user'];
$result = mysqli_query($con,"SELECT * FROM flight_details WHERE departure_date='".$_SESSION['user']."'");
while($row = mysqli_fetch_array($result))
{
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title></title>
<link rel="stylesheet" href="bootstrap/bootstrap.min.css">
<link rel="stylesheet" href="bootstrap/bootstrap-theme.min.css">
<script src="bootstrap/jquery.min.js"></script>
<script src="bootstrap/bootstrap.min.js"></script>
<link type="text/css" rel="stylesheet" href="css/admform.css"></link>
<script type="text/javascript">
function printpage()
{
var printButton = document.getElementById("print");
printButton.style.visibility = 'hidden';
window.print()
printButton.style.visibility = 'visible';
}
</script>
</head>
<body>
</div>
<center><img src='images/maxx.jpg' class='img-thumbnail' width='00px' style='height:0px;'></center>";
<div class="container-fluid">
<div class="row">
<div class="col-sm-12">
<center> <table class="table table-bordered" style="font-family: Verdana">
<center><font style="font-family:Verdana; font-size:18px;">
Airport Authority Of India<br>
Flight Running on <?php echo ''. $row[3]. ' ' ?> [ From : <?php echo ''. $row[1]. ' ' ?> To : <?php echo ''. $row[2]. ' ' ?>]
</font></center>
<br>
<br>
<center><font style="font-family:Arial Black; font-size:20px;">
______________________________________________________________________
</font></center>
</td>
<td colspan="2" width="3%" >
<?php
$picfile_path ='images/';
$result1 = mysqli_query($con,"SELECT * FROM passengers where ='".$_SESSION['user']."'");
while($row1 = mysqli_fetch_array($result1))
{
$picsrc=$picfile_path.$row1['s_pic'];
echo "<center><img src='images/maxx.jpg' class='img-thumbnail' width='180px' style='height:180px;'></center>";
echo"<div>";
}
?>
</td>
</tr>
<tr>
<td> <font style="font-family: Verdana;">Flight</font> </td>   Jet ID:<?php echo ''. $row[11]. ' ' ?>
<td colspan="3"> <?php echo ''. $row[0]. ' ' ?>
</tr>
<tr>
<td > <font style="font-family: Verdana;"> From</font> </td>
<td colspan="3"> <?php echo ''. $row[1]. ' ' ?> <?php echo ''. $row[5]. ' ' ?>                
<?php echo ' To - '.$row[2] ?><?php echo ''. $row[6]. ' ' ?></td>
</tr>
<tr>
<td> <font style="font-family: Verdana;">Arrival Date</font></td>
<td> <?php echo $row[4] ?></td><br>  
<td><font style="font-family: Verdana;"> Price Economy Class</font></td>
<td> <?php echo $row[9] ?> </td>
<td><font style="font-family: Verdana;"> Price Business class</font></td>
<td> <?php echo $row[10] ?> </td>
</tr>
</table></center>
</div>
</div>
</div>
<?php
}
?>
<center> <input type="submit" id="print" class="toggle btn btn-primary" value="Print" onclick="printpage();"></center>
<CENTER><a href="flightlist.php">Check other Date</a></center>
</body>
</html>
</body>
</html>