<!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 onLoad="javascript:window.print()">
    <table>
        <tr>
<td><img src="logo-pta-crop.png" height="100px" widht="100px"></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>
<?php
                          include 'database.php';
                          if (isset($_GET['ID']))
                          {
                            ?>
<p style="font-family:cambria; font-size:18px;" align="center"><b>REGISTER PERMOHONAN INFORMASI<br/>
		PERIODE : JANUARI - DESEMBER <?php echo $_GET['ID']?></b>
</p>
<table width="100%" border="1" cellspacing="0" style="font-family:'Times New Roman', Times, serif; font-size:10px" align="center">
 <tr align="center">
    <td rowspan="3">No</td>
    <td rowspan="3">No. Pendaftaran</td>
    <td rowspan="3">Tanggal</td>
    <td rowspan="3">Nama</td>
    <td rowspan="3">Alamat</td>
    <td rowspan="3">No. Kontak</td>
    <td rowspan="3">Pekerjaan</td>
    <td rowspan="3">Informasi Yang Diminta</td>
    <td rowspan="3">Tujuan Penggunaan Informasi</td>
    <td colspan="2">Jenis Permohonan</td>
    <td colspan="4">Status Informasi</td>
    <td colspan="2">Bentuk Informasi</td>
    <td rowspan="3">Keputusan PPID</td>
    <td rowspan="3">Alasan Penolakan</td>
    <td colspan="2">Hari/Tanggal</td>
    <td rowspan="3">Biaya</td>
    <td rowspan="3">Tanda Bukti Menerima</td>
 </tr>
 <tr align="center">
    <td rowspan="2">B</td>
    <td rowspan="2">K</td>
    <td colspan="3">Dibawah Kekuasaan</td>
    <td rowspan="2">Belum Didokumentasikan</td>
    <td rowspan="2">Naskah Cetak (Hardcopy)</td>
    <td rowspan="2">Naskah Elektronik (Softcopy)</td>
    <td rowspan="2">Pemberitahuan Tertulis</td>
    <td rowspan="2">Pemberitahuan Informasi</td>
 </tr>
 <tr>
    <td>Ya</td>
    <td>Tidak</td>
    <td>Instansi</td>
 </tr>
<?php
include 'database.php';
 $no=1;
 $tahun = $_GET['ID'];
 $que = "SELECT * FROM tb_informasi where tahun = '$tahun'";
 $res = mysqli_query($koneksi, $que);
 while($data = mysqli_fetch_array($res))
{
?>
 <tr>
    <td class="text-center"><?php echo $no++; ?></td>
    <td><?php echo $data['id_informasi'] ?></td>
         <?php
         $id = $data['id'];
         $query = "SELECT * FROM datatamu where id = '$id'";
         $view = mysqli_query($conn, $query);
         while($row = mysqli_fetch_array($view))
         {
         ?>
    <td><?php echo date('d/m/Y', strtotime($row['checkin'])); ?></td>
    <td><?php echo $row['nama'] ?></td>
    <td><?php echo $row['instansi'] ?></td>
    <td><?php echo $row['telp'] ?></td>
    <td><?php echo $row['jabatan'] ?></td>
    <td><?php echo $row['kepentingan'] ?></td>
    <td><?php echo $data['rincian'] ?></td>
    <td align="center">V</td>
    <td align="center">-</td>
    <td align="center">V</td>
    <td align="center">-</td>
    <td align="center">-</td>
    <td align="center">-</td>
    <td align="center">
      <?php
      if($data['cara_memperoleh'] == 'Mendapatkan Salinan Informasi (Hardcopy)'){
         echo 'V';
      }else{
         echo '-';
      }
      ?>
    </td>
    <td align="center">
      <?php
      if($data['cara_memperoleh'] == 'Mendapatkan Salinan Informasi (Softcopy)'){
         echo 'V';
      }else{
         echo '-';
      }
      ?>
    </td>
    <td align="center">
      <?php
      if($data['status_informasi'] == '12'){
         echo 'Ditolak';
      }elseif($data['status_informasi'] == '13'){
         echo 'Diterima Sepenuhnya';
      }elseif($data['status_informasi'] == '14'){
         echo 'Diterima Sebagian';
      }
      ?>
    <td><?php echo $data['alasan'] ?></td>
    <td align="center"><?php echo date('d/m/Y', strtotime($row['checkin'])); ?></td>
    <td align="center"><?php echo date('d/m/Y', strtotime($row['checkin'])); ?></td>
    <td align="center">-</td>
    <td align="center">-</td>
 </tr>
 <?php } } ?>
</table>
<?php } ?>

</body>
</html>
