<?php
session_start();
require("includes/dbconnect.php");
include('includes/function.php');

$usertype = $_SESSION["usertype"];
$username = $_SESSION['username_customer'];
$zdb = $_SESSION["zdbyear"];

$src = "";
$action = isset($_GET["action"]) ? $_GET["action"] : "";

switch ($action) {

    ####################### EXPENSES ##########################

    case "shipmentstatus";
        $src = "shipmentstatus.php";
        break;

    case "changepass";
        $src = "changepass.php?mode=last";
        break;

    default:
        //        $head = "Home";
//        $src = "misdashboard.php";
//        if ($usertype == 1) {
//            $src = "misdashboard.php";
//        } else {
//            $src = "default.php";
//        }
        $src = "shipmentstatus.php";
}

include("includes/linkshead.php");
?>

<head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title></title>
    <meta name="description" content="Blueprint: Horizontal Slide Out Menu" />
    <meta name="keywords" content="horizontal, slide out, menu, navigation, responsive, javascript, images, grid" />
    <meta name="author" content="Codrops" />
    <link rel="shortcut icon" href="../favicon.ico">
    <link rel="stylesheet" type="text/css" href="menu/css/default.css" />
    <link rel="stylesheet" type="text/css" href="menu/css/component.css" />
    <script src="menu/js/modernizr.custom.js"></script>
    <style>
        .button-29 {
            align-items: center;
            appearance: none;
            background: transparent;
            border: 2px solid #a98467;
            border-radius: 6px;
            box-sizing: border-box;
            color: #a98467;
            cursor: pointer;
            display: inline-flex;
            font-family: "JetBrains Mono", monospace;
            height: 38px;
            width: 180px;
            justify-content: center;
            line-height: 1;
            list-style: none;
            overflow: hidden;
            padding-left: 16px;
            padding-right: 16px;
            position: relative;
            text-align: left;
            text-decoration: none;
            transition: box-shadow .15s, transform .15s;
            user-select: none;
            -webkit-user-select: none;
            touch-action: manipulation;
            white-space: nowrap;
            will-change: box-shadow, transform;
            font-size: 18px;
        }


        .button-29:hover {
            box-shadow: rgba(45, 35, 66, .4) 0 4px 8px, rgba(45, 35, 66, .3) 0 7px 13px -3px, #a98467 0 -3px 0 inset;
            transform: translateY(-2px);
        }

        .button-29:active {
            box-shadow: #a98467 0 3px 7px inset;
            transform: translateY(2px);
        }

        .cbp-hsmenu-wrapper ul {
            margin-left: 0px;
        }
    </style>
</head>

<body>
    <div class="main">
        <nav class="cbp-hsmenu-wrapper" id="cbp-hsmenu-wrapper">
            <div class="cbp-hsinner">
                <ul class="cbp-hsmenu" style="margin-left: 0px;max-width: 250em;width:100%;">

                    <li class="text-left" style="margin-top: 10px;"><b><u><a href="mainmenu.php" style="color:#5f2b54; font-size:20px">GALAXY CARGO</a></u></b></li>


                    <li class="dropdown settings" style="float:right;margin-right:50px">
                        <a class="dropdown-toggle" data-toggle="dropdown" href="#">
                            <b><? echo $username ?></b>
                        </a>
                        <ul class="dropdown-menu">
                            <!-- <li><a href="changepass.php?mode=last"><i class="fa fa-lock"></i>Password Maintainance</a></li> -->
                            <li><a href="?action=changepass"><i class="fa fa-lock"></i>Password Maintainance</a></li>
                            <li><a href="logout.php"><i class="fa fa-power-off"></i> Logout</a></li>
                        </ul>
                    </li>
                </ul>
            </div>
        </nav>
    </div>
    <div class="">
        <iframe src="<?php echo $src; ?>" name="frame1" class="frame1" style="width: 100%; height:5000px;"
            frameBorder="0" scrolling="no"></iframe>
    </div>
    <script src="menu/js/cbpHorizontalSlideOutMenu.min.js"></script>
    <script>
        var menu = new cbpHorizontalSlideOutMenu(document.getElementById('cbp-hsmenu-wrapper'));
    </script>
</body>

</html>