<?php
session_start();
?>

<div class="sidebar-wrapper">
    <div class="logo">
        <img src="/assets/img/logo.jpg" alt="logo" width="45%" style="display:block;margin:auto;"/>
        <a href="#" class="simple-text">
            <b>KPDNHEP</b>
        </a>
    </div>

    <ul class="nav nav-list" id="sidemenu">
        <li class="active" id="app-menu-001">
            <a href="#">
                <i class="ti-stats-up"></i>
                <p>Dashboard</p>
            </a>
        </li>

        <!-- PENGUATKUASAAN -->
        <li style="background-color:#EAEAEA;">
            <a href="#" aria-disabled="disabled">
                <i class="ti-comment-alt"></i>
                <p>PENGUATKUASAAN</p>
            </a>
        </li>                
        <li id="app-menu-101">
            <a href="#">
                <i class="ti-angle-right" style="font-size:12px;"></i>
                <p>&nbsp;Kes Baru</p>
            </a>
        </li>  
        <li id="app-menu-102">
            <a href="#">
                <i class="ti-angle-right" style="font-size:12px;"></i>
                <p>&nbsp;Kes Dalam Siasatan</p>
            </a>
        </li>  
        <li  id="app-menu-103">
            <a href="#">
                <i class="ti-angle-right" style="font-size:12px;"></i>
                <p>&nbsp;Kes Selesai</p>
            </a>
        </li>  
        <li id="app-menu-104">
            <a href="#">
                <i class="ti-angle-right" style="font-size:12px;"></i>
                <p>&nbsp;Kes Tiada Tindakan</p>
            </a>
        </li>  
        <!--  
        <li id="app-menu-105">
            <a href="#">
                <i class="ti-angle-right" style="font-size:12px;"></i>
                <p>&nbsp;Carian Kes</p>
            </a>
        </li> 
        <li id="app-menu-106">
            <a href="#">
                <i class="ti-angle-right" style="font-size:12px;"></i>
                <p>&nbsp;Carian Anggota</p>
            </a>
        </li>   
        -->                           

        <!-- PENGILANG -->
        <li style="background-color:#EAEAEA;">
            <a href="#" aria-disabled="disabled">
                <i class="ti-home"></i>
                <p>PENGILANG</p>
            </a>
        </li>  
        <!--              
        <li>
            <a href="table_sahmanu.php">
                <i class="ti-angle-right" style="font-size:12px;"></i>
                <p>&nbsp;Sah Permohonan</p>
            </a>
        </li>   
        -->             
        <li id="app-menu-201">
            <a href="#">
                <i class="ti-angle-right" style="font-size:12px;"></i>
                <p>&nbsp;Senarai Pengilang</p>
            </a>
        </li> 

        <!-- PRODUK -->
        <li style="background-color:#EAEAEA;">
            <a href="#" aria-disabled="disabled">
                <i class="ti-package"></i>
                <p>PRODUK</p>
            </a>
        </li>   
        <!--             
        <li>
            <a href="#">
                <i class="ti-angle-right" style="font-size:12px;"></i>
                <p>&nbsp;Sah Produk</p>
            </a>
        </li>  
        -->              
        <li id="app-menu-301">
            <a href="#">
                <i class="ti-angle-right" style="font-size:12px;"></i>
                <p>&nbsp;Senarai Produk</p>
            </a>
        </li>                


        <!-- TADBIR -->
        <li style="background-color:#EAEAEA;">
            <a href="#" aria-disabled="disabled">
                <i class="ti-settings"></i>
                <p>TADBIR</p>
            </a>
        </li>                
        <li>
            <a href="#">
                <i class="ti-angle-right" style="font-size:12px;"></i>
                <p>&nbsp;Pengguna</p>
            </a>
        </li>                
        <li>
            <a href="#">
                <i class="ti-angle-right" style="font-size:12px;"></i>
                <p>&nbsp;Settings</p>
            </a>
        </li>                 

    </ul>
</div>

    <!--   Core JS Files   -->
    <script src="/assets/js/jquery-1.10.2.js" type="text/javascript"></script>
	<script src="/assets/js/bootstrap.min.js" type="text/javascript"></script>

	<!--  Checkbox, Radio & Switch Plugins -->
	<script src="/assets/js/bootstrap-checkbox-radio.js"></script>

    <!--  Notifications Plugin    -->
    <script src="/assets/js/bootstrap-notify.js"></script>

    <!-- Paper Dashboard Core javascript and methods for Demo purpose -->
	<script src="/assets/js/paper-dashboard.js"></script>

<script type="text/javascript">
    $(document).ready(function(){

		//pageload
        setPage(this, 'Dashboard', './dashboard.php');
		
		$('.nav-list').on('click', 'li', function() {
			$('.nav-list li.active').removeClass('active');
			$(this).addClass('active');
		});	        

		//-------- DASHBOARD
		$("#app-menu-001").click(function(){
			//alert("#app-menu-101");
            setPage(this, 'Dashboard', './dashboard.php');
        });        

        //-------- PENGUATKUASAAN
        $("#app-menu-101").click(function(){
            setPage(this, 'Kes Baru', './enc001.php')
        });  
        $("#app-menu-102").click(function(){
            setPage(this, 'Kes Dalam Siasatan', './enc002.php')
        }); 
        $("#app-menu-103").click(function(){
            setPage(this, 'Kes Selesai', './enc003.php')
        });         
        $("#app-menu-104").click(function(){
            setPage(this, 'Kes Tiada Tindakan', './enc004.php')
        });         
        $("#app-menu-105").click(function(){
            setPage(this, 'Carian Kes', './enc005.php')
        });         
        $("#app-menu-106").click(function(){
            setPage(this, 'Carian Anggota', './enc006.php')
        });   

        $("#app-menu-201").click(function(){
            setPage(this, 'Senarai Pengilang', './table_manu.php')
        });      

        $("#app-menu-301").click(function(){
            //alert("Senarai Produk");
            setPage(this, 'Senarai Produk', './list_produk.php?id=M00001')
        });                      
        
    });
</script>
