<!DOCTYPE html>
<html lang="en">
  <head>
  
  <link rel="shortcut icon" href="images/favicon.ico" >
    <title></title>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">

    <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Nunito+Sans:200,300,400,700,900|Roboto+Mono:300,400,500"> 
    <link rel="stylesheet" href="fonts/icomoon/style.css">

    <link rel="stylesheet" href="css/bootstrap.min.css">
    <link rel="stylesheet" href="css/magnific-popup.css">
    <link rel="stylesheet" href="css/jquery-ui.css">
    <link rel="stylesheet" href="css/owl.carousel.min.css">
    <link rel="stylesheet" href="css/owl.theme.default.min.css">
    <link rel="stylesheet" href="css/bootstrap-datepicker.css">
    
    
    <link rel="stylesheet" href="fonts/flaticon/font/flaticon.css">
  
    <link rel="stylesheet" href="css/aos.css">

    <link rel="stylesheet" href="css/style.css">
    <style type="text/css">
    .aab {
	font-size: 36px;
	color: #FF0000;
}
    </style>
  </head>
  <body>
  
  <div class="site-wrap">

    <div class="site-mobile-menu">
      <div class="site-mobile-menu-header">
        <div class="site-mobile-menu-close mt-3">
          <span class="icon-close2 js-menu-toggle"></span>
        </div>
      </div>
      <div class="site-mobile-menu-body"></div>
    </div> <!-- .site-mobile-menu -->
    
    
    <div class="site-navbar-wrap bg-white">
      <div class="site-navbar-top">
        <div class="container py-2">
          <div class="row align-items-center">
            <div class="col-6">
              <div id="google_translate_element"></div><script type="text/javascript">
function googleTranslateElementInit() {
  new google.translate.TranslateElement({pageLanguage: 'en', layout: google.translate.TranslateElement.InlineLayout.SIMPLE}, 'google_translate_element');
}
</script><script type="text/javascript" src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>
            </div>
            <div class="col-6">
              <div class="d-flex ml-auto">
                <a href="#" class="d-flex align-items-center ml-auto mr-4">
                  <span class="icon-phone mr-2"></span>
                  <span class="d-none d-md-inline-block"></span>
                </a>
                <a href="#" class="d-flex align-items-center">
                  <span class="icon-envelope mr-2"></span>
                  <span class="d-none d-md-inline-block"></span>
                </a>
              </div>
            </div>
          </div>
        </div>
      </div>
      <div class="site-navbar bg-light">
        <div class="container py-1">
          <div class="row align-items-center">
            <div class="col-2">
              <h2 class="mb-0 site-logo"><img src="images/logo.png" width="320" height="80"></h2>
            </div>
            <div class="col-10">
              <nav class="site-navigation text-right" role="navigation">
                <div class="container">
                  <div class="d-inline-block d-lg-none ml-md-0 mr-auto py-3"><a href="#" class="site-menu-toggle js-menu-toggle text-black"><span class="icon-menu h3"></span></a></div>

                  <ul class="site-menu js-clone-nav d-none d-lg-block">
                    <li>
                      <a href="logout.php">LOGOUT</a>
                      
                    </li>
                  </ul>
                </div>
              </nav>
            </div>
          </div>
        </div>
      </div>
    </div>

    <div class="site-blocks-cover inner-page overlay" style="background-image: url(images/hero_bg_28.jpg);" data-aos="fade" data-stellar-background-ratio="0.5">
      <div class="container">
        <div class="row align-items-center justify-content-center">
          <div class="col-md-7 text-center">
            <h1 class="mb-5"><strong>Tracking</strong></h1>
          </div>
        </div>
      </div>
    </div>  

    <div class="site-section bg-light">
      <div class="container">
        <div class="row">
       
          <div class="col-md-12 col-lg-8 mb-5">
            <p class="aab">            </p>
            <p><?php
require("db.php");
$id =$_REQUEST['id'];

$result = mysql_query("SELECT * FROM clients WHERE id  = '$id'");
$test = mysql_fetch_array($result);
if (!$result) 
		{
		die("Error: Data not found..");
		}
				    $Receipt_No=$test['Receipt_No'] ;
					$Tracking_No= $test['Tracking_No'] ;					
					$Tracking_Statut=$test['Tracking_Statut'] ;
					$Dep_Time=$test['Dep_Time'] ;
					$Billed_On=$test['Billed_On'] ;
					$EDT=$test['EDT'] ;
					$Delivered_To=$test['Delivered_To'] ;
					$Items=$test['Items'] ;
					$Total_Weight=$test['Total_Weight'] ;
					$Service_Type=$test['Service_Type'] ;
					$Shipping_Adr=$test['Shipping_Adr'] ;
					$Billing_Adr=$test['Billing_Adr'] ;
					$Payment_Statut=$test['Payment_Statut'] ;

