goiintra/public_html/include/top.20250619.php

84 lines
3.4 KiB
PHP

<?
//require_once getenv("DOCUMENT_ROOT")."/lib/Mobile_Detect.php";
//$detect = new Mobile_Detect;
?>
<body>
<!-- ======= Header ======= -->
<header id="header" class="header fixed-top d-flex align-items-center">
<div class="container d-flex align-items-center justify-content-between">
<a href="/index_intranet.php" class="logo d-flex align-items-center me-auto me-lg-0">
<img src="assets/img/green-oil-logo-dark.jpg" >
</a>
<nav id="navbar" class="navbar">
<ul>
<? if ($_SESSION['ss_LEVEL'] == 1 || $_SESSION['ss_LEVEL'] == 5 || $_SESSION['ss_LEVEL'] == 9) { ?>
<li><a href="/index_intranet.php?view=forecast">FORECAST</a></li>
<? } ?>
<!--li><a href="/index_intranet.php?view=drzone_list">DRZONE</a></li-->
<? if ($_SESSION['ss_LEVEL'] != 7) { ?>
<li><a href="/index_intranet.php?view=order_list">ORDER</a></li>
<? } ?>
<? if ($_SESSION['ss_LEVEL'] == 1 || $_SESSION['ss_LEVEL'] == 5 || $_SESSION['ss_LEVEL'] == 9) { ?>
<li><a href="/index_intranet.php?view=map">MAP</a></li>
<? } ?>
<li><a href="/index_intranet.php?view=customer_list">CUSTOMER</a></li>
<li><a href="/index_intranet.php?view=oilhistory_list">OIL HISTORY</a></li>
<li><a href="/index_intranet.php?view=receipt_list">RECEIPT</a></li>
<? if ($_SESSION['ss_LEVEL'] == 1 || $_SESSION['ss_LEVEL'] == 5 || $_SESSION['ss_LEVEL'] == 6 || $_SESSION['ss_LEVEL'] == 7) { ?>
<li class="dropdown">
<a href="#"><span>EXPORT</span> <i class="bi bi-chevron-down dropdown-indicator"></i></a>
<ul>
<li><a href="/index_intranet.php?view=export_customer">CUSTOMER DATA</a></li>
<li><a href="/index_intranet.php?view=export_oilhistory">OIL HISTORY DATA</a></li>
</ul>
</li>
<? } ?>
<li class="dropdown">
<a href="#"><span>REPORT</span> <i class="bi bi-chevron-down dropdown-indicator"></i></a>
<ul>
<li><a href="/index_intranet.php?view=report_expense">EXPENSE</a></li>
<li><a href="/index_intranet.php?view=report_yearly">YEARLY</a></li>
<li><a href="/index_intranet.php?view=report_monthly">MONTHLY</a></li>
<li><a href="/index_intranet.php?view=report_daily">DAILY</a></li>
<!--li><a href="#">ACCOUNT</a></li-->
</ul>
</li>
<? if ($_SESSION['ss_LEVEL'] == 1 || $_SESSION['ss_LEVEL'] == 5) { ?>
<li class="dropdown">
<a href="#"><span>CONFIGURATION</span> <i class="bi bi-chevron-down dropdown-indicator"></i></a>
<ul>
<li><a href="/index_intranet.php?view=member_list">MEMBER</a></li>
<li><a href="/index_intranet.php?view=configure">CONFIGURATION</a></li>
</ul>
</li>
<? } ?>
</ul>
</nav><!-- .navbar -->
<? if ($_SESSION['ss_LOGIN'] == 1) { ?>
<a class="txt-user" data-toggle="modal" data-target="#member-detail-modal" style="cursor:pointer;">User: <span class="txt-user-name"><?=$_SESSION["ss_NAME"]?></span></a>
<a class="txt-logout" href="/lib/login_process.php?action=logout">Logout</a>
<? } ?>
<i class="mobile-nav-toggle mobile-nav-show bi bi-list"></i>
<i class="mobile-nav-toggle mobile-nav-hide d-none bi bi-x"></i>
</div>
</header><!-- End Header -->