<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Print Permohonan Informasi</title>
</head>

<body>

<table>
        <tr>
<td><img src="image\pta.PNG"></td>
<td style="font-family:'cambria', Times, serif; font-size:14px">PENGADILAN TINGGI AGAMA JAMBI</b><br/>JL. H. AGUS SALIM, KOTA BARU JAMBI<br/>TELP. 0741 - 41092, 40131, 445559 FAX. 0741 - 445293<br/>Home page
     : www.pta.jambi.go.id e-Mail : ptajambi@yahoo.com</td></tr>
</table>

<p style="font-family:cambria; font-size:14px;" align="center"><b>PERNYATAAN KEBERATAN ATAS PELAYANAN INFORMASI</b>
</p><?php
include 'config.php';
 if (isset($_GET['ID']))
 {
  $query = "SELECT * FROM tb_keberatan where reg_keberatan='".$_GET['ID']."'";
$result = mysqli_query($koneksi, $query);
while($data = mysqli_fetch_array($result)){
  ?>
<table width="80%" cellspacing="0" style="font-family:cambria; font-size:12px" align="center">
<tr>
    <td width="35%" style="padding-left:10px">INFORMASI PENGAJUAN KEBERATAN</td>
    <td widht="65%" style="padding-left:10px"></td>
  </tr>
  <tr>
    <td width="35%" style="padding-left:10px"><b>Nomor Register Keberatan</b></br><i>(diisi oleh petugas)</i></td>
    <td widht="65%" style="padding-left:10px">: <?php echo $data["reg_keberatan"] ?></td>
  </tr>
  <tr>
    <td width="30%" style="padding-left:10px"><b>Nomor Pendaftaran Permohonan Informasi</b></td>
    <td widht="70%" style="padding-left:10px">: <?php echo $data['id_keberatan'] ?></td>
  </tr>
  <tr>
    <td width="30%" style="padding-left:10px"><b>Tujuan Penggunaan Informasi</b></td>
    <td widht="70%" style="padding-left:10px">: <?php echo $data['tujuan'] ?></td>
  </tr>
  <tr style="height:30px;">
    <td width="25%" style="padding-left:10px"><b>Identitas Pemohon</b></td>
    <td widht="75%" style="padding-left:10px"></td>
  </tr>
  <tr>
    <td width="25%" style="padding-left:10px">Nama</td>
    <td widht="75%" style="padding-left:10px">: <?php echo $data['nama'] ?></td>
  </tr>
  <tr>
    <td width="25%" style="padding-left:10px">Alamat</td>
    <td widht="75%" style="padding-left:10px">: <?php echo $data['alamat'] ?></td>
  </tr>
  <tr>
    <td width="25%" style="padding-left:10px">Pekerjaan</td>
    <td widht="75%" style="padding-left:10px">: <?php echo $data['pekerjaan'] ?></td>
  </tr>
  <tr>
    <td width="25%" style="padding-left:10px">Nomor Telepon</td>
    <td widht="75%" style="padding-left:10px">: <?php echo $data['telp'] ?></td>
  </tr>
  <tr style="height:30px;">
    <td width="25%" style="padding-left:10px"><b>Identitas Kuasa Pemohon</b></td>
    <td widht="75%" style="padding-left:10px"></td>
  </tr>
  <tr>
    <td width="25%" style="padding-left:10px">Nama</td>
    <td widht="75%" style="padding-left:10px">: <?php echo $data['nama_kuasa'] ?></td>
  </tr>
  <tr>
    <td width="25%" style="padding-left:10px">Alamat</td>
    <td widht="75%" style="padding-left:10px">: <?php echo $data['alamat_kuasa'] ?></td>
  </tr>
  <tr>
    <td width="25%" style="padding-left:10px">Nomor Telepon</td>
    <td widht="75%" style="padding-left:10px">: <?php echo $data['telp_kuasa'] ?></td>
  </tr>
  <tr style="height:30px;">
    <td width="25%" style="padding-left:10px"><b>ALASAN KEBERATAN</b></td>
    <td widht="75%" style="padding-left:10px"></td>
  </tr> 
  <tr>
    <td colspan="2">
  <?php
  if($data['jenis_keberatan']=='1'){
    echo '<div class="form-check" style="padding-left:10px">
            <input class="form-check-input" type="checkbox" value="" id="flexCheckDefault" checked>
            <label class="form-check-label" for="flexCheckDefault">
                a) Permohonan informasi ditolak
            </label>
        </div>';
  }else{
    echo '<div class="form-check" style="padding-left:10px">
    <input class="form-check-input" type="checkbox" value="" id="flexCheckDefault">
    <label class="form-check-label" for="flexCheckDefault">
        a) Permohonan informasi ditolak
    </label>
</div>';
  }
  if($data['jenis_keberatan']=='2'){
    echo '<div class="form-check" style="padding-left:10px">
            <input class="form-check-input" type="checkbox" value="" id="flexCheckDefault" checked>
            <label class="form-check-label" for="flexCheckDefault">
                b) Informasi berkala tidak disediakan
            </label>
        </div>';
  }else{
    echo '<div class="form-check" style="padding-left:10px">
    <input class="form-check-input" type="checkbox" value="" id="flexCheckDefault">
    <label class="form-check-label" for="flexCheckDefault">
        b) Informasi berkala tidak disesiakan
    </label>
