<style type="text/css">
#view_laporan .dodon tr td,  tr th {
	border: none;
}
</style>
<div style="padding:5px;min-width:800px;">
<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:800px;">
	<tbody>
		<tr><td align="center" colspan="17" style="text-align: center;border:0px;border-top:0;font-size:14px;border-right:0px;">LAPORAN PERKARA</td></tr>
		<tr><td align="center" colspan="17" style="text-align: center;border:0px;border-top:0;font-size:14px;border-right:0px;">PUTUS DI PROSES KURANG DARI 3 BULAN, 3-5 BULAN, 5-12 BULAN DAN LEBIH DARI 12 BULAN</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>
	</tbody>
	<tr>
		<th rowspan="2">NO</th>
		<th colspan="4">PERKARA PUTUS TAHUN <?php echo $tahun;?></th>
	</tr>
	<tr>
		<th>KURANG DARI 3 BULAN</th>
		<th>3 - 5 BULAN</th>
		<th>5 - 12 BULAN</th>
		<th>LEBIH DARI 12 BULAN</th>
	</tr>
	<tr>
		<?php
		for ($i=1; $i<=5 ; $i++) { 
			echo "<td><div align='center'>".$i."</div></td>";
		}
		?>
	</tr>
	<?php
	if($rekapPerkaraProsesTUN!=''){
		if($rekapPerkaraProsesTUN->num_rows>0){
			$i=0;
			foreach ($rekapPerkaraProsesTUN->result() as $row) { $i++;
			?>
				<tr>
					<td style="width:40px;"><?php echo $i; ?></td>
					<td style="width:100px;"><?php echo $row->equal3; ?></td>
					<td style="width:100px;"><?php echo $row->equal5; ?></td>
					<td style="width:100px;"><?php echo $row->equal12; ?></td>
					<td style="width:100px;"><?php echo $row->equal13; ?></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>