<style type="text/css">
#view_laporan .dodon tr td,  tr th {
	border: none;
}
</style>
<div style="padding:5px;min-width:1200px;">
<div style="padding:20px;">
</div>
<button class="btn btnExcel" style="width:150px;text-align:center;">Export Excel</button></div>
<table id="view_laporan" class="cetakExcel" border="0" cellpadding="2" cellspacing="0" style="margin:10px;min-width:1200px;">
	<tbody>
		<tr>
			<td align="center" colspan="17" style="text-align: center;border:0px;border-top:0;font-size:14px;border-right:0px;">LAPORAN KEGIATAN HAKIM</td>
		</tr>
		<tr>
			<td align="center" colspan="17" style="text-align: center;border:0px;font-size:14px;border-right:0px;"><?php echo $nama_pn;?></td>
		</tr>
		<tr>
			<td align="center" colspan="17" style="text-align: center;border:0px;font-size:14px;border-bottom:1px solid #000000;border-right:0px;">Bulan <?php echo fetch_montd($bulan);?> <?php echo $tahun;?></td>
		</tr>
	</tbody>
	<tr>
		<th>NO</th>
		<th>NAMA HAKIM</th>
		<th>SISA BULAN LALU</th>
		<th>TAMBAH BULAN YBS</th>
		<th>JUMLAH</th>
		<th>PUTUSAN / PENETAPAN</th>
		<th>SISA BULAN YBS</th>
		<th>JUMLAH YANG DIMINUTASI</th>
		<th>SISA YANG BELUM DIMINUTASI</th>
		<th>KETERANGAN</th>
	</tr>
	<tr>
		<?php
		for ($i=1; $i<=10 ; $i++) { 
			echo "<td><div align='center'>".$i."</div></td>";
		}
		?>
	</tr>
	<?php
	if($listKegiatanHakimTUN!=''){
		if($listKegiatanHakimTUN->num_rows>0){
			$i=0;
			$jumlahBeban = 0;
			$sisaBulan = 0;
			foreach ($listKegiatanHakimTUN->result() as $row) { $i++;
				$jumlahBeban = $row->beban + $row->masuk;
				$sisaBulan = $jumlahBeban - $row->putus
			?>
				<tr>
					<td style="width:40px;"><?php echo $i; ?></td>
					<td style="width:250px;"><?php echo $this->templatehelper->standradnaming($row->nama_gelar); ?></td>
					<td style="width:100px;"><?php echo $row->beban; ?></td>
					<td style="width:100px;"><?php echo $row->masuk; ?></td>
					<td style="width:100px;"><?php echo $jumlahBeban; ?></td>
					<td style="width:100px;"><?php echo $row->putus; ?></td>
					<td style="width:100px;"><?php echo $sisaBulan; ?></td>
					<td style="width:100px;"><?php echo $row->minutasi; ?></td>
					<td style="width:100px;"><?php echo $row->belumMinutasi; ?></td>
					<td></td>
				</tr>
			<?php
			}
		}
	}
	?>
	</tr>
	</tbody>
</table>
</div>
<div style="padding:15px;"></div>
<script src="resources/js/jquery.table2excel.js"></script>
<script>
$(function() {
	$(".btnExcel").click(function(){
		$(".cetakExcel").table2excel({
			exclude: ".noExl",
			name: "Excel Document Name",
			filename: "Cetak Excel"
		});
	});
});
</script>