<?php
    session_start();
    include_once"includes/conn.php";
    include_once"includes/UserDetails.php";
    $TN = $_SESSION['id'];
    $TC = $_SESSION['id'];
   
    $sql = "SELECT * FROM details WHERE TrackNum = '$TN' ";
    $result = mysqli_query($conn, $sql);
    if (mysqli_num_rows($result)>0) {
        while ($rows = mysqli_fetch_assoc($result)) {
            $SS = $rows['SS'];
            $AD1 = $rows['ART'];
        }

    }
?>

<!DOCTYPE html>
<html  >

<!-- Mirrored from www.CitySprint.co.uk/search by HTTrack Website Copier/3.x [XR&CO'2014], Fri, 29 Mar 2019 15:48:04 GMT -->
<!-- Added by HTTrack --><meta http-equiv="content-type" content="text/html;charset=utf-8" /><!-- /Added by HTTrack -->
<head id="head"><title>
 Shipment Details 
</title><meta charset="UTF-8" /> 
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">


<script type="text/javascript">  var appInsights=window.appInsights||function(config){    function i(config){t[config]=function(){var i=arguments;t.queue.push(function(){t[config].apply(t,i)})}}var t={config:config},u=document,e=window,o="script",s="AuthenticatedUserContext",h="start",c="stop",l="Track",a=l+"Event",v=l+"Page",y=u.createElement(o),r,f;y.src=config.url||"https://az416426.vo.msecnd.net/scripts/a/ai.0.js";u.getElementsByTagName(o)[0].parentNode.appendChild(y);try{t.cookie=u.cookie}catch(p){}for(t.queue=[],t.version="1.0",r=["Event","Exception","Metric","PageView","Trace","Dependency"];r.length;)i("track"+r.pop());return i("set"+s),i("clear"+s),i(h+a),i(c+a),i(h+v),i(c+v),i("flush"),config.disableExceptionTracking||(r="onerror",i("_"+r),f=e[r],e[r]=function(config,i,u,e,o){var s=f&&f(config,i,u,e,o);return s!==!0&&t["_"+r](config,i,u,e,o),s}),t    }({        instrumentationKey:"5896e724-3002-433e-9e39-6149b65da4cf"    });           window.appInsights=appInsights;    appInsights.trackPageView();</script> 
<link href="SiteImages/CitySprint/Favicons/favicon.ico" type="image/x-icon" rel="shortcut icon"/>
<link href="SiteImages/CitySprint/Favicons/favicon.ico" type="image/x-icon" rel="icon"/>
<!-- OneTrust Cookies Consent Notice start -->

<script src="../cdn.cookielaw.org/consent/720b19c1-a225-444f-a704-e6c0fe9764ad.js" type="text/javascript" charset="UTF-8"></script>

    <!-- bootstrap v3.3.6 css -->
    <link href="css/bootstrap.css" rel="stylesheet">
    <!-- font-awesome css -->
    <link href="css/font-awesome.css" rel="stylesheet">
    <!-- flaticon css -->
    <link href="css/flaticon.css" rel="stylesheet">
    <!-- factoryplus-icons css -->
    <link href="css/factoryplus-icons.css" rel="stylesheet">
    <!-- animate css -->
    <link href="css/animate.css" rel="stylesheet">
    <!-- owl.carousel css -->
    <link href="css/owl.css" rel="stylesheet">
    <!-- fancybox css -->
    <link href="css/jquery.fancybox.css" rel="stylesheet">
    <link href="css/hover.css" rel="stylesheet">
    <link href="css/frontend.css" rel="stylesheet">
    <link href="css/style.css" rel="stylesheet">
    <!-- switcher css -->
    <link href="css/switcher.css" rel="stylesheet">
    <link rel='stylesheet' id='factoryhub-color-switcher-css' href='css/switcher/default.css' />
    <!-- revolution slider css -->
    <link rel="stylesheet" type="text/css" href="css/revolution/settings.css">
    <link rel="stylesheet" type="text/css" href="css/revolution/layers.css">
    <link rel="stylesheet" type="text/css" href="css/revolution/navigation.css">

    <!--Favicon-->
    <link rel="shortcut icon" href="images/favicon.ico" type="image/x-icon">
    <link rel="icon" href="images/favicon.ico" type="image/x-icon">
    <!-- Responsive -->
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link href="css/responsive.css" rel="stylesheet">
    <!--[if lt IE 9]><script src="https://cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.3/html5shiv.js"></script><![endif]-->

        <style>
.space { width:100%;
         height:1px;
         background:grey;
            }

 span{
     font-family:Sans-serif;
     font-size:15px; 
    }          

        </style>

    <div id="ctxM">

</div>
    
<body class="home header-transparent  header-sticky header-v1 hide-topbar-mobile" style='background-color: white;'>
 
<header class="cs-site-header">
  

        <marquee behavior="" direction="" style="background-color:black; height:30px; color:white;">Our SameDay Courier service means that you can rely on secure, timely, nationwide deliveries 24 hours a day, seven days a week, 365 days a year.has a long and successful logistics history. We understand the challenges you face and will work to create a same day logistics service that overcomes them.</marquee>
   
<button type='submit'  style='background-color:black; padding:10px; margin:5px; border:none; color:; font-family:arial;'>
  <a href="index.html" style='color:white;'>HOME</a> 
 </button>

</header>



        <!-- masthead end -->

        <!--Page Header-->
        <!-- <div class="page-header title-area">
            <div class="header-title">
                <div class="container">
                    <div class="row">
                        <div class="col-md-12 col-sm-12 col-xs-12">
                            <h1 class="page-title">Shipment Details</h1> </div>
                    </div>
                </div>
            </div>
            <div class="breadcrumb-area">
                <div class="container">
                    <div class="row">
                        <div class="col-md-8 col-sm-12 col-xs-12 site-breadcrumb">
                            <nav class="breadcrumb">
                                <a class="home" href="#"><span></span>Tracking Code</a>
                                <i class="fa fa-angle-right" aria-hidden="true"></i>
                                <span></span>
                            </nav>
                        </div>
                    </div>
                </div>
            </div>
        </div> -->
        <!--Page Header end-->
        
        <!--Track Your Shipment -->
        <section style="padding-top:1%; margin-left:22%;" class="tracksipment secpadd">
            <div class="container">
                <div class="">
                    <div class="col-md-7">
                                         
                        <div class="row paddtop0">
                          
                    <!-- Advanced Tables -->
                    <div class="panel panel-default">
                        <div class="panel-heading" style="font-family:calibri;font-size:1em; border-color:grey; color:black;">
                          	
Detailed Results
                             </div>
                        <div class="panel-body" style="font-family:calibri;font-size:1.2em; border-color:grey; color:black;">
                            <div class="table-responsive scroll-table">
                            <table class="table table-striped table-bordered table-hover " >
                            <tbody>
                                        <div> 
                                        <tr>
                                       
                                       <td style="font-size:20px; font-family:serif;">
                                       
                                       Tracking no <i class="fa fa-angle-right" aria-hidden="true"></i> <?php echo $TN; ?>
                                        </tr>
                                                             
                                          <tr>
                                              <td style="font-size:12px; font-family:serif;">
                                              
                                               Shipment Dates:
                                               <br>
                                               <br>
                                               <span >Ship date<span> -     <?php echo '<strong>' .$PD.'</strong>' ?>;
                                               <div class="space" ></div>
                                               <span> Arrival Date</span> -  <?php echo '<strong>'.$AD. '</strong>'?> ;
                                            
                                               
                                              <td style="font-size:12px; font-family:serif;">
                                              
                                              Shipment Destination:
                                              <br>
                                              <br> <?php echo "<strong>".$DL."</strong>"; ?>
                                               </td>
                                           </tr>
                                        </div>                       
                                   </tbody>     
                                   <tr>
                                       
                                              <td style="font-size:20px; font-family:serif;">
                                              
                                               Shipment Profile:
                                               </tr>
                                               
                                   <tbody>     
                                        <div>                      
                                          <tr>
                                              <td style="font-size:12px; font-family:serif;">
                                              
                                              Shipper Details:
                                               <br>
                                               <?php echo $SN.'<br>'.$SA.'<br>'.
                                        $Snum; ?>
                                         
                                            
                                               
                                              <td style="font-size:12px; font-family:serif;">
                                              
                                              Receiver Details:
                                              <br>
                                              <?php echo '<strong>'.$RN.'</strong>'.'<br>'.'<strong>'.$RA.'</strong><br>'.
                                        '<strong>'.$Rnum.'</strong>'; ?>
                                 
                                               </td>
                                           </tr>
                                        </div>     
                                    </tbody>
                                    <tr>
                                       
                                       <td style="font-size:20px; font-family:serif;">
                                       
                                       Shipment Content :
                                        </tr>
                                        
                                        <tbody>
                                        <div>                      
                                          <tr>
                                              <td style="font-size:12px; font-family:serif;">
                                              
                                              <span>Shipment-Type</span>  - <?php echo '<strong>'.$Weight.'</strong>'?>
                                              <div class="space" ></div>
                                               <span>Quantity</span> - <?php echo '<strong>'.$Qty.'</strong>'?>
                                               <br>
                                             
                                         
                                         
                                               
                                              <td style="font-size:12px; font-family:serif;">
                                              
                                              shipment status:
                                              <br>
                                              <?php echo '<strong>'.$held; ?>
                                               </td>
                                           </tr>
                                        </div>     
                                        </tbody>

                                        
                                    <tr>
                                       
                                       <td style="font-size:20px; font-family:serif;">
                                       
                                       Shipment Fact:
                                        </tr>
                                        
                                        <tbody>
                                        <div>                      
                                          <tr>
                                              <td style="font-size:12px; font-family:serif;">
                                              
                                              <span>Freight Type:</span> -  <?php echo "<strong>" .$Mode. "</strong>"; ?>
                                               <br>
                                              
                                         
                                               
                                              <td style="font-size:12px; font-family:serif;">
                                              
                                              Reference Number:
                                              <br>
                                              <?php echo "<strong>" .$Amt."</strong>"; ?> <br>
                                               </td>
                                           </tr>
                                        </div>     
                                        </tbody>
                            </table>
                            </div>
                        </div>
                    </div>
                    <!--End Advanced Tables -->
                            
                        </div>
                    </div>      
          <?php
                    
$sql = "SELECT * FROM tracking_history WHERE Track_num = '$TN' ";
$result = mysqli_query($conn, $sql) or die;
$results = [];
if (mysqli_num_rows($result)) {
    while ($rows = mysqli_fetch_assoc($result)) {
        array_push($results, $rows);
    }

}
                    ?>
                            </nav>
                        </div>
                    </div>
                </div>
            </div>
        </div> 
        <!--Page Header end-->
        <section style="padding-top:1%; margin-left:10px;" class="tracksipment secpadd">
            <div class="container">
                <div class="">
                    <div class="col-md-7">
                                         
                        <div class="row paddtop0">
                          
                   
                              <!-- Advanced Tables -->
                    
                        <div class="panel-body">
                            <div class="table-responsive scroll-table">
                                <table class="table table-striped table-bordered table-hover " id="dataTables-example">
                
                                   <?php
                                  $sql ="SELECT * FROM listitem where track_num ='$TC' ";
                                   $res = mysqli_query($conn,$sql) or die;
                                   if(mysqli_num_rows($res) > 0){
                                   while($list = mysqli_fetch_assoc($res)){?>
                                    <tr>
                                               <?php echo '<tr><td>'.$list['list'] .'</td> </tr>';?>
 
                                             
                                            </td>
                                            </tr>        
                                            <?php 
    }
                                        }

                                        ?>             
                                    </tbody>
                                    
                                </table>
                            </div>
                        </div>
                    </div>
       
                    <!-- Advanced Tables -->
                    <div class="panel panel-default">
                        <div class="panel-heading" style="font-family:calibri;font-size:1em; width:100%;">
                            Shipment History <i class="fa fa-angle-right" aria-hidden="true"></i> <?php echo $TN; ?>
                             </div>
                        <div class="panel-body">
                            <div class="table-responsive scroll-table">
                                <table class="table table-striped table-bordered table-hover " id="dataTables-example">
                                    
                                        <tr style="color:white">
                                            <td style="background-color:;color:black;">Location</td>
                                            <td style="background-color:;color:black;">Details</td>
                                            <td style="background-color:;color:black;">Activity</td>
                                            <td style="background-color:; color:black;)">Date</td>
                                        </tr>
                                   
                                    <tbody>
                                        <?php
                                        foreach ($results as $record) { ?>
                                            <tr>

                                            <td style="background:#fff">
                                            <?php echo $record['Location']; ?> <br>
                                             
                                            </td>

                                            <td style="background:#fff">
                                            <?php echo $record['Status']; ?> <br>
                                             
                                            </td>
                                            <td style="background:#fff">
                                            <?php echo $record['Comment']; ?>
                                             
                                            </td>
                                            <td style="background:#fff">
                                           <?php echo $record['Updated_at']; ?> <br>
                                            </td>
                                        </tr>        
                                            <?php 
                                        }

                                        ?>
                                        

                                    </tbody>
                                    
                                </table>
                            </div>
                        </div>
                    </div>
                    <!--End Advanced Tables -->
                            
                        </div>
                    </div>
                    
                    </div>
                </div>

            </div>
        </section>
        
</footer>

<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-KKMXF6L" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>


<style>

  </style>   


  <script src="assets/js/CitySprint/manifest.js"></script>
  <script src="assets/js/CitySprint/CitySprint.min.js"></script>
  <script src="../cdnjs.cloudflare.com/ajax/libs/jspdf/1.3.5/jspdf.min.js"></script>

<!--Start of Tawk.to Script-->
<script type="text/javascript">
var Tawk_API=Tawk_API||{}, Tawk_LoadStart=new Date();
(function(){
var s1=document.createElement("script"),s0=document.getElementsByTagName("script")[0];
s1.async=true;
s1.src='https://embed.tawk.to/609299a0185beb22b30a4671/1f4uagm7p';
s1.charset='UTF-8';
s1.setAttribute('crossorigin','*');
s0.parentNode.insertBefore(s1,s0);
})();
</script>
<!--End of Tawk.to Script-->

</body>

<!-- Mirrored from www.CitySprint.co.uk/search by HTTrack Website Copier/3.x [XR&CO'2014], Fri, 29 Mar 2019 15:48:07 GMT -->
</html>

