<?php
// setting tanggal
$haries = array("Sunday" => "Minggu", "Monday" => "Senin", "Tuesday" => "Selasa", "Wednesday" => "Rabu", "Thursday" => "Kamis", "Friday" => "Jum'at", "Saturday" => "Sabtu");
$bulans = array("", "Januari", "Februari", "Maret", "April", "Mei", "Juni", "Juli", "Agustus", "September", "Oktober", "November", "Desember");
$bulans_count = count($bulans);
// tanggal bulan dan tahun hari ini
$hari_ini = $haries[date("l")];
$bulan_ini = $bulans[date("n")];
$tanggal = date("d");
$bulan = date("m");
$tahun = date("Y");
?>
<!DOCTYPE html>
<html lang="en">

<head>
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<meta name="description" content="">
	<meta name="author" content="">

	<title>Kelurahan Pogar Bangil - <?php echo $pagedesc ?></title>

	<link href="foto/kabupaten.png" rel="icon" type="images/x-icon">

	<!-- Bootstrap Core CSS -->
	<link href="libs/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet">

	<!-- MetisMenu CSS -->
	<link href="libs/metisMenu/dist/metisMenu.min.css" rel="stylesheet">

	<!-- DataTables CSS -->
	<link href="libs/datatables-plugins/integration/bootstrap/3/dataTables.bootstrap.css" rel="stylesheet">

	<!-- DataTables Responsive CSS -->
	<link href="libs/datatables-responsive/css/dataTables.responsive.css" rel="stylesheet">

	<!-- Custom CSS -->
	<link href="dist/css/sb-admin-2.css" rel="stylesheet">
	<link href="dist/css/offline-font.css" rel="stylesheet">
	<link href="dist/css/custom.css" rel="stylesheet">

	<!-- Custom Fonts -->
	<link href="libs/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">

	<!-- jQuery -->
	<script src="libs/jquery/dist/jquery.min.js"></script>

	<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
	<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
	<!--[if lt IE 9]>
        <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
        <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
</head>

