<?php
session_start(); 
  if($_SESSION['email']==""){
      header("location: index.php");
  }
  include("action/config.php");
  if(isset($_GET['track_id'])){
  	$track_id = $_GET['track_id'];

  	$sql = "SELECT * FROM `shipment_datalis` WHERE `track_id` = '$track_id'";
  	$res = mysqli_query($con,$sql);
  	while ($row = mysqli_fetch_assoc($res)) {
		$sender = $row['sendername'];
		$receiver = $row['receivername'];
		$destination = $row['destination'];
		$arrival = $row['arrival'];
		$c_location = $row['c_location'];
		$track_id = $row['track_id'];
  }
}
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Update Order | Drop Express Air Cargo Service Co LLC</title>
<!-- Stylesheets -->
<link href="../css/bootstrap.css" rel="stylesheet">
<link href="../css/color.css" rel="stylesheet">
<link href="../css/style.css" rel="stylesheet">
<link href="../css/responsive.css" rel="stylesheet">
<link rel="shortcut icon" href="../images/favicon.png" type="image/x-icon">
<link rel="icon" href="../images/favicon.png" type="image/x-icon">

<!-- Responsive -->
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-C7YMG1S2S3"></script>
<script>
  window.dataLayer = window.dataLayer || [];
  function gtag(){dataLayer.push(arguments);}
  gtag('js', new Date());

  gtag('config', 'G-C7YMG1S2S3');
</script>
<!-- Facebook Pixel Code -->
<script>
!function(f,b,e,v,n,t,s)
{if(f.fbq)return;n=f.fbq=function(){n.callMethod?
n.callMethod.apply(n,arguments):n.queue.push(arguments)};
if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';
n.queue=[];t=b.createElement(e);t.async=!0;
t.src=v;s=b.getElementsByTagName(e)[0];
s.parentNode.insertBefore(t,s)}(window,document,'script',
'https://connect.facebook.net/en_US/fbevents.js');
 fbq('init', '1497195837521938'); 
fbq('track', 'PageView');
</script>
<noscript>
 <img height="1" width="1" 
src="https://www.facebook.com/tr?id=1497195837521938&ev=PageView
&noscript=1"/>
</noscript>
<!-- End Facebook Pixel Code -->
</head>

<body class="hidden-bar-wrapper">

<div class="page-wrapper">
 	
    <!-- Preloader -->
    <div class="preloader"></div>
 	
 	<!-- Main Header / Header Style Two -->
 	 <?php include('include/header.php'); ?>
    <!--End Main Header -->
	
	
	<!--Page Title-->
    <section class="page-title" style="background-image:url(../images/background/12.jpg);">
    	<div class="auto-container">
        	<h2>Record Management</h2>
			<div class="separater"></div>
        </div>
    </section>
    
    <!--Breadcrumb-->
    <div class="breadcrumb-outer">
    	<div class="auto-container">
        	<ul class="bread-crumb text-center">
            	<li><a href="../index.html">Home</a> <span>/</span></li>
                <li>Record Keeping System</li>
            </ul>
        </div>
    </div>
    <!--End Page Title-->

	<section class="quote-section create-record message">
		<div class="auto-container">
					</div>
	</section>

	<div class ="auto-container">
		<div class ="row clearfix">
			<div class="sec-title">
				<h3>Edit <span>Shipment</span> Details</h3>
				<div class="separater"></div>
			</div>
		</div>
	</div>

	<div class ="auto-container">
		<div class ="row clearfix">
			<form method="post" class ="update-single-form" action="action/update.php">
									<label for="id">Tracking Id</label>
					<input type="text" name="track_id" id="id" value="<?= $track_id; ?>" readonly>
									<label for="sendername">Sendername</label>
					<input type="text" name="sendername" id="sendername" value="<?= $sender; ?>" >
									<label for="receivername">Recievername</label>
					<input type="text" name="receivername" id="receivername" value="<?= $receiver; ?>" >
									<label for="destination">Destination</label>
					<input type="text" name="destination" id="destination" value="<?= $destination; ?>" >
									<label for="expecteddate">Expecteddate</label>
					<input type="text" name="expecteddate" id="expecteddate" value="<?= $arrival ?>" >
									<label for="location">Location</label>
					<input type="text" name="location" id="location" value="<?= $c_location ?>" >
				 
				<input type="submit" name="submit" value="submit" class ="back-to-home">
			</form>
		</div>
	</div>

	<br></br>
	<div class ="row clearfix"><div class ="auto-container"><a class ="back-to-home" href="login_success.php">Back To Home</a></div></div>

	<!--Main Footer-->
	
</div>
<!--End pagewrapper-->

<!--Scroll to top-->
<div class="scroll-to-top scroll-to-target" data-target="html"><span class="fa fa-arrow-up"></span></div>

<script src="../js/jquery.js"></script>
<script src="../js/popper.min.js"></script>
<script src="../js/bootstrap.min.js"></script>
<script src="../js/jquery.mCustomScrollbar.concat.min.js"></script>
<script src="../js/jquery.fancybox.js"></script>
<script src="../js/appear.js"></script>
<script src="../js/owl.js"></script>
<script src="../js/wow.js"></script>
<script src="../js/jquery-ui.js"></script>
<script src="../js/script.js"></script>

</body>
</html>