<?php
session_start();
$dbtype = "root";
require("includes/dbconnect.php");
require("includes/config.php");
require("includes/function.php");

ini_set('display_errors', 1);
error_reporting(E_ERROR);

$zdir = $dbname;
$zcomp = 1;
$zdbroot = $zdir;
$focusfield = "user";

$addflag = '';

$username = $_SESSION['username_customer'];

$zdb = $_SESSION["zdbyear"];
// browse($zdb);
mysqli_select_db($conn, $zdb);

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

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Shipment Status</title>

    <link href="https://cdn.jsdelivr.net/npm/select2@4.1.0-rc.0/dist/css/select2.min.css" rel="stylesheet" />
    <link href="MyStyle/listing.css" rel="stylesheet" type="text/css">

    <script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/select2@4.1.0-rc.0/dist/js/select2.min.js"></script>

    <!-- JS File For Listing -->
    <script src="js/listing.js?a=<?= mt_rand() ?>" type="text/javascript"></script>

    <!-- JS File For Menu Listing -->
    <script src="js/menulisting.js?b=<?= mt_rand() ?>" type="text/javascript"></script>
</head>

<body>
    <nav>
        <div class="navbar-brand">Shipment Status</div>
        <div class="hamburger" onclick="toggleMenu()">
            <div></div>
            <div></div>
            <div></div>
        </div>

        <ul class="menu">
            <li><a href="shipmentstatus.php" target="contentFrame">Shipment Status</a></li>
            <li class="menu-item" onclick="toggleDropdown(this)">
                <a href="#" class="value">
                    <svg data-name="Layer 2" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16">
                        <path
                            d="m1.5 13v1a.5.5 0 0 0 .3379.4731 18.9718 18.9718 0 0 0 6.1621 1.0269 18.9629 18.9629 0 0 0 6.1621-1.0269.5.5 0 0 0 .3379-.4731v-1a6.5083 6.5083 0 0 0 -4.461-6.1676 3.5 3.5 0 1 0 -4.078 0 6.5083 6.5083 0 0 0 -4.461 6.1676zm4-9a2.5 2.5 0 1 1 2.5 2.5 2.5026 2.5026 0 0 1 -2.5-2.5zm2.5 3.5a5.5066 5.5066 0 0 1 5.5 5.5v.6392a18.08 18.08 0 0 1 -11 0v-.6392a5.5066 5.5066 0 0 1 5.5-5.5z"
                            fill="#7D8590"></path>
                    </svg> <?= strtoupper($username) ?> </a>
                <div class="dropdownsk">
                    <a href="#">Subscription</a>
                    <a href="logout.php">Logout</a>
                </div>
            </li>
        </ul>
    </nav>

    <!-- Iframe container -->
    <div id="iframe-container">
        <iframe name="contentFrame" src="shipmentstatus1.php" frameborder="0"></iframe>
    </div>


</body>

</html>