<div class="navbar" >
<?php
//style="margin-right:50px";
?>


	<div class="navbar-inner">
		<ul class="nav">   
			
			<?php
					$keyword="";
								if (isset($_GET["cari"]))
								{
									$keyword=mysqli_real_escape_string($conn,$_GET["cari"]);
								}
				if (isset($_SESSION["UserID"]))
				{
					$level=$_SESSION["Level"];
					?>
					   <?php
//////////////////////////////2 user HSE\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
							if ($level=="2")
							{
								?>
									<li class="dropdown">     
										<a style='color:#fff' href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">MENU <span class="caret"></span></a>
										<ul class="dropdown-menu">
											<li><a href="index.php">HOME</a></li>												
												<li><a href="user.php">USER</a></li>
										</ul>
									</li>
									<li class="dropdown">     
											<a style='color:#fff' href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">SURAT USULAN<span class="caret"></span></a>
											<ul class="dropdown-menu">											
												
												<li><a href="spMutasi.php">MUTASI</a></li>
												<li><a href="spDemosi.php">DEMOSI</a></li>
												<li><a href="spPromosi.php">PROMOSI</a></li>
												<li><a href="spKenaikanGaji.php">KENAIKAN GAJI</a></li>
											</ul>
									</li>
									<li>
							
						</li>
								<?php
							} 
////////////////////////////admin pengurus website\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
							else if ($level=="1") {
								?>
									<li class="dropdown">     
											<a style='color:#fff' href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">MENU <span class="caret"></span></a>
											<ul class="dropdown-menu">
												<li><a href="index.php">HOME</a></li>												
												<li><a href="user.php">USER</a></li>
											</ul>
									</li>
									<li class="dropdown">     
											<a style='color:#fff' href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">KARYAWAN <span class="caret"></span></a>
											<ul class="dropdown-menu">											
												
												<li><a href="tambahkaryawan.php">TAMBAH KARYAWAN</a></li>
												<li><a href="datakaryawan.php">DATA KARYAWAN</a></li>
												<li><a href="datagajikaryawan.php">DATA GAJI KARYAWAN</a></li>
												<li><a href="datanomorrekeningkaryawan.php">NOMOR REKENING KARYAWAN</a></li>
												<li><a href="datanomorbpjs.php">NOMOR BPJS KESEHATAN KARYAWAN</a></li>
												<li><a href="datanomorbpjstenagakerja.php">NOMOR BPJS TENAGA KERJA</a></li>
												<li><a href="datanomorbpjpensiun.php">NOMOR BPJS JAMINAN PENSIUN</a></li>
												<li><a href="dataanak.php">DATA ANAK</a></li>
										

											</ul>
									</li>
									<li class="dropdown">     
											<a style='color:#fff' href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">PAYROL <span class="caret"></span></a>
											<ul class="dropdown-menu">											
												
												<li><a href="karyawantetap.php">KARYAWAN TETAP T</a></li>
												<li><a href="datagajikaryawan.php">KARYAWAN KONTRAK</a></li>
												<li><a href="datagajikaryawan.php">DATA GAJI</a></li>
												<li><a href="detailgaji.php">MONITORING GAJI</a></li>
												<li><a href="lemburkaryawan.php">LEMBUR</a></li>
												<li><a href="monitoringLembur.php">MONITORING LEMBUR</a></li>
												<li><a href="historiLembur.php">HISTORI LEMBUR</a></li>
												<li><a href="lemburkaryawan.php">GAJI LEMBUR</a></li>
												<li><a href="cobatanggal.php">coba tanggal</a></li>
												<li><a href="tanggal.php">input tanggal</a></li>

											</ul>
									</li>
									<li class="dropdown">     
											<a style='color:#fff' href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">ABSENSI <span class="caret"></span></a>
											<ul class="dropdown-menu">											
												
												<li><a href="dataabsensihariini.php">ABSENSI HARI INI</a></li>
												<li><a href="dataabsensi.php">KETERLAMBATAN</a></li>
												<li><a href="dataizin.php">IZIN</a></li>
												
										

											</ul>
									</li>
									<li class="dropdown">     
											<a style='color:#fff' href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">SURAT KEPUTUSAN <span class="caret"></span></a>
											<ul class="dropdown-menu">											
												
												<li><a href="suratSkUsulanMutasi.php">USULAN MUTASI</a></li>
												<li><a href="monitoringUsulanMutasi.php"> - MONITORING MUTASI</a></li>
												<li><a href="suratSkUsulanDemosi.php">USULAN DEMOSI</a></li>
												<li><a href="monitoringUsulanDemosi.php"> - MONITORING DEMOSI</a></li>
												<li><a href="suratSkUsulanPromosi.php">USULAN PROMOSI</a></li>
												<li><a href="monitoringUsulanPromosi.php"> - MONITORING PROMOSI</a></li>
												<li><a href="suratSkUsulanKenaikanGaji.php">USULAN KENAIKAN GAJI</a></li>
												<li><a href="monitoringUsulanNaikGaji.php"> - MONITORING KENAIKAN GAJI</a></li>
												

											</ul>
									</li>
									<li class="dropdown">     
											<a style='color:#fff' href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">SURAT USULAN<span class="caret"></span></a>
											<ul class="dropdown-menu">											
												
												<li><a href="spMutasi.php">MUTASI</a></li>
												<li><a href="spDemosi.php">DEMOSI</a></li>
												<li><a href="spPromosi.php">PROMOSI</a></li>
												<li><a href="spKenaikanGaji.php">KENAIKAN GAJI</a></li>
												
												

											</ul>
									</li>
									<li class="dropdown">     
											<a style='color:#fff' href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">CUTI<span class="caret"></span></a>
											<ul class="dropdown-menu">											
												
												<li><a href="cuti.php">PERMOHONAN CUTI</a></li>
												<li><a href="monitoringcuti.php">MONITORING CUTI</a></li>
												<li><a href="batascuti.php">INPUT BATAS CUTI</a></li>
												<li><a href="historicuti.php">HISTORI CUTI</a></li>
												<li><a href="tes.php">tes</a></li>
												

											</ul>
									</li>
									

									<li>
									</li>	
								<?php
							}
							
////////////////////////////////////////3 HRD\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
							if ($level=="3")
							{
								?>
									<li class="dropdown">     
										<a style='color:#fff' href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">MENU <span class="caret"></span></a>
										<ul class="dropdown-menu">
											<li><a href="index.php">HOME</a></li>												
												<li><a href="user.php">USER</a></li>
										</ul>
									</li>
									<li class="dropdown">     
											<a style='color:#fff' href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">KARYAWAN <span class="caret"></span></a>
											<ul class="dropdown-menu">											
												
												<li><a href="tambahkaryawan.php">TAMBAH KARYAWAN</a></li>
												<li><a href="datakaryawan.php">DATA KARYAWAN</a></li>
												<li><a href="datagajikaryawan.php">DATA GAJI KARYAWAN</a></li>
												<li><a href="datanomorrekeningkaryawan.php">NOMOR REKENING KARYAWAN</a></li>
												<li><a href="datanomorbpjs.php">NOMOR BPJS KESEHATAN KARYAWAN</a></li>
												<li><a href="datanomorbpjstenagakerja.php">NOMOR BPJS TENAGA KERJA</a></li>
												<li><a href="datanomorbpjpensiun.php">NOMOR BPJS JAMINAN PENSIUN</a></li>
												<li><a href="dataanak.php">DATA ANAK</a></li>
											</ul>
									</li>
									<li class="dropdown">     
											<a style='color:#fff' href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">ABSENSI <span class="caret"></span></a>
											<ul class="dropdown-menu">											
												
												<li><a href="dataabsensihariini.php">ABSENSI HARI INI</a></li>
												<li><a href="dataabsensi.php">KETERLAMBATAN</a></li>
											</ul>
									</li>
									<li>
									<li class="dropdown">     
											<a style='color:#fff' href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">SURAT KEPUTUSAN <span class="caret"></span></a>
											<ul class="dropdown-menu">											
												
												<li><a href="suratSkUsulanMutasi.php">USULAN MUTASI</a></li>
												<li><a href="monitoringUsulanMutasi.php"> - MONITORING MUTASI</a></li>
												<li><a href="suratSkUsulanDemosi.php">USULAN DEMOSI</a></li>
												<li><a href="monitoringUsulanDemosi.php"> - MONITORING DEMOSI</a></li>
												<li><a href="suratSkUsulanPromosi.php">USULAN PROMOSI</a></li>
												<li><a href="monitoringUsulanPromosi.php"> - MONITORING PROMOSI</a></li>
												<li><a href="suratSkUsulanKenaikanGaji.php">USULAN KENAIKAN GAJI</a></li>
												<li><a href="monitoringUsulanNaikGaji.php"> - MONITORING KENAIKAN GAJI</a></li>
											</ul>
									</li>
									<li class="dropdown">     
											<a style='color:#fff' href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">PAYROL <span class="caret"></span></a>
											<ul class="dropdown-menu">											
												
												<li><a href="karyawantetap.php">KARYAWAN TETAP T</a></li>
												<li><a href="datagajikaryawan.php">KARYAWAN KONTRAK</a></li>
												<li><a href="datagajikaryawan.php">DATA GAJI</a></li>
												<li><a href="detailgaji.php">MONITORING GAJI</a></li>
												<li><a href="lemburkaryawan.php">LEMBUR</a></li>
												<li><a href="monitoringLembur.php">MONITORING LEMBUR</a></li>
												<li><a href="historiLembur.php">HISTORI LEMBUR</a></li>
												<li><a href="lemburkaryawan.php">GAJI LEMBUR</a></li>

											</ul>
									</li>
									<li class="dropdown">     
											<a style='color:#fff' href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">PR HCGA<span class="caret"></span></a>
											<ul class="dropdown-menu">											
												<li><a href="persetujuanPrHcga.php">PERSETUJUAN PR </a></li>
												<li><a href="prDisetujuiHcga.php">PR DISETUJUI</a></li>
												<li><a href="prDitolakHcga.php">PR DITOLAK</a></li>
												<li><a href="historyPrAllHcga.php">HISTORI PR</a></li>
											</ul>
									    </li>
							
						</li>
								<?php
							} 						
						
////////////////////////////////////////4 Admin HRD\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
							if ($level=="4")
							{
								?>
									<li class="dropdown">     
										<a style='color:#fff' href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">MENU <span class="caret"></span></a>
										<ul class="dropdown-menu">
											<li><a href="index.php">HOME</a></li>												
												<li><a href="user.php">USER</a></li>
										</ul>
									</li>
									<li class="dropdown">     
											<a style='color:#fff' href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">KARYAWAN <span class="caret"></span></a>
											<ul class="dropdown-menu">											
												
												<li><a href="tambahkaryawan.php">TAMBAH KARYAWAN</a></li>
												<li><a href="datakaryawan.php">DATA KARYAWAN</a></li>
												<li><a href="datagajikaryawan.php">DATA GAJI KARYAWAN</a></li>
												<li><a href="datanomorrekeningkaryawan.php">NOMOR REKENING KARYAWAN</a></li>
												<li><a href="datanomorbpjs.php">NOMOR BPJS KESEHATAN KARYAWAN</a></li>
												<li><a href="datanomorbpjstenagakerja.php">NOMOR BPJS TENAGA KERJA</a></li>
												<li><a href="datanomorbpjpensiun.php">NOMOR BPJS JAMINAN PENSIUN</a></li>
												<li><a href="dataanak.php">DATA ANAK</a></li>
										

											</ul>
									</li>
									<li class="dropdown">     
											<a style='color:#fff' href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">ABSENSI <span class="caret"></span></a>
											<ul class="dropdown-menu">											
												
												<li><a href="dataabsensihariini.php">ABSENSI HARI INI</a></li>
												<li><a href="dataabsensi.php">KETERLAMBATAN</a></li>
										

											</ul>
									</li>
									<li>
												<li class="dropdown">     
											<a style='color:#fff' href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">CUTI<span class="caret"></span></a>
											<ul class="dropdown-menu">											
												
												<li><a href="cuti.php">PERMOHONAN CUTI</a></li>
												<li><a href="monitoringcuti.php">MONITORING CUTI</a></li>
												<li><a href="batascuti.php">INPUT BATAS CUTI</a></li>
												<li><a href="historicuti.php">HISTORI CUTI</a></li>
												<li><a href="tes.php">tes</a></li>
											</ul>
									</li>
									<li class="dropdown">     
											<a style='color:#fff' href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">SYSTEM <span class="caret"></span></a>
											<ul class="dropdown-menu">											
												
												<li><a href="tambahHakaksesSystem.php">TAMBAH HAK AKSES SYSTEM</a></li>
										

											</ul>
									</li>
									
									
							
						</li>
								<?php
							} 
							
//////////////////////////////////5 Direktur\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
							if ($level=="5")
							{
								?>
									<li class="dropdown">     
										<a style='color:#fff' href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">MENU <span class="caret"></span></a>
										<ul class="dropdown-menu">
											<li><a href="index.php">HOME</a></li>												
												<li><a href="user.php">USER</a></li>
										</ul>
									</li>
									<li class="dropdown">     
											<a style='color:#fff' href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">ABSENSI <span class="caret"></span></a>
											<ul class="dropdown-menu">											
												
												<li><a href="dataabsensihariini.php">ABSENSI HARI INI</a></li>
												<li><a href="dataabsensi.php">KETERLAMBATAN</a></li>
										

											</ul>
									</li>
									<li class="dropdown">     
											<a style='color:#fff' href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">PERSETUJUAN PR DIR<span class="caret"></span></a>
											<ul class="dropdown-menu">											
												<li><a href="persetujuanPrDirektur.php">PERSETUJUAN PR </a></li>
												<li><a href="prDisetujuiDirektur.php">PR DISETUJUI</a></li>
												<li><a href="prDitolakDirektur.php">PR DITOLAK</a></li>
												<li><a href="historyPrAllDirektur.php">HISTORI PR</a></li>
											</ul>
									    </li>
									<li>
							
						</li>
								<?php
							} 
							
							
							
//////////////////////////////////6 Accounting \\\\\\\\\\\\\\\\\\\
							else if ($level=="6") {
								?>
									<li class="dropdown">     
											<a style='color:#fff' href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">MENU <span class="caret"></span></a>
											<ul class="dropdown-menu">
												<li><a href="index.php">HOME</a></li>												
											</ul>
										</li>
										<li class="dropdown">     
											<a style='color:#fff' href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">SURAT USULAN<span class="caret"></span></a>
											<ul class="dropdown-menu">											
												
												<li><a href="spMutasi.php">MUTASI</a></li>
												<li><a href="spDemosi.php">DEMOSI</a></li>
												<li><a href="spPromosi.php">PROMOSI</a></li>
												<li><a href="spKenaikanGaji.php">KENAIKAN GAJI</a></li>
											</ul>
									    </li>
										<li class="dropdown">     
											<a style='color:#fff' href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">CARD LIST<span class="caret"></span></a>
											<ul class="dropdown-menu">											
												<li><a href="tambahDaftarSuplier.php">TAMBAH</a></li>
												<li><a href="daftarAllCardList.php">ALL</a></li>
												<li><a href="daftarCustomer.php">CUSTOMER</a></li>
												<li><a href="daftarSuplier.php">SUPLIER</a></li>
											</ul>
									    </li>
										<li class="dropdown">     
											<a style='color:#fff' href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">ACC PAYABLE<span class="caret"></span></a>
											<ul class="dropdown-menu">											
												<li><a href="tambahInvoice.php">TAMBAH INVOICE</a></li>
												<li><a href="pembayaranInvoice.php">PEMBAYARAN INVOICE</a></li>
												<li><a href="agingScheduleAp.php">AGING SCHEDULE</a></li>
											</ul>
									    </li>
										<li>
										
									</li>
								<?php
							}
//////////////////////////////////10 Purchasing \\\\\\\\\\\\\\\\\\\
							else if ($level=="10") {
								?>
									<li class="dropdown">     
											<a style='color:#fff' href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">MENU <span class="caret"></span></a>
											<ul class="dropdown-menu">
												<li><a href="index.php">HOME</a></li>												
											</ul>
										</li>
										<li class="dropdown">     
											<a style='color:#fff' href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">SURAT USULAN<span class="caret"></span></a>
											<ul class="dropdown-menu">											
												
												<li><a href="spMutasi.php">MUTASI</a></li>
												<li><a href="spDemosi.php">DEMOSI</a></li>
												<li><a href="spPromosi.php">PROMOSI</a></li>
												<li><a href="spKenaikanGaji.php">KENAIKAN GAJI</a></li>
											</ul>
									    </li>
										<li class="dropdown">     
											<a style='color:#fff' href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">CARD LIST<span class="caret"></span></a>
											<ul class="dropdown-menu">											
												<li><a href="tambahDaftarSuplier.php">TAMBAH</a></li>
												<li><a href="daftarAllCardList.php">ALL</a></li>
												<li><a href="daftarCustomer.php">CUSTOMER</a></li>
												<li><a href="daftarSuplier.php">SUPLIER</a></li>
											</ul>
									    </li>
										<li class="dropdown">     
											<a style='color:#fff' href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">ACC PAYABLE<span class="caret"></span></a>
											<ul class="dropdown-menu">											
												<li><a href="tambahInvoice.php">TAMBAH INVOICE</a></li>
												<li><a href="pembayaranInvoice.php">PEMBAYARAN INVOICE</a></li>
												<li><a href="agingScheduleAp.php">AGING SCHEDULE</a></li>
											</ul>
									    </li>
										<li class="dropdown">     
											<a style='color:#fff' href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">PENGAJUAN PR DEP<span class="caret"></span></a>
											<ul class="dropdown-menu">											
												<li><a href="tambahPengajuanPurchasing.php">TAMBAH PR</a></li>
												<li><a href="historyPrAll.php">HISTORI PR 'sesuai nik per orang/dep'</a></li>
												
											</ul>
									    </li>
			
										<li>
										
									</li>
								<?php
							}
////////////////////////////10010 SPV Purchasing \\\\\\\\\\\\\\\\\\\
							else if ($level=="10010") {
								?>
									<li class="dropdown">     
											<a style='color:#fff' href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">MENU <span class="caret"></span></a>
											<ul class="dropdown-menu">
												<li><a href="index.php">HOME</a></li>												
											</ul>
										</li>
										<li class="dropdown">     
											<a style='color:#fff' href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">SURAT USULAN<span class="caret"></span></a>
											<ul class="dropdown-menu">											
												
												<li><a href="spMutasi.php">MUTASI</a></li>
												<li><a href="spDemosi.php">DEMOSI</a></li>
												<li><a href="spPromosi.php">PROMOSI</a></li>
												<li><a href="spKenaikanGaji.php">KENAIKAN GAJI</a></li>
											</ul>
									    </li>
										<li class="dropdown">     
											<a style='color:#fff' href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">CARD LIST<span class="caret"></span></a>
											<ul class="dropdown-menu">											
												<li><a href="tambahDaftarSuplier.php">TAMBAH</a></li>
												<li><a href="daftarAllCardList.php">ALL</a></li>
												<li><a href="daftarCustomer.php">CUSTOMER</a></li>
												<li><a href="daftarSuplier.php">SUPLIER</a></li>
											</ul>
									    </li>
										<li class="dropdown">     
											<a style='color:#fff' href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">PURCHASE ORDER<span class="caret"></span></a>
											<ul class="dropdown-menu">									
                                                <li><a href="prDiterimaPrc.php">PR DITERIMA</a></li>
                                                <li><a href="prDiprosesPrc.php">PO PROSES</a></li>
												<li><a href="prDiprosesPrcGabungan1.php">PO PROSES GABUNGAN</a></li>
                                                <li><a href="prHistoriPrc.php">PO HISTORI</a></li>												
												<li><a href="agingScheduleAp.php">AGING SCHEDULE</a></li>
											</ul>
									    </li>
										<li class="dropdown">     
											<a style='color:#fff' href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">PENGAJUAN PR DEP<span class="caret"></span></a>
											<ul class="dropdown-menu">											
												<li><a href="tambahPengajuanPurchasing.php">TAMBAH PR</a></li>
												<li><a href="historyPrAll.php">HISTORI PR 'sesuai nik per orang/dep'</a></li>
												<li><a href="agingScheduleAp.php">AGING SCHEDULE</a></li>
											</ul>
									    </li>
										<li class="dropdown">     
											<a style='color:#fff' href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">PERSETUJUAN PR SPV<span class="caret"></span></a>
											<ul class="dropdown-menu">											
												<li><a href="persetujuanPrSupervisor.php">PERSETUJUAN PR </a></li>
												<li><a href="prDisetujuiSupervisor.php">PR DISETUJUI</a></li>
												<li><a href="prDitolakSupervisor.php">PR DITOLAK</a></li>
												<li><a href="historyPrAllSupervisor.php">HISTORI PR</a></li>
											</ul>
									    </li>
										<li>
										
									</li>
								<?php
							}
////////////////////////////1009 SPV Produksi \\\\\\\\\\\\\\\\\\\
							else if ($level=="1009") {
								?>
									<li class="dropdown">     
											<a style='color:#fff' href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">MENU <span class="caret"></span></a>
											<ul class="dropdown-menu">
												<li><a href="index.php">HOME</a></li>
												
											</ul>
										</li>
										<li class="dropdown">     
											<a style='color:#fff' href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">SURAT USULAN<span class="caret"></span></a>
											<ul class="dropdown-menu">											
												
												<li><a href="spMutasi.php">MUTASI</a></li>
												<li><a href="spDemosi.php">DEMOSI</a></li>
												<li><a href="spPromosi.php">PROMOSI</a></li>
												<li><a href="spKenaikanGaji.php">KENAIKAN GAJI</a></li>
											</ul>
									    </li>
										<li class="dropdown">     
											<a style='color:#fff' href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">PERSETUJUAN PR SPV<span class="caret"></span></a>
											<ul class="dropdown-menu">											
												<li><a href="persetujuanPrSupervisor.php">PERSETUJUAN PR </a></li>
												<li><a href="prDisetujuiSupervisor.php">PR DISETUJUI</a></li>
												<li><a href="prDitolakSupervisor.php">PR DITOLAK</a></li>
												<li><a href="historyPrAllSupervisor.php">HISTORI PR</a></li>
											</ul>
									    </li>
										<li class="dropdown">     
											<a style='color:#fff' href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">MONITOR & JOB INPUT<span class="caret"></span></a>
											<ul class="dropdown-menu">				
                                                <li><a href="dataInspectAndTesting.php">Data Monitor Inspect & Testing </a></li>		
                                                <li><a href="halamanFiturJobProduction.php">Job </a></li>												
												<li><a href="inputReceiving.php">1. Receiving </a></li>
												<li><a href="partIdentificationTag.php">2. Part Identification Tag</a></li>
											</ul>
									    </li>
										<li class="dropdown">     
											<a style='color:#fff' href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">INSPECTOR<span class="caret"></span></a>
											<ul class="dropdown-menu">				
                                                <li><a href="printInspectionReport.php">3. Print Inspection Report </a></li>
                                                <li><a href="partIdentificationTag2.php">4. Part Identification Tag </a></li>												
											</ul>
									    </li>
										<li class="dropdown">     
											<a style='color:#fff' href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">D.A.T<span class="caret"></span></a>
											<ul class="dropdown-menu">				
                                                <li><a href="cleaningAndDat.php">3. Cleaning Component & D.A.T</a></li>
                                                <li><a href="partIdentificationTag2.php">4. Part Identification Tag </a></li>												
											</ul>
									    </li>
										<li>
										
									</li>
								<?php
							}
////////////////////////////1008 SPV QC/ENG \\\\\\\\\\\\\\\\\\\
							else if ($level=="1008") {
								?>
									<li class="dropdown">     
											<a style='color:#fff' href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">MENU <span class="caret"></span></a>
											<ul class="dropdown-menu">
												<li><a href="index.php">HOME</a></li>												
											</ul>
										</li>
										<li class="dropdown">     
											<a style='color:#fff' href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">SURAT USULAN<span class="caret"></span></a>
											<ul class="dropdown-menu">											
												
												<li><a href="spMutasi.php">MUTASI</a></li>
												<li><a href="spDemosi.php">DEMOSI</a></li>
												<li><a href="spPromosi.php">PROMOSI</a></li>
												<li><a href="spKenaikanGaji.php">KENAIKAN GAJI</a></li>
											</ul>
									    </li>
										<li class="dropdown">     
											<a style='color:#fff' href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">PERSETUJUAN PR SPV<span class="caret"></span></a>
											<ul class="dropdown-menu">											
												<li><a href="persetujuanPrSupervisor.php">PERSETUJUAN PR </a></li>
												<li><a href="prDisetujuiSupervisor.php">PR DISETUJUI</a></li>
												<li><a href="prDitolakSupervisor.php">PR DITOLAK</a></li>
												<li><a href="historyPrAllSupervisor.php">HISTORI PR</a></li>
											</ul>
									    </li>
										<li class="dropdown">     
											<a style='color:#fff' href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">INSPECTOR<span class="caret"></span></a>
											<ul class="dropdown-menu">				
                                                <li><a href="printInspectionReport.php">4. INSPEKSI KOMPONEN </a></li>
                                                <li><a href="partIdentificationTag2.php">4. Part Identification Tag </a></li>												
											</ul>
									    </li>
										<li class="dropdown">     
											<a style='color:#fff' href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">FITUR JOB<span class="caret"></span></a>
											<ul class="dropdown-menu">				
                                                <li><a href="halamanFiturJob.php">Job</a></li>											
											</ul>
									    </li>
										<li>
										
									</li>
								<?php
							}			
					   ?>							
					   
						<li>
							<a style='color:#fff' href="logout.php" role="button" aria-haspopup="true" aria-expanded="false">LOGOUT</a>
						</li>
						<li>
							<?php
							
							
							?>
							
						</li>
					<?php
				}
				else {
					?>
						<li>
							<a style='color:#fff' href="index.php" role="button" aria-haspopup="true" aria-expanded="false">HOME</a>
						</li>
						
						<li>
							<a style='color:#fff' href="index.html" role="button" aria-haspopup="true" aria-expanded="false">LOGIN</a>
						</li>
						<?php
						//<li>
							//<a style='color:#fff' href="regis.php" role="button" aria-haspopup="true" aria-expanded="false">REGISTER</a>
						//</li>
						?>
						
						</li>
						<li>
							
						</li>
					<?php
				}
			?>
			
			
		</ul>
		<form action="search.php" method="get" align="right">
								<input type="text"  value="<?php echo $keyword;?>" style="margin-top:10px"; placeholder="Masukkan keyword anda" name="cari">
								<input type="submit" value="Cari"/>
								<p>
								</p>
								<?php
								
	$q = "SELECT * FROM data_karyawan"; 
    $res = mysqli_query($conn, $q);
	$row2 = mysqli_fetch_array($res);
	$tanggallahir=$row2["tanggal_lahir"];
	//echo $tanggalmasuk;	
	//echo "</br>";
	$tanggalhariini=date('yy-m-d');
	//echo $tanggalhariini;
	//echo "</br>";
	$tanggal = date('yy-m-d', strtotime('-3 days',strtotime($tanggalhariini)));
	//echo "ini tanggal setelah dikurang,".$tanggal;
	
	if ($tanggallahir == $tanggal)
	{
		echo "</br>";
		echo "sebentar lagi ada yang mau ulang tahun tanggal '".$tanggallahir."'";
		$b = "SELECT * FROM data_karyawan WHERE tanggal_lahir = $tanggallahir";
		$res2 = mysqli_query($conn, $b);
		$rowi = mysqli_fetch_array($res2);
		echo "dengan nama".$rowi["nama_karyawan"];
		
	}
	else
	{
		echo "</br>";
		echo "Tidak ada yang ulang tahun / ";
	}
	
    
								
								
								$timezone = time() + (60 * 60 * 1);
								date_default_timezone_set('Asia/Jakarta');
                                
								echo  date('l, d-M-Y / H:i:s a',$timezone);
								?>
							</form>
							
	</div>
</div>