<!DOCTYPE html>
<?php
$nobukti = $this->session->userdata('nobukti');
$torder = 0;
$ord = $this->db->query("select sum(qty) as torder from tbl_belanja_detail where nobukti='$nobukti';");
if ($ord->num_rows() > 0) {
    $ordd = $ord->row_array();
    $torder = $ordd['torder'];
    if ($torder == null) {
        $torder = 0;
    }
}
?>
<html>

<head>
    <meta http-equiv="content-type" content="text/html;charset=iso-8859-1" />
    <meta name="keywords" content="Djoedes by enambelasapp.my.id">
    <meta name="author" content="Suroto">
    <meta name="description" content="Djoedes by enambelasapp.my.id">
    <meta name="viewport" content="width=device-width initial-scale=1.0 maximum-scale=1.0 user-scalable=yes" />

    <title>Tracker</title>
    <link href="<?php echo base_url() . 'assets/img/logo.png' ?>" rel="shortcut icon" type="image/x-icon">

    <link type="text/css" rel="stylesheet" href="<?php echo base_url() . 'mobile/css/jquery.mmenu.all.css' ?>" />
    <link type="text/css" rel="stylesheet" href="<?php echo base_url() . 'mobile/css/style.css' ?>" />

    <link rel="apple-touch-icon" href="img/apple-touch-icon.png">
    <link rel="apple-touch-startup-image" href="img/apple-touch-startup-image.png">

    <script type="text/javascript" src="<?php echo base_url() . 'mobile/js/jquery.min.js' ?>"></script>
    <script type="text/javascript" src="<?php echo base_url() . 'mobile/js/jquery.mmenu.min.all.js' ?>"></script>
    <script type="text/javascript" src="<?php echo base_url() . 'mobile/js/gmap3.min.js' ?>"></script>
    <script type="text/javascript" src="<?php echo base_url() . 'mobile/js/o-script.js' ?>"></script>

</head>

<body class="o-page">
    <div id="page">
        <div id="header">
            <div class="header-content">
                <a href="#menu" class="p-link-home"><i class="fa fa-bars"></i></a>
                <a href="javascript:history.back();" class="p-link-back"><i class="fa fa-arrow-left"></i></a>
            </div>
        </div>
        <div class="bannerPane banner-bg">
            <div class="overlay"></div>
            <div class="s-banner-content">
                <i class="fa fa-crosshairs"></i> Tracker
            </div>
        </div>
        <!-- MAP -->

        <div id="content">

            <?php echo $this->session->flashdata('msg'); ?>

            <form class="contactForm" action="<?php echo base_url() . 'mobile/tracker/tracking' ?>" method="post">

                <input type="text" name="no_invoice" placeholder="Masukan No Invoice Anda" required>

                <button type="submit" class="o-buttons red" style="border:none;height:38px;width:100%;margin-left:0px;"><i class="fa fa-crosshairs"></i> Lacak Pemesanan</button>
            </form>
            <p>Masukan No Invoice Anda dan klik Tombol Lacak Pemesanan Untuk melacak status pemesanan Anda.</p>

        </div>

        <!--<div class="subFooter">Copyright 2013. All rights reserved.</div>-->

        <!-- Menu navigation -->
        <nav id="menu">
            <ul>
                <li class="Selected">
                    <a href="#close">
                        <i class="fa fa-times-circle"></i>
                    </a>
                </li>
                <li>
                    <a href="<?php echo base_url() . 'mobile/menu/allmenu' ?>">
                        <i class="fa fa-home"></i>Home
                    </a>
                </li>
                <li>
                    <a href="<?php echo base_url() . 'mobile/menu/belanja' ?>">
                        <i class="fa fa-shopping-cart"></i>Keranjang Belanja (<?= $torder; ?>)
                    </a>
                </li>


                <li>
                    <a href="<?php echo base_url() . 'mobile/tracker' ?>">
                        <i class="fa fa-crosshairs"></i>Tracker
                    </a>
                </li>
                <li>
                    <a href="<?php echo base_url() . 'mobile/gallery' ?>">
                        <i class="fa fa-camera-retro"></i>Gallery
                    </a>
                </li>


                <?php if ($this->session->userdata('online') == TRUE) : ?>
                    <li>
                        <a href="<?php echo base_url() . 'mobile/konfirmasi' ?>">
                            <i class="fa fa-exchange"></i>Konfirmasi
                        </a>
                    </li>

                    <li>
                        <a href="<?php echo base_url() . 'mobile/myfood' ?>">
                            <i class="fa fa-cutlery"></i>My Food
                        </a>
                    </li>

                    <li>
                        <a href="<?php echo base_url() . 'mobile/member/logout' ?>">
                            <i class="fa fa-sign-out"></i>Logout
                        </a>
                    </li>
                <?php else : ?>
                    <li>
                        <a href="<?php echo base_url() . 'mobile/member' ?>">
                            <i class="fa fa-sign-in"></i>Login
                        </a>
                    </li>
                <?php endif; ?>
            </ul>

        </nav>

    </div>
</body>

</html>