Skip to content
Permalink
main
Switch branches/tags
Go to file
 
 
Cannot retrieve contributors at this time
<?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>&nbsp&nbsp 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]. ' ' ?> &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp
<?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>&nbsp&nbsp
<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>