<?php 
if ($_GET['page']=="Halaman-Utama")
{
	$halaman_utama="active";
}
else if ($_GET['page']=="Data-Siswa")
{
	$data_master="active";
	$master_siswa="active";
}
else if ($_GET['page']=="Data-Kelas")
{
	$data_master="active";
	$master_kelas="active";
}
else if ($_GET['page']=="Data-Kelas-Siswa")
{
	$data_master="active";
	$master_kelas_siswa="active";
}
else if ($_GET['page']=="Data-User")
{
	$data_master="active";
	$master_pengguna="active";
}
else if ($_GET['page']=="Edit-User")
{
	$data_master="active";
	$master_pengguna="active";
}
else if ($_GET['page']=="Data-Pembayaran")
{
	$data_master="active";
	$master_pembayaran="active";
}
else if ($_GET['page']=="Transaksi-Pembayaran")
{
	$transaksi="active";
	$pembayaran_spsp_dsp="active";
}
else if ($_GET['page']=="Data-Pengeluaran")
{
	$transaksi="active";
	$pengeluaran="active";
}
else if ($_GET['page']=="Laporan-SPMP")
{
	$laporan_transaksi="active";
	$laporan_spmp="active";
}
else if ($_GET['page']=="Laporan-DSP")
{
	$laporan_transaksi="active";
	$laporan_dsp="active";
}
else if ($_GET['page']=="Laporan-Pengeluaran")
{
	$laporan_transaksi="active";
	$laporan_pengeluaran="active";
}
else if ($_GET['page']=="Bukti-Transaksi")
{
	$cetak_bukti_transaksi="active";
}
else if ($_GET['page']=="Riwayat-Transaksi")
{
	$riwayat_transaksi="active";
}
else if ($_GET['page']=="Target-Cari")
{
	$riwayat_transaksi="active";
}
?>
<div class="sidebar-menu">
	<div class="sidebar-header">
		<div class="logo">
			<!-- <a href="index.html"><img src="../assets/images/icon/logo.png" alt="logo"></a> -->
			<h2 align="center" style="color: white; font-family: cursive;"><b><a href="?page=Halaman-Utama">SIPA MAN 4</a></b></h2>
		</div>
	</div>

	<?php if(isset($_SESSION['SES_ADMIN'])){ ?>
	<div class="main-menu">
		<div class="menu-inner">
			<nav>
				<ul class="metismenu" id="menu">
					<li class="<?php echo $Halaman_Utama; ?>">
						<a href="?page=Halaman-Utama"><i class="ti-map-alt"></i> <span>Beranda</span></a>
					</li>
					<li class="<?php echo $data_master; ?>">
						<a href="javascript:void(0)" aria-expanded="true"><i class="ti-dashboard"></i><span>Data Master</span></a>
						<ul class="collapse">
							<li class="<?php echo $master_siswa; ?>"><a href="?page=Data-Siswa">Master Siswa</a></li>
							<li class="<?php echo $master_kelas; ?>"><a href="?page=Data-Kelas">Master Kelas</a></li>
							<li class="<?php echo $master_kelas_siswa; ?>"><a href="?page=Data-Kelas-Siswa">Master Kelas Siswa</a></li>
							<li class="<?php echo $master_pengguna; ?>"><a href="?page=Data-User">Master Pengguna</a></li>
							<li class="<?php echo $master_pembayaran; ?>"><a href="?page=Data-Pembayaran">Master Pembayaran</a></li>
						</ul>
					</li>
					<!-- <li class="">
						<a href="javascript:void(0)" aria-expanded="true"><i class="ti-dashboard"></i><span>Laporan Master</span></a>
						<ul class="collapse">
							<li class=""><a href="?page=Laporan-Data-Siswa">Laporan Data Siswa</a></li>
						</ul>
					</li> -->
					<!-- <li class="">
						<a href="javascript:void(0)" aria-expanded="true"><i class="ti-dashboard"></i><span>Laporan Transaksi</span></a>
						<ul class="collapse">
							<li class=""><a href="?page=Laporan-SPMP">Laporan SPMP</a></li>
							<li><a href="?page=Laporan-DSP">Laporan DSP</a></li>
							<li><a href="?page=Laporan-Pengeluaran">Laporan Pengeluaran</a></li>
						</ul>
					</li> -->
					<li>
						<a href="logout.php"><i class="ti-map-alt"></i> <span>Logout</span></a>
					</li>                            
				</ul>
			</nav>
		</div>
	</div>
</div>

<?php } elseif(isset($_SESSION['SES_KASIR'])){ ?>

<div class="main-menu">
	<div class="menu-inner">
		<nav>
			<ul class="metismenu" id="menu">
				<li class="<?php echo $halaman_utama; ?>">
					<a href="?page=Halaman-Utama"><i class="ti-map-alt"></i> <span>Beranda</span></a>
				</li>
				<!-- <li class="<?php echo $data_master; ?>">
					<a href="javascript:void(0)" aria-expanded="true"><i class="ti-dashboard"></i><span>Data Master</span></a>
					<ul class="collapse">
						<li class="<?php echo $master_siswa; ?>"><a href="?page=Data-Siswa">Master Siswa</a></li>
						<li class="<?php echo $master_kelas; ?>"><a href="?page=Data-Kelas">Master Kelas</a></li>
						<li class="<?php echo $master_kelas_siswa; ?>"><a href="?page=Data-Kelas-Siswa">Master Kelas Siswa</a></li>
						<li class="<?php echo $master_pembayaran; ?>"><a href="?page=Data-Pembayaran">Master Pembayaran</a></li>
					</ul>
				</li> -->
				<li class="<?php echo $transaksi; ?>">
					<a href="javascript:void(0)" aria-expanded="true"><i class="ti-dashboard"></i><span>Transaksi</span></a>
					<ul class="collapse">
						<li class="<?php echo $pembayaran_spsp_dsp; ?>"><a href="?page=Transaksi-Pembayaran">Pembayaran SPMP/DSP</a></li>
						<li class="<?php echo $pengeluaran; ?>"><a href="?page=Data-Pengeluaran">Pengeluaran</a></li>
					</ul>
				</li>
				<li class="<?php echo $laporan_transaksi; ?>">
					<a href="javascript:void(0)" aria-expanded="true"><i class="ti-dashboard"></i><span>Laporan Transaksi</span></a>
					<ul class="collapse">
						<li class="<?php echo $laporan_spmp; ?>"><a href="?page=Laporan-SPMP">Laporan SPMP</a></li>
						<li class="<?php echo $laporan_dsp; ?>"><a href="?page=Laporan-DSP">Laporan DSP</a></li>
						<li class="<?php echo $laporan_pengeluaran; ?>"><a href="?page=Laporan-Pengeluaran">Laporan Pengeluaran</a></li>
						<!-- <li><a href="?page=Cari-Siswa">Riwayat Transaksi Siswa</a></li> -->
					</ul>
				</li>
				<li class="<?php echo $cetak_bukti_transaksi; ?>">
					<a href="?page=Bukti-Transaksi"><i class="ti-map-alt"></i> <span>Cetak Bukti Transaksi</span></a>
				</li>
				<li class="<?php echo $riwayat_transaksi; ?>">
					<a href="?page=Riwayat-Transaksi"><i class="ti-map-alt"></i> <span>Riwayat Transaksi</span></a>
				</li>
				<li>
					<a href="logout.php"><i class="ti-map-alt"></i> <span>Logout</span></a>
				</li>                            
			</ul>
		</nav>
	</div>
</div>
</div>
<?php } 
// else { 
// 	header("Location:login.php");
// }
?>