<html lang="en">
<title>W3.CSS Template</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Lato">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<style>
body {font-family: "Lato", sans-serif}
.mySlides {display: none}
</style>			
<div class="w3-top">
<?php
if (isset($_SESSION["UserID"]))
{
	$level=$_SESSION["Level"];
	$q="SELECT * FROM user WHERE id='". $_SESSION["UserID"] ."'";
	$res=mysqli_query($conn,$q);
	$dataUser=mysqli_fetch_assoc($res);
	
///////////////////////////////////////////////////ini SPV QC/ENG/////////////////////////////////////////////////////////////
	if ($level=="1008")
		{
?>
  <div class="w3-bar w3-black w3-card">
    <a class="w3-bar-item w3-button w3-padding-large w3-hide-medium w3-hide-large w3-right" href="javascript:void(0)" onclick="myFunction()" title="Toggle Navigation Menu"><i class="fa fa-bars"></i></a>
    <a href="index2.php" class="w3-bar-item w3-button fa fa-home w3-xxlarge"></a>
    <a href="halamanFiturJob.php" class="w3-bar-item w3-button fa fa-briefcase w3-xxlarge"></a>
    
	<div class="w3-dropdown-hover w3-hide-small">
      <button class="w3-padding-large w3-button" title="More">SURAT USULAN<i class="fa fa-caret-down"></i></button>     
      <div class="w3-dropdown-content w3-bar-block w3-card-4">
        <a href="spMutasi.php" class="w3-bar-item w3-button">Mutasi</a>
        <a href="spDemosi.php" class="w3-bar-item w3-button">Demosi</a>
		<a href="spPromosi.php" class="w3-bar-item w3-button">Promosi</a>
        <a href="spKenaikanGaji.php" class="w3-bar-item w3-button">Kenaikan Gaji</a>
      </div>
    </div>
		<div class="w3-dropdown-hover w3-hide-small">
      <button class="w3-padding-large w3-button" title="More">PR<i class="fa fa-caret-down"></i></button>     
      <div class="w3-dropdown-content w3-bar-block w3-card-4">
        <a href="tambahPengajuanPurchasing.php" class="w3-bar-item w3-button">Tambah PR</a>
        <a href="historyPrAll.php" class="w3-bar-item w3-button">History PR</a>
      </div>
    </div>
		<div class="w3-dropdown-hover w3-hide-small">
      <button class="w3-padding-large w3-button" title="More">PR acc<i class="fa fa-caret-down"></i></button>     
      <div class="w3-dropdown-content w3-bar-block w3-card-4">
        <a href="persetujuanPrSupervisor.php" class="w3-bar-item w3-button">Persetujuan PR</a>
        <a href="prDisetujuiSupervisor.php" class="w3-bar-item w3-button">PR Disetujui</a>
		<a href="prDitolakSupervisor.php" class="w3-bar-item w3-button">PR Ditolak</a>
        <a href="historyPrAllSupervisor.php" class="w3-bar-item w3-button">History ALL PR</a>
      </div>
    </div>
	<a href="tambahDailyReport.php" class="w3-bar-item w3-button w3-padding-large w3-hide-small">DAILY REPORT</a>
    <a href="javascript:void(0)" class="w3-padding-large w3-hover-red w3-hide-small w3-right"><i class="fa fa-search"></i></a>
	<?php

				 //echo $q;
					if (isset($_SESSION["UserID"]))
					{
						$q="SELECT * FROM user WHERE id='". $_SESSION["UserID"] ."'";
						$res=mysqli_query($conn,$q);
						$dataUser=mysqli_fetch_assoc($res);
						
						
						
						$level="";
						if ($dataUser["level"]=="1")
						{
							$level="ADMIN";
						}
						else if ($dataUser["level"]=="1008")
						{
							$level="SPV. QC / ENG";
						}
						else {
							$level="KARYAWAN";
						}

					}
					
				 ?>
				 <a href="logout.php" class="w3-bar-item w3-button fa fa-sign-out w3-padding-large w3-hide-small w3-right"></a>
				 <a class="fa fa-user w3-padding-large w3-hide-small w3-right"><?php echo " ".$dataUser["nama"].", ".$level;?></a>
  </div>
<?php
      }
}
?>
<?php
if (isset($_SESSION["UserID"]))
{
	$level=$_SESSION["Level"];
	$q="SELECT * FROM user WHERE id='". $_SESSION["UserID"] ."'";
	$res=mysqli_query($conn,$q);
	$dataUser=mysqli_fetch_assoc($res);
	
///////////////////////////////////////////////////ini HSE IT SYSTEM/////////////////////////////////////////////////////////////
	if ($level=="2")
		{
?>
  <div class="w3-bar w3-black w3-card">
    <a class="w3-bar-item w3-button w3-padding-large w3-hide-medium w3-hide-large w3-right" href="javascript:void(0)" onclick="myFunction()" title="Toggle Navigation Menu"><i class="fa fa-bars"></i></a>
    <a href="index2.php" class="w3-bar-item w3-button fa fa-home w3-xxlarge"></a>

	<div class="w3-dropdown-hover w3-hide-small">
      <button class="w3-padding-large w3-button" title="More">SURAT USULAN<i class="fa fa-caret-down"></i></button>     
      <div class="w3-dropdown-content w3-bar-block w3-card-4">
        <a href="spMutasi.php" class="w3-bar-item w3-button">Mutasi</a>
        <a href="spDemosi.php" class="w3-bar-item w3-button">Demosi</a>
		<a href="spPromosi.php" class="w3-bar-item w3-button">Promosi</a>
        <a href="spKenaikanGaji.php" class="w3-bar-item w3-button">Kenaikan Gaji</a>
      </div>
    </div>
		<div class="w3-dropdown-hover w3-hide-small">
      <button class="w3-padding-large w3-button" title="More">PR<i class="fa fa-caret-down"></i></button>     
      <div class="w3-dropdown-content w3-bar-block w3-card-4">
        <a href="tambahPengajuanPurchasing.php" class="w3-bar-item w3-button">Tambah PR</a>
        <a href="historyPrAll.php" class="w3-bar-item w3-button">History PR</a>
      </div>
    </div>


    <a href="javascript:void(0)" class="w3-padding-large w3-hover-red w3-hide-small w3-right"><i class="fa fa-search"></i></a>
	<?php

				 //echo $q;
					if (isset($_SESSION["UserID"]))
					{
						$q="SELECT * FROM user WHERE id='". $_SESSION["UserID"] ."'";
						$res=mysqli_query($conn,$q);
						$dataUser=mysqli_fetch_assoc($res);
						
						
						
						$level="";
						if ($dataUser["level"]=="1")
						{
							$level="ADMIN";
						}
						else if ($dataUser["level"]=="2")
						{
							$level="HSE IT System";
						}
						else {
							$level="KARYAWAN";
						}
						
					}
					
				 ?>
				<a href="logout.php" class="w3-bar-item w3-button fa fa-sign-out w3-padding-large w3-hide-small w3-right"></a>
				 <a class="fa fa-user w3-padding-large w3-hide-small w3-right"><?php echo " ".$dataUser["nama"].", ".$level;?></a>
				 
  </div>
<?php
      }
}
?>
<?php
if (isset($_SESSION["UserID"]))
{
	$level=$_SESSION["Level"];
	$q="SELECT * FROM user WHERE id='". $_SESSION["UserID"] ."'";
	$res=mysqli_query($conn,$q);
	$dataUser=mysqli_fetch_assoc($res);
	
///////////////////////////////////////////////////ini HC&GA/////////////////////////////////////////////////////////////
	if ($level=="3")
		{
?>
  <div class="w3-bar w3-black w3-card">
    <a class="w3-bar-item w3-button w3-padding-large w3-hide-medium w3-hide-large w3-right" href="javascript:void(0)" onclick="myFunction()" title="Toggle Navigation Menu"><i class="fa fa-bars"></i></a>
    <a href="index2.php" class="w3-bar-item w3-button fa fa-home w3-xxlarge"></a>
	<a href="user.php" class="w3-bar-item w3-button w3-padding-large w3-hide-small">USER</a>

    <div class="w3-dropdown-hover w3-hide-small">
      <button class="w3-padding-large w3-button" title="More">KARYAWAN <i class="fa fa-caret-down"></i></button>     
      <div class="w3-dropdown-content w3-bar-block w3-card-4">
	  	<a href="user.php" class="w3-bar-item w3-button">USER</a>
        <a href="tambahkaryawan.php" class="w3-bar-item w3-button">Tambah Karyawan</a>
        <a href="datakaryawan.php" class="w3-bar-item w3-button">Data Karyawan</a>
        <a href="datagajikaryawan.php" class="w3-bar-item w3-button">Data Gaji Karyawan</a>
		<a href="datanomorrekeningkaryawan.php" class="w3-bar-item w3-button">No Rekening Karyawan</a>
		<a href="datanomorbpjs.php" class="w3-bar-item w3-button">No BPJS Kesehatan Karyawan</a>
		<a href="datanomorbpjstenagakerja.php" class="w3-bar-item w3-button">No BPJS Tenaga Kerja</a>
		<a href="datanomorbpjpensiun.php" class="w3-bar-item w3-button">No Jaminan Pensiun</a>
		<a href="dataanak.php" class="w3-bar-item w3-button">Data Anak</a>
      </div>
    </div>
	 <div class="w3-dropdown-hover w3-hide-small">
      <button class="w3-padding-large w3-button" title="More">ABSENSI <i class="fa fa-caret-down"></i></button>     
      <div class="w3-dropdown-content w3-bar-block w3-card-4">
        <a href="dataabsensihariini.php" class="w3-bar-item w3-button">Absesnsi Hari ini</a>
        <a href="dataabsensi.php" class="w3-bar-item w3-button">Keterlambatan</a>
      </div>
    </div>
		 <div class="w3-dropdown-hover w3-hide-small">
      <button class="w3-padding-large w3-button" title="More">SUARAT KEPUTUSAN <i class="fa fa-caret-down"></i></button>     
      <div class="w3-dropdown-content w3-bar-block w3-card-4">
        <a href="suratSkUsulanMutasi.php" class="w3-bar-item w3-button">+ Usulan Mutasi</a>
        <a href="monitoringUsulanMutasi.php" class="w3-bar-item w3-button">- Monitoring Mutasi</a>
		<a href="suratSkUsulanDemosi.php" class="w3-bar-item w3-button">+ Usulan Demosi</a>
        <a href="monitoringUsulanDemosi.php" class="w3-bar-item w3-button">- Monitoring Demosi</a>
		<a href="suratSkUsulanPromosi.php" class="w3-bar-item w3-button">+ Usulan Promosi</a>
        <a href="monitoringUsulanPromosi.php" class="w3-bar-item w3-button">- Monitoring Promosi</a>
		<a href="suratSkUsulanKenaikanGaji.php" class="w3-bar-item w3-button">+ Usulan Kenaikan Gaji</a>
        <a href="monitoringUsulanNaikGaji.php" class="w3-bar-item w3-button">-Monitoring Kenaikan Gaji</a>
      </div>
    </div>

	 <div class="w3-dropdown-hover w3-hide-small">
      <button class="w3-padding-large w3-button" title="More">CUTI <i class="fa fa-caret-down"></i></button>     
      <div class="w3-dropdown-content w3-bar-block w3-card-4">
        <a href="cuti.php" class="w3-bar-item w3-button">Permohonan Cuti</a>
        <a href="monitoringcuti.php" class="w3-bar-item w3-button">Monitoring Cuti</a>
		<a href="batascuti.php" class="w3-bar-item w3-button">Batas Cuti</a>
        <a href="historicuti.php" class="w3-bar-item w3-button">Monitoring Cuti</a>
      </div>
    </div>
	<div class="w3-dropdown-hover w3-hide-small">
      <button class="w3-padding-large w3-button" title="More">PAYROL <i class="fa fa-caret-down"></i></button>     
      <div class="w3-dropdown-content w3-bar-block w3-card-4">
        <a href="karyawantetap.php" class="w3-bar-item w3-button">Karyawan Tetap</a>
        <a href="datagajikaryawan.php" class="w3-bar-item w3-button">Karyawan Kontrak</a>
		<a href="datagajikaryawan.php" class="w3-bar-item w3-button">Data Gaji</a>
        <a href="detailgaji.php" class="w3-bar-item w3-button">Monitoring Gaji</a>
		<a href="lemburkaryawan.php" class="w3-bar-item w3-button">Lembur</a>
		<a href="monitoringLembur.php" class="w3-bar-item w3-button">Monitoring Lembur</a>
		<a href="historiLembur.php" class="w3-bar-item w3-button">Histori Lembur</a>
		<a href="lemburkaryawan.php" class="w3-bar-item w3-button">Gaji Karyawan</a>
      </div>
    </div>
	<div class="w3-dropdown-hover w3-hide-small">
      <button class="w3-padding-large w3-button" title="More">PR acc<i class="fa fa-caret-down"></i></button>     
      <div class="w3-dropdown-content w3-bar-block w3-card-4">
        <a href="persetujuanPrHcga.php" class="w3-bar-item w3-button">Persetujuan PR</a>
        <a href="prDisetujuiHcga.php" class="w3-bar-item w3-button">PR Disetujui</a>
		<a href="prDitolakHcga.php" class="w3-bar-item w3-button">PR Ditolak</a>
        <a href="historyPrAllHcga.php" class="w3-bar-item w3-button">History ALL PR</a>
      </div>
    </div>
	<div class="w3-dropdown-hover w3-hide-small">
      <button class="w3-padding-large w3-button" title="More">HAK AKSES PERSIS<i class="fa fa-caret-down"></i></button>     
      <div class="w3-dropdown-content w3-bar-block w3-card-4">
        <a href="tambahHakaksesSystem.php" class="w3-bar-item w3-button">Tambah</a>
        <a href="hapusHakaksesSystem.php" class="w3-bar-item w3-button">Hapus</a>
      </div>
    </div>

    <a href="javascript:void(0)" class="w3-padding-large w3-hover-red w3-hide-small w3-right"><i class="fa fa-search"></i></a>
	<?php

				 //echo $q;
					if (isset($_SESSION["UserID"]))
					{
						$q="SELECT * FROM user WHERE id='". $_SESSION["UserID"] ."'";
						$res=mysqli_query($conn,$q);
						$dataUser=mysqli_fetch_assoc($res);
						
						
						
						$level="";
						if ($dataUser["level"]=="1")
						{
							$level="ADMIN";
						}
						else if ($dataUser["level"]=="3")
						{
							$level="Manager Opersional HC&GA";
						}
						else {
							$level="KARYAWAN";
						}
						
					}
					
				 ?>
				<a href="logout.php" class="w3-bar-item w3-button fa fa-sign-out w3-padding-large w3-hide-small w3-right"></a>
				 <a class="fa fa-user w3-padding-large w3-hide-small w3-right"><?php echo " ".$dataUser["nama"].", ".$level;?></a>
				 
  </div>
<?php
      }
}
?>
<?php
if (isset($_SESSION["UserID"]))
{
	$level=$_SESSION["Level"];
	$q="SELECT * FROM user WHERE id='". $_SESSION["UserID"] ."'";
	$res=mysqli_query($conn,$q);
	$dataUser=mysqli_fetch_assoc($res);
	
///////////////////////////////////////////////////ini Admin hcga/////////////////////////////////////////////////////////////
	if ($level=="4")
		{
?>
  <div class="w3-bar w3-black w3-card">
    <a class="w3-bar-item w3-button w3-padding-large w3-hide-medium w3-hide-large w3-right" href="javascript:void(0)" onclick="myFunction()" title="Toggle Navigation Menu"><i class="fa fa-bars"></i></a>
    <a href="index2.php" class="w3-bar-item w3-button fa fa-home w3-xxlarge"></a>

    <div class="w3-dropdown-hover w3-hide-small">
      <button class="w3-padding-large w3-button" title="More">KARYAWAN <i class="fa fa-caret-down"></i></button>     
      <div class="w3-dropdown-content w3-bar-block w3-card-4">
	    <a href="user.php" class="w3-bar-item w3-button">USER</a>
        <a href="tambahkaryawan.php" class="w3-bar-item w3-button">Tambah Karyawan</a>
        <a href="datakaryawan.php" class="w3-bar-item w3-button">Data Karyawan</a>
        <a href="datagajikaryawan.php" class="w3-bar-item w3-button">Data Gaji Karyawan</a>
		<a href="datanomorrekeningkaryawan.php" class="w3-bar-item w3-button">No Rekening Karyawan</a>
		<a href="datanomorbpjs.php" class="w3-bar-item w3-button">No BPJS Kesehatan Karyawan</a>
		<a href="datanomorbpjstenagakerja.php" class="w3-bar-item w3-button">No BPJS Tenaga Kerja</a>
		<a href="datanomorbpjpensiun.php" class="w3-bar-item w3-button">No Jaminan Pensiun</a>
		<a href="dataanak.php" class="w3-bar-item w3-button">Data Anak</a>
      </div>
    </div>
	 <div class="w3-dropdown-hover w3-hide-small">
      <button class="w3-padding-large w3-button" title="More">ABSENSI <i class="fa fa-caret-down"></i></button>     
      <div class="w3-dropdown-content w3-bar-block w3-card-4">
        <a href="dataabsensihariini.php" class="w3-bar-item w3-button">Absesnsi Hari ini</a>
        <a href="dataabsensi.php" class="w3-bar-item w3-button">Keterlambatan</a>
      </div>
    </div>
	 <div class="w3-dropdown-hover w3-hide-small">
      <button class="w3-padding-large w3-button" title="More">CUTI <i class="fa fa-caret-down"></i></button>     
      <div class="w3-dropdown-content w3-bar-block w3-card-4">
        <a href="cuti.php" class="w3-bar-item w3-button">Permohonan Cuti</a>
        <a href="monitoringcuti.php" class="w3-bar-item w3-button">Monitoring Cuti</a>
		<a href="batascuti.php" class="w3-bar-item w3-button">Batas Cuti</a>
        <a href="historicuti.php" class="w3-bar-item w3-button">Monitoring Cuti</a>
      </div>
    </div>
	<div class="w3-dropdown-hover w3-hide-small">
      <button class="w3-padding-large w3-button" title="More">SURAT USULAN<i class="fa fa-caret-down"></i></button>     
      <div class="w3-dropdown-content w3-bar-block w3-card-4">
        <a href="spMutasi.php" class="w3-bar-item w3-button">Mutasi</a>
        <a href="spDemosi.php" class="w3-bar-item w3-button">Demosi</a>
		<a href="spPromosi.php" class="w3-bar-item w3-button">Promosi</a>
        <a href="spKenaikanGaji.php" class="w3-bar-item w3-button">Kenaikan Gaji</a>
      </div>
    </div>
	<div class="w3-dropdown-hover w3-hide-small">
      <button class="w3-padding-large w3-button" title="More">PR<i class="fa fa-caret-down"></i></button>     
      <div class="w3-dropdown-content w3-bar-block w3-card-4">
        <a href="tambahPengajuanPurchasing.php" class="w3-bar-item w3-button">Tambah PR</a>
        <a href="historyPrAll.php" class="w3-bar-item w3-button">History PR</a>
      </div>
    </div>
	<div class="w3-dropdown-hover w3-hide-small">
      <button class="w3-padding-large w3-button" title="More">HAK AKSES PERSIS<i class="fa fa-caret-down"></i></button>     
      <div class="w3-dropdown-content w3-bar-block w3-card-4">
        <a href="tambahHakaksesSystem.php" class="w3-bar-item w3-button">Tambah</a>
        <a href="hapusHakaksesSystem.php" class="w3-bar-item w3-button">Hapus</a>
      </div>
    </div>
	<a href="tambahDailyReport.php" class="w3-bar-item w3-button w3-padding-large w3-hide-small">DAILY REPORT</a>

    <a href="javascript:void(0)" class="w3-padding-large w3-hover-red w3-hide-small w3-right"><i class="fa fa-search"></i></a>
	<?php

				 //echo $q;
					if (isset($_SESSION["UserID"]))
					{
						$q="SELECT * FROM user WHERE id='". $_SESSION["UserID"] ."'";
						$res=mysqli_query($conn,$q);
						$dataUser=mysqli_fetch_assoc($res);
						
						
						
						$level="";
						if ($dataUser["level"]=="1")
						{
							$level="ADMIN";
						}
						else if ($dataUser["level"]=="4")
						{
							$level="Admin HC&GA";
						}
						else {
							$level="KARYAWAN";
						}
						
					}
					
				 ?>
				<a href="logout.php" class="w3-bar-item w3-button fa fa-sign-out w3-padding-large w3-hide-small w3-right"></a>
				 <a class="fa fa-user w3-padding-large w3-hide-small w3-right"><?php echo " ".$dataUser["nama"].", ".$level;?></a>
				 
				 
  </div>
<?php
      }
}
?>
<?php
if (isset($_SESSION["UserID"]))
{
	$level=$_SESSION["Level"];
	$q="SELECT * FROM user WHERE id='". $_SESSION["UserID"] ."'";
	$res=mysqli_query($conn,$q);
	$dataUser=mysqli_fetch_assoc($res);
	
///////////////////////////////////////////////////ini Direktur/////////////////////////////////////////////////////////////
	if ($level=="5")
		{
?>
  <div class="w3-bar w3-black w3-card">
    <a class="w3-bar-item w3-button w3-padding-large w3-hide-medium w3-hide-large w3-right" href="javascript:void(0)" onclick="myFunction()" title="Toggle Navigation Menu"><i class="fa fa-bars"></i></a>
    <a href="index2.php" class="w3-bar-item w3-button fa fa-home w3-xxlarge"></a>
	<a href="user.php" class="w3-bar-item w3-button w3-padding-large w3-hide-small">USER</a>

    <div class="w3-dropdown-hover w3-hide-small">
      <button class="w3-padding-large w3-button" title="More">KARYAWAN <i class="fa fa-caret-down"></i></button>     
      <div class="w3-dropdown-content w3-bar-block w3-card-4">
        <a href="tambahkaryawan.php" class="w3-bar-item w3-button">Tambah Karyawan</a>
        <a href="datakaryawan.php" class="w3-bar-item w3-button">Data Karyawan</a>
        <a href="datagajikaryawan.php" class="w3-bar-item w3-button">Data Gaji Karyawan</a>
		<a href="datanomorrekeningkaryawan.php" class="w3-bar-item w3-button">No Rekening Karyawan</a>
		<a href="datanomorbpjs.php" class="w3-bar-item w3-button">No BPJS Kesehatan Karyawan</a>
		<a href="datanomorbpjstenagakerja.php" class="w3-bar-item w3-button">No BPJS Tenaga Kerja</a>
		<a href="datanomorbpjpensiun.php" class="w3-bar-item w3-button">No Jaminan Pensiun</a>
		<a href="dataanak.php" class="w3-bar-item w3-button">Data Anak</a>
      </div>
    </div>
	 <div class="w3-dropdown-hover w3-hide-small">
      <button class="w3-padding-large w3-button" title="More">ABSENSI <i class="fa fa-caret-down"></i></button>     
      <div class="w3-dropdown-content w3-bar-block w3-card-4">
        <a href="dataabsensihariini.php" class="w3-bar-item w3-button">Absesnsi Hari ini</a>
        <a href="dataabsensi.php" class="w3-bar-item w3-button">Keterlambatan</a>
      </div>
    </div>
	<div class="w3-dropdown-hover w3-hide-small">
      <button class="w3-padding-large w3-button" title="More">PR<i class="fa fa-caret-down"></i></button>     
      <div class="w3-dropdown-content w3-bar-block w3-card-4">
        <a href="persetujuanPrDirektur.php" class="w3-bar-item w3-button">Persetujuan PR </a>
        <a href="prDisetujuiDirektur.php" class="w3-bar-item w3-button">PR Disetujui</a>
		<a href="prDitolakDirektur.php" class="w3-bar-item w3-button">PR Ditolak</a>
        <a href="historyPrAllDirektur.php" class="w3-bar-item w3-button">History PR</a>
      </div>
    </div>
	
    <a href="tambahHakaksesSystem.php" class="w3-bar-item w3-button w3-padding-large w3-hide-small">HAK AKSES PERSIS</a>

    <a href="javascript:void(0)" class="w3-padding-large w3-hover-red w3-hide-small w3-right"><i class="fa fa-search"></i></a>
	<?php

				 //echo $q;
					if (isset($_SESSION["UserID"]))
					{
						$q="SELECT * FROM user WHERE id='". $_SESSION["UserID"] ."'";
						$res=mysqli_query($conn,$q);
						$dataUser=mysqli_fetch_assoc($res);
						
						
						
						$level="";
						if ($dataUser["level"]=="1")
						{
							$level="ADMIN";
						}
						else if ($dataUser["level"]=="5")
						{
							$level="Direktur";
						}
						else {
							$level="KARYAWAN";
						}
						
					}
					
				 ?>
				<a href="logout.php" class="w3-bar-item w3-button fa fa-sign-out w3-padding-large w3-hide-small w3-right"></a>
				 <a class="fa fa-user w3-padding-large w3-hide-small w3-right"><?php echo " ".$dataUser["nama"].", ".$level;?></a>
				 
				 
  </div>
<?php
      }
}
?>
<?php
if (isset($_SESSION["UserID"]))
{
	$level=$_SESSION["Level"];
	$q="SELECT * FROM user WHERE id='". $_SESSION["UserID"] ."'";
	$res=mysqli_query($conn,$q);
	$dataUser=mysqli_fetch_assoc($res);
	
///////////////////////////////////////////////////ini Accounting/////////////////////////////////////////////////////////////
	if ($level=="6")
		{
?>
  <div class="w3-bar w3-black w3-card">
    <a class="w3-bar-item w3-button w3-padding-large w3-hide-medium w3-hide-large w3-right" href="javascript:void(0)" onclick="myFunction()" title="Toggle Navigation Menu"><i class="fa fa-bars"></i></a>
    <a href="index2.php" class="w3-bar-item w3-button fa fa-home w3-xxlarge"></a>


	<div class="w3-dropdown-hover w3-hide-small">
      <button class="w3-padding-large w3-button" title="More">PR<i class="fa fa-caret-down"></i></button>     
      <div class="w3-dropdown-content w3-bar-block w3-card-4">
        <a href="tambahPengajuanPurchasing.php" class="w3-bar-item w3-button">Tambah PR</a>
        <a href="historyPrAll.php" class="w3-bar-item w3-button">History PR</a>
      </div>
    </div>
	<div class="w3-dropdown-hover w3-hide-small">
      <button class="w3-padding-large w3-button" title="More">CARD LIST<i class="fa fa-caret-down"></i></button>     
      <div class="w3-dropdown-content w3-bar-block w3-card-4">
        <a href="tambahDaftarSuplier.php" class="w3-bar-item w3-button">Tambah</a>
        <a href="daftarAllCardList.php" class="w3-bar-item w3-button">All Card List</a>
		<a href="daftarCustomer.php" class="w3-bar-item w3-button">Customer</a>
        <a href="daftarSuplier.php" class="w3-bar-item w3-button">Suplier</a>
      </div>
    </div>
    <div class="w3-dropdown-hover w3-hide-small">
      <button class="w3-padding-large w3-button" title="More">ACC PAYABLE<i class="fa fa-caret-down"></i></button>     
      <div class="w3-dropdown-content w3-bar-block w3-card-4">
        <a href="tambahInvoice.php" class="w3-bar-item w3-button">Tambah Invoice</a>
        <a href="pembayaranInvoice.php" class="w3-bar-item w3-button">Pembayaran Invoice</a>
		<a href="agingScheduleAp.php" class="w3-bar-item w3-button">Aging Schedule</a>
      </div>
	</div>	
	<div class="w3-dropdown-hover w3-hide-small">
      <button class="w3-padding-large w3-button" title="More">SURAT USULAN<i class="fa fa-caret-down"></i></button>     
      <div class="w3-dropdown-content w3-bar-block w3-card-4">
        <a href="spMutasi.php" class="w3-bar-item w3-button">Mutasi</a>
        <a href="spDemosi.php" class="w3-bar-item w3-button">Demosi</a>
		<a href="spPromosi.php" class="w3-bar-item w3-button">Promosi</a>
        <a href="spKenaikanGaji.php" class="w3-bar-item w3-button">Kenaikan Gaji</a>
      </div>
    </div>

    <a href="javascript:void(0)" class="w3-padding-large w3-hover-red w3-hide-small w3-right"><i class="fa fa-search"></i></a>
	<?php

				 //echo $q;
					if (isset($_SESSION["UserID"]))
					{
						$q="SELECT * FROM user WHERE id='". $_SESSION["UserID"] ."'";
						$res=mysqli_query($conn,$q);
						$dataUser=mysqli_fetch_assoc($res);
						
						
						
						$level="";
						if ($dataUser["level"]=="1")
						{
							$level="ADMIN";
						}
						else if ($dataUser["level"]=="6")
						{
							$level="Accounting";
						}
						else {
							$level="KARYAWAN";
						}
						
					}
					
				 ?>
				<a href="logout.php" class="w3-bar-item w3-button fa fa-sign-out w3-padding-large w3-hide-small w3-right"></a>
				 <a class="fa fa-user w3-padding-large w3-hide-small w3-right"><?php echo " ".$dataUser["nama"].", ".$level;?></a>
				 
				 
  </div>
<?php
      }
}
?>
<?php
if (isset($_SESSION["UserID"]))
{
	$level=$_SESSION["Level"];
	$q="SELECT * FROM user WHERE id='". $_SESSION["UserID"] ."'";
	$res=mysqli_query($conn,$q);
	$dataUser=mysqli_fetch_assoc($res);
	
///////////////////////////////////////////////////Purchasing/////////////////////////////////////////////////////////////
	if ($level=="10")
		{
?>
  <div class="w3-bar w3-black w3-card">
    <a class="w3-bar-item w3-button w3-padding-large w3-hide-medium w3-hide-large w3-right" href="javascript:void(0)" onclick="myFunction()" title="Toggle Navigation Menu"><i class="fa fa-bars"></i></a>
    <a href="index2.php" class="w3-bar-item w3-button fa fa-home w3-xxlarge"></a>


	<div class="w3-dropdown-hover w3-hide-small">
      <button class="w3-padding-large w3-button" title="More">PR<i class="fa fa-caret-down"></i></button>     
      <div class="w3-dropdown-content w3-bar-block w3-card-4">
        <a href="tambahPengajuanPurchasing.php" class="w3-bar-item w3-button">Tambah PR</a>
        <a href="historyPrAll.php" class="w3-bar-item w3-button">History PR</a>
      </div>
    </div>
	<div class="w3-dropdown-hover w3-hide-small">
      <button class="w3-padding-large w3-button" title="More">SURAT USULAN<i class="fa fa-caret-down"></i></button>     
      <div class="w3-dropdown-content w3-bar-block w3-card-4">
        <a href="spMutasi.php" class="w3-bar-item w3-button">Mutasi</a>
        <a href="spDemosi.php" class="w3-bar-item w3-button">Demosi</a>
		<a href="spPromosi.php" class="w3-bar-item w3-button">Promosi</a>
        <a href="spKenaikanGaji.php" class="w3-bar-item w3-button">Kenaikan Gaji</a>
      </div>
    </div>	

    <a href="javascript:void(0)" class="w3-padding-large w3-hover-red w3-hide-small w3-right"><i class="fa fa-search"></i></a>
	<?php

				 //echo $q;
					if (isset($_SESSION["UserID"]))
					{
						$q="SELECT * FROM user WHERE id='". $_SESSION["UserID"] ."'";
						$res=mysqli_query($conn,$q);
						$dataUser=mysqli_fetch_assoc($res);
						
						
						
						$level="";
						if ($dataUser["level"]=="1")
						{
							$level="ADMIN";
						}
						else if ($dataUser["level"]=="10")
						{
							$level="Purchasing";
						}
						else {
							$level="KARYAWAN";
						}
						
					}
					
				 ?>
				<a href="logout.php" class="w3-bar-item w3-button fa fa-sign-out w3-padding-large w3-hide-small w3-right"></a>
				 <a class="fa fa-user w3-padding-large w3-hide-small w3-right"><?php echo " ".$dataUser["nama"].", ".$level;?></a>
				 
				 
  </div>
<?php
      }
}
?>
<?php
if (isset($_SESSION["UserID"]))
{
	$level=$_SESSION["Level"];
	$q="SELECT * FROM user WHERE id='". $_SESSION["UserID"] ."'";
	$res=mysqli_query($conn,$q);
	$dataUser=mysqli_fetch_assoc($res);
	
///////////////////////////////////////////////////Warehouse/////////////////////////////////////////////////////////////
	if ($level=="11")
		{
?>
  <div class="w3-bar w3-black w3-card">
    <a class="w3-bar-item w3-button w3-padding-large w3-hide-medium w3-hide-large w3-right" href="javascript:void(0)" onclick="myFunction()" title="Toggle Navigation Menu"><i class="fa fa-bars"></i></a>
    <a href="index2.php" class="w3-bar-item w3-button fa fa-home w3-xxlarge"></a>
	<a href="halamanFiturJobProduction.php" class="w3-bar-item w3-button fa fa-briefcase w3-xxlarge"></a>
	


	<div class="w3-dropdown-hover w3-hide-small">
      <button class="w3-padding-large w3-button" title="More">PR<i class="fa fa-caret-down"></i></button>     
      <div class="w3-dropdown-content w3-bar-block w3-card-4">
        <a href="tambahPengajuanPurchasing.php" class="w3-bar-item w3-button">Tambah PR</a>
        <a href="historyPrAll.php" class="w3-bar-item w3-button">History PR</a>
      </div>
    </div>	

    <a href="javascript:void(0)" class="w3-padding-large w3-hover-red w3-hide-small w3-right"><i class="fa fa-search"></i></a>
	<?php

				 //echo $q;
					if (isset($_SESSION["UserID"]))
					{
						$q="SELECT * FROM user WHERE id='". $_SESSION["UserID"] ."'";
						$res=mysqli_query($conn,$q);
						$dataUser=mysqli_fetch_assoc($res);
						
						
						
						$level="";
						if ($dataUser["level"]=="1")
						{
							$level="ADMIN";
						}
						else if ($dataUser["level"]=="10")
						{
							$level="Purchasing";
						}
						else {
							$level="KARYAWAN";
						}
						
					}
					
				 ?>
				<a href="logout.php" class="w3-bar-item w3-button fa fa-sign-out w3-padding-large w3-hide-small w3-right"></a>
				 <a class="fa fa-user w3-padding-large w3-hide-small w3-right"><?php echo " ".$dataUser["nama"].", ".$level;?></a>
				 
				 
  </div>
<?php
      }
}
?>
<?php
if (isset($_SESSION["UserID"]))
{
	$level=$_SESSION["Level"];
	$q="SELECT * FROM user WHERE id='". $_SESSION["UserID"] ."'";
	$res=mysqli_query($conn,$q);
	$dataUser=mysqli_fetch_assoc($res);
	
///////////////////////////////////////////////////SPV Purchasing/////////////////////////////////////////////////////////////
	if ($level=="10010")
		{
?>
  <div class="w3-bar w3-black w3-card">
    <a class="w3-bar-item w3-button w3-padding-large w3-hide-medium w3-hide-large w3-right" href="javascript:void(0)" onclick="myFunction()" title="Toggle Navigation Menu"><i class="fa fa-bars"></i></a>
    <a href="index2.php" class="w3-bar-item w3-button fa fa-home w3-xxlarge"></a>


	<div class="w3-dropdown-hover w3-hide-small">
      <button class="w3-padding-large w3-button" title="More">PR<i class="fa fa-caret-down"></i></button>     
      <div class="w3-dropdown-content w3-bar-block w3-card-4">
        <a href="tambahPengajuanPurchasing.php" class="w3-bar-item w3-button">Tambah PR</a>
        <a href="historyPrAll.php" class="w3-bar-item w3-button">History PR</a>
      </div>
    </div>
	<div class="w3-dropdown-hover w3-hide-small">
      <button class="w3-padding-large w3-button" title="More">SURAT USULAN<i class="fa fa-caret-down"></i></button>     
      <div class="w3-dropdown-content w3-bar-block w3-card-4">
        <a href="spMutasi.php" class="w3-bar-item w3-button">Mutasi</a>
        <a href="spDemosi.php" class="w3-bar-item w3-button">Demosi</a>
		<a href="spPromosi.php" class="w3-bar-item w3-button">Promosi</a>
        <a href="spKenaikanGaji.php" class="w3-bar-item w3-button">Kenaikan Gaji</a>
      </div>
    </div>
	<div class="w3-dropdown-hover w3-hide-small">
      <button class="w3-padding-large w3-button" title="More">PERSETUJUAN PR SPV<i class="fa fa-caret-down"></i></button>     
      <div class="w3-dropdown-content w3-bar-block w3-card-4">
        <a href="persetujuanPrSupervisor.php" class="w3-bar-item w3-button">Persetujuan PR</a>
        <a href="prDisetujuiSupervisor.php" class="w3-bar-item w3-button">PR Disetujui</a>
		<a href="prDitolakSupervisor.php" class="w3-bar-item w3-button">PR Ditolak</a>
        <a href="historyPrAllSupervisor.php" class="w3-bar-item w3-button">History PR</a>
      </div>
    </div>
	<div class="w3-dropdown-hover w3-hide-small">
      <button class="w3-padding-large w3-button" title="More">PR ORDER<i class="fa fa-caret-down"></i></button>     
      <div class="w3-dropdown-content w3-bar-block w3-card-4">
        <a href="prDiterimaPrc.php" class="w3-bar-item w3-button">PR Diterima</a>
        <a href="prDiprosesPrc.php" class="w3-bar-item w3-button">PR Diproses</a>
		<a href="prDiprosesPrcGabungan1.php" class="w3-bar-item w3-button">PR Proses Gabungan</a>
        <a href="prHistoriPrc.php" class="w3-bar-item w3-button">PO History</a>
		<a href="prHistoriPrcGabungan.php" class="w3-bar-item w3-button">PO History Gabungan</a>
		<a href="prDiprosesPrcGabungan1Histori.php" class="w3-bar-item w3-button">PO History Gabungan Histori</a>
		<a href="prAdvance.php" class="w3-bar-item w3-button">Advance</a>
      </div>
    </div>	

    <a href="javascript:void(0)" class="w3-padding-large w3-hover-red w3-hide-small w3-right"><i class="fa fa-search"></i></a>
	<?php

				 //echo $q;
					if (isset($_SESSION["UserID"]))
					{
						$q="SELECT * FROM user WHERE id='". $_SESSION["UserID"] ."'";
						$res=mysqli_query($conn,$q);
						$dataUser=mysqli_fetch_assoc($res);
						
						
						
						$level="";
						if ($dataUser["level"]=="1")
						{
							$level="ADMIN";
						}
						else if ($dataUser["level"]=="10010")
						{
							$level="SPV Purchasing";
						}
						else {
							$level="KARYAWAN";
						}
						
					}
					
				 ?>
				<a href="logout.php" class="w3-bar-item w3-button fa fa-sign-out w3-padding-large w3-hide-small w3-right"></a>
				 <a class="fa fa-user w3-padding-large w3-hide-small w3-right"><?php echo " ".$dataUser["nama"].", ".$level;?></a>
				 
				 
  </div>
<?php
      }
}
?>
<?php
if (isset($_SESSION["UserID"]))
{
	$level=$_SESSION["Level"];
	$q="SELECT * FROM user WHERE id='". $_SESSION["UserID"] ."'";
	$res=mysqli_query($conn,$q);
	$dataUser=mysqli_fetch_assoc($res);
	
///////////////////////////////////////////////////SPV Produksi/////////////////////////////////////////////////////////////
	if ($level=="1009")
		{
?>
  <div class="w3-bar w3-black w3-card">
    <a class="w3-bar-item w3-button w3-padding-large w3-hide-medium w3-hide-large w3-right" href="javascript:void(0)" onclick="myFunction()" title="Toggle Navigation Menu"><i class="fa fa-bars"></i></a>
    <a href="index2.php" class="w3-bar-item w3-button fa fa-home w3-xxlarge"></a>
	<a href="halamanFiturJobProduction.php" class="w3-bar-item w3-button fa fa-briefcase w3-xxlarge"></a>
	


	<div class="w3-dropdown-hover w3-hide-small">
      <button class="w3-padding-large w3-button" title="More">PR<i class="fa fa-caret-down"></i></button>     
      <div class="w3-dropdown-content w3-bar-block w3-card-4">
        <a href="tambahPengajuanPurchasingOperasional.php" class="w3-bar-item w3-button">Tambah PR</a>
        <a href="historyPrAll.php" class="w3-bar-item w3-button">History PR</a>
      </div>
    </div>
	<div class="w3-dropdown-hover w3-hide-small">
      <button class="w3-padding-large w3-button" title="More">SURAT USULAN<i class="fa fa-caret-down"></i></button>     
      <div class="w3-dropdown-content w3-bar-block w3-card-4">
        <a href="spMutasi.php" class="w3-bar-item w3-button">Mutasi</a>
        <a href="spDemosi.php" class="w3-bar-item w3-button">Demosi</a>
		<a href="spPromosi.php" class="w3-bar-item w3-button">Promosi</a>
        <a href="spKenaikanGaji.php" class="w3-bar-item w3-button">Kenaikan Gaji</a>
      </div>
    </div>
	<div class="w3-dropdown-hover w3-hide-small">
      <button class="w3-padding-large w3-button" title="More">PERSETUJUAN PR SPV<i class="fa fa-caret-down"></i></button>     
      <div class="w3-dropdown-content w3-bar-block w3-card-4">
        <a href="persetujuanPrSupervisor.php" class="w3-bar-item w3-button">Persetujuan PR</a>
        <a href="prDisetujuiSupervisor.php" class="w3-bar-item w3-button">PR Disetujui</a>
		<a href="prDitolakSupervisor.php" class="w3-bar-item w3-button">PR Ditolak</a>
        <a href="historyPrAllSupervisor.php" class="w3-bar-item w3-button">History PR</a>
      </div>
    </div>
<a href="tambahDailyReport.php" class="w3-bar-item w3-button w3-padding-large w3-hide-small">DAILY REPORT</a>	

    <a href="javascript:void(0)" class="w3-padding-large w3-hover-red w3-hide-small w3-right"><i class="fa fa-search"></i></a>
	<?php

				 //echo $q;
					if (isset($_SESSION["UserID"]))
					{
						$q="SELECT * FROM user WHERE id='". $_SESSION["UserID"] ."'";
						$res=mysqli_query($conn,$q);
						$dataUser=mysqli_fetch_assoc($res);
						
						
						
						$level="";
						if ($dataUser["level"]=="1")
						{
							$level="ADMIN";
						}
						else if ($dataUser["level"]=="1009")
						{
							$level="SPV Produksi";
						}
						else {
							$level="KARYAWAN";
						}
						
					}
					
				 ?>
				<a href="logout.php" class="w3-bar-item w3-button fa fa-sign-out w3-padding-large w3-hide-small w3-right"></a>
				 <a class="fa fa-user w3-padding-large w3-hide-small w3-right"><?php echo " ".$dataUser["nama"].", ".$level;?></a>
				 
				 
  </div>
<?php
      }
}
?>
<?php
if (isset($_SESSION["UserID"]))
{
	$level=$_SESSION["Level"];
	$q="SELECT * FROM user WHERE id='". $_SESSION["UserID"] ."'";
	$res=mysqli_query($conn,$q);
	$dataUser=mysqli_fetch_assoc($res);
	
///////////////////////////////////////////////////ini HSE IT SYSTEM SPV/////////////////////////////////////////////////////////////
	if ($level=="1002")
		{
?>
  <div class="w3-bar w3-black w3-card">
    <a class="w3-bar-item w3-button w3-padding-large w3-hide-medium w3-hide-large w3-right" href="javascript:void(0)" onclick="myFunction()" title="Toggle Navigation Menu"><i class="fa fa-bars"></i></a>
    <a href="index2.php" class="w3-bar-item w3-button fa fa-home w3-xxlarge"></a>

	<div class="w3-dropdown-hover w3-hide-small">
      <button class="w3-padding-large w3-button" title="More">SURAT USULAN<i class="fa fa-caret-down"></i></button>     
      <div class="w3-dropdown-content w3-bar-block w3-card-4">
        <a href="spMutasi.php" class="w3-bar-item w3-button">Mutasi</a>
        <a href="spDemosi.php" class="w3-bar-item w3-button">Demosi</a>
		<a href="spPromosi.php" class="w3-bar-item w3-button">Promosi</a>
        <a href="spKenaikanGaji.php" class="w3-bar-item w3-button">Kenaikan Gaji</a>
      </div>
    </div>
		<div class="w3-dropdown-hover w3-hide-small">
      <button class="w3-padding-large w3-button" title="More">PR<i class="fa fa-caret-down"></i></button>     
      <div class="w3-dropdown-content w3-bar-block w3-card-4">
        <a href="tambahPengajuanPurchasing.php" class="w3-bar-item w3-button">Tambah PR</a>
        <a href="historyPrAll.php" class="w3-bar-item w3-button">History PR</a>
      </div>
    </div>
	<div class="w3-dropdown-hover w3-hide-small">
      <button class="w3-padding-large w3-button" title="More">PERSETUJUAN PR SPV<i class="fa fa-caret-down"></i></button>     
      <div class="w3-dropdown-content w3-bar-block w3-card-4">
        <a href="persetujuanPrSupervisor.php" class="w3-bar-item w3-button">Persetujuan PR</a>
        <a href="prDisetujuiSupervisor.php" class="w3-bar-item w3-button">PR Disetujui</a>
		<a href="prDitolakSupervisor.php" class="w3-bar-item w3-button">PR Ditolak</a>
        <a href="historyPrAllSupervisor.php" class="w3-bar-item w3-button">History PR</a>
      </div>
    </div>



    <a href="javascript:void(0)" class="w3-padding-large w3-hover-red w3-hide-small w3-right"><i class="fa fa-search"></i></a>
	<?php

				 //echo $q;
					if (isset($_SESSION["UserID"]))
					{
						$q="SELECT * FROM user WHERE id='". $_SESSION["UserID"] ."'";
						$res=mysqli_query($conn,$q);
						$dataUser=mysqli_fetch_assoc($res);
						
						
						
						$level="";
						if ($dataUser["level"]=="1")
						{
							$level="ADMIN";
						}
						else if ($dataUser["level"]=="1002")
						{
							$level="SPV HSE IT System";
						}
						else {
							$level="KARYAWAN";
						}
						
					}
					
				 ?>
				<a href="logout.php" class="w3-bar-item w3-button fa fa-sign-out w3-padding-large w3-hide-small w3-right"></a>
				 <a class="fa fa-user w3-padding-large w3-hide-small w3-right"><?php echo " ".$dataUser["nama"].", ".$level;?></a>
				 
  </div>
<?php
      }
}
?>
<?php
if (isset($_SESSION["UserID"]))
{
	$level=$_SESSION["Level"];
	$q="SELECT * FROM user WHERE id='". $_SESSION["UserID"] ."'";
	$res=mysqli_query($conn,$q);
	$dataUser=mysqli_fetch_assoc($res);
	
///////////////////////////////////////////////////ini MANAGER OPERSIONAL/////////////////////////////////////////////////////////////
	if ($level=="7")
		{
?>
  <div class="w3-bar w3-black w3-card">
    <a class="w3-bar-item w3-button w3-padding-large w3-hide-medium w3-hide-large w3-right" href="javascript:void(0)" onclick="myFunction()" title="Toggle Navigation Menu"><i class="fa fa-bars"></i></a>
    <a href="index2.php" class="w3-bar-item w3-button fa fa-home w3-xxlarge"></a>
	<a href="dataInspectAndTestingOperasional.php" class="w3-bar-item w3-button fa fa-briefcase w3-xxlarge"></a>

	<div class="w3-dropdown-hover w3-hide-small">
      <button class="w3-padding-large w3-button" title="More">SURAT USULAN<i class="fa fa-caret-down"></i></button>     
      <div class="w3-dropdown-content w3-bar-block w3-card-4">
        <a href="spMutasi.php" class="w3-bar-item w3-button">Mutasi</a>
        <a href="spDemosi.php" class="w3-bar-item w3-button">Demosi</a>
		<a href="spPromosi.php" class="w3-bar-item w3-button">Promosi</a>
        <a href="spKenaikanGaji.php" class="w3-bar-item w3-button">Kenaikan Gaji</a>
      </div>
    </div>
		<div class="w3-dropdown-hover w3-hide-small">
      <button class="w3-padding-large w3-button" title="More">PR<i class="fa fa-caret-down"></i></button>     
      <div class="w3-dropdown-content w3-bar-block w3-card-4">
        <a href="tambahPengajuanPurchasing.php" class="w3-bar-item w3-button">Tambah PR</a>
        <a href="historyPrAll.php" class="w3-bar-item w3-button">History PR</a>
      </div>
    </div>
	<div class="w3-dropdown-hover w3-hide-small">
      <button class="w3-padding-large w3-button" title="More">PR acc<i class="fa fa-caret-down"></i></button>     
      <div class="w3-dropdown-content w3-bar-block w3-card-4">
        <a href="persetujuanPrOperasional.php" class="w3-bar-item w3-button">Persetujuan PR</a>
        <a href="prDisetujuiOperasional.php" class="w3-bar-item w3-button">PR Disetujui</a>
		<a href="prDitolakOperasional.php" class="w3-bar-item w3-button">PR Ditolak</a>
        <a href="historyPrAllOperasionalManager.php" class="w3-bar-item w3-button">History ALL PR</a>
      </div>
    </div>

	    <a href="dailyReportCheck.php" class="w3-bar-item w3-button w3-padding-large w3-hide-small">DAILY check</a>


    <a href="javascript:void(0)" class="w3-padding-large w3-hover-red w3-hide-small w3-right"><i class="fa fa-search"></i></a>
	<?php

				 //echo $q;
					if (isset($_SESSION["UserID"]))
					{
						$q="SELECT * FROM user WHERE id='". $_SESSION["UserID"] ."'";
						$res=mysqli_query($conn,$q);
						$dataUser=mysqli_fetch_assoc($res);
						
						
						
						$level="";
						if ($dataUser["level"]=="1")
						{
							$level="ADMIN";
						}
						else if ($dataUser["level"]=="7")
						{
							$level="MANAGER OPERASIONAL";
						}
						else {
							$level="KARYAWAN";
						}
						
					}
					
				 ?>
				<a href="logout.php" class="w3-bar-item w3-button fa fa-sign-out w3-padding-large w3-hide-small w3-right"></a>
				 <a class="fa fa-user w3-padding-large w3-hide-small w3-right"><?php echo " ".$dataUser["nama"].", ".$level;?></a>
				 
  </div>
<?php
      }
}
?>
<?php
if (isset($_SESSION["UserID"]))
{
	$level=$_SESSION["Level"];
	$q="SELECT * FROM user WHERE id='". $_SESSION["UserID"] ."'";
	$res=mysqli_query($conn,$q);
	$dataUser=mysqli_fetch_assoc($res);
	
///////////////////////////////////////////////////Produksi/////////////////////////////////////////////////////////////
	if ($level=="9")
		{
?>
  <div class="w3-bar w3-black w3-card">
    <a class="w3-bar-item w3-button w3-padding-large w3-hide-medium w3-hide-large w3-right" href="javascript:void(0)" onclick="myFunction()" title="Toggle Navigation Menu"><i class="fa fa-bars"></i></a>
    <a href="index2.php" class="w3-bar-item w3-button fa fa-home w3-xxlarge"></a>


	<div class="w3-dropdown-hover w3-hide-small">
      <button class="w3-padding-large w3-button" title="More">PR<i class="fa fa-caret-down"></i></button>     
      <div class="w3-dropdown-content w3-bar-block w3-card-4">
        <a href="tambahPengajuanPurchasingOperasional.php" class="w3-bar-item w3-button">Tambah PR</a>
        <a href="historyPrAllOperasional.php" class="w3-bar-item w3-button">History PR</a>
      </div>
    </div>
	<div class="w3-dropdown-hover w3-hide-small">
      <button class="w3-padding-large w3-button" title="More">SURAT USULAN<i class="fa fa-caret-down"></i></button>     
      <div class="w3-dropdown-content w3-bar-block w3-card-4">
        <a href="spMutasi.php" class="w3-bar-item w3-button">Mutasi</a>
        <a href="spDemosi.php" class="w3-bar-item w3-button">Demosi</a>
		<a href="spPromosi.php" class="w3-bar-item w3-button">Promosi</a>
        <a href="spKenaikanGaji.php" class="w3-bar-item w3-button">Kenaikan Gaji</a>
      </div>
    </div>	
	<a href="tambahDailyReport.php" class="w3-bar-item w3-button w3-padding-large w3-hide-small">DAILY REPORT</a>

    <a href="javascript:void(0)" class="w3-padding-large w3-hover-red w3-hide-small w3-right"><i class="fa fa-search"></i></a>
	<?php

				 //echo $q;
					if (isset($_SESSION["UserID"]))
					{
						$q="SELECT * FROM user WHERE id='". $_SESSION["UserID"] ."'";
						$res=mysqli_query($conn,$q);
						$dataUser=mysqli_fetch_assoc($res);
						
						
						
						$level="";
						if ($dataUser["level"]=="1")
						{
							$level="ADMIN";
						}
						else if ($dataUser["level"]=="9")
						{
							$level="Produksi";
						}
						else {
							$level="KARYAWAN";
						}
						
					}
					
				 ?>
				<a href="logout.php" class="w3-bar-item w3-button fa fa-sign-out w3-padding-large w3-hide-small w3-right"></a>
				 <a class="fa fa-user w3-padding-large w3-hide-small w3-right"><?php echo " ".$dataUser["nama"].", ".$level;?></a>
				 
				 
  </div>
<?php
      }
}
?>
<?php
if (isset($_SESSION["UserID"]))
{
	$level=$_SESSION["Level"];
	$q="SELECT * FROM user WHERE id='". $_SESSION["UserID"] ."'";
	$res=mysqli_query($conn,$q);
	$dataUser=mysqli_fetch_assoc($res);
	
///////////////////////////////////////////////////QC / ENG/////////////////////////////////////////////////////////////
	if ($level=="8")
		{
?>
  <div class="w3-bar w3-black w3-card">
    <a class="w3-bar-item w3-button w3-padding-large w3-hide-medium w3-hide-large w3-right" href="javascript:void(0)" onclick="myFunction()" title="Toggle Navigation Menu"><i class="fa fa-bars"></i></a>
    <a href="index2.php" class="w3-bar-item w3-button fa fa-home w3-xxlarge"></a>


	<div class="w3-dropdown-hover w3-hide-small">
      <button class="w3-padding-large w3-button" title="More">PR<i class="fa fa-caret-down"></i></button>     
      <div class="w3-dropdown-content w3-bar-block w3-card-4">
        <a href="tambahPengajuanPurchasing.php" class="w3-bar-item w3-button">Tambah PR</a>
        <a href="historyPrAll.php" class="w3-bar-item w3-button">History PR</a>
      </div>
    </div>
	<div class="w3-dropdown-hover w3-hide-small">
      <button class="w3-padding-large w3-button" title="More">SURAT USULAN<i class="fa fa-caret-down"></i></button>     
      <div class="w3-dropdown-content w3-bar-block w3-card-4">
        <a href="spMutasi.php" class="w3-bar-item w3-button">Mutasi</a>
        <a href="spDemosi.php" class="w3-bar-item w3-button">Demosi</a>
		<a href="spPromosi.php" class="w3-bar-item w3-button">Promosi</a>
        <a href="spKenaikanGaji.php" class="w3-bar-item w3-button">Kenaikan Gaji</a>
      </div>
    </div>
	<a href="tambahDailyReport.php" class="w3-bar-item w3-button w3-padding-large w3-hide-small">DAILY REPORT</a>

    <a href="javascript:void(0)" class="w3-padding-large w3-hover-red w3-hide-small w3-right"><i class="fa fa-search"></i></a>
	<?php

				 //echo $q;
					if (isset($_SESSION["UserID"]))
					{
						$q="SELECT * FROM user WHERE id='". $_SESSION["UserID"] ."'";
						$res=mysqli_query($conn,$q);
						$dataUser=mysqli_fetch_assoc($res);
						
						
						
						$level="";
						if ($dataUser["level"]=="1")
						{
							$level="ADMIN";
						}
						else if ($dataUser["level"]=="8")
						{
							$level="QC / ENG";
						}
						else {
							$level="KARYAWAN";
						}
						
					}
					
				 ?>
				<a href="logout.php" class="w3-bar-item w3-button fa fa-sign-out w3-padding-large w3-hide-small w3-right"></a>
				 <a class="fa fa-user w3-padding-large w3-hide-small w3-right"><?php echo " ".$dataUser["nama"].", ".$level;?></a>
				 
				 
  </div>
<?php
      }
}
?>
</div>