<?php
include("sess_check.php");
error_reporting(0);

include("dist/function/format_tanggal.php");
include("dist/function/format_rupiah.php");
$kode = $_GET['id'];
$sql = "SELECT belumnikah.*, penduduk.*, kelurahan.*, status.* FROM belumnikah INNER JOIN penduduk on penduduk.id_penduduk=belumnikah.id_penduduk INNER JOIN kelurahan on kelurahan.id_kelurahan=belumnikah.id_kelurahan INNER JOIN status on status.id_status=belumnikah.id_status WHERE belumnikah.id_blmnikah ='" . $_GET['id'] . "'";
$query = mysqli_query($conn, $sql);
$result = mysqli_fetch_array($query);
// deskripsi halaman
$pagedesc = "Surat Keterangan usaha Keluar";
$pagetitle = str_replace(" ", "_", $pagedesc)
?>
<!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="">

	<title><?php echo $pagetitle ?></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">

	<!-- Custom CSS -->
	<link href="dist/css/offline-font.css" rel="stylesheet">
	<link href="dist/css/custom-report.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]-->
	<style>
		body {
			margin : 0;
			padding : 0;

		}

		.logo {
			width: 100px;
		}

	</style>
</head>

<body>
	<section id="header-kop">
		<div class="container-fluid">
			<table class="table table-borderless">
				<tbody>
					<tr>
						<td class="text-left" width="20%">
						<img src="foto/kabupaten.png" alt="Logo Kabupaten" class="logo" />
						</td>
						<td>
							
						</td>
						<td class="text-center" width="60%">
							<h3>PEMERINTAH KABUPATEN PASURUAN</h3>
							<h3>KECAMATAN BANGIL</h3>
							<h1><b>KEPALA DESA POGAR BANGIL</b></h1>
							Jl. Patimura No. 282 Pogar - Bangil<br>
							Kode Pos (67153)<br>
						<td class="text-right" width="20%">
						</td>
					</tr>
				</tbody>
			</table>
			<hr class="line-top" />
		</div>
	</section>

	<section id="body-of-report">
		<div class="container-fluid">
			<h4 class="text-center"><u>SURAT KETERANGAN STATUS PERNIKAHAN</u></h4>
			<p class="text-center">nomor &nbsp; 00<?php echo $result['id_blmnikah']; ?></p>        
			<br />
			<table width="100%">
				<tr>
					<td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Yang bertanda tangan dibawah ini Kepala Desa Pogar, Kecamatan <?php echo $result['kecamatan']; ?> menerangkan dengan sebenarnya, bahwa :</td>
				</tr>
			</table>
			<br>
			<table width="100%">
				<tr>
					
					<td width="20%">1. Nik</td>
					<td width="60%">:&nbsp;<?php echo $result['nik']; ?></td>
					
				</tr>
			</table>

			<table width="100%">
				<tr>
					
					<td width="20%">2. Nama Lengkap</td>
					<td width="60%">:&nbsp;<?php echo $result['nama_lengkap']; ?></td>
					
				</tr>
			</table>
			<table width="100%">
				<tr>
					
					<td width="20%">3. Nomor Kartu Keluarga</td>
					<td width="60%">:&nbsp;<?php echo $result['no_kk']; ?></td>
					
				</tr>
			</table>

			<table width="100%">
				<tr>
					
					<td width="20%">4. Tempat / Tanggal Lahir</td>
					<td width="60%">:&nbsp;<?php echo $result['tempat_lahir']; ?> / <?php echo format_tanggal($result['tgl_lahir']); ?></td>
					
				</tr>
			</table>

			<table width="100%">
				<tr>
					
					<td width="20%">5. Jenis Kelamin</td>
					<td width="60%">:&nbsp;<?php echo $result['jenis_kelamin']; ?> </td>
					
				</tr>
			</table>

			<table width="100%">
				<tr>
					
					<td width="20%">6. Agama</td>
					<td width="60%">:&nbsp;<?php echo $result['agama']; ?> </td>
					
				</tr>
			</table>

			<table width="100%">
				<tr>
					
					<td width="20%">7. Pekerjaan</td>
					<td width="60%">:&nbsp;<?php echo $result['pekerjaan']; ?> </td>
					
				</tr>
			</table>

			<table width="100%">
				<tr>
					
					<td width="20%">8. Alamat</td>
					<td width="60%">:&nbsp;Desa <?php echo $result['desa']; ?>,RT <?php echo $result['rt']; ?>, RW <?php echo $result['rw']; ?></td>
					
				</tr>
			</table>
			<table width="100%">
				<tr>
					
					<td width="20%"><b> </b></td>
					<td width="60%">&nbsp;&nbsp;Kecamatan <?php echo $result['kecamatan']; ?>, Kabupaten <?php echo $result['kabupaten']; ?>, Provinsi <?php echo $result['provinsi']; ?></td>
					
				</tr>
			</table>

			

			
			<br>
		
			<table width="100%">
				<tr>
					<td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Adalah penduduk Asli Desa Pogar Kecamatan Bangil dan sepanjang pengetahuan kami, serta catatan pada kami bahawa yang bersangkutan memang <b><?php echo $result['status']; ?></b>.</td>
				</tr>
				<tr>
					<td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Demikian surat keterangan ini kami buat dengan sebenarnya untuk dapat dipergunakan sebagaimana mestinya</td>
				</tr>
			</table>
			<br>
			
			<br>
			&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<b><?php echo $result['nama_pejabat']; ?></b>
			<br />
		</div><!-- /.container -->
	</section>

	<script type="text/javascript">
		$(document).ready(function() {
			window.print();
		});
	</script>

	<!-- Bootstrap Core JavaScript -->
	<script src="libs/bootstrap/dist/js/bootstrap.min.js"></script>
	<!-- jTebilang JavaScript -->
	<script src="libs/jTerbilang/jTerbilang.js"></script>

</body>

</html>