<!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>Agenda Surat Masuk</title>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<link href="<?= base_url()?>assets/css/report.css" rel="stylesheet" type="text/css">
		<?php if (is_file(LOKASI_LOGO_DESA . "favicon.ico")): ?>
			<link rel="shortcut icon" href="<?= base_url()?><?= LOKASI_LOGO_DESA?>favicon.ico" />
		<?php else: ?>
			<link rel="shortcut icon" href="<?= base_url()?>favicon.ico" />
		<?php endif; ?>
	</head>
	<body>
		<div id="container">
			<!-- Print Body -->
			<div id="body">
				<div class="header" align="center">
					<label align="left"><?= get_identitas()?></label>
					<h3>
						<span>AGENDA SURAT MASUK</span>
						<?php if (!empty($_SESSION['filter'])): ?>
							TAHUN <?= $_SESSION['filter']; ?>
						<?php endif; ?>
					</h3>
					<br>
				</div>
				<table class="border thick">
					<thead>
						<tr class="border thick">
							<th>Nomor Urut</th>
							<th>Tanggal Penerimaan</th>
							<th>Nomor Surat</th>
							<th>Tanggal Surat</th>
							<th>Pengirim</th>
							<th>Isi Singkat</th>
						</tr>
					</thead>
					<tbody>
						<?php foreach ($main as $data): ?>
						<tr>
							<td><?= $data['nomor_urut']?></td>
							<td><?= tgl_indo($data['tanggal_penerimaan'])?> </td>
							<td><?= $data['nomor_surat']?></td>
							<td><?= tgl_indo($data['tanggal_surat'])?></td>
							<td><?= $data['pengirim']?></td>
							<td><?= $data['isi_singkat']?></td>
						</tr>
						<?php endforeach; ?>
					</tbody>
				</table>
				<?php $this->load->view("global/blok_ttd_pamong.php", ['total_col' => 6, 'spasi_kiri' => 1, 'spasi_tengah' => 2]); ?>
			</div>
		</div>
	</body>
</html>
