<!DOCTYPE html>
<html>

<head>
   
    <link rel="shortcut icon" type="image/x-icon" href="assets/img/logo.png">
    <link rel="preconnect" href="https://fonts.googleapis.com">
    <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
    <link
        href="https://fonts.googleapis.com/css2?family=Abel&family=Encode+Sans+Condensed:wght@300&family=Georama:wght@200&family=Oranienbaum&family=Smooch+Sans:wght@300&family=Yanone+Kaffeesatz:wght@300&display=swap"
        rel="stylesheet">

    <style>
    table {
        border: 1px solid black;
    }
    </style>
</head>


<body style="background-color:#f5f5f0">



    <?php
$conn=new mysqli("localhost","root","","threads");
$error_message='';
$id=0;
if(isset($_GET['search']))
{
$id=$_GET['id'];
}
?>

    <?php
$sql="select * from dunees where COUR_NO='$id'";
$row=$conn->query($sql);
if($row->num_rows>0)
{
	?>

    <?php
	while($data=$row->fetch_assoc())
	{
		?>
 <title>Way Bill For: <?php print_r($data['Receiver']);?></title>
    <table style="width:100%;border: 1px solid black;background-color:">
        <tr>
            <th
                style="collage_bg;height:70px;width:500px;border: 1px solid white;border-radius:20px;border: 1px solid white;color:blue; text-align:left;font-size:13px;font-family:tahoma;">
                <nav>
                    &nbsp &nbsp <a href="#"> <img src="assets/img/logo.png" style="width:30px;height:30px;"></a>
                     <a ><span style="font-size:30px;font-family: 'Yanone Kaffeesatz', sans-serif;">Gent World
                            Express</span></a> <br>
                            &nbsp &nbsp <a style="text-indent:4em"> <span style="font-size:18px;font-family: 'Yanone Kaffeesatz', sans-serif;color:#0f0f0a;">UK Address:  41 Maiden Lane, London WCZE 7U, United Kingdom </span></a> <br>
                             &nbsp &nbsp <a style="text-indent:4em"> <span style="font-size:18px;font-family: 'Yanone Kaffeesatz', sans-serif;color:#0f0f0a;">US Address: 64 New Turnpike Troy, New York United States of America </span></a> <br>
                            &nbsp &nbsp <a href="mailto:csu-department@gent-wrld.com" style="text-decoration:none"><span style="font-size:18px;font-family: 'Yanone Kaffeesatz', sans-serif;color:#0f0f0a;">Email: csu-department@gent-wrld.com</span></a>
                </nav>               
            </th>
            <th rowspan="2"
                style="height:70px;width:200px;border: 1px solid white;background-color:#94b8b8;border: 1px solid #94b8b8;">
                <span stype="font-size:13px"><img src="assets/img/Gent.png"
                        style="width:150px;height:120px;text-indent:3em;">
            </th>
            <th colspan="2" style="height:70px;width:80px;border: 1px solid black;">
                <table>
                    <tr>
                        <th
                            style="height:30px;width:300px;background-color:#00b33c;border: 1px solid #00b33c;text-align:left; margin: 20px;order: 1;font-family:tahoma;color:#000000;font-size:15px;">
                            Tracking Number: <?php print_r($data['Cour_No']);?></th>
                    </tr>
                    <tr>
                        <td
                            style="height:30px;width:300px;background-color:#00b33c;border: 1px solid #00b33c;text-align:left;font-family:tahoma;color:#000000;font-size:15px;">
                            Way Bill Number: <?php print_r($data['Bill']);?></td>

                    </tr>
                </table>
            </th>
        </tr>

        <table>
            <tr>
                <td
                    style="height:10px;width:300px;background-color:#00b33c;border: 1px solid #00b33c;text-align:left;font-family:tahoma;color:#000000;text-indent:2em;">
                    Sender's Details:</td>
                <td
                    style="height:10px;width:400px;background-color:#00b33c;border: 1px solid #00b33c;text-align:left;font-family:tahoma;color:#000000;text-indent:2em;">
                    Details Of Goods:</td>
                <td
                    style="height:10px;width:400px;background-color:#00b33c;border: 1px solid #00b33c;text-align:left;font-family:tahoma;color:#000000;text-indent:2em;">
                    Items Of <?php print_r($data['Name_Item']);?>:</td>
            </tr>
            <tr>
                <td
                    style="height:10px;width:700px;background-color:#f5f5f0;border: 1px solid #000000;text-align:left;font-family:tahoma;color:#000000;">
                    &nbsp Sender Name: <?php print_r($data['Sender']);?> <br>
                    &nbsp  <span style="text-indent:2em;background-color:#f5f5f0;"> Sender Address:
                        <?php print_r($data['Sender_Address']);?></span></br>
                        &nbsp <span style="text-indent:2em"> Sender Email: <?php print_r($data['Sender_Email']);?></span><br>
                        &nbsp  <span style="text-indent:2em"> Sender Number: <?php print_r($data['Sender_Number']);?></span>
                </td>
                <td
                    style="height:10px;width:300px;background-color:#f5f5f0;border: 1px solid #000000;text-align:left;font-family:tahoma;color:#000000;">
                    &nbsp Name Of Item: <?php print_r($data['Name_Item']);?><br>
                    &nbsp <span style="text-indent:2em"> Color Of <?php print_r($data['Name_Item']);?>: <?php print_r($data['Color_Item']);?></span><br>
                    &nbsp <span style="text-indent:2em"> Weight Of <?php print_r($data['Name_Item']);?>: <?php print_r($data['Weight']);?></span>
                    </span><br>
                    &nbsp <span style="text-indent:2em"> Amount: <?php print_r($data['Sender_Current']);?> <?php print_r($data['Sender_Amount']);?></span>
                    <br>
                    &nbsp <span style="text-indent:2em"> Status: Paid</span>
                    </span>
                </td>
                <td
                    style="height:10px;width:300px;background-color:#f5f5f0;border: 1px solid #000000;text-align:left;font-family:tahoma;color:#000000;">
                    &nbsp Lists Of <?php print_r($data['Name_Item']);?>: <?php print_r($data['List_Item']);?></td>
            </tr>
        </table>
        <table>
            <tr>
                <td
                    style="height:10px;width:700px;background-color:#00b33c;border: 1px solid #00b33c;text-align:left;font-family:tahoma;color:#000000;text-indent:2em;">
                    Receiver Details:</td>
                <td
                    style="height:10px;width:600px;background-color:#00b33c;border: 1px solid #00b33c;text-align:left;font-family:tahoma;color:#000000;text-indent:2em;">
                    Shipping Details:</td>
            </tr>
            <tr>
                <td
                    style="height:10px;width:700px;background-color:#f5f5f0;border: 1px solid #000000;text-align:left;font-family:tahoma;color:#000000;">
                    &nbsp  Receiver Name: <?php print_r($data['Receiver']);?><br>
                    &nbsp <span style="text-indent:2em"> Receiver Address:
                        <?php print_r($data['Receiver_Address']);?></span></br>
                        &nbsp <span style="text-indent:2em"> Receiver Email: <?php print_r($data['Receiver_Email']);?></span><br>
                    &nbsp <span style="text-indent:2em"> Receiver Number: <?php print_r($data['Receiver_Number']);?> </span>
                </td>
                <td
                    style="height:10px;width:700px;background-color:#f5f5f0;border: 1px solid #000000;text-align:left;font-family:tahoma;color:#000000;">
                    &nbsp Date Of Departure of <?php print_r($data['Name_Item']);?>: <?php print_r($data['Sent']);?><br>
                   &nbsp <span style="text-indent:2em"> Date Of Arrival of <?php print_r($data['Name_Item']);?>:
                        <?php print_r($data['Delivery']);?></span></br>
                    &nbsp <span style="text-indent:2em"> <?php print_r($data['Name_Item']);?> Destination:
                        <?php print_r($data['Destination']);?></span><br></td>
            </tr>
        </table>

        <?php 
    
    ?>

        <table>
            <tr>
                <td
                    style="height:10px;width:700px;background-color:#00b33c;border: 1px solid #00b33c;text-align:left;font-family:tahoma;color:#000000;text-indent:2em;">
                    Way Bill Payment Information:</td>
                <td
                    style="height:10px;width:600px;background-color:#00b33c;border: 1px solid #00b33c;text-align:left;font-family:tahoma;color:#000000;text-indent:2em;">
                    Payment Of Customs Registraion Fee Where Applicable:
                </td>



            </tr>


            <tr>
                <td
                    style="height:10px;width:700px;background-color:#f5f5f0;border: 1px solid #000000;text-align:left;font-family:tahoma;color:#000000;">
                    &nbsp  Type Of Payment: <?php print_r($data['Type']);?><br>
                    &nbsp  <span style="text-indent:2em"> Amount To Be
                        Paid:<?php print_r($data['Current']);?> <?php print_r($data['Amount']);?></span></br>
                    &nbsp  <span style="text-indent:2em"> Status Of Payment:
                        <?php print_r($data['Status']);?></span></td>
                <td
                    style="height:10px;width:700px;background-color:#f5f5f0;border: 1px solid #000000;text-align:left;font-family:tahoma;color:#000000;">
                    &nbsp  Payment Destination of <?php print_r($data['Name_Item']);?>: <?php print_r($data['Destination']);?><br>
                </td>

            </tr>

        </table>
        <table>
            <tr>
                <td
                    style="height:10px;width:700px;background-color:#00b33c;border: 1px solid #00b33c;text-align:left;font-family:tahoma;color:#000000;text-indent:2em;">
                    Terms and Conditions:</td>
                <td
                    style="height:10px;width:600px;background-color:#00b33c;border: 1px solid #00b33c;text-align:left;font-family:tahoma;color:#000000;text-indent:2em;">
                    Official Company Authorization And Seal:</td>
            </tr>
            <tr>
                <td
                    style="height:10px;width:700px;background-color:#f5f5f0;border: 1px solid #000000;text-align:left;font-family:tahoma;color:#000000;text-indent:2em;">
                    The terms and conditions of Carrier’s applicable tariff are incorporated herein, including but not
                    limited to the terms and conditions relating to demurrage and detention.Carrier’s
                    standard tariff can be accessed online at <a href="https://gent-wrld.com/"
                        style="text-decoration:none"> Gent World Express </a>.
                </td>
                <td
                    style="height:10px;width:700px;background-color:#f5f5f0;border: 1px solid #000000;text-align:left;font-family:tahoma;color:#000000;text-indent:2em;">
                    <img src="assets/img/globs-log.png" style="width:30%">
                    &nbsp &nbsp &nbsp <span style="text-indent:2em"> &nbsp &nbsp <img src="assets/img/signture.png"
                            style="width:50%"></span></br>
                </td>
            </tr>
        </table>
    </table>
    <?php	
        }
    
    }	
    ?>


    <div style="height:50px;"></div>

    <script>
    (function() {
        window.print();
    })();
    </script>



</body>

</html>