if(isset($_POST['save']))
{	
	                $receipt_save = $_POST['receipt'] ;
					$tracking_save = $_POST['tracking'] ;					
					$track_save = $_POST['track'] ;
					$dep_save = $_POST['dep'] ;
					$billed_save = $_POST['billed'] ;
					$edt_save = $_POST['edt'] ;
					$delivered_save = $_POST['delivered'] ;
					$items_save = $_POST['items'] ;
					$total_save = $_POST['total'] ;
					$service_save = $_POST['service'] ;
					$shipping_save = $_POST['shipping'] ;
					$billing_save = $_POST['billing'] ;
					$payment_save = $_POST['payment'] ;

	mysql_query("UPDATE clients SET Receipt_No ='$receipt_save', Tracking_No ='$tracking_save',
		 Tracking_Statut ='$track_save',Dep_Time ='$dep_save',Billed_On ='$billed_save',EDT ='$edt_save',Delivered_To ='$delivered_save',Items ='$items_save',Total_Weight ='$total_save',Service_Type ='$service_save',Shipping_Adr ='$shipping_save',Billing_Adr ='$billing_save',Payment_Statut ='$payment_save' WHERE id = '$id'")
				or die(mysql_error()); 
	echo '<a href="add_client.php">Successfully Saved Click hear to go Back to Edit Clients</a>';			
}
mysql_close($conn);
?><form method="post">
<table>
	<tr>
		<td>Receipt No::</td>
		<td><input name="receipt" type="text" value="<?php echo $Receipt_No ?>" size="100"/></td>
	</tr>
	<tr>
		<td>Tracking No:</td>
		<td><input name="tracking" type="text" value="<?php echo $Tracking_No ?>" size="100"/></td>
	</tr>
	<tr>
		<td>Tracking_Statut</td>
		<td><input name="track" type="text" value="<?php echo $Tracking_Statut ?>" size="100"/></td>
	</tr>
	<tr>
		<td>Departure Time</td>
		<td><input name="dep" type="text" value="<?php echo $Dep_Time ?>" size="100"/></td>
	</tr>
    <tr>
		<td>Deposit date:</td>
		<td><input name="billed" type="text" value="<?php echo $Billed_On ?>" size="100"/></td>
	</tr>
    <tr>
		<td>Departure Time</td>
		<td><input name="edt" type="text" value="<?php echo $EDT ?>" size="100"/></td>
	</tr>
    <tr>
		<td>Delivered To</td>
		<td><input name="delivered" type="text" value="<?php echo $Delivered_To ?>" size="100"/></td>
	</tr>
    <tr>
		<td>Items:</td>
		<td><input name="items" type="text" value="<?php echo $Items ?>" size="100"/></td>
	</tr>
    <tr>
		<td>Total Weight</td>
		<td><input name="total" type="text" value="<?php echo $Total_Weight ?>" size="100"/></td>
	</tr>
    <tr>
		<td>Service Type</td>
		<td><input name="service" type="text" value="<?php echo $Service_Type ?>" size="100"/></td>
	</tr>
    <tr>
		<td>Shipping Address</td>
		<td><input name="shipping" type="text" value="<?php echo $Shipping_Adr ?>" size="100"/></td>
	</tr>
    <tr>
		<td>Billing Address:</td>
		<td><input name="billing" type="text" value="<?php echo $Billing_Adr ?>" size="100"/></td>
	</tr>
    <tr>
		<td>Box current location</td>
		<td><input name="payment" type="text" value="<?php echo $Payment_Statut ?>" size="100"/></td>
	</tr>
	<tr>
		<td>&nbsp;</td>
		<td><input type="submit" name="save" value="save" /></td>
	</tr>
</table>
      <p>&nbsp;</p>
      <p>
</form></p>         </p>
          </div>
          
            
          </div>
        </div>
      </div>
    </div>

    
    <div class="promo py-5 bg-primary" data-aos="fade">
      <div class="container text-center">
        <h2 class="d-block mb-0 font-weight-light text-white"><a href="#" class="text-white d-block"></a></h2>
      </div>
    </div>
    
    <footer class="site-footer">
      <div class="container">
        

        <div class="row"></div>
        <div class="row pt-5 mt-5 text-center">
          <div class="col-md-12">
            <p>
            <!-- Link back to Colorlib can't be removed. Template is licensed under CC BY 3.0. -->
            Copyright &copy;  All Rights Reserved | 
            <!-- Link back to Colorlib can't be removed. Template is licensed under CC BY 3.0. -->
            </p>
          </div>
          
        </div>
      </div>
    </footer>
  </div>

  <script src="js/jquery-3.3.1.min.js"></script>
  <script src="js/jquery-migrate-3.0.1.min.js"></script>
  <script src="js/jquery-ui.js"></script>
  <script src="js/popper.min.js"></script>
  <script src="js/bootstrap.min.js"></script>
  <script src="js/owl.carousel.min.js"></script>
  <script src="js/jquery.stellar.min.js"></script>
  <script src="js/jquery.countdown.min.js"></script>
  <script src="js/jquery.magnific-popup.min.js"></script>
  <script src="js/bootstrap-datepicker.min.js"></script>
  <script src="js/aos.js"></script>

  <script src="js/main.js"></script>
    
  </body>
</html>