</div>';
  }
  if($data['jenis_keberatan']=='3'){
    echo '<div class="form-check" style="padding-left:10px">
            <input class="form-check-input" type="checkbox" value="" id="flexCheckDefault" checked>
            <label class="form-check-label" for="flexCheckDefault">
                c) Permintaan informasi tidak ditanggapi
            </label>
        </div>';
  }else{
    echo '<div class="form-check" style="padding-left:10px">
    <input class="form-check-input" type="checkbox" value="" id="flexCheckDefault">
    <label class="form-check-label" for="flexCheckDefault">
        c) Permintaan informasi tidak ditanggapi
    </label>
</div>';
  }
  if($data['jenis_keberatan']=='4'){
    echo '<div class="form-check" style="padding-left:10px">
            <input class="form-check-input" type="checkbox" value="" id="flexCheckDefault" checked>
            <label class="form-check-label" for="flexCheckDefault">
            d) Permintaan informasi ditanggapi tidak sebagaimana yang diminta
            </label>
        </div>';
  }else{
    echo '<div class="form-check" style="padding-left:10px">
    <input class="form-check-input" type="checkbox" value="" id="flexCheckDefault">
    <label class="form-check-label" for="flexCheckDefault">
       d) Permintaan informasi ditanggapi tidak sebagaimana yang diminta
    </label>
</div>';
  }
  if($data['jenis_keberatan']=='5'){
    echo '<div class="form-check" style="padding-left:10px">
            <input class="form-check-input" type="checkbox" value="" id="flexCheckDefault" checked>
            <label class="form-check-label" for="flexCheckDefault">
            e) Permintaan informasi tidak dipenuhi
            </label>
        </div>';
  }else{
    echo '<div class="form-check" style="padding-left:10px">
    <input class="form-check-input" type="checkbox" value="" id="flexCheckDefault">
    <label class="form-check-label" for="flexCheckDefault">
       e) Permintaan informasi tidak dipenuhi
    </label>
</div>';
  }
   if($data['jenis_keberatan']=='6'){
    echo '<div class="form-check" style="padding-left:10px">
            <input class="form-check-input" type="checkbox" value="" id="flexCheckDefault" checked>
            <label class="form-check-label" for="flexCheckDefault">
            f) Biaya yang dikenakan tidak wajar
            </label>
        </div>';
  }else{
    echo '<div class="form-check" style="padding-left:10px">
    <input class="form-check-input" type="checkbox" value="" id="flexCheckDefault">
    <label class="form-check-label" for="flexCheckDefault">
       f) Biaya yang dikenakan tidak wajar
    </label>
</div>';
  }
   if($data['jenis_keberatan']=='7'){
    echo '<div class="form-check" style="padding-left:10px">
            <input class="form-check-input" type="checkbox" value="" id="flexCheckDefault" checked>
            <label class="form-check-label" for="flexCheckDefault">
           g) informasi yang disampaikan melebihi jangka waktu yang ditentukan
            </label>
        </div>';
  }else{
    echo '<div class="form-check" style="padding-left:10px">
    <input class="form-check-input" type="checkbox" value="" id="flexCheckDefault">
    <label class="form-check-label" for="flexCheckDefault">
       g) informasi yang disampaikan melebihi jangka waktu yang ditentukan
    </label>
</div>';
  }
?>
</td>
</tr>
<tr style="height:30px;">
  <td><b>KASUS POSISI</b></td>
</tr>
<tr>
  <td colspan="2"><?php echo $data['kasus']?></td>
</tr>
<tr>
  <td colspan="2">HARI/TANGGAL TANGGAPAN ATAS KEBERATAN AKAN DIBERIKAN <i>(diisi oleh Petugas)</i> : 
  <?php echo tgl_indo(date("Y-m-d", strtotime($data["tgl_tanggapam"]))); ?> </br></br>
  Demikian keberatan ini kami sampaikan, atas perhatian dan tanggapannya saya ucapkan terima kasih.
</td>
</tr>
</table>

<br/>
<table width="80%" border="0" cellspacing="0" style="font-family:'Times New Roman', Times, serif; font-size:14px" align="center">
  <tr align="center">
    <td colspan="2">Jambi, <?php echo tgl_indo(date("Y-m-d", strtotime($data["tgl_keberatan"]))); ?></td>
  </tr>
  <tr align="center">
    <td width="50%">Petugas Informasi</br>(Penerima Keberatan)</td>
    <td width="50%">Pengaju Keberatan</br>(Pemohon Informasi)</td>
  </tr>
  <tr align="center">
    <td style="padding-top:50px"><u>(...............................)</u></br>Nama dan Tandatangan</td>
    <td style="padding-top:50px">(<u><?php echo $data['nama'] ?></u>)</br>Nama dan Tandatangan</td>
  </tr>
</table>
<?php
  }
  }
  ?>
</body>
</html>


<?php
function tgl_indo($tanggal){
	$bulan = array (
		1 =>   'Januari',
		'Februari',
		'Maret',
		'April',
		'Mei',
		'Juni',
		'Juli',
		'Agustus',
		'September',
		'Oktober',
		'November',
		'Desember'
	);
	$pecahkan = explode('-', $tanggal);
	
	// variabel pecahkan 0 = tanggal
	// variabel pecahkan 1 = bulan
	// variabel pecahkan 2 = tahun
 
	return $pecahkan[2] . ' ' . $bulan[ (int)$pecahkan[1] ] . ' ' . $pecahkan[0];
}
?>