<?php 
	//open form
	echo form_open(base_url('otkp'),' class="form-horizontal"'); 
?>

<p>	
	<a href="<?php echo base_url('dashboard') ?>" class="btn btn-secondary" data-dismiss="modal"><i class="fa fa-times"></i> Kembali</a>	
</p>


<?php
//panggil form tambah
//include('tambah.php');
//closing form
echo form_close();
?>
<table class="table table-bordered table-striped table-sm" id="example1">
	<thead>
		<tr>
			<th width="5%">NO.</th>
			<th width="8%">NO. PEND</th>
			<th width="20%">NAMA LENGKAP</th>
			<th width="15%">TEMPAT/TGL. LAHIR</th>
			<th width="10%">AGAMA</th>	
			<th width="20%">SEKOLAH ASAL</th>
			<th width="25%">PROG. KEAHLIAN DIMINATI</th>					
			<th width="10%">GELOMBANG</th>	
			<th width="10%">NO. HP CASIS</th>
			<th width="10%">NO. HP AYAH</th>
			<th width="10%">NO. HP IBU</th>
		</tr>
	</thead>
	<tbody>
		<?php foreach ($otkp as $key => $otkp) { ?>
					
		<tr>
			<td><?php echo $key+1; ?></td>
			<td><b><?php echo $otkp->no_pendaftaran ?></b>
				<br><small><?php echo date('d-m-Y', strtotime($otkp->tgl_trans)) ?></small>
			</td>
			<td><?php echo $otkp->nama_lengkap ?>
				<br><small><?php echo $otkp->jkelamin ?></small>
			</td>
			<td><?php echo $otkp->tempat_lahir ?>, <?php echo date('d-m-Y', strtotime($otkp->tgl_lahir)) ?></td>
			<td><?php echo $otkp->agama ?></td>
			<td><?php echo $otkp->sekolah_asal ?></td>
			<td><?php echo $otkp->kompetensi ?></td>			
			<td><?php echo $otkp->gelombang ?></td>
			<td><?php echo $otkp->no_hp ?></td>
			<td><?php echo $otkp->tlp_ayah ?></td>
			<td><?php echo $otkp->tlp_ibu ?></td>			
		</tr>

	<?php } ?>
	</tbody>
</table>