<?PHP
mysql_connect("localhost", "root", "benk");
mysql_select_db("datun");
$mytable = "mou";
$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);
$biografi1 = $row["i_biografi1"];;
$cuts2 = explode("|", $biografi1);
$biografi2 = $row["i_biografi2"];;
$cuts3 = explode("|", $biografi2);
$biografi3 = $row["i_biografi3"];;
$cuts4 = explode("|", $biografi3);
?>


<table width="100%"  border="0" cellspacing="2" cellpadding="2">
  <tr>
    <td bgcolor="#FFFFFF"><form action="inc/intel_tikbiodataadd.php" method="post" enctype="multipart/form-data" name="form1">
      <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="1" cellpadding="0">
  <tr>
    <td width="35%"><div align="center"><strong>KEJAKSAAN NEGERI </strong></div>
      <hr width="300" size="1"></td>
    <td width="35%">&nbsp;</td>
    <td width="30%"><div align="right"></div></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td><div align="center">MOU</div></td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</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>1. IDENTITAS</strong>
                      </td>
                </tr>
                <tr>
                  <td width="6%"><div align="center">a.</div></td>
                  <td width="25%">Nama Lengkap. </td>
                  <td width="2%">:</td>
                  <td width="67%"><b><?PHP echo $cuts[0]; ?></b></td>
                </tr>
                <tr>
                  <td><div align="center">b. </div></td>
                  <td>Tempat Tanggal Lahir </td>
                  <td>:</td>
                  <td><b><?PHP echo $cuts[1]; ?></b></td>
                </tr>
                <tr>
                  <td><div align="center">c. </div></td>
                  <td>Jenis Kelamin</td>
                  <td>:</td>
                  <td><b><?PHP echo $cuts[2]; ?></b></td>
                </tr>
                <tr>
                  <td><div align="center">d. </div></td>
                  <td>Bangsa / Suku </td>
                  <td>:</td>
                  <td><b><?PHP echo $cuts[3]; ?></b></td>
                </tr>
                <tr>
                  <td><div align="center">e.</div></td>
                  <td>Kewarganegaraan </td>
                  <td>:</td>
                  <td><b><?PHP echo $cuts[4]; ?></b></td>
                </tr>
                <tr>
                  <td><div align="center">f.</div></td>
                  <td>Alamat/ Tempat tinggal </td>
                  <td>:</td>
                  <td><b><?PHP echo $cuts[5]; ?></b></td>
                </tr>
                <tr>
                  <td><div align="center">g.</div></td>
                  <td>Agama / Kepercayaan </td>
                  <td>:</td>
                  <td><b><?PHP echo $cuts[6]; ?></b></td>
                </tr>
                <tr>
                  <td><div align="center">h.</div></td>
                  <td>Pekerjaan </td>
                  <td>:</td>
                  <td><b><?PHP echo $cuts[7]; ?></b></td>
                </tr>
                <tr>
                  <td><div align="center">i.</div></td>
                  <td>Status Perkawinan </td>
                  <td>:</td>
                  <td><b><?PHP echo $cuts[8]; ?></b></td>
                </tr>
                <tr>
                  <td><div align="center">j.</div></td>
                  <td>Legimitasi Perkawinan</td>
                  <td>:</td>
                  <td><b><?PHP echo $cuts[9]; ?></b></td>
                </tr>
                <tr>
                  <td><div align="center">k.</div></td>
                  <td>Tempat dan Tanggal Perkawinan </td>
                  <td>:</td>
                  <td><b><?PHP echo $cuts[10]; ?></b></td>
                </tr>
              </table></td>
            </tr>
          </table>
            <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="5"> <strong>2. BIOGRAFI INTELIJEN </strong>                          </td>
                    </tr>
                    <tr>
                      <td width="4%">&nbsp; </td>
                      <td colspan="2">a. Riwayat Hidup Singkat</td>
                      <td>&nbsp;</td>
                      <td>&nbsp;</td>
                    </tr>
                    <tr>
                      <td>&nbsp; </td>
                      <td width="6%"><div align="center">1.</div></td>
                      <td width="21%">Pekerjaan</td>
                      <td width="2%">:</td>
                      <td width="67%"><b><?PHP echo $cuts2[0]; ?></b></td>
                    </tr>
                    <tr>
                      <td>&nbsp; </td>
                      <td><div align="center">2.</div></td>
                      <td>Pendidikan</td>
                      <td>:</td>
                      <td><b><?PHP echo $cuts2[1]; ?></b></td>
                    </tr>
                    <tr>
                      <td>&nbsp; </td>
                      <td><div align="center">3.</div></td>
                      <td>Kepartaian</td>
                      <td>:</td>
                      <td><b><?PHP echo $cuts2[2]; ?></b></td>
                    </tr>
                    <tr>
                      <td>&nbsp; </td>
                      <td><div align="center">4.</div></td>
                      <td>Ormas lainnya</td>
                      <td>:</td>
                      <td><b><?PHP echo $cuts2[3]; ?></b></td>
                    </tr>
                </table>
                  <table width="100%"  border="0" cellspacing="2" cellpadding="2">
                    <tr>
                      <td colspan="5">&nbsp; </td>
                    </tr>
                    <tr>
                      <td width="4%">&nbsp; </td>
                      <td colspan="2">b. Keluarga </td>
                      <td>&nbsp;</td>
                      <td>&nbsp;</td>
                    </tr>
                    <tr>
                      <td>&nbsp; </td>
                      <td width="6%"><div align="center">1.</div></td>
                      <td width="21%">Nama Isteri/ Suami</td>
                      <td width="2%">:</td>
                      <td width="67%"><b><?PHP echo $cuts3[0]; ?></b></td>
                    </tr>
                    <tr>
                      <td>&nbsp; </td>
                      <td><div align="center">2.</div></td>
                      <td>Nama anak-anak</td>
                      <td>:</td>
                      <td><b><?PHP echo $cuts3[1]; ?></b></td>
                    </tr>
                    <tr>
                      <td>&nbsp; </td>
                      <td><div align="center">3.</div></td>
                      <td>Nama Saudara Kandung</td>
                      <td>:</td>
                      <td><b><?PHP echo $cuts3[2]; ?></b></td>
                    </tr>
                    <tr>
                      <td>&nbsp; </td>
                      <td><div align="center">4.</div></td>
                      <td>Nama Ayah Kandung, Alamat</td>
                      <td>:</td>
                      <td><b><?PHP echo $cuts3[3]; ?></b></td>
                    </tr>
                    <tr>
                      <td>&nbsp;</td>
                      <td><div align="center">5.</div></td>
                      <td>Nama Ibu Kandung, Alamat</td>
                      <td>:</td>
                      <td><b><?PHP echo $cuts3[4]; ?></b></td>
                    </tr>
                    <tr>
                      <td>&nbsp;</td>
                      <td><div align="center">6.</div></td>
                      <td>Nama Ayah Mertua, Alamat </td>
                      <td>:</td>
                      <td><b><?PHP echo $cuts3[5]; ?></b></td>
                    </tr>
                    <tr>
                      <td rowspan="2">&nbsp;</td>
                      <td><div align="center">7.</div></td>
                      <td>Nama Ibu Mertua, Alamat </td>
                      <td>:</td>
                      <td><b><?PHP echo $cuts3[6]; ?></b></td>
                    </tr>
                    <tr>
                      <td>&nbsp;</td>
                      <td>&nbsp;</td>
                      <td>&nbsp;</td>
                      <td>&nbsp;</td>
                    </tr>
                    <tr>
                      <td>&nbsp;</td>
                      <td colspan="2">c. Referensi Kenalan </td>
                      <td>:</td>
                      <td><b><?PHP echo $cuts4[0]; ?></b></td>
                    </tr>
                    <tr>
                      <td>&nbsp;</td>
                      <td colspan="2">d. Hobby/ Kegemaran</td>
                      <td>:</td>
                      <td><b><?PHP echo $cuts4[1]; ?></b></td>
                    </tr>
                    <tr>
                      <td>&nbsp;</td>
                      <td colspan="2">e. Kedudukan dimasyarakat</td>
                      <td>:</td>
                      <td><b><?PHP echo $cuts4[2]; ?></b></td>
                    </tr>
                    <tr>
                      <td>&nbsp;</td>
                      <td colspan="2">f. Lain-lain</td>
                      <td>:</td>
                      <td><b><?PHP echo $cuts4[3]; ?></b></td>
                    </tr>
                  </table>
                  <table width="100%"  border="0" cellspacing="2" cellpadding="2">
                    <tr>
                      <td width="100%">&nbsp;  </td>
                    </tr>
                    <tr>
                      <td><table width="90%"  border="0" align="center" cellpadding="2" cellspacing="2">
                          <tr>
                            <td width="34%" valign="top"><div align="center">
                             <strong>OTENTIKASI KASI INTELIJEN</strong><br>
                              (STEMPEL &amp; PARAF)
                            </div></td>
                            <td width="44%">&nbsp;</td>
                            <td width="22%" bgcolor="#000000"><table width="100%"  border="0" cellspacing="1" cellpadding="0">
                              <tr>
                                <td bgcolor="#FFFFFF"><p>&nbsp;</p>
                                  <p>&nbsp;</p>
                                  <p align="center">PAS FOTO <br>3x4 </p>
                                  <p>&nbsp;</p>
                                  <p>&nbsp;</p>
                                  </td>
                              </tr>
                            </table></td>
                          </tr>
                                            </table></td>
                      </tr>
                  </table></td>
              </tr>
              <tr>
                <td colspan="2">&nbsp;</td>
                </tr>
              <tr>
                <td colspan="2"><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"><img src="print-icon.png" width="32" height="32"></div></td>
                      </tr>
                    </table></td>
                    <td width="11%">&nbsp;</td>
                  </tr>
                </table></td>
                </tr>
              <tr>
                <td colspan="2">&nbsp;</td>
                </tr>
            </table></td>
          </tr>
      </table>
    </form></td>
  </tr>
</table>
<?PHP } ?>