<div id="cssmenu">
	<?php if ($udt['admincat_id'] == "1") { ?>
		<ul>
			<li><a href="?m=dashboard">Dashboard</a></li>
			<li class="has-sub"><a href="#">Content Manager</a>
				<ul>
					<li class="has-sub"><a href="?m=kontenkat_index">Kategori</a>
						<ul>
							<?php
								$kdb = mysqli_query($koneksi, "SELECT * FROM cmas_kontenkat WHERE kontenkat_status='Aktif' ORDER BY kontenkat_id ASC");
								while($kdt  = mysqli_fetch_array($kdb)) {
							?>
								<li><a href="?m=konten_indexkat&id=<?php echo $kdt['kontenkat_id']; ?>"><?php echo $kdt['kontenkat_judul']; ?></a></li>
							<?php } ?>
						</ul>
					</li>
				</ul>
			</li>
			<li class="has-sub"><a href="#">Bus Manager</a>
				<ul>
					<li><a href="?m=bus_index">Bus</a></li>
					<li><a href="?m=bustype_index">Type</a></li>
				</ul>
			</li>
			<li class="has-sub"><a href="#">Module Manager</a>
				<ul>
					<li><a href="?m=slideshow_index">Slideshow</a></li>
					<li><a href="?m=bannerkat_index">Banner Kategori</a>
						<ul>
							<?php
								$bcdb = mysqli_query($koneksi, "SELECT * FROM cmas_bannerkat WHERE bannerkat_status='Aktif' ORDER BY bannerkat_id ASC");
								while($bcdt = mysqli_fetch_array($bcdb)) {
							?>
								<li><a href="?m=banner_index&id=<?php echo $bcdt['bannerkat_id']; ?>"><?php echo $bcdt['bannerkat_nama']; ?></a></li>
							<?php } ?>
						</ul>
					</li>
					<li><a href="?m=tujuan_index">Tujuan</a>
						<ul>
							<?php
								$db = mysqli_query($koneksi, "SELECT * FROM cmas_bustype WHERE bustype_status='Aktif' ORDER BY bustype_id ASC");
								while($dt = mysqli_fetch_array($db)) {
							?>
								<li><a href="?m=tujuan_indexkat&id=<?php echo $dt['bustype_id']; ?>"><?php echo $dt['bustype_nama']; ?></a></li>
							<?php } ?>
						</ul>
					</li>
				</ul>
			</li>
			<li class="has-sub"><a href="#">Menu Manager</a>
				<ul>
					<li><a href="?m=menu_index">Menu</a></li>
					<li><a href="?m=menucat_index">Kategori</a></li>
				</ul>
			</li>
			
			<li class="has-sub"><a href="#">User Manager</a>
				<ul>
					<li><a href="?m=admin_index">Admin</a></li>
					<li><a href="?m=admincat_index">Level</a></li>
				</ul>
			</li>
			
			<li class="has-sub"><a href="#">Setting</a>
				<ul>
					<li><a href="?m=metadata_index">Metadata</a></li>
					<li><a href="?m=logo_index">Logo</a></li>
					<li><a href="?m=phpmail_index">PHPMail</a></li>
				</ul>
			</li>
			
			
			
			<li>
				<a href="?m=pesan_index">
					Inbox
					<?php
						$mdb = mysqli_query($koneksi, "SELECT COUNT(pesan_id) AS NewMail FROM cmas_pesan WHERE pesan_status='1'");
						$mdt = mysqli_fetch_array($mdb);
						echo "(".$mdt['NewMail'].")";
					?>
				</a>
			</li>
			
			<li>
				<a href="?m=notification_index">
					Notifications
					<?php
						$ndb = mysqli_query($koneksi, "SELECT COUNT(notification_id) AS Unread FROM cmas_notification WHERE notification_read='1'");
						$ndt = mysqli_fetch_array($ndb);
						echo "(".$ndt['Unread'].")";
					?>
				</a>
			</li>
			
			<li>
				<a href="?m=visitor_index">
					Visitor
					<?php
						$vdb = mysqli_query($koneksi, "SELECT COUNT(visitor_id) AS NewVisitor FROM cmas_visitor WHERE visitor_status='1'");
						$vdt = mysqli_fetch_array($vdb);
						echo "(".$vdt['NewVisitor'].")";
					?>
				</a>
			</li>
		</ul>
	<?php } elseif ($udt['admincat_id'] == "2") { ?>
		<ul>
			<li><a href="?m=dashboard">Dashboard</a></li>
			<li class="has-sub"><a href="#">Pengaturan</a>
				<ul>
					<li><a href="?m=metadata_index">Metadata</a></li>
					<li><a href="?m=logo_index">Logo</a></li>
					<li><a href="?m=phpmail_index">PHPMail</a></li>
				</ul>
			</li>
			<li class="has-sub"><a href="#">User</a>
				<ul>
					<li><a href="?m=admin_index">Admin</a></li>
				</ul>
			</li>
			<li><a href="?m=menu_index">Menu</a></li>
			<li class="has-sub"><a href="#">Module</a>
				<ul>
					<li><a href="?m=slideshow_index">Slideshow</a></li>
					<li><a href="?m=banner_index">Banner</a></li>
					<li><a href="?m=bannerkat_index">Banner Kategori</a></li>
				</ul>
			</li>
			<li class="has-sub"><a href="?m=konten_index">Konten</a>
				<ul>
					<li><a href="?m=kontenkat_index">Kategori</a></li>
					<?php
						$kdb = mysqli_query($koneksi, "SELECT * FROM cmas_kontenkat WHERE kontenkat_status='Aktif' ORDER BY kontenkat_id ASC");
						while($kdt  = mysqli_fetch_array($kdb)) {
					?>
						<li><a href="?m=konten_indexkat&id=<?php echo $kdt['kontenkat_id']; ?>"><?php echo $kdt['kontenkat_judul']; ?></a></li>
					<?php } ?>
				</ul>
			</li>
			
			<li class="has-sub"><a href="#">Paket</a>
				<ul>
					<li><a href="?m=paket_index">Paket</a></li>
					<li><a href="?m=paketkat_index">Paket Kategori</a></li>
				</ul>
			</li>
			
			<li>
				<a href="?m=pesan_index">
					Inbox
					<?php
						$mdb = mysqli_query($koneksi, "SELECT COUNT(pesan_id) AS NewMail FROM cmas_pesan WHERE pesan_status='1'");
						$mdt = mysqli_fetch_array($mdb);
						echo "(".$mdt['NewMail'].")";
					?>
				</a>
			</li>
			
			<li class="has-sub"><a href="#">History</a>
				<ul>
					<li>
						<a href="?m=notification_index">
							Notifications
							<?php
								$ndb = mysqli_query($koneksi, "SELECT COUNT(notification_id) AS Unread FROM cmas_notification WHERE notification_read='1'");
								$ndt = mysqli_fetch_array($ndb);
								echo "(".$ndt['Unread'].")";
							?>
						</a>
					</li>
					
					<li>
						<a href="?m=visitor_index">
							Visitor
							<?php
								$vdb = mysqli_query($koneksi, "SELECT COUNT(visitor_id) AS NewVisitor FROM cmas_visitor WHERE visitor_status='1'");
								$vdt = mysqli_fetch_array($vdb);
								echo "(".$vdt['NewVisitor'].")";
							?>
						</a>
					</li>
				</ul>
			</li>
		</ul>
	<?php } elseif ($udt['admincat_id'] == "3") { ?>
		<ul>
			<li><a href="?m=admin_index">Admin</a></li>
			<li><a href="?m=slideshow_index">Slideshow</a></li>
			<li><a href="?m=banner_index">Banner</a></li>
			<li class="has-sub"><a href="?m=konten_index">Konten</a>
				<ul>
					<?php
						$kdb = mysqli_query($koneksi, "SELECT * FROM cmas_kontenkat WHERE kontenkat_status='Aktif' ORDER BY kontenkat_id ASC");
						while($kdt  = mysqli_fetch_array($kdb)) {
					?>
						<li><a href="?m=konten_indexkat&id=<?php echo $kdt['kontenkat_id']; ?>"><?php echo $kdt['kontenkat_judul']; ?></a></li>
					<?php } ?>
				</ul>
			</li>
			<li><a href="?m=paket_index">Paket</a></li>
			<li>
				<a href="?m=pesan_index">
					Inbox
					<?php
						$mdb = mysqli_query($koneksi, "SELECT COUNT(pesan_id) AS NewMail FROM cmas_pesan WHERE pesan_status='1'");
						$mdt = mysqli_fetch_array($mdb);
						echo "(".$mdt['NewMail'].")";
					?>
				</a>
			</li>
			<li class="has-sub"><a href="#">History</a>
				<ul>
					<li>
						<a href="?m=notification_index">
							Notifications
							<?php
								$ndb = mysqli_query($koneksi, "SELECT COUNT(notification_id) AS Unread FROM cmas_notification WHERE notification_read='1'");
								$ndt = mysqli_fetch_array($ndb);
								echo "(".$ndt['Unread'].")";
							?>
						</a>
					</li>
					
					<li>
						<a href="?m=visitor_index">
							Visitor
							<?php
								$vdb = mysqli_query($koneksi, "SELECT COUNT(visitor_id) AS NewVisitor FROM cmas_visitor WHERE visitor_status='1'");
								$vdt = mysqli_fetch_array($vdb);
								echo "(".$vdt['NewVisitor'].")";
							?>
						</a>
					</li>
				</ul>
			</li>
		</ul>
	<?php } ?>
</div>