<?PHP
include("intel_tiktsk.db.inc_.php");
include("../index.globalconfig.php");
$uid1 = $_GET["id"];
//$session1 = $HTTP_GET_VARS["session"];
$query = "Select * from $mytable where i_id = '$uid1'"; 
$result = mysql_query($query); 
//$query2 = "UPDATE $mytable SET ntfy_spdpprint = '2' WHERE uid = '$uid1'";
//$result2 = mysql_query($query2);
if($row = mysql_fetch_array($result)){
//if ($row[k_session] == $session1){
$identitas = $row["i_identitas"];;
$cuts = explode("|", $identitas);
$perkara = $row["i_perkara"];;
$cuts1 = explode("|", $perkara);
?>

<div id="printData"><LINK href="../images/index.css" rel="stylesheet" type="text/css">
<table width="100%"  border="0" align="center" cellpadding="2" cellspacing="2">
  <tr>
    <td bgcolor="#FFFFFF">
      <table width="100%"  border="0" align="center" cellpadding="2" cellspacing="2">
        <tr>
          <td width="91%">             <div align="center"></div>            <div align="center"></div>            <div align="right">
            <table width="100%"  border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td>&nbsp;</td>
              </tr>
            </table>
            <table width="100%"  border="0" cellspacing="1" cellpadding="0">
  <tr>
    <td width="30%"><div align="center"><strong><?PHP echo $satker; ?>
      </strong></div>
      <hr width="200" size="1"></td>
    <td width="47%">&nbsp;</td>
    <td width="23%"><div align="center"><strong>R.IN.17</strong></div></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td><div align="center"><strong>KARTUTIK TERSANGKA / TERDAKWA / TERPIDANA</strong>
      <hr width="350" size="1">
    </div></td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td><div align="center"><b>NOMOR : <?PHP print (''.$row['i_no'].''); ?></b></div></td>
    <td>&nbsp;</td>
  </tr>
</table>
</div></td>
          </tr>
        <tr>
          <td>
            </td>
        </tr>
        <tr>
          <td><table width="100%"  border="0" cellspacing="2" cellpadding="2">
            <tr>
              <td width="3%">&nbsp;</td>
              <td width="97%">                <table width="100%"  border="0" cellspacing="2" cellpadding="2">
                <tr>
                  <td colspan="4"><strong>IDENTITAS</strong>
                      <hr size="1"></td>
                </tr>
                <tr>
                  <td colspan="2"> Nama Lengkap </td>
                  <td width="2%">:</td>
                  <td width="60%"><b><?PHP echo $cuts[0]; ?></b></td>
                </tr>
                <tr>
                  <td colspan="2"> Nama Samaran </td>
                  <td>:</td>
                  <td><b><?PHP echo $cuts[1]; ?></b></td>
                </tr>
                <tr>
                  <td colspan="2"> Tempat/Tgl.lahir/Umur</td>
                  <td>:</td>
                  <td><b><?PHP echo $cuts[2]; ?></b></td>
                </tr>
                <tr>
                  <td colspan="2"> Jenis Kelamin </td>
                  <td>:</td>
                  <td><b><?PHP echo $cuts[3]; ?></b></td>
                </tr>
                <tr>
                  <td colspan="2"> Bangsa/Suku </td>
                  <td>:</td>
                  <td><b><?PHP echo $cuts[4]; ?></b></td>
                </tr>
                <tr>
                  <td colspan="2"> Kewarganegaraan </td>
                  <td>:</td>
                  <td><b><?PHP echo $cuts[5]; ?></b></td>
                </tr>
                <tr>
                  <td colspan="2"> Alamat/Tempat Tinggal</td>
                  <td>:</td>
                  <td><b><?PHP echo $cuts[6]; ?></b></td>
                </tr>
                <tr>
                  <td colspan="2"> Agama/Kepercayaan</td>
                  <td>:</td>
                  <td><b><?PHP echo $cuts[7]; ?></b></td>
                </tr>
                <tr>
                  <td colspan="2"> Pekerjaan </td>
                  <td>:</td>
                  <td><b><?PHP echo $cuts[8]; ?></b></td>
                </tr>
                <tr>
                  <td colspan="2"> Status Perkawinan </td>
                  <td>:</td>
                  <td><b><?PHP echo $cuts[9]; ?></b></td>
                </tr>
                <tr>
                  <td colspan="2">Kepartaian</td>
                  <td>:</td>
                  <td><b><?PHP echo $cuts[10]; ?></b></td>
                </tr>
                <tr>
                  <td colspan="2">Pendidikan</td>
                  <td>:</td>
                  <td><b><?PHP echo $cuts[11]; ?></b></td>
                </tr>
                <tr>
                  <td colspan="2">&nbsp;</td>
                  <td>&nbsp;</td>
                  <td>&nbsp;</td>
                </tr>
                <tr>
                  <td colspan="4"><strong> <strong>II. RIWAYAT PERKARA</strong> : </strong>
                      <hr size="1"></td>
                </tr>
                <tr>
                  <td colspan="2"> 1 Kejahatan /Pelanggaran yang dilakukan </td>
                  <td>&nbsp;</td>
                  <td>&nbsp;</td>
                </tr>
                <tr>
                  <td><div align="center">a.</div></td>
                  <td>Kasus Posisi secara singkat </td>
                  <td>:</td>
                  <td><b><?PHP echo $cuts1[0]; ?></b></td>
                </tr>
                <tr>
                  <td width="4%"><div align="center">b.</div></td>
                  <td width="34%"> Latar belakang &amp; akibat-akibat peristiwa/Kerugian </td>
                  <td>:</td>
                  <td><b><?PHP echo $cuts1[1]; ?></b></td>
                </tr>
                <tr>
                  <td><div align="center">c.</div></td>
                  <td> SP3/SKPP </td>
                  <td>:</td>
                  <td>No :<b><?PHP echo $cuts1[2]; ?></b>      Tgl.
                    <b><?PHP echo $cuts1[3]; ?></b> </td>
                </tr>
                <tr>
                  <td rowspan="3"><div align="center">d.</div></td>
                  <td rowspan="3"> Putusan Pengadilan </td>
                  <td>:</td>
                  <td>PN.
                    <b><?PHP echo $cuts1[4]; ?></b>      </td>
                </tr>
                <tr>
                  <td>:</td>
                  <td>PT.
                    <b><?PHP echo $cuts1[5]; ?></b> </td>
                </tr>
                <tr>
                  <td>:</td>
                  <td>MA.
                    <b><?PHP echo $cuts1[6]; ?></b> </td>
                </tr>
                <tr>
                  <td colspan="2"> 2. Nama Orang Tua / Alamat </td>
                  <td>:</td>
                  <td><b><?PHP echo $cuts1[7]; ?></b></td>
                </tr>
                <tr>
                  <td colspan="2">3. Nama Kawan yang dikenal </td>
                  <td>&nbsp;</td>
                  <td><b><?PHP echo $cuts1[8]; ?></b></td>
                </tr>
                <tr>
                  <td colspan="2">4. Lain - Lain </td>
                  <td>&nbsp;</td>
                  <td><b><?PHP echo $cuts1[9]; ?></b></td>
                </tr>
                <tr>
                  <td>&nbsp;</td>
                  <td>&nbsp;</td>
                  <td>&nbsp;</td>
                  <td>&nbsp;</td>
                </tr>
                <tr>
                  <td colspan="4"><table width="100%"  border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td width="24%"><div align="center">
                        <table width="100%"  border="0" cellspacing="5" cellpadding="5">
                          <tr>
                            <td><div align="center">OTENTIKASI:</div></td>
                          </tr>
                          <tr>
                            <td><div align="center">Stempel &amp; Paraf </div></td>
                          </tr>
                          <tr>
                            <td>&nbsp;</td>
                          </tr>
                          <tr>
                            <td>&nbsp;</td>
                          </tr>
                        </table>
                      </div></td>
                      <td width="21%" bgcolor="#000000"><table width="100%"  border="0" cellspacing="1" cellpadding="1">
                        <tr>
                          <td bgcolor="#FFFFFF"><table width="100%"  border="0" cellspacing="5" cellpadding="5">
                            <tr>
                              <td>SIDIK JARI </td>
                            </tr>
                            <tr>
                              <td>&nbsp;</td>
                            </tr>
                            <tr>
                              <td>&nbsp;</td>
                            </tr>
                            <tr>
                              <td>&nbsp;</td>
                            </tr>
                          </table></td>
                        </tr>
                      </table></td>
                      <td width="2%">&nbsp;</td>
                      <td width="22%" bgcolor="#000000"><table width="100%"  border="0" cellspacing="1" cellpadding="1">
                        <tr>
                          <td bgcolor="#FFFFFF"><table width="100%"  border="0" cellspacing="5" cellpadding="5">
                            <tr>
                              <td><div align="center">TANDA TANGAN </div></td>
                            </tr>
                            <tr>
                              <td>&nbsp;</td>
                            </tr>
                            <tr>
                              <td>&nbsp;</td>
                            </tr>
                            <tr>
                              <td>&nbsp;</td>
                            </tr>
                          </table></td>
                        </tr>
                      </table></td>
                      <td width="2%">&nbsp;</td>
                      <td width="29%" bgcolor="#000000"><table width="100%"  border="0" cellspacing="1" cellpadding="1">
                        <tr>
                          <td bgcolor="#FFFFFF"><table width="100%"  border="0" cellspacing="5" cellpadding="5">
                            <tr>
                              <td><div align="center">FOTO</div></td>
                            </tr>
                            <tr>
                              <td>&nbsp;</td>
                            </tr>
                            <tr>
                              <td>&nbsp;</td>
                            </tr>
                            <tr>
                              <td>&nbsp;</td>
                            </tr>
                          </table></td>
                        </tr>
                      </table></td>
                    </tr>
                  </table></td>
                </tr>
                <tr>
                  <td colspan="4">&nbsp;</td>
                </tr>
              </table>                </td>
            </tr>
          </table>
            </td>
        </tr>
      </table>
    </td>
  </tr>
</table></div>
<table width="100%"  border="0" cellspacing="2" cellpadding="2">
  <tr>
    <td width="100%">&nbsp;</td>
  </tr>
  <tr>
    <td><table width="100%"  border="0" cellspacing="1" cellpadding="1">
        <tr>
          <td width="10%">&nbsp;</td>
          <td width="79%" bgcolor="#99CC33"><table width="100%"  border="0" cellspacing="1" cellpadding="1">
              <tr>
                <td width="90%"><div align="center"><strong>Anda ingin print data ini silahkan tekan icon printer disamping ini </strong></div></td>
                <td width="10%"><div align="center"><a href="#"  onClick="printF('printData')"><img src="print-icon.png" border="0"></a></div></td>
              </tr>
          </table></td>
          <td width="11%">&nbsp;</td>
        </tr>
    </table></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
  </tr>
</table>
<?PHP } ?>