<LINK href="../images/index.css" rel="stylesheet" type="text/css">
<?PHP
$key1 = $_POST["key"];
if ($key1 == "spdp"){
$spdp_tgl = "{$_POST[day]}/{$_POST[month]}/{$_POST[year]}";
$spdp_terimatgl = "{$_POST[day2]}/{$_POST[month2]}/{$_POST[year2]}";
$spdp_dari = $_POST["p_asalsrt"];
$uid_laporan = $_POST["p_linklap"];
$spdp_no = $_POST["p_nosrt"];
$spdp_namatsk = $_POST["p_tersangka"];
$spdp_pasal = $_POST["p_pasal"];
include ("pidsus_db.inc_.php");
$mytable = "p_perkara";
$query = "INSERT INTO $mytable (spdp_tgl, spdp_terimatgl, spdp_dari, uid_laporan, spdp_no, spdp_namatsk, spdp_pasal) VALUES ('$spdp_tgl','$spdp_terimatgl','$spdp_dari','$uid_laporan','$spdp_no','$spdp_namatsk','$spdp_pasal')";
$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?d=inc&g=daftarspdp" class="menupidsus">SPDP BARU BERHASIL DIPOSTING<a></td>
      </tr>
    </table></td>
  </tr>
</table>');
}
if ($key1 == "p21"){
$berkas_p21 = "{$_POST[day]}/{$_POST[month]}/{$_POST[year]}";
include ("pidsus_db.inc_.php");
$mytable = "p_perkara";
$uid1 = $_POST["uid"];
$query = "UPDATE $mytable Set berkas_p21 = '$berkas_p21' where uid = '$uid1'";  
$result = mysql_query($query); 
$query = "UPDATE $mytable Set berkas_tahapan  = 'SUDAH P21 TGL $berkas_p21' where uid = '$uid1'";  
$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?d=inc&g=daftarspdp" class="menupidsus">BERHASIL MENYIMPAN TANGGAL P21<a></td>
      </tr>
    </table></td>
  </tr>
</table>');
}
//--------------------

