<LINK href="../images/index.css" rel="stylesheet" type="text/css">
<?PHP
$key1 = $_POST["key"];
if ($key1 == "laporanpost"){
$p_tglsrt1 = "{$_POST[day]}/{$_POST[month]}/{$_POST[year]}";
$p_asalsrt1 = $_POST["p_asalsrt"];
$p_nosrt1 = $_POST["p_nosrt"];
$p_tglagenda1 = "{$_POST[day2]}/{$_POST[month2]}/{$_POST[year2]}";
$p_kasusposisi1 = $_POST["p_perihal"];
$p_bundel1 = $_POST["p_bundel"];
include ("pidsus_db.inc_.php");
$mytable = "p_laporan";
$query = "INSERT INTO $mytable (p_tglsrt, p_asalsrt, p_nosrt, p_tglagenda, p_kasusposisi, p_bundel) VALUES ('$p_tglsrt1','$p_asalsrt1','$p_nosrt1','$p_tglagenda1','$p_kasusposisi1','$p_bundel1')";
$result = mysql_query($query);
print ('<table width="100%"  border="0" cellspacing="1" cellpadding="1">
  <tr>
    <td bgcolor="#993300"><table width="100%"  border="0" cellspacing="4" cellpadding="4">
      <tr>
        <td bgcolor="#FF6600"><a href="../index.php?g=laporan&d=inc" class="menupidsus">POSTING LAPORAN BERHASIL<a></td>
      </tr>
    </table></td>
  </tr>
</table>');
}
if ($key1 == "laporandisposisi"){
$tindaklanjut1 = $_POST["tindaklanjut"];
$isidisposisi1 = $_POST["isidisposisi"];
$uid1 = $_POST["uid"];
include ("pidsus_db.inc_.php");
$mytable = "p_laporan";
$query = "UPDATE $mytable Set p_tindaklanjut = '$tindaklanjut1' where p_uid = '$uid1'";  
$result = mysql_query($query); 
$query = "UPDATE $mytable Set p_isidisposisi  = '$isidisposisi1' where p_uid = '$uid1'";  
$result = mysql_query($query);
//update tahapan
$query = "UPDATE $mytable Set p_tahap  = '1' where p_uid = '$uid1'";  
$result = mysql_query($query); 
//end update tahapan 
print ('<table width="100%"  border="0" cellspacing="1" cellpadding="1">
  <tr>
    <td bgcolor="#993300"><table width="100%"  border="0" cellspacing="4" cellpadding="4">
      <tr>
        <td bgcolor="#FF6600"><a href="../index.php?g=laporan&d=inc" class="menupidsus">POSTING DISPOSISI BERHASIL<a></td>
      </tr>
    </table></td>
  </tr>
</table>');
}
if ($key1 == "telahaan"){
$telahaan1 = $_POST["telahaan"];
$isitelahaan1 = $_POST["isitelahaan"];
$uid1 = $_POST["uid"];
include ("pidsus_db.inc_.php");
$mytable = "p_laporan";
$query = "UPDATE $mytable Set p_telahaan = '$telahaan1' where p_uid = '$uid1'";  
$result = mysql_query($query); 
$query = "UPDATE $mytable Set p_isitelahaan  = '$isitelahaan1' where p_uid = '$uid1'";  
$result = mysql_query($query); 
//update tahapan
$query = "UPDATE $mytable Set p_tahap  = '2' where p_uid = '$uid1'";  
$result = mysql_query($query); 
//end update tahapan
print ('<table width="100%"  border="0" cellspacing="1" cellpadding="1">
  <tr>
    <td bgcolor="#993300"><table width="100%"  border="0" cellspacing="4" cellpadding="4">
      <tr>
        <td bgcolor="#FF6600"><a href="../index.php?g=telahaan&d=inc" class="menupidsus">POSTING DISPOSISI TELAHAAN BERHASIL<a></td>
      </tr>
    </table></td>
  </tr>
</table>');
}
if ($key1 == "hasillid"){
$p_tglhasillid1 = "{$_POST[day]}/{$_POST[month]}/{$_POST[year]}";
$p_hasillid1 = $_POST["hasil"];
$p_isihasillid1 = $_POST["isilid"];
$uid1 = $_POST["uid"];
include ("pidsus_db.inc_.php");
$mytable = "p_laporan";
$query = "UPDATE $mytable Set p_tglhasillid = '$p_tglhasillid1' where p_uid = '$uid1'";  
$result = mysql_query($query); 
$query = "UPDATE $mytable Set p_hasillid = '$p_hasillid1' where p_uid = '$uid1'";  
$result = mysql_query($query); 
$query = "UPDATE $mytable Set p_isihasillid = '$p_isihasillid1' where p_uid = '$uid1'";  
$result = mysql_query($query); 
//update tahapan
$query = "UPDATE $mytable Set p_tahap  = '3' where p_uid = '$uid1'";  
$result = mysql_query($query); 
//end update tahapan
print ('<table width="100%"  border="0" cellspacing="1" cellpadding="1">
  <tr>
    <td bgcolor="#993300"><table width="100%"  border="0" cellspacing="4" cellpadding="4">
      <tr>
        <td bgcolor="#FF6600"><a href="../index.php?g=laphaslid&d=inc" class="menupidsus">POSTING DISPOSISI TELAHAAN BERHASIL<a></td>
      </tr>
    </table></td>
  </tr>
</table>');
}
if ($key1 == "penyidikan"){
$p_tsk1 = $_POST["tersangka"];
$p_pasal1 = $_POST["pasal"];
$uid1 = $_POST["uid"];
include ("pidsus_db.inc_.php");
$mytable = "p_laporan";
$query = "UPDATE $mytable Set p_tsk = '$p_tsk1' where p_uid = '$uid1'";  
$result = mysql_query($query); 
$query = "UPDATE $mytable Set p_pasal = '$p_pasal1' where p_uid = '$uid1'";  
$result = mysql_query($query); 
$query = "UPDATE $mytable Set p_tahap  = '4' where p_uid = '$uid1'";  
$result = mysql_query($query); 
//end update table p_perkara
$mytable2 = "p_perkara";
$query2 = "INSERT INTO $mytable2 (spdp_namatsk,spdp_pasal, uid_laporan) VALUES ('$p_tsk1','$p_pasal1','$uid1')";
$result2 = mysql_query($query2);
//end update tahapan
print ('<table width="100%"  border="0" cellspacing="1" cellpadding="1">
  <tr>
    <td bgcolor="#993300"><table width="100%"  border="0" cellspacing="4" cellpadding="4">
      <tr>
        <td bgcolor="#FF6600"><a href="../index.php?g=penyidikan&d=inc" class="menupidsus">POSTING DATA PENYIDIKAN BERHASIL APABILA LEBIH DARI SATU BERKAS INPUT KEMBALI DENGAN INPUT SPDP<a></td>
      </tr>
    </table></td>
  </tr>
</table>');
}
?>

