<div style="padding:5px;min-width:1700px">
<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;">
	<tbody>
		<tr>
			<td align="center" colspan="76" style="text-align: center;border:0px;border-top:0;font-size:14px;border-right:0px;"><?php echo $perkara_nama;?></td>
		</tr>
		<tr>
			<td align="center" colspan="76" style="text-align: center;border:0px;font-size:14px;border-right:0px;"><?php echo $nama_pn;?></td>
		</tr>
		<tr>
			<td align="center" colspan="76" style="text-align: center;border:0px;font-size:14px;border-bottom:1px solid #000000;border-right:0px;">Tahun <?php echo $tahun;?></td>
		</tr>
	</tbody>
  <tr height="20">
    <th rowspan="3" height="40" width="64">No.</th>
    <th rowspan="3" width="64">Nomor Perkara</th>
    <th rowspan="3" width="64">Jenis Perkara</th>
    <th rowspan="3" width="64">Tanggal Penunjukan</th>
    <th rowspan="3" width="64">Tanggal Mediasi Pertama</th>
    <th rowspan="3" width="64">Tanggal Laporan Mediator</th>
    <th colspan="36" width="180">Berhasil</th>
    <th rowspan="2" colspan="12" width="64">Tidak Berhasil</th>
    <th rowspan="2" colspan="12" width="64">Tidak Dapat Dilaksanakan</th>
    <th 	colspan="10" width="64">Jumlah Hasil Mediasi dan % Hasil Mediasi Terhadap Jumlah Perkara Mediasi Bulan Januari Sd Desember</th>
  </tr>
  <tr height="20">
    <th colspan="12" width="60">Akta Perdamaian/Putusan</th>
    <th colspan="12" width="60">Berhasil Sebagian</th>
    <th colspan="12" width="60">Pencabutan</th>
    <th colspan="6" width="60">Berhasil</th>
    <th rowspan="2" width="20">Tidak Berhasil</th>
    <th rowspan="2" width="5">%</th>
    <th rowspan="2" width="20">Tidak Dapat Dilaksanakan</th>
    <th rowspan="2" width="5">%</th>
  </tr>
  <tr height="20">
    <th width="5">Jan</th>
    <th width="5">Feb</th>
    <th width="5">Mar</th>
    <th width="5">Apr</th>
    <th width="5">Mei</th>
    <th width="5">Jun</th>
    <th width="5">Jul</th>
    <th width="5">Agust</th>
    <th width="5">Sep</th>
    <th width="5">Okt</th>
    <th width="5">Nov</th>
    <th width="5">Des</th>
    <th width="5">Jan</th>
    <th width="5">Feb</th>
    <th width="5">Mar</th>
    <th width="5">Apr</th>
    <th width="5">Mei</th>
    <th width="5">Jun</th>
    <th width="5">Jul</th>
    <th width="5">Agust</th>
    <th width="5">Sep</th>
    <th width="5">Okt</th>
    <th width="5">Nov</th>
    <th width="5">Des</th>
    <th width="5">Jan</th>
    <th width="5">Feb</th>
    <th width="5">Mar</th>
    <th width="5">Apr</th>
    <th width="5">Mei</th>
    <th width="5">Jun</th>
    <th width="5">Jul</th>
    <th width="5">Agust</th>
    <th width="5">Sep</th>
    <th width="5">Okt</th>
    <th width="5">Nov</th>
    <th width="5">Des</th>
    <th width="5">Jan</th>
    <th width="5">Feb</th>
    <th width="5">Mar</th>
    <th width="5">Apr</th>
    <th width="5">Mei</th>
    <th width="5">Jun</th>
    <th width="5">Jul</th>
    <th width="5">Agust</th>
    <th width="5">Sep</th>
    <th width="5">Okt</th>
    <th width="5">Nov</th>
    <th width="5">Des</th>
    <th width="5">Jan</th>
    <th width="5">Feb</th>
    <th width="5">Mar</th>
    <th width="5">Apr</th>
    <th width="5">Mei</th>
    <th width="5">Jun</th>
    <th width="5">Jul</th>
    <th width="5">Agust</th>
    <th width="5">Sep</th>
    <th width="5">Okt</th>
    <th width="5">Nov</th>
    <th width="5">Des</th>
    <th width="20">Akta Perdamaian/Putusan</th>
    <th width="5">%</th>
    <th width="20">Berhasil</th>
    <th width="5">%</th>
    <th width="20">Pencabutan</th>
    <th width="5">%</th>
  </tr>
  	<?php
  		echo '<tr>';
  		for ($i=1; $i <= 76; $i++) { 
  			echo '<td style="text-align:center">'.$i.'</td>';
  		}
  		echo '</tr>';
  			for ($i=1; $i <= $rekap->num_rows(); $i++) { 
  				echo '<tr>';
  				echo '<td style="text-align:center">'.$i.'</td>';
  				for ($j=0; $j <= 74; $j++) {
  					echo '<td style="text-align:center">'.array_values($rekap->row_array($i-1))[$j].'</td>';	
  				}  				
  				echo '</tr>';
  			}
      echo '</tr>';
  	?>
  <tr height="20">
    <td colspan="76" style="border:none;"> </td>
  </tr>
  <tr height="20">
    <td colspan="6" style="border:none;text-align:center;"><br>Mengetahui<br>Ketua <?php echo ucwords(strtolower($nama_pn));?></td>
    <td colspan="60" style="border:none;"></td>
    <td colspan="10" style="border:none;text-align:center;"><?php echo str_replace('Pengadilan Negeri ', '', str_replace('Pengadilan Agama ', '', str_replace("Mahkamah Syar'iyah ", '', ucwords(strtolower($nama_pn))))).', '.$this->templatehelper->convertKeTglIndo(date("Y/m/d"));?><br><br>Panitera</td>
  </tr>
  <tr height="60">
    <td colspan="76" style="border:none;"> </td>
  </tr>
  <tr height="20">
    <td colspan="6" style="border:none;text-align:center;"><?php echo '<u>'.$nama_ketua.'</u><br>NIP.'.$nip_ketua;?></td>
    <td colspan="60" style="border:none;"></td>
    <td colspan="10" style="border:none;text-align:center;"><?php echo '<u>'.$nama_pan.'</u><br>NIP.'.$nip_pan;?></td>
  </tr>
</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>