if ($key1 == "tahap2"){
$berkas_tahap2tgl = "{$_POST[day]}/{$_POST[month]}/{$_POST[year]}";
$berkas_tahan = $_POST["tahan"];
$p16a_jaksa = $_POST["jaksa"];
$uid1 = $_POST["uid"];
include ("pidsus_db.inc_.php");
$mytable = "p_perkara";
$query = "UPDATE $mytable Set berkas_tahap2tgl = '$berkas_tahap2tgl' where uid = '$uid1'";  
$result = mysql_query($query); 
$query = "UPDATE $mytable Set berkas_tahan = '$berkas_tahan' where uid = '$uid1'";  
$result = mysql_query($query); 
$query = "UPDATE $mytable Set p16a_jaksa = '$p16a_jaksa' where uid = '$uid1'";  
$result = mysql_query($query); 
$query = "UPDATE $mytable Set berkas_tahapan  = 'SUDAH TAHAP II TGL.$berkas_tahap2tgl' where uid = '$uid1'";  
$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?d=inc&g=tahap2" class="menupidsus">PROSES TAHAP II BERHASIL DIPOSTING<a></td>
      </tr>
    </table></td>
  </tr>
</table>');
}
if ($key1 == "limpah"){
$berkas_limpahp31tgl = "{$_POST[day]}/{$_POST[month]}/{$_POST[year]}";
include ("pidsus_db.inc_.php");
$mytable = "p_perkara";
$uid1 = $_POST["uid"];
$query = "UPDATE $mytable Set berkas_limpahp31tgl = '$berkas_limpahp31tgl' where uid = '$uid1'";  
$result = mysql_query($query); 
$query = "UPDATE $mytable Set berkas_tahapan  = 'SUDAH DILIMPAHKAN TGL.$berkas_limpahp31tgl' where uid = '$uid1'";  
$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?d=inc&g=pelimpahan" class="menupidsus">BERHASIL MENYIMPAN TANGGAL PELIMPAHAN<a></td>
      </tr>
    </table></td>
  </tr>
</table>');
}
if ($key1 == "tapsidang"){
include ("pidsus_db.inc_.php");
$berkas_taptglsidang = "{$_POST[day]}/{$_POST[month]}/{$_POST[year]}";
$berkas_tapnomor1 = $_POST["notap"];
$berkas_taphakim1 = $_POST["hakim"];
$mytable = "p_perkara";
$uid1 = $_POST["uid"];
$query = "UPDATE $mytable Set berkas_taptglsidang = '$berkas_taptglsidang' where uid = '$uid1'";  
$result = mysql_query($query); 
$query = "UPDATE $mytable Set berkas_tapnomor = '$berkas_tapnomor1' where uid = '$uid1'";  
$result = mysql_query($query); 
$query = "UPDATE $mytable Set berkas_taphakim = '$berkas_taphakim1' where uid = '$uid1'";  
$result = mysql_query($query); 
$query = "UPDATE $mytable Set berkas_tahapan  = 'SUDAH DITETAPKAN HARI SIDANG TGL.$berkas_taptglsidang' where uid = '$uid1'";  
$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?d=inc&g=penetapan" class="menupidsus">BERHASIL MENYIMPAN TANGGAL TAP SIDANG<a></td>
      </tr>
    </table></td>
  </tr>
</table>');
}
if ($key1 == "tuttus"){
include ("pidsus_db.inc_.php");
$berkas_tuttgl = "{$_POST[day]}/{$_POST[month]}/{$_POST[year]}";
$berkas_tutpasal = $_POST["pasaltut"];
$berkas_amartut = $_POST["amartut"];
$berkas_ptstgl = "{$_POST[day2]}/{$_POST[month2]}/{$_POST[year2]}";
$berkas_putpasal = $_POST["pasalput"];
$berkas_amarput = $_POST["amarput"];
$berkas_hasilp44 = $_POST["sikap"];
$mytable = "p_perkara";
$uid1 = $_POST["uid"];
$query = "UPDATE $mytable Set berkas_tuttgl = '$berkas_tuttgl' where uid = '$uid1'";  
$result = mysql_query($query); 
$query = "UPDATE $mytable Set berkas_tutpasal = '$berkas_tutpasal' where uid = '$uid1'";  
$result = mysql_query($query); 
$query = "UPDATE $mytable Set berkas_amartut = '$berkas_amartut' where uid = '$uid1'";  
$result = mysql_query($query); 
$query = "UPDATE $mytable Set berkas_ptstgl = '$berkas_ptstgl' where uid = '$uid1'";  
$result = mysql_query($query); 
$query = "UPDATE $mytable Set berkas_amarput = '$berkas_amarput' where uid = '$uid1'";  
$result = mysql_query($query); 
$query = "UPDATE $mytable Set berkas_putpasal = '$berkas_putpasal' where uid = '$uid1'";  
$result = mysql_query($query); 
$query = "UPDATE $mytable Set berkas_hasilp44 = '$berkas_hasilp44' where uid = '$uid1'";  
$result = mysql_query($query); 
$query = "UPDATE $mytable Set berkas_tahapan  = 'TAHAP TUNTUTAN DAN PUTUSAN' where uid = '$uid1'";  
$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?d=inc&g=tuttus" class="menupidsus">BERHASIL MENYIMPAN INFORMASI TUNTUTAN DAN PUTUSAN DAN SIKAP P44<a></td>
      </tr>
    </table></td>
  </tr>
</table>');
}
if ($key1 == "eksekusi"){
include ("pidsus_db.inc_.php");
$berkas_p48tgl = "{$_POST[day]}/{$_POST[month]}/{$_POST[year]}";
$badan = $_POST["badan"];
$berkas_denda = $_POST["denda"];
$berkas_ba20barang = $_POST["barang"];
$berkas_b20uang = $_POST["uang"];
$berkas_b21up = $_POST["uangpengganti"];
$berkas_b23 = $_POST["musnah"];
$mytable = "p_perkara";
$uid1 = $_POST["uid"];
$query = "UPDATE $mytable Set berkas_p48tgl = '$berkas_p48tgl' where uid = '$uid1'";  
$result = mysql_query($query); 
$query = "UPDATE $mytable Set berkas_denda = '$berkas_denda' where uid = '$uid1'";  
$result = mysql_query($query); 
$query = "UPDATE $mytable Set berkas_ba20barang = '$berkas_ba20barang' where uid = '$uid1'";  
$result = mysql_query($query); 
$query = "UPDATE $mytable Set berkas_b20uang = '$berkas_b20uang' where uid = '$uid1'";  
$result = mysql_query($query); 
$query = "UPDATE $mytable Set berkas_b21up = '$berkas_b21up' where uid = '$uid1'";  
$result = mysql_query($query); 
$query = "UPDATE $mytable Set berkas_b23 = '$berkas_b23' where uid = '$uid1'";  
$result = mysql_query($query); 

$query = "UPDATE $mytable Set berkas_tahapan  = 'PERKARA BERKEKUATAN HUKUM TETAP DENGAN PIDANA $badan' where uid = '$uid1'";  
$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?d=inc&g=eksekusi" class="menupidsus">BERHASIL MENYIMPAN DATA EKSEKUSI<a></td>
      </tr>
    </table></td>
  </tr>
</table>');
}
if ($key1 == "upayahukum"){
include ("pidsus_db.inc_.php");
$berkas_tglupayahukum = "{$_POST[day]}/{$_POST[month]}/{$_POST[year]}";
$jenis = $_POST["jenis"];
$uid1 = $_POST["uid"];
$query = "UPDATE $mytable Set berkas_tglupayahukum = '$berkas_tglupayahukum' where uid = '$uid1'";  
$result = mysql_query($query); 
$query = "UPDATE $mytable Set berkas_tahapan  = 'UPAYA HUKUM $jenis' where uid = '$uid1'";  
$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?d=inc&g=eksekusi" class="menupidsus">BERHASIL MENYIMPAN DATA EKSEKUSI<a></td>
      </tr>
    </table></td>
  </tr>
</table>');
}
?>

