<style>a { text-decoration:none;}
</style>
<div class="easyui-panel" style="padding:1px; border:0px solid #F39C12;">
<ul class="easyui-tree">
	<li><a href='?page=Halaman-Utama'><span>Beranda</span></a></li>
	<?php if($user_level==1 || $user_level==5 || $user_level==7 || $user_level==9){ ?>
	<li data-options="state:'closed'"><span>Master</span>
		<ul>
			<?php if($user_level==1 || $user_level==9){?>
			<li><a href='?page=Add-Profil'><span>Profil Perusahaan</span></a></li>
			<?php }if($user_level==1 || $user_level==9 || $user_level==11){?>
			<li><a href='?page=Data-Barang'><span>Data Barang</span></a></li>
			<?php } if($user_level==1 || $user_level==7 || $user_level==9 || $user_level==11){?>
			<li><a href='?page=Data-Pemasok'><span>Data Pemasok</span></a></li>
			<li><a href='?page=Data-Penerima'><span>Data Penerima</span></a></li> 
			<!--<li><a href='?page=Data-Rate'><span>Master Rate</span></a></li>-->           
			<?php } if($user_level==1 || $user_level==5 || $user_level==9) { ?>
			<li><span>Data User</span>
				<ul>
					<?php if($user_level==1 || $user_level==9) { ?>
					<li><a href='?page=Data-User'><span>Data User</span></a></li>
					<?php } if($user_level==1 || $user_level==5 || $user_level==9) { ?>
					<li><a href='?page=Data-Aktivitas-User'><span>Aktivitas User</span></a></li>
					<?php } if($user_level==1 || $user_level==9) {?>
					<li><a href='?page=Data-Status-User'><span>Status User</span></a></li>
					<?php } ?>
				</ul>
			</li>
            <?php } if($user_level==1 || $user_level==9){?>
			<li><a href="?page=Data-Penyesuaian"><span>Penyesuaian</span></a></li>
			<li><a href="?page=Data-Stock-Awal"><span>Saldo Awal</span></a></li>
            <li><a href="?page=Data-Unposting"><span>Unposting</span></a></li>
			<li><a href='?page=Data-Stock-Opname'><span>Closing Stock</span></a></li>
			<?php } ?>
		</ul>
	</li>
	<?php } if($user_level==1 || $user_level==9 || $user_level==10 || $user_level==8 || $user_level==11){?>
    <li data-options="state:'closed'"><span>Marketing/Sales</span>
    	<ul>a
			<li><a href='?page=Data-PO-Sales'><span>Data PO Penjualan</span></a></li>
			<li><a href='?page=List-PO-Sales'><span>List PO Penjualan</span></a></li>
        </ul>
    </li>
    <?php } if($user_level==1 || $user_level==8 || $user_level==9){?>
    <li data-options="state:'closed'"><span>Purchasing</span>
    	<ul>
        	<li><a href='?page=Data-Purchase-Order'><span>Data PO Pembelian</span></a></li>
			<li><a href='?page=List-Purchase-Order'><span>List PO Pembelian</span></a></li>
        </ul>
    </li>
	<?php } if($user_level==1 || $user_level==2 || $user_level==9){?>
    <li><span>Pemasukan/Pembelian</span>
    	<ul>
			<!--<li><a href='?page=Data-Pemasukan-LOKAL'><span>IN NON DOKUMEN</span></a></li>
        	<li><a href='?page=Data-Pemasukan-BC20'><span>IN BC 2.0</span></a></li>-->			
			<li><a href='?page=Data-Pemasukan-BC23'><span>IN BC 2.3</span></a></li>
			<li><a href='?page=Data-Pemasukan-BC262'><span>IN BC 2.6.2</span></a></li>
			<li><a href='?page=Data-Pemasukan-BC27'><span>IN BC 2.7</span></a></li>
			<li><a href='?page=Data-Pemasukan-BC40'><span>IN BC 4.0</span></a></li>
			<li><a href='?page=Data-Upload-Pemasukan'><span>IN UPLOAD</span></a></li>
			<li><a href='?page=Data-Konversi-External'><span>Kvr-Subkon ke PEB</span></a></li>
        </ul>
    </li>
    <?php } if($user_level==1 || $user_level==6 || $user_level==8 || $user_level==9){?>
    <li data-options="state:'closed'"><span>Gudang</span>
    	<ul>
			<li><a href='?page=Data-Terima-Barang'><span>Terima Barang</span></a></li>
			<li><a href='?page=Data-Stock-BhnBaku'><span>Stock Gudang</span></a></li> 
			<li><a href='?page=Data-TerimaPermintaan-Barang'><span>Permintaan Barang</span></a></li>
			<li><a href="?page=Data-Inc-Prod"><span>Transfer Produksi</span></a></li>
            <li><a href="?page=Data-Prod-Inc"><span>Return Produksi</span></a></li>
        </ul>
    </li>
    <?php } if($user_level==1 || $user_level==11 || $user_level==9){?>
    <li data-options="state:'closed'"><span>PPIC</span>
    	<ul>
            <li><a href='?page=Data-BOM'><span>BOM Produksi</span></a></li>
			<li><a href='?page=Data-BOM-FG'><span>BOM Finishing</span></a></li>			
        </ul>
    </li>
	<?php } if($user_level==1 || $user_level==3 || $user_level==9){?>
    <li data-options="state:'closed'"><span>Produksi</span>
    	<ul>
            <li><a href='?page=Data-Stock-WIP'><span>Stock Produksi</span></a></li>
			<!-- 5 digit -->
			<li><a href='?page=Data-Permintaan-Barang'><span>Permintaan Barang</span></a></li>
			<!--<li><a href='?page=Data-Laporan-WIP'><span>Proses Cutting</span></a></li>
            <li><a href='?page=Data-Work-Order'><span>Work Order BOM</span></a></li>
            <li><a href='?page=Data-Work-OrderM'><span>Work Order Manual</span></a></li>
			<li><a href='?page=Data-Work-OrderFG'><span>WO BOM Finishing</span></a></li>
			<li><a href='?page=Data-Work-OrderSC'><span>WO Manual Scrap</span></a></li>-->
			<!-- 2 digit -->
			<!--<li><a href='?page=Data-Laporan-WIP'><span>Lap. Material IP</span></a></li>
			<li><a href='?page=Data-Work-Order'><span>Work Order BOM</span></a></li>
            <li><a href='?page=Data-Work-OrderM'><span>Work Order Manual</span></a></li>
			<li><a href='?page=Data-Work-OrderFG'><span>WO BOM Finishing</span></a></li>
			<li><a href='?page=Data-Work-OrderSC'><span>WO Manual Scrap</span></a></li>-->
			<!-- yc tec -->
			<!--<li><a href='?page=Data-Laporan-WIP'><span>Lap. Material IP</span></a></li>
			<li><a href='?page=Data-Work-Order2'><span>Work Order</span></a></li>
			<li><a href='?page=Data-Work-OrderM'><span>Work Order Manual</span></a></li>
			<li><a href='?page=Data-Work-OrderFG'><span>WO BOM Finishing</span></a></li>
			<li><a href='?page=Data-Work-OrderSC'><span>WO Manual Scrap</span></a></li>
			<li><a href='?page=Data-Work-Order-Non-Bom'><span>WO Non BOM</span></a></li>-->
			<!-- taehang & hdi --> 
			<li><a href='?page=Data-Work-Order1'><span>Work Order BOM 1</span></a></li>            
			<li><a href='?page=Data-Work-Order2'><span>Work Order BOM 2</span></a></li>
			<li><a href='?page=Data-Work-OrderM'><span>Work Order Manual</span></a></li>
			<li><a href='?page=Data-Work-OrderFG'><span>WO BOM Finishing</span></a></li>
			<li><a href='?page=Data-Work-OrderSC'><span>WO Manual Scrap</span></a></li>
			<li><a href='?page=Data-Work-Order-Non-Bom'><span>WO Non BOM</span></a></li>	
			<!-- general -->
            <li><a href='?page=Data-Konversi-Barang'><span>Konversi Barang</span></a></li>
			<!--<li><a href='?page=Data-Konversi-Barang2'><span>Konversi Barang 2</span></a></li>
            <li><a href='?page=Data-Lap-Brgjadi'><span>Lap. Barang Jadi</span></a></li>-->
            <li><a href='?page=Data-Lap-Brgscrap'><span>Lap. Barang Scrap</span></a></li>
        </ul>
    </li>
	 <?php } if($user_level==1 || $user_level==9 || $user_level==12){?>
    <li data-options="state:'closed'"><span>Quality Control</span>
    	<ul>
			<li><a href="?page=Data-M-Konversi"><span>Master Konversi</span></a></li>
            <li><a href="?page=Data-Prod-Out"><span>Transfer Finishgoods</span></a></li>	
            <li><a href="?page=Data-Prod-OutS"><span>Transfer Scrap</span></a></li>
			<li><a href="?page=Data-Out-Prod"><span>Return FG/Scrap</span></a></li>
            <!--<li><a href="?page=Data-Out-ProdS"><span>Rtn Gdg Scrap</span></a></li>-->			
        </ul>
    </li>
    <?php } if($user_level==1 || $user_level==4 || $user_level==2 || $user_level==9){?>
    <li><span>Pengeluaran/Penjualan</span>
    	<ul>
			<li><a href='?page=Data-Stock-BrgJadi'><span>Stock FG & Scrap</span></a></li>
			<!-- Start HDI -->
			<!--<li><a href='?page=Data-EXBC'><span>Proses ExBC</span></a></li>
			<li><a href='?page=Data-Delivery'><span>Data Delivery</span></a></li>
			<li><a href='?page=Data-Kontrak'><span>Data Kontrak</span></a></li>-->
			<!-- End HDI -->
        	<li><a href='?page=Data-Pengeluaran-BC25'><span>OUT BC 2.5</span></a></li>
            <li><a href='?page=Data-Pengeluaran-BC261'><span>OUT BC 2.6.1</span></a></li>
            <li><a href='?page=Data-Pengeluaran-BC27'><span>OUT BC 2.7</span></a></li>
            <li><a href='?page=Data-Pengeluaran-BC30'><span>OUT BC 3.0</span></a></li>
			<li><a href='?page=Data-Pengeluaran-BC33'><span>OUT BC 3.3</span></a></li>
            <li><a href='?page=Data-Pengeluaran-BC41'><span>OUT BC 4.1</span></a></li>
			<li><a href='?page=Data-Pengeluaran-SCRAP'><span>OUT SCRAP</span></a></li>
			<li><a href='?page=Data-Upload-Pengeluaran'><span>OUT UPLOAD</span></a></li>            
    	</ul>
    </li>
    <?php } if($user_level==1 || $user_level==7){
     if($user_level==1){
	?>
    <li data-options="state:'closed'"><span>Akuntansi</span>
    <?php }else{?>
    <li><span>Akuntansi</span>
    <?php }?>
    	<ul>	
			<li><a href='?page=Data-Purchase-Order'><span>PO Purchasing</span></a></li> 
			<li><a href='?page=Data-PO-Sales'><span>PO Sales</span></a></li> 
			<li><a href='?page=Data-Stock-BhnBaku'><span>Stok Bhn Baku</span></a></li> 
			<li><a href='?page=Data-Stock-BrgModal'><span>Stok Brg Modal</span></a></li>  
            <li><a href='?page=Data-Stock-BrgJadi'><span>Stok Brg Jadi</span></a></li>
            <li><a href='?page=Data-Stock-BrgScrap'><span>Stok Brg Scrap</span></a></li> 		
            <li><a href='?page=Data-Currency'><span>M. Currency & Kurs</span></a></li>
			<li><a href='?page=Data-Master-Bank'><span>Master Bank</span></a></li>
            <li><a href='?page=Data-GL-Account'><span>Master COA</span></a></li>
			<li><a href='?page=Data-Closing-Acct'><span>Closing Acct</span></a></li>
            <li><a href='?page=Data-Temp-Pemasukan'><span>Inbox(Pemasukan)</span></a></li>
			<li><a href='?page=Data-Temp-Pengeluaran'><span>Outbox(Pengeluaran)</span></a></li>
			<li><a href='?page=Data-Jurnal-Ref'><span>Jurnal Umum BC</span></a></li>
            <li><a href='?page=Data-Transaksi-Jurnal'><span>Jurnal Umum</span></a></li>
			<li><a href='?page=Data-Laporan-Jurnal'><span>Laporan Jurnal</span></a></li>
			<li><a href='?page=Data-Buku-Besar'><span>Buku Besar</span></a></li>			
			<li><a href='?page=Data-Buku-Besar-Hutang'><span>Buku Besar Hutang</span></a></li>			
			<li><a href='?page=Data-Buku-Besar-Piutang'><span>Buku Besar Piutang</span></a></li>
			<li><a href='?page=Data-Penyusutan'><span>Aktiva Tetap</span></a></li>			
			<li><a href='?page=Data-HPP'><span>Harga Pokok Penjualan</span></a></li>
			<li><a href='?page=Data-Laba-Rugi'><span>Laba Rugi</span></a></li>
			<li><a href='?page=Data-Neraca'><span>Neraca</span></a></li>
			<li><a href='?page=Data-Neraca-Saldo'><span>Neraca Saldo</span></a></li>
    	</ul>
    </li>
    <?php } if($user_level==1 || $user_level==2 || $user_level==3 || $user_level==4 || $user_level==5 || $user_level==6 || $user_level==8 || $user_level==9 || $user_level==10 || $user_level==11 || $user_level==12){?>
    <li><span>Laporan</span>
    	<ul>
			<li><a href='?page=Data-Lap-Pemasukan'><span>Stock per Dokumen</span></a></li>
			<li><a href='?page=Data-Bln-Pemasukan'><span>Laporan Pemasukan</span></a></li>
            <li><a href='?page=Data-Bln-Pengeluaran'><span>Laporan Pengeluaran</span></a></li>
			<li><a href='?page=Data-Lap-WIP'><span>WIP</span></a></li>
			<li><a href='?page=Mutasi-Bahan-Baku'><span>Mutasi Bahan Baku</span></a></li>
			<li><a href='?page=Mutasi-Barang-Modal'><span>Mutasi Barang Modal</span></a></li>
			<li><a href='?page=Mutasi-Barang-Jadi'><span>Mutasi Barang Jadi</span></a></li>
			<li><a href='?page=Mutasi-Barang-Scrap'><span>Mutasi Brg. Scrap/ Sisa</span></a></li>
    	</ul>
    </li>
	<?php } ?>
	<li><a href='?page=Close'><span>Keluar</span></a></li>
</ul>
</div>