<?php
error_reporting(0);
ob_start();
session_start();
include_once("../dbconnect.php");
if($_GET['action']=="delete")
{
	mysql_query("delete from reservation where id=".$_GET['id']);
	header("location: reservation1.php");
}


?>
<!DOCTYPE html>
<html lang="en">

<head>

    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="">
     <style type="text/css">

      /* Sticky footer styles
      -------------------------------------------------- */

     

    </style>
<?php include_once("title.php"); ?>

    <!-- Bootstrap Core CSS -->
    <link href="css/bootstrap.min.css" rel="stylesheet">
    <link href="css/main.css" rel="stylesheet">

    <!-- Custom CSS -->
    <link href="css/logo-nav.css" rel="stylesheet">

    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
        <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
        <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->

</head>

<body>
     <div id="wrap">
    <!-- Navigation -->
       <?php include_once("header.php"); ?>

    <!-- Page Content -->
    <div class="container">
        <div class="row">
            <div class="col-lg-12">

                 
                <br> <br> <br>
                <h1 style="text-align: center;">Reservation Details</h1>

                <div class="row">
            <div class="col-lg-12">

              <?php if($_GET['mec_g_id']!=3){ ?>  <!--<a href="gallery.php?action=addnew&mec_g_id=<?php echo $_GET['mec_g_id']; ?>"><button style="float: right" class="btn btn-primary btn-lg"><span class="glyphicon glyphicon-plus-sign"></span> Add New </button></a>--><?php } ?>

                <table class="table table-striped table-condensed">
                  <thead><tr><th style="text-align: left; color: #789704; font-size:20px;" colspan="2">Pickup Information</th></tr></thead>
                    
                    <tbody>
                    <?php
					$farooq=mysql_query("select * from reservation where id=".$_GET['id']);$i=1;
					$pasha=mysql_fetch_array($farooq);
					
					?>
                    <tr>
                        <td style="vertical-align: middle; color:#F00; font-weight:bold">Pick-Up Date:</td>
                        <td style="text-align: left"><strong><?php echo $pasha['pyear'];?></strong></td>
                        
                    </tr>
                   <tr>
                        <td style="vertical-align: middle; color:#F00; font-weight:bold">Pick-Up Time:</td>
                        <td style="text-align: left"><strong><?php echo $pasha['phour'];?>-<?php echo $pasha['pminutes'];?>-<?php echo $pasha['pampm'];?></strong></td>
                        
                    </tr>
                     <tr>
                        <td style="vertical-align: middle; color:#F00; font-weight:bold">Type of Service:</td>
                        <td style="text-align: left;"><strong><?php echo $pasha['trsferorhly'];?>-<?php echo $pasha['trsferorhly2'];?></strong></td>
                        
                    </tr>
                    <tr>
                        <td style="vertical-align: middle; color:#F00; font-weight:bold">Oneway / Roundtrip:</td>
                        <td style="text-align: left;"><strong><?php echo $pasha['onwayround'];?></strong></td>
                        
                    </tr>
                     <tr>
                        <td style="vertical-align: middle; color:#F00; font-weight:bold">Children:</td>
                        <td style="text-align: left"><strong><?php echo $pasha['childrens9'];?></strong></td>
                        
                    </tr>
                    <tr>
                        <td style="vertical-align: middle; color:#F00; font-weight:bold">Adult:</td>
                        <td style="text-align: left"><strong><?php echo $pasha['adult'];?></strong></td>
                        
                    </tr>
                    <tr>
                        <td style="vertical-align: middle; color:#F00; font-weight:bold">Passengers:</td>
                        <td style="text-align: left"><strong><?php echo $pasha['passengers'];?></strong></td>
                        
                    </tr>
                     <tr>
                        <td style="vertical-align: middle; color:#F00; font-weight:bold">Luggage:</td>
                        <td style="text-align: left"><strong>Large[<?php echo $pasha['luggage9'];?>],Medium[<?php echo $pasha['luggagetype'];?>],Carry On[<?php echo $pasha['luggagetype1'];?>]</strong></td>
                        
                    </tr>
                     <tr>
                        <td style="vertical-align: middle; color:#F00; font-weight:bold">Kids Stroller:</td>
                        <td style="text-align: left"><strong><?php echo $pasha['kidsstroller'];?></strong></td>
                        
                    </tr>
                     <tr>
                        <td style="vertical-align: middle; color:#F00; font-weight:bold">Preferred Vehicle Type:</td>
                        <td style="text-align: left"><strong><?php echo $pasha['preferedvehicles'];?></strong></td>
                        
                    </tr>
                   <tr><th style="text-align: left; color:#789704; font-size:20px;" colspan="2">Pickup Location</th></tr>
                    
                    <tr>
                        <td style="vertical-align: middle; color:#F00; font-weight:bold">Address / Airport:</td>
                        <td style="text-align: left"><strong><?php echo $pasha['addres'];?></strong></td>
                        
                    </tr>
                    <tr>
                        <td style="vertical-align: middle; color:#F00; font-weight:bold">City:</td>
                        <td style="text-align: left"><strong><?php echo $pasha['pcity'];?></strong></td>
                        
                    </tr>
                    <tr>
                        <td style="vertical-align: middle; color:#F00; font-weight:bold">Zip Code:</td>
                        <td style="text-align: left"><strong><?php echo $pasha['pzip'];?></strong></td>
                        
                    </tr>
                    <tr>
                        <td style="vertical-align: middle; color:#789704; font-weight:bold" colspan="2">Flight Information</td>
                     
                        
                    </tr>
                     <tr>
                        <td style="vertical-align: middle; color:#F00; font-weight:bold">Arrival Airline:</td>
                        <td style="text-align: left"><strong><?php echo $pasha['arrivalairline'];?></strong></td>
                        
                    </tr>
                     <tr>
                        <td style="vertical-align: middle; color:#F00; font-weight:bold">Arrival Time:</td>
                        <td style="text-align: left"><strong><?php echo $pasha['arrivaltiming'];?></strong></td>
                        
                    </tr>
                     <tr>
                        <td style="vertical-align: middle; color:#F00; font-weight:bold"> Flight #::</td>
                        <td style="text-align: left"><strong><?php echo $pasha['flightname'];?></strong></td>
                        
                    </tr>
                    <tr><th style="text-align: left; color:#789704; font-size:20px;" colspan="2">Drop Off Location</th></tr>
                    
                    <tr>
                        <td style="vertical-align: middle; color:#F00; font-weight:bold">Address / Airport:</td>
                        <td style="text-align: left"><strong><?php echo $pasha['daddres'];?></strong></td>
                        
                    </tr>
                    <tr>
                        <td style="vertical-align: middle; color:#F00; font-weight:bold">City:</td>
                        <td style="text-align: left"><strong><?php echo $pasha['dcity'];?></strong></td>
                        
                    </tr>
                    <tr>
                        <td style="vertical-align: middle; color:#F00; font-weight:bold">Zip Code:</td>
                        <td style="text-align: left"><strong><?php echo $pasha['dzip'];?></strong></td>
                        
                    </tr>
                    <tr>
                        <td style="vertical-align: middle; color:#789704; font-weight:bold" colspan="2">Flight Information</td>
                     
                        
                    </tr>
                     <tr>
                        <td style="vertical-align: middle; color:#F00; font-weight:bold">Departure Airline:</td>
                        <td style="text-align: left"><strong><?php echo $pasha['darrivalairline'];?></strong></td>
                        
                    </tr>
                     <tr>
                        <td style="vertical-align: middle; color:#F00; font-weight:bold">Departure Time:</td>
                        <td style="text-align: left"><strong><?php echo $pasha['darrivaltiming'];?></strong></td>
                        
                    </tr>
                     <tr>
                        <td style="vertical-align: middle; color:#F00; font-weight:bold"> Flight #::</td>
                        <td style="text-align: left"><strong><?php echo $pasha['dflightname'];?></strong></td>
                        
                    </tr>
                      <tr><th style="text-align: left; color:#789704; font-size:20px;" colspan="2">Return</th></tr>
                    
                    <tr>
                        <td style="vertical-align: middle; color:#F00; font-weight:bold">Date:</td>
                        <td style="text-align: left"><strong><?php echo $pasha['redate'];?></strong></td>
                        
                    </tr>
                     <tr>
                        <td style="vertical-align: middle; color:#F00; font-weight:bold">Time:</td>
                        <td style="text-align: left"><strong><?php echo $pasha['rehour'];?>-<?php echo $pasha['reminutes'];?>-<?php echo $pasha['reampm'];?></strong></td>
                        
                    </tr>
                     <tr>
                        <td style="vertical-align: middle; color:#F00; font-weight:bold">Location:</td>
                        <td style="text-align: left"><strong><?php echo $pasha['relocation'];?></strong></td>
                        
                    </tr>
                    <tr><th style="text-align: left; color:#789704; font-size:20px;" colspan="2">Personal Information</th></tr>
                    
                    <tr>
                        <td style="vertical-align: middle; color:#F00; font-weight:bold">Full Name:</td>
                        <td style="text-align: left"><strong><?php echo $pasha['pname'];?></strong></td>
                        
                    </tr>
                    <tr>
                        <td style="vertical-align: middle; color:#F00; font-weight:bold">Main Phone Number:</td>
                        <td style="text-align: left"><strong><?php echo $pasha['pnumber'];?></strong></td>
                        
                    </tr>
                    <tr>
                        <td style="vertical-align: middle; color:#F00; font-weight:bold">Alt' Phone Number:</td>
                        <td style="text-align: left"><strong><?php echo $pasha['panumber'];?></strong></td>
                        
                    </tr>
                    <tr>
                        <td style="vertical-align: middle; color:#F00; font-weight:bold">Email:</td>
                        <td style="text-align: left"><strong><?php echo $pasha['pemail'];?></strong></td>
                        
                    </tr>
                    <tr>
                        <td>&nbsp;</td>
                        <td style="text-align: left"><a href="reservation1.php"><input style="color:#000; width:80px; height:35px; background:#930" type="button" value="Back"></a></td>
                        
                    </tr>
                       
                    </tbody>
                </table>
                </div></div>
                <br>

                
               
    </div>

        </div>

  

            </div>
            
         <div id="push"></div>
    </div>

     <?php include_once("footer.php"); ?>
   

    
    <!-- /.container -->

    <!-- jQuery -->
    <script src="js/jquery.js"></script>

    <!-- Bootstrap Core JavaScript -->
    <script src="js/bootstrap.min.js"></script>


</body>

</html>
