<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <title><?php echo $title_pdf;?></title>
		<style>
			body {
			  background-image: url('<?php echo base_url();?>assets/images/bg_pdf.png');
			  background-repeat: no-repeat;
			  background-attachment: fixed;
			  background-position: center;
			}
			.kemenag {
			  background-image: url('<?php echo base_url();?>assets/images/kemenag2.png');
			  background-repeat: no-repeat;
			  background-position: 3% 50%;
			  background-size: contain;
			}
		</style>
    </head>
    <body>
		<table style="border-collapse: collapse; width:700px;">
			<tr>
				<td style="width:5%;">&nbsp;</td>
				<td style="width:11%;">&nbsp;</td>
				<td style="width:21%;">&nbsp;</td>
				<td style="width:21%;">&nbsp;</td>
				<td style="width:21%;">&nbsp;</td>
				<td style="width:21%;">&nbsp;</td>
			</tr>
			<tr>
				<td colspan="6" class="kemenag">
					<center>
						KEMENTERIAN AGAMA REPUBLIK INDONESIA<br>
						KANTOR KEMENTERIAN AGAMA KABUPATEN MAGELANG<br>
						<strong>MADRASAH ALIYAH NEGERI 1</strong><br>
						<span style="font-size:12px;">Jl. Sunan Bonang No.17 Telp/Fax (0293) 362928 PO Box 141 Magelang 56123</span><br>
						<span style="font-size:12px;">website : www.man1magelang.sch.id &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;email : mankabma@yahoo.co.id</span>
					</center>
				</td>
			</tr>
			<tr>
				<td colspan="6">
					<hr style="background-color:#000000; height:3px;">
				</td>
			</tr>
			<tr>
				<td colspan="6" style="font-size:18px;">
					<center>
						<?php
							$tahun2 = (int)$tahun+1;
						?>
						SELAMAT<br>
						ANDA DITERIMA SEBAGAI SISWA MAN 1 MAGELANG<br>
						Tahun Pelajaran <?php echo $tahun."-".$tahun2;?>
					</center>
				</td>
			</tr>
			<tr>
				<td colspan="6">&nbsp;</td>
			</tr>
			<tr style="font-size:16px;">
				<td colspan="2">Nama</td>
				<td colspan="4">: <?php echo $calon_siswa->nama;?></td>
			</tr>
			<tr style="font-size:16px;">
				<td colspan="2">No. Pendaftaran</td>
				<td colspan="4">: <strong><?php echo $calon_siswa->nomor_pendaftaran;?></strong></td>
			</tr>
			<tr style="font-size:16px;">
				<td colspan="2">Jurusan</td>
				<td colspan="4">: 
					<?php
						foreach($jurusan as $j)
						{
							if($j['id_jurusan'] == $calon_siswa->id_jurusan_diterima)
							{
								echo $j['jurusan'];
							}
						}
					?>
				</td>
			</tr>
			<!--<tr style="height:10px !important;">
				<td colspan="6">&nbsp;</td>
			</tr>-->
			<tr>
				<td colspan="4">
					Catatan:<br>
					Wajib mengumpulkan berkas yang sudah diupload secara offline di ruang PPDB MAN 1 Magelang maksimal 3 hari setelah cetak Hasil Finalisasi ini.<br>
					<img src="<?php echo base_url();?>assets/images/no_korupsi.jpeg" height="60px" width="60px">
				</td>
				<td colspan="2" style="padding-left:80px !important;">
					Magelang, <?php echo $today;?><br>
					Kepala,<br>
					<img src="<?php echo base_url();?>assets/images/ttd_kamad_nobg.png" width="150px"><br>
					H. Handono, S.Ag., M.Pd.<br>
					NIP. 196903101994031004
			</td>
			</tr>
		</table>
    </body>
</html>