<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<title>BUKU DATA APARAT PEMERINTAHAN DESA</title>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<link rel="shortcut icon" href="<?= favico_desa() ?>"/>
		<link href="<?= base_url()?>assets/css/report.css" rel="stylesheet" type="text/css">
		<!-- TODO: Pindahkan ke external css -->
		<style>
			.textx
			{
				mso-number-format:"\@";
			}
			td.bold { font-weight: bold; }
			td.underline {border-bottom: solid 1px;}
		</style>
	</head>
	<body>
		<div id="container">

		<!-- Print Body -->
			<div id="body">
				<div align="center">
					<h3> BUKU DATA APARAT PEMERINTAHAN <?= strtoupper($this->setting->sebutan_desa) ?> </h3>
				</div>
				<table>
					<col span="12" style="width: 7.75%;">
					<col style="width: 7%;">
					<tr>
						<td colspan="12">&nbsp;</td>
						<td style="border: solid 1px black; font-size: 14px; text-align: center; padding: 5px 0px;" >Model A.4</td>
					</tr>
				</table>
				<table>
					<tr>
						<td colspan="2" class="bold" style="width: 13%;"><?= ucwords($this->setting->sebutan_desa)?></td>
						<td colspan="1" style="width: 10%; white-space: nowrap;"> : <?= $desa['nama_desa']?></td>
						<td colspan="10">&nbsp;</td>
					</tr>
					<tr>
						<td colspan="2" class="bold"><?= ucwords($this->setting->sebutan_kecamatan)?></td>
						<td colspan="1"> : <?= $desa['nama_kecamatan']?></td>
						<td colspan="10">&nbsp;</td>
					</tr>
					<tr>
						<td colspan="2" class="bold"><?= ucwords($this->setting->sebutan_kabupaten)?></td>
						<td colspan="1"> : <?= $desa['nama_kabupaten']?></td>
						<td colspan="10">&nbsp;</td>
					</tr>
					<tr>
						<td colspan="2" class="bold">Bulan / Tahun</td>
						<td colspan="1"> : <?= getBulan(date('m')) . ' / ' . date('Y')?></td>
						<td colspan="10">&nbsp;</td>
					</tr>
					<tr>
						<td colspan="13">&nbsp;</td>
					</tr>
				</table>
				<table class="border thick">
					<thead>
						<tr class="border thick">
							<th width="3%">NO</th>
							<th width="10%">NAMA</th>
							<th><?= $this->setting->sebutan_nip_desa  ?></th>
							<th>NIP</th>
							<th>JENIS KELAMIN</th>
							<th>TEMPAT TANGGAL LAHIR</th>
							<th>AGAMA</th>
							<th width="5%">PANGKAT/ GOLONGAN</th>
							<th>JABATAN</th>
							<th>PENDIDIKAN TERAKHIR</th>
							<th width="10%">NOMOR DAN TANGGAL KEPUTUSAN PENGANGKATAN</th>
							<th width="10%">NOMOR DAN TANGGAL KEPUTUSAN PEMBERHENTIAN</th>
							<th width="7%">KETERANGAN (Periode/Masa Jabatan)</th>
						</tr>
						<tr>
							<th>1</th>
							<th>2</th>
							<th>3</th>
							<th>4</th>
							<th>5</th>
							<th>6</th>
							<th>7</th>
							<th>8</th>
							<th>9</th>
							<th>10</th>
							<th>11</th>
							<th>12</th>
							<th>13</th>
					</thead>
					<tbody>
						<?php foreach ($main as $data): ?>
							<tr>
								<td><?= $data['no']?></td>
								<td><?= $data['nama']?></td>
								<td class="textx"><?= $data['pamong_niap']?></td>
								<td class="textx"><?= $data['pamong_nip']?></td>
								<td><?= $data['sex']?></td>
								<td><?= $data['tempatlahir'] . ', ' . tgl_indo_out($data['tanggallahir'])?></td>
								<td><?= $data['agama']?></td>
								<td><?= $data['pamong_pangkat']?></td>
								<td><?= $data['jabatan']?></td>
								<td><?= $data['pendidikan_kk']?></td>
								<td><?= $data['pamong_nosk'] . ', ' . tgl_indo_out($data['pamong_tglsk'])?></td>
								<td><?= $data['pamong_nohenti'] . ', ' . tgl_indo_out($data['pamong_tglhenti'])?></td>
								<td><?= $data['pamong_masajab']?></td>
							</tr>
						<?php endforeach; ?>
					</tbody>
				</table>
				<?php $this->load->view('global/blok_ttd_pamong.php', ['total_col' => 13, 'spasi_kiri' => 3, 'spasi_tengah' => 6]); ?>
			</div>
		</div>
	</body>
</html>