<body>
	<div id="wrapper">

		<!-- Navigation -->
		<nav class="navbar navbar-default navbar-static-top" role="navigation" style="margin-bottom: 0">
			<div class="navbar-header">
				<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
					<span class="sr-only">Toggle navigation</span>
					<span class="icon-bar"></span>
					<span class="icon-bar"></span>
					<span class="icon-bar"></span>
				</button>
				<a class="navbar-brand hidden-xs" href="index.php">
					<img src="foto/kabupaten.png" alt="brand" width="32" class="float-left image-brand">
					<div class="float-right">&nbsp;<strong>KELURAHAN POGAR BANGIL</strong></div>
					<div class="clear-both"></div>
				</a>
				<a class="navbar-brand visible-xs" href="index.php">
					<img src="foto/kabupaten.png" alt="brand" width="32" class="float-left image-brand">
					<div class="float-right">&nbsp;<strong>KELURAHAN POGAR BANGIL</strong></div>
					<div class="clear-both"></div>
				</a>
			</div><!-- /.navbar-header -->

			<ul class="nav navbar-top-links navbar-right">
				<li class="dropdown dropdown-right">
					<a class="dropdown-toggle" data-toggle="dropdown" href="#">
						<img src="foto/<?php echo $sess_admfoto; ?>" width="20px" height="20px" padding="0px">&nbsp;&nbsp;<?php echo ucfirst($sess_admname); ?>&nbsp;<i class="fa fa-caret-down"></i>
					</a>
					<ul class="dropdown-menu dropdown-user">
						<li><a href="pengaturan.php"><i class="fa fa-gear fa-fw"></i>&nbsp;Pengaturan Akun</a></li>
						<li class="divider"></li>
						<li><a href="logout.php"><i class="fa fa-sign-out fa-fw"></i> Keluar</a></li>
					</ul><!-- /.dropdown-user -->
				</li><!-- /.dropdown -->
			</ul><!-- /.navbar-top-links -->

			<div class="navbar-default sidebar" role="navigation">
				<div class="sidebar-nav navbar-collapse">
					<ul class="nav" id="side-menu">
						<li class="sidebar-search">
							<h4>Sistem Informasi Pelayanan</h4>
							<h5 class="text-muted"><i class="fa fa-calendar fa-fw"></i>&nbsp;<?php echo $hari_ini . ", " . $tanggal . " " . $bulan_ini . " " . $tahun ?></h5>
						</li>
						<?php
						if ($pagedesc == "Beranda") {
							echo '<li><a href="index.php" class="active"><i class="fa fa-home fa-fw"></i>&nbsp;Beranda</a></li>';
						} else {
							echo '<li><a href="index.php"><i class="fa fa-home fa-fw"></i>&nbsp;Beranda</a></li>';
						}

						if (isset($menuparent) && $menuparent == "supplier") {
							echo '<li class="active">';
						} else {
							echo '<li>';
						}
						?>
						<!-- open <li> tag generated with php, see line 155-160 -->
						<a href="#"><i class="fa fa-th-large fa-fw"></i>&nbsp;Master<span class="fa arrow"></span></a>
						<ul class="nav nav-second-level">
							<?php
							if ($pagedesc == "identitas") {
								echo '<li><a href="identitas.php" class="active">Identitas Kelurahan</a></li>';
							} else {
								echo '<li><a href="identitas.php">Identitas Kelurahan</a></li>';
							}
							?>

							<?php
							if ($pagedesc == "penduduk") {
								echo '<li><a href="penduduk.php" class="active">Penduduk</a></li>';
							} else {
								echo '<li><a href="penduduk.php">Penduduk</a></li>';
							}
							?>
						</ul><!-- /.nav-second-level -->
						<li> 
						<!-- open <li> tag generated with php, see line 155-160 -->
						<a href="#"><i class="fa fa-chain fa-fw"></i>&nbsp;Master Surat<span class="fa arrow"></span></a>
						<ul class="nav nav-second-level">
							<?php
							if ($pagedesc == "Surat Keterangan Kehilangan") {
								echo '<li><a href="skkehilangan.php" class="active">Surat Keterangan Kehilangan</a></li>';
							} else {
								echo '<li><a href="skkehilangan.php">Surat Keterangan Kehilangan</a></li>';
							}
							?>

							<?php
							if ($pagedesc == "Surat Pengantar Pindah Keluar") {
								echo '<li><a href="skpindahkeluar.php" class="active">Surat Pengantar Pindah Keluar</a></li>';
							} else {
								echo '<li><a href="skpindahkeluar.php">Surat Pengantar Pindah Keluar</a></li>';
							}
							?>
							<?php
							if ($pagedesc == "Surat Keterangan Usaha") {
								echo '<li><a href="skusaha.php" class="active">Surat Keterangan Usaha</a></li>';
							} else {
								echo '<li><a href="skusaha.php">Surat Keterangan Usaha</a></li>';
							}
							?>
							<?php
							if ($pagedesc == "SK Belum Menikah & Cerai") {
								echo '<li><a href="skstatus.php" class="active">SK Belum Menikah & Cerai</a></li>';
							} else {
								echo '<li><a href="skstatus.php">SK Belum Menikah & Cerai</a></li>';
							}
							?>

							<?php
							if ($pagedesc == "Akte") {
								echo '<li><a href="skakte.php" class="active">Surat Pengantar / AKTE </a></li>';
							} else {
								echo '<li><a href="skakte.php">Surat Pengantar / AKTE</a></li>';
							}
							?>

							<?php
							if ($pagedesc == "kk") {
								echo '<li><a href="skkk.php" class="active">Surat Pengantar KK</a></li>';
							} else {
								echo '<li><a href="skkk.php">Surat Pengantar KK</a></li>';
							}
							?>

							<?php
							if ($pagedesc == "skck") {
								echo '<li><a href="skskck.php" class="active">Surat Pengantar SKCK </a></li>';
							} else {
								echo '<li><a href="skskck.php">Surat Pengantar SKCK</a></li>';
							}
							?>

							<?php
							if ($pagedesc == "domisili") {
								echo '<li><a href="skdomisili.php" class="active">Surat Pengantar Domisili </a></li>';
							} else {
								echo '<li><a href="skdomisili.php">Surat Pengantar Domisili</a></li>';
							}
							?>
							<?php
							if ($pagedesc == "ktp") {
								echo '<li><a href="skktp.php" class="active">Surat Pengantar KTP </a></li>';
							} else {
								echo '<li><a href="skktp.php">Surat Pengantar KTP</a></li>';
							}
							?>

						</ul><!-- /.nav-second-level -->
						<?php
						if (isset($menuparent) && $menuparent == "kasir") {
							echo '<li class="active">';
						} else {
							echo '<li>';
						}
						?>
						<!-- open <li> tag generated with php, see line 155-160 -->
						<a href="#"><i class="fa fa-group fa-fw"></i>&nbsp;Master Lain-Lain<span class="fa arrow"></span></a>
						<ul class="nav nav-second-level">
							<?php
							if ($pagedesc == "Data Kasir") {
								echo '<li><a href="kasir.php" class="active">Data Kasir</a></li>';
							} else {
								echo '<li><a href="kasir.php">Data Kasir</a></li>';
							}
							?>
						</ul><!-- /.nav-second-level -->
						<?php
						if (isset($menuparent) && $menuparent == "barang") {
							echo '<li class="active">';
						} else {
							echo '<li>';
						}
						?>
						
						
						</li>
						
				</div>
				<!-- /.sidebar-collapse -->
			</div>
			<!-- /.navbar-static-side -->
		</nav>