first commit
This commit is contained in:
12
app/inbox/crud.php
Normal file
12
app/inbox/crud.php
Normal file
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
include('../koneksi.php');
|
||||
$surat_id=$_POST['id'];
|
||||
$key=$_POST['key'];
|
||||
$satker=$_POST['satker'];
|
||||
if ($key=='upd_sm_baca') {
|
||||
$u=pg_query("UPDATE kirim SET proses_tu='B' WHERE surat_id='$surat_id' AND satuan_kerja_tujuan='$satker'");
|
||||
} else
|
||||
if ($key=='approve_keluar') {
|
||||
$u=pg_query("UPDATE kirim SET tgl_diterima=NOW() WHERE surat_id='$surat_id' AND satuan_kerja_tujuan='$satker'");
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user