<?PHP
mysql_connect("localhost", "root", "benk");
mysql_select_db("cma_pidsus");
$mytable1 = "p_laporan";
$mytable2 = "p_perkara";
$uid1 = $_GET["id"];
$query = "Select * from $mytable1 where p_uid = '$uid1'"; 
$result = mysql_query($query); 
if($row = mysql_fetch_array($result)){
$query2 = "Select * from $mytable2 where uid_laporan = '$uid1'"; 
$result2 = mysql_query($query2); 
if($row2 = mysql_fetch_array($result2)){
?>
<style type="text/css">
<!--
.style1 {color: #999999}
-->
</style>
<table width="100%"  border="0" cellspacing="4" cellpadding="4">
  <tr>
    <td><table width="100%"  border="0" cellspacing="2" cellpadding="2">
        <tr>
          <td bgcolor="#FFFFFF">
              <table width="100%"  border="0" cellspacing="4" cellpadding="4">
                <tr>
                  <td><div align="center" class="style1">R A H A S I A</div></td>
                </tr>
              </table>
              <table width="100%"  border="0" cellspacing="2" cellpadding="2">
                <tr>
                  <td width="32%"><div align="center"><strong>KEJAKSAAN NEGERI</strong><strong> </strong></div></td>
                  <td width="68%">
                    <div align="left"></div>                    </td>
                </tr>
                <tr>
                  <td><div align="center">SEKSI PIDSUS </div></td>
                  <td>&nbsp;</td>
                </tr>
                <tr>
                  <td colspan="2"><div align="center"><b> DETAIL PERKARA </b></div></td>
                </tr>
                <tr>
                  <td colspan="2"><div align="center"><b> </b></div> </td>
                </tr>
                <tr>
                  <td colspan="2"><table width="100%"  border="0" cellspacing="2" cellpadding="2">
                      <tr>
                        <td width="78">&nbsp;</td>
                        <td><div align="center"> I. </div></td>
                        <td colspan="2">TANGGAL SURAT / TANGGAL TERIMA PIDSUS</td>
                      </tr>
                      <tr>
                        <td rowspan="2">&nbsp;</td>
                        <td width="38" rowspan="2"><div align="center"></div></td>
                        <td colspan="2"><b><?PHP print ('Tanggal Terima Surat : '.$row['p_tglsrt'].''); ?></b> / <b><?PHP print (' Tanggal Agenda Surat : '.$row['p_tglagenda'].''); ?></b></td>
                      </tr>
                      <tr>
                        <td colspan="2">&nbsp;</td>
                      </tr>
                      <tr>
                        <td>&nbsp;</td>
                        <td><div align="center">II. </div></td>
                        <td colspan="2">ASAL SURAT</td>
                      </tr>
                      <tr>
                        <td rowspan="2">&nbsp;</td>
                        <td rowspan="2"> <div align="center"></div></td>
                        <td colspan="2"><b><?PHP print (''.$row['p_asalsrt'].''); ?></b></td>
                      </tr>
                      <tr>
                        <td colspan="2">&nbsp;</td>
                      </tr>
                      <tr>
                        <td>&nbsp;</td>
                        <td><div align="center">III. </div></td>
                        <td colspan="2">NOMOR SURAT</td>
                      </tr>
                      <tr>
                        <td rowspan="2">&nbsp;</td>
                        <td rowspan="2"><div align="center"></div></td>
                        <td colspan="2"><b><?PHP print (''.$row['p_nosrt'].''); ?></b></td>
                      </tr>
                      <tr>
                        <td colspan="2">&nbsp;</td>
                      </tr>
                      <tr>
                        <td>&nbsp;</td>
                        <td><div align="center">IV. </div></td>
                        <td colspan="2">KASUS POSISI </td>
                      </tr>
                      <tr>
                        <td rowspan="2">&nbsp;</td>
                        <td rowspan="2"><div align="center"></div></td>
                        <td width="917"><b><?PHP print (''.$row['p_kasusposisi'].''); ?></b></td>
                        <td width="219">&nbsp;</td>
                      </tr>
                      <tr>
                        <td colspan="2">&nbsp;</td>
                      </tr>
                      <tr>
                        <td>&nbsp;</td>
                        <td><div align="center">V.</div></td>
                        <td>Nama Tersangka </td>
                        <td>&nbsp;</td>
                      </tr>
                      <tr>
                        <td>&nbsp;</td>
                        <td>&nbsp;</td>
                        <td><b><?PHP print (''.$row2['spdp_namatsk'].''); ?></b></td>
                        <td>&nbsp;</td>
                      </tr>
                      <tr>
                        <td>&nbsp;</td>
                        <td>&nbsp;</td>
                        <td>&nbsp;</td>
                        <td>&nbsp;</td>
                      </tr>
                      <tr>
                        <td>&nbsp;</td>
                        <td><div align="center">VI.</div></td>
                        <td>Pasal Sangkaan </td>
                        <td>&nbsp;</td>
                      </tr>
                      <tr>
                        <td>&nbsp;</td>
                        <td>&nbsp;</td>
                        <td><b><?PHP print (''.$row2['spdp_pasal'].''); ?></b></td>
                        <td>&nbsp;</td>
                      </tr>
                      <tr>
                        <td>&nbsp;</td>
                        <td>&nbsp;</td>
                        <td>&nbsp;</td>
                        <td>&nbsp;</td>
                      </tr>
                  </table></td>
                </tr>
          </table></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<? }} ?>