<?php ob_start();
error_reporting(0);
require("../../config/koneksi.php");
require("../../config/function.php");
require("../../config/crud.php");
session_start();
if (!isset($_SESSION['id_user'])) {
    die('Anda tidak diijinkan mengakses langsung');
}
$nis=$_GET['nis'];
$tp=date('Y');
$tpk=$tp-1;

$siswa = fetch($koneksi, 'binduk_siswa', ['nis' => $nis]);
$ortu = fetch($koneksi, 'binduk_ortu', ['nis' => $nis]);
$bulane=fetch($koneksi,'bulan',['bln'=>$bl]);
$rapor=fetch($koneksi,'pengaturan',['id_setting' => 1]);
?>
<!DOCTYPE html>
<html>

<head>
    <meta charset='utf-8'>

    <title>Binduk_<?= $siswa['nama'] ?></title>

<link rel="stylesheet" href="../../plugins/bootstrap/dist/css/bootstrap.min.css">

<style>
@page { margin: 30px; }
body { margin: 30px; }
</style>
    
</head>
<body style="font-size: 13px;">
   <center>
    <h5>IV. LEMBAR BUKU INDUK REGISTER</h5>	
    </center>
    <br> <br>
     
    <div class="col-md-12">
	<table style="margin-left:570px;margin-right:10px"  width="50%" border="1">
            <tr>
             <td class="text-center" width="100px"><b>No. Urut</b></td>              
            </tr>
            <tr>			
			<td class="text-center" >
			<h4><?= $siswa['id'] ?></h4>
			</td>
            </tr>
	
	</table>
	<br>
	
	<table style="margin-left:200px;margin-right:10px"  width="90%" border="0">
            <tr>
             <td>NIS</td>
             <td>: <?= $siswa['nis'] ?></td>	
			 <td></td>	
			 <td>NISN</td>
			 <td>: <?= $siswa['nisn'] ?></td>
            </tr>          
	</table>
	<br>  
	&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<b>A. KETERANGAN PESERTA DIDIK</b>
	
        <table style="margin-left:30px;margin-right:10px"  width="100%">
         
		   <tr>
			  <td width="1%">1</td>
                <td width="18%">&nbsp;&nbsp;a. Nama Lengkap</td>
                <td width="1%">:</td>
			<td width="40%"><?= $siswa['nama'] ?></td>
            </tr>
            <tr>
			  <td width="1%"></td>
                <td width="18%">&nbsp;&nbsp;b. Nama Panggilan</td>
                <td width="1%">:</td>
			<td width="40%"><?= $siswa['panggilan'] ?></td>
            </tr>
			 <tr>
			  <td width="1%">2</td>
                <td width="18%">&nbsp;&nbsp;Jenis Kelamin</td>
                <td width="1%">:</td>
			<td width="40%"><?= $siswa['jk'] ?></td>
            </tr>
			 <tr>
			  <td width="1%">3</td>
                <td width="18%">&nbsp;&nbsp;a. Tempat Lahir</td>
                <td width="1%">:</td>
			<td width="40%"><?= $siswa['t_lahir'] ?></td>
            </tr>
			 <tr>
			  <td width="1%"></td>
                <td width="18%">&nbsp;&nbsp;b. Tanggal Lahir</td>
                <td width="1%">:</td>
			<td width="40%"><?= $siswa['tgl_lahir'] ?></td>
            </tr>
			 <tr>
			  <td width="1%">4</td>
                <td width="18%">&nbsp;&nbsp;Agama</td>
                <td width="1%">:</td>
			<td width="40%"><?= $siswa['agama'] ?></td>
            </tr>
			<tr>
			  <td width="1%">5</td>
                <td width="18%">&nbsp;&nbsp;Kewaganegaraan</td>
                <td width="1%">:</td>
			<td width="40%"><?= $siswa['warga'] ?></td>
            </tr>
			<tr>
			  <td width="1%">6</td>
                <td width="18%">&nbsp;&nbsp;Anak ke</td>
                <td width="1%">:</td>
			<td width="40%"><?= $siswa['anakke'] ?></td>
            </tr>
			<tr>
			  <td width="1%">7</td>
                <td width="18%">&nbsp;&nbsp;Jumlah Saudara Kandung</td>
                <td width="1%">:</td>
			<td width="40%"><?= $siswa['sdrkandung'] ?></td>
            </tr>
			<tr>
			  <td width="1%">8</td>
                <td width="18%">&nbsp;&nbsp;Jumlah Saudara Tiri</td>
                <td width="1%">:</td>
			<td width="40%"><?= $siswa['sdrtiri'] ?></td>
            </tr>
			<tr>
			  <td width="1%">9</td>
                <td width="18%">&nbsp;&nbsp;Jumlah Saudara Angkat</td>
                <td width="1%">:</td>
			<td width="40%"><?= $siswa['sdrangkat'] ?></td>
            </tr>
			<tr>
			  <td width="1%">10</td>
                <td width="18%">&nbsp;&nbsp;Anak Yatim/Yatim Piatu</td>
                <td width="1%">:</td>
			<td width="40%"><?= $siswa['status'] ?></td>
            </tr>
			<tr>
			  <td width="1%">11</td>
                <td width="18%">&nbsp;&nbsp;Bahasa Sehari-hari</td>
                <td width="1%">:</td>
			<td width="40%"><?= $siswa['bahasa'] ?></td>
            </tr>
        </table>
       <?php if ($siswa['foto'] <>'') { ?>
                        <img width="90px" height="100px" class="img" src="../../foto/fotosiswa/<?= $siswa['foto'] ?>" style="margin-top:-300px;margin-left:570px;margin-right:10px " >
                    <?php } ?>
                   <?php if ($siswa['foto'] =='') { ?>
                        <img width="90px" class="img" src="../../dist/img/avatar.png" style="margin-top:-300px;margin-left:570px;margin-right:10px " >
                    <?php } ?>
        
		<br>  
		<br>  
	&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<b>B. KETERANGAN TEMPAT TINGGAL</b>
	
        <table style="margin-left:30px;margin-right:10px"  width="100%">
         
		   <tr>
			  <td width="1%">12</td>
                <td width="18%">&nbsp;&nbsp;Alamat</td>
                <td width="1%">:</td>
			<td width="40%"><?= $siswa['alamat'] ?></td>
            </tr>
            <tr>
			  <td width="1%"></td>
                <td width="18%">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;RT/RW</td>
                <td width="1%">:</td>
			<td width="40%"><?= $siswa['rt'] ?>/<?= $siswa['rw'] ?></td>
            </tr>
			 <tr>
			  <td width="1%"></td>
                <td width="18%">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Desa</td>
                <td width="1%">:</td>
			<td width="40%"><?= $siswa['desa'] ?></td>
            </tr>
			 <tr>
			  <td width="1%"></td>
                <td width="18%">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Kecamatan</td>
                <td width="1%">:</td>
			<td width="40%"><?= $siswa['kecamatan'] ?></td>
            </tr>
			 <tr>
			  <td width="1%"></td>
                <td width="18%">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Kabupaten</td>
                <td width="1%">:</td>
			<td width="40%"><?= $siswa['kabupaten'] ?></td>
            </tr>
			 <tr>
			  <td width="1%"></td>
                <td width="18%">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Provinsi</td>
                <td width="1%">:</td>
			<td width="40%"><?= $siswa['propinsi'] ?></td>
            </tr>
			<tr>
			  <td width="1%"></td>
                <td width="18%">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Kode POS</td>
                <td width="1%">:</td>
			<td width="40%"><?= $siswa['pos'] ?></td>
            </tr>
			<tr>
			  <td width="1%"></td>
                <td width="18%">&nbsp;&nbsp;Nomor Telepon/HP</td>
                <td width="1%">:</td>
			<td width="40%"><?= $siswa['hp'] ?></td>
            </tr>
			<tr>
			  <td width="1%">13</td>
                <td width="18%">&nbsp;&nbsp;Tinggal besama</td>
                <td width="1%">:</td>
			<td width="40%"><?= $siswa['tinggal'] ?></td>
            </tr>
			
			<tr>
			  <td width="1%">14</td>
                <td width="18%">&nbsp;&nbsp;Jarak ke sekolah</td>
                <td width="1%">:</td>
			<td width="40%"><?= $siswa['jarak'] ?> km</td>
            </tr>
			
        </table>
       <?php if ($siswa['foto'] <>'') { ?>
                        <img width="90px" height="100px" class="img" src="../../foto/fotosiswa/<?= $siswa['foto'] ?>" style="margin-top:-230px;margin-left:570px;margin-right:10px " >
                    <?php } ?>
                   <?php if ($siswa['foto'] =='') { ?>
                        <img width="90px" class="img" src="../../dist/img/avatar.png" style="margin-top:-230px;margin-left:570px;margin-right:10px " >
                    <?php } ?>
					
					<br>  
		<br>  
	&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<b>C. KETERANGAN KESEHATAN</b>
	
        <table style="margin-left:30px;margin-right:10px"  width="100%">
         
		   <tr>
			  <td width="1%">15</td>
                <td width="18%">&nbsp;&nbsp;Golongan Darah</td>
                <td width="1%">:</td>
			<td width="40%"><?= $siswa['goldarah'] ?></td>
            </tr>
			
            <tr>
			  <td width="1%">16</td>
                <td width="18%">&nbsp;&nbsp;Penyakit pernah diderita</td>
                <td width="1%">:</td>
			<td width="40%"><?= $siswa['penyakit'] ?></td>
            </tr>
			
			<tr>
			  <td width="1%">17</td>
                <td width="18%">&nbsp;&nbsp;Kelainan Jasmani</td>
                <td width="1%">:</td>
			<td width="40%"><?= $siswa['dis'] ?></td>
            </tr>
			 <tr>
			  <td width="1%">18</td>
                <td width="14%">&nbsp;&nbsp;a. Tinggi Badan</td>
                <td width="1%">:</td>
			<td width="40%"><?= $siswa['tb'] ?> cm</td>
            </tr>
			
			 <tr>
			  <td width="1%"></td>
                <td width="14%">&nbsp;&nbsp;b. Berat Badan</td>
                <td width="1%">:</td>
			<td width="40%"><?= $siswa['bb'] ?> kg</td>
            </tr>
			
        </table>
       <?php if ($siswa['foto'] <>'') { ?>
                        <img width="90px" height="100px" class="img" src="../../foto/fotosiswa/<?= $siswa['foto'] ?>" style="margin-top:-120px;margin-left:570px;margin-right:10px " >
                    <?php } ?>
                   <?php if ($siswa['foto'] =='') { ?>
                        <img width="90px" class="img" src="../../dist/img/avatar.png" style="margin-top:-120px;margin-left:570px;margin-right:10px " >
                    <?php } ?>
					
	<br>  
		<br>  <br>  
		
	&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<b>D. KETERANGAN PENDIDIKAN</b>
	
        <table style="margin-left:30px;margin-right:10px"  width="100%">
         
		   <tr>
			  <td width="1%">19</td>
                <td width="18%">&nbsp;&nbsp;Pendidikan Sebelumnya</td>
                <td width="1%">:</td>
			<td width="40%"><?= $siswa['sebelumnya'] ?></td>
            </tr>
            <tr>
			  <td width="1%"></td>
                <td width="18%">&nbsp;&nbsp;a. Sekolah Asal</td>
                <td width="1%">:</td>
			<td width="40%"><?= $siswa['asal'] ?></td>
            </tr>
			<tr>
			  <td width="1%"></td>
                <td width="18%">&nbsp;&nbsp;b. Tanggal dan Nomor Ijazah</td>
                <td width="1%">:</td>
			<td width="40%"><?= $siswa['tglijazah'] ?> dan <?= $siswa['noijazah'] ?></td>
            </tr>
			 
			<tr>
			  <td width="1%"></td>
                <td width="18%">&nbsp;&nbsp;c. Lama Belajar</td>
                <td width="1%">:</td>
			<td width="40%">
			<?php if($siswa['sebelumnya']=='SD'): ?>
			6 tahun
			<?php elseif($siswa['sebelumnya']=='SMP'): ?>
			3 tahun
			<?php elseif($siswa['sebelumnya']=='PAUD'): ?>
			1 tahun
			<?php elseif($siswa['sebelumnya']=='TK'): ?>
			1 tahun
			<?php endif; ?>
			</td>
            </tr>
			<tr>
			  <td width="1%">20</td>
                <td width="18%">&nbsp;&nbsp;Pindahan</td>
                <td width="1%"></td>
			<td width="40%"></td>
            </tr>
			
			<tr>
			  <td width="1%"></td>
                <td width="18%">&nbsp;&nbsp;a. Dari Sekolah</td>
                <td width="1%">:</td>
			<td width="40%"><?= $siswa['dari'] ?></td>
            </tr>
			<tr>
			  <td width="1%"></td>
                <td width="18%">&nbsp;&nbsp;b. Alasan</td>
                <td width="1%">:</td>
			<td width="40%"><?= $siswa['alasanpindah'] ?></td>
            </tr>
			<tr>
			  <td width="1%">21</td>
                <td width="18%">&nbsp;&nbsp;Diterima di sekolah ini</td>
                <td width="1%"></td>
			<td width="40%"></td>
            </tr>
			
			<tr>
			  <td width="1%"></td>
                <td width="18%">&nbsp;&nbsp;a. Dikelas</td>
                <td width="1%">:</td>
			<td width="40%"><?= $siswa['dikelas'] ?></td>
            </tr>
			<tr>
			  <td width="1%"></td>
                <td width="18%">&nbsp;&nbsp;b. Kelompok</td>
                <td width="1%">:</td>
			<td width="40%"><?= $siswa['kelompok'] ?></td>
            </tr>
			<?php if($rapor['jenjang']=='SMK' OR $rapor['jenjang']=='SMA'): ?>
			<tr>
			  <td width="1%"></td>
                <td width="18%">&nbsp;&nbsp;c. Jurusan</td>
                <td width="1%">:</td>
			<td width="40%"><?= $siswa['jurusan'] ?></td>
            </tr>
			
			<tr>
			  <td width="1%"></td>
                <td width="18%">&nbsp;&nbsp;d. Tanggal</td>
                <td width="1%">:</td>
			<td width="40%"><?= $siswa['tglterima'] ?></td>
            </tr>
			<?php else : ?>
			<tr>
			  <td width="1%"></td>
                <td width="18%">&nbsp;&nbsp;c. Tanggal</td>
                <td width="1%">:</td>
			<td width="40%"><?= $siswa['tglterima'] ?></td>
            </tr>
			<?php endif; ?>
        </table>				
					
        <br>  
	&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<b>E. KETERANGAN ORANG TUA KANDUNG</b>
	
        <table style="margin-left:30px;margin-right:10px"  width="100%">
         
		   <tr>
			  <td width="1%">22</td>
                <td width="18%">&nbsp;&nbsp;Ayah Kandung</td>
                <td width="1%"></td>
			<td width="40%"></td>
            </tr>
            <tr>
			  <td width="1%"></td>
                <td width="18%">&nbsp;&nbsp;a. Nama</td>
                <td width="1%">:</td>
			<td width="40%"><?= $ortu['ayah'] ?></td>
            </tr>
			<tr>
			  <td width="1%"></td>
                <td width="18%">&nbsp;&nbsp;b. Agama</td>
                <td width="1%">:</td>
			<td width="40%"><?= $ortu['agama_ayah'] ?></td>
            </tr>
			 
			<tr>
			  <td width="1%"></td>
                <td width="18%">&nbsp;&nbsp;c. Kewarganegaraan</td>
                <td width="1%">:</td>
			<td width="40%"><?= $ortu['warga_ayah'] ?></td>
            </tr>
			<tr>
			  <td width="1%"></td>
                <td width="18%">&nbsp;&nbsp;d. Pendidikan Terakhir</td>
                <td width="1%"></td>
			<td width="40%"><?= $ortu['pend_ayah'] ?></td>
            </tr>
			
			<tr>
			  <td width="1%"></td>
                <td width="18%">&nbsp;&nbsp;e. Pekerjaan</td>
                <td width="1%">:</td>
			<td width="40%"><?= $ortu['pek_ayah'] ?></td>
            </tr>
			<tr>
			  <td width="1%"></td>
                <td width="18%">&nbsp;&nbsp;f. Penghasilan per bulan</td>
                <td width="1%">:</td>
			<td width="40%"><?= $ortu['hasil_ayah'] ?></td>
            </tr>
			<tr>
			  <td width="1%"></td>
                <td width="18%">&nbsp;&nbsp;g. Alamat</td>
                <td width="1%">:</td>
			<td width="40%"><?= $siswa['alamat'] ?></td>
            </tr>
            <tr>
			  <td width="1%"></td>
                <td width="18%">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;RT/RW</td>
                <td width="1%">:</td>
			<td width="40%"><?= $siswa['rt'] ?>/<?= $siswa['rw'] ?></td>
            </tr>
			 <tr>
			  <td width="1%"></td>
                <td width="18%">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Desa</td>
                <td width="1%">:</td>
			<td width="40%"><?= $siswa['desa'] ?></td>
            </tr>
			 <tr>
			  <td width="1%"></td>
                <td width="18%">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Kecamatan</td>
                <td width="1%">:</td>
			<td width="40%"><?= $siswa['kecamatan'] ?></td>
            </tr>
			 <tr>
			  <td width="1%"></td>
                <td width="18%">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Kabupaten</td>
                <td width="1%">:</td>
			<td width="40%"><?= $siswa['kabupaten'] ?></td>
            </tr>
			 <tr>
			  <td width="1%"></td>
                <td width="18%">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Provinsi</td>
                <td width="1%">:</td>
			<td width="40%"><?= $siswa['propinsi'] ?></td>
            </tr>
			<tr>
			  <td width="1%"></td>
                <td width="18%">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Kode POS</td>
                <td width="1%">:</td>
			<td width="40%"><?= $siswa['pos'] ?></td>
            </tr>
			<tr>
			  <td width="1%"></td>
                <td width="18%">&nbsp;&nbsp;h. Keadaan</td>
                <td width="1%">:</td>
			<td width="40%"><?= $ortu['keadaan_ayah'] ?></td>
            </tr>
			<tr>
			  <td width="1%"></td>
                <td width="18%">&nbsp;&nbsp;i. Nomor Telepon/HP</td>
                <td width="1%">:</td>
			<td width="40%"><?= $ortu['hp_ayah'] ?></td>
            </tr>
			  <tr>
			  <td width="1%">23</td>
                <td width="18%">&nbsp;&nbsp;Ibu Kandung</td>
                <td width="1%"></td>
			<td width="40%"></td>
            </tr>
            <tr>
			  <td width="1%"></td>
                <td width="18%">&nbsp;&nbsp;a. Nama</td>
                <td width="1%">:</td>
			<td width="40%"><?= $ortu['ibu'] ?></td>
            </tr>
			<tr>
			  <td width="1%"></td>
                <td width="18%">&nbsp;&nbsp;b. Agama</td>
                <td width="1%">:</td>
			<td width="40%"><?= $ortu['agama_ibu'] ?></td>
            </tr>
			 
			<tr>
			  <td width="1%"></td>
                <td width="18%">&nbsp;&nbsp;c. Kewarganegaraan</td>
                <td width="1%">:</td>
			<td width="40%"><?= $ortu['warga_ibu'] ?></td>
            </tr>
			<tr>
			  <td width="1%"></td>
                <td width="18%">&nbsp;&nbsp;d. Pendidikan Terakhir</td>
                <td width="1%"></td>
			<td width="40%"><?= $ortu['pend_ibu'] ?></td>
            </tr>
			
			<tr>
			  <td width="1%"></td>
                <td width="18%">&nbsp;&nbsp;e. Pekerjaan</td>
                <td width="1%">:</td>
			<td width="40%"><?= $ortu['pek_ibu'] ?></td>
            </tr>
			<tr>
			  <td width="1%"></td>
                <td width="18%">&nbsp;&nbsp;f. Penghasilan per bulan</td>
                <td width="1%">:</td>
			<td width="40%"><?= $ortu['hasil_ibu'] ?></td>
            </tr>
			<tr>
			  <td width="1%"></td>
                <td width="18%">&nbsp;&nbsp;g. Alamat</td>
                <td width="1%">:</td>
			<td width="40%"><?= $siswa['alamat'] ?></td>
            </tr>
            <tr>
			  <td width="1%"></td>
                <td width="18%">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;RT/RW</td>
                <td width="1%">:</td>
			<td width="40%"><?= $siswa['rt'] ?>/<?= $siswa['rw'] ?></td>
            </tr>
			 <tr>
			  <td width="1%"></td>
                <td width="18%">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Desa</td>
                <td width="1%">:</td>
			<td width="40%"><?= $siswa['desa'] ?></td>
            </tr>
			 <tr>
			  <td width="1%"></td>
                <td width="18%">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Kecamatan</td>
                <td width="1%">:</td>
			<td width="40%"><?= $siswa['kecamatan'] ?></td>
            </tr>
			 <tr>
			  <td width="1%"></td>
                <td width="18%">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Kabupaten</td>
                <td width="1%">:</td>
			<td width="40%"><?= $siswa['kabupaten'] ?></td>
            </tr>
			 <tr>
			  <td width="1%"></td>
                <td width="18%">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Provinsi</td>
                <td width="1%">:</td>
			<td width="40%"><?= $siswa['propinsi'] ?></td>
            </tr>
			<tr>
			  <td width="1%"></td>
                <td width="18%">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Kode POS</td>
                <td width="1%">:</td>
			<td width="40%"><?= $siswa['pos'] ?></td>
            </tr>
			<tr>
			  <td width="1%"></td>
                <td width="18%">&nbsp;&nbsp;h. Keadaan</td>
                <td width="1%">:</td>
			<td width="40%"><?= $ortu['keadaan_ibu'] ?></td>
            </tr>
			<tr>
			  <td width="1%"></td>
                <td width="18%">&nbsp;&nbsp;i. Nomor Telepon/HP</td>
                <td width="1%">:</td>
			<td width="40%"><?= $ortu['hp_ibu'] ?></td>
            </tr>
        </table>				
		
	&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<b>F. KETERANGAN TENTANG WALI</b>
	
        <table style="margin-left:30px;margin-right:10px"  width="100%">
         
		   <tr>
			  <td width="1%">24</td>
                <td width="18%">&nbsp;&nbsp;Wali</td>
                <td width="1%"></td>
			<td width="40%"></td>
            </tr>
            <tr>
			  <td width="1%"></td>
                <td width="18%">&nbsp;&nbsp;a. Nama</td>
                <td width="1%">:</td>
			<td width="40%"><?= $ortu['wali'] ?></td>
            </tr>
			<tr>
			  <td width="1%"></td>
                <td width="18%">&nbsp;&nbsp;b. Agama</td>
                <td width="1%">:</td>
			<td width="40%"><?= $ortu['agama_wali'] ?></td>
            </tr>
			 
			<tr>
			  <td width="1%"></td>
                <td width="18%">&nbsp;&nbsp;c. Kewarganegaraan</td>
                <td width="1%">:</td>
			<td width="40%"><?= $ortu['warga_wali'] ?></td>
            </tr>
			<tr>
			  <td width="1%"></td>
                <td width="18%">&nbsp;&nbsp;d. Pendidikan Terakhir</td>
                <td width="1%"></td>
			<td width="40%"><?= $ortu['pend_wali'] ?></td>
            </tr>
			
			<tr>
			  <td width="1%"></td>
                <td width="18%">&nbsp;&nbsp;e. Pekerjaan</td>
                <td width="1%">:</td>
			<td width="40%"><?= $ortu['pek_wali'] ?></td>
            </tr>
			<tr>
			  <td width="1%"></td>
                <td width="18%">&nbsp;&nbsp;f. Penghasilan per bulan</td>
                <td width="1%">:</td>
			<td width="40%"><?= $ortu['hasil_wali'] ?></td>
            </tr>
			<tr>
			  <td width="1%"></td>
                <td width="18%">&nbsp;&nbsp;g. Alamat</td>
                <td width="1%">:</td>
			<td width="40%"><?= $siswa['alamat_wali'] ?></td>
            </tr>
            <tr>
			  <td width="1%"></td>
                <td width="18%">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;RT/RW</td>
                <td width="1%">:</td>
			<td width="40%"><?= $siswa['rt_wali'] ?>/<?= $siswa['rw_wali'] ?></td>
            </tr>
			 <tr>
			  <td width="1%"></td>
                <td width="18%">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Desa</td>
                <td width="1%">:</td>
			<td width="40%"><?= $ortu['desa_wali'] ?></td>
            </tr>
			 <tr>
			  <td width="1%"></td>
                <td width="18%">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Kecamatan</td>
                <td width="1%">:</td>
			<td width="40%"><?= $ortu['kec_wali'] ?></td>
            </tr>
			 <tr>
			  <td width="1%"></td>
                <td width="18%">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Kabupaten</td>
                <td width="1%">:</td>
			<td width="40%"><?= $ortu['kab_wali'] ?></td>
            </tr>
			 <tr>
			  <td width="1%"></td>
                <td width="18%">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Provinsi</td>
                <td width="1%">:</td>
			<td width="40%"><?= $ortu['prop_wali'] ?></td>
            </tr>
			<tr>
			  <td width="1%"></td>
                <td width="18%">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Kode POS</td>
                <td width="1%">:</td>
			<td width="40%"><?= $ortu['pos_wali'] ?></td>
            </tr>
			
			<tr>
			  <td width="1%"></td>
                <td width="18%">&nbsp;&nbsp;i. Nomor Telepon/HP</td>
                <td width="1%">:</td>
			<td width="40%"><?= $ortu['hp_wali'] ?></td>
            </tr>
           </table>		
<br>  
		<br>  
	&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<b>G. KETERANGAN PERKEMBANGAN PESERTA DIDIK</b>
	
        <table style="margin-left:30px;margin-right:10px"  width="100%">
         
		   <tr>
			  <td width="1%">25</td>
                <td width="18%">&nbsp;&nbsp;Menerima Beasiswa</td>
                <td width="1%">:</td>
			<td colspan="5"></td>
            </tr>
			
            <tr>
			  <td width="1%"></td>
                <td width="18%"></td>
                <td width="1%">:</td>
			<td width="12%">Tahun <?= $siswa['tahun1'] ?></td>
			<td width="2%"></td>
			<td width="12%">/TK <?= $siswa['tk1'] ?></td>
			<td width="2%"></td>
			<td width="12%">dari <?= $siswa['dari1'] ?></td>			
            </tr>
			<tr>
			  <td width="1%"></td>
                <td width="18%"></td>
                <td width="1%">:</td>
			<td width="12%">Tahun <?= $siswa['tahun2'] ?></td>
			<td width="2%"></td>
			<td width="12%">/TK <?= $siswa['tk2'] ?></td>
			<td width="2%"></td>
			<td width="12%">dari <?= $siswa['dari2'] ?></td>			
            </tr>
			<tr>
			  <td width="1%"></td>
                <td width="18%"></td>
                <td width="1%">:</td>
			<td width="12%">Tahun <?= $siswa['tahun3'] ?></td>
			<td width="2%"></td>
			<td width="12%">/TK <?= $siswa['tk3'] ?></td>
			<td width="2%"></td>
			<td width="12%">dari <?= $siswa['dari3'] ?></td>			
            </tr>
			<tr>
			  <td width="1%">26</td>
                <td width="18%">&nbsp;&nbsp;Meninggalkan Sekolah</td>
                <td width="1%"></td>
			<td colspan="5"></td>
            </tr>
			<tr>
			  <td width="1%"></td>
                <td width="18%">&nbsp;&nbsp;a. Tanggal</td>
                <td width="1%">:</td>
			<td colspan="5"><?= $siswa['tglpindah'] ?></td>
            </tr>
			<tr>
			  <td width="1%"></td>
                <td width="18%">&nbsp;&nbsp;b. Alasan</td>
                <td width="1%">:</td>
			<td colspan="5"><?= $siswa['alasan_pindah'] ?></td>
            </tr>
			<tr>
			  <td width="1%">27</td>
                <td width="18%">&nbsp;&nbsp;Akhir Pendidikan</td>
                <td width="1%"></td>
			<td colspan="5"></td>
            </tr>
			<tr>
			  <td width="1%"></td>
                <td width="18%">&nbsp;&nbsp;a. Tanggal</td>
                <td width="1%">:</td>
			<td colspan="5"><?= $siswa['tgl_lulus'] ?></td>
            </tr>
			<tr>
			  <td width="1%"></td>
                <td width="18%">&nbsp;&nbsp;b. Nomor Ijazah</td>
                <td width="1%">:</td>
			<td colspan="5"><?= $siswa['nomorijazah'] ?></td>
            </tr>
        </table>	
		<br>  
		<br>  
	&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<b>H. KETERANGAN SETELAH SELESAI PENDIDIKAN</b>
	
        <table style="margin-left:30px;margin-right:10px"  width="100%">
         
		   <tr>
			  <td width="1%">28</td>
                <td width="18%">&nbsp;&nbsp;Melanjutkan ke</td>
                <td width="1%">:</td>
			<td width="40%"><?= $siswa['lanjutke'] ?></td>
            </tr>
			
            <tr>
			  <td width="1%">29</td>
                <td width="18%">&nbsp;&nbsp;Bekerja</td>
                <td width="1%"></td>
			<td width="40%"></td>
            </tr>
			
			<tr>
			  <td width="1%"></td>
                <td width="18%">&nbsp;&nbsp;a. Tanggal Mulai Kerja</td>
                <td width="1%">:</td>
			<td width="40%"><?= $siswa['tgl_kerja'] ?></td>
            </tr>
			 <tr>
			  <td width="1%"></td>
                <td width="14%">&nbsp;&nbsp;b. Nama Perusahaan</td>
                <td width="1%">:</td>
			<td width="40%"><?= $siswa['perusahaan'] ?></td>
            </tr>
			
			 <tr>
			  <td width="1%"></td>
                <td width="14%">&nbsp;&nbsp;c. Penghasilan</td>
                <td width="1%">:</td>
			<td width="40%"><?= $siswa['hasil_kerja'] ?></td>
            </tr>
			
        </table>
</body>

</html>
<?php

$html = ob_get_clean();
require_once '../../vendors/autoload.php';

use Dompdf\Dompdf;

$dompdf = new Dompdf();
$dompdf->loadHtml($html);
$dompdf->setPaper('A4', 'portrait');
$dompdf->render();
$dompdf->stream("Register_" . $siswa['nama'] . ".pdf", array("Attachment" => false));
exit(0);
?>