first commit
This commit is contained in:
15
dev/app/notif/inbox_notif.php
Normal file
15
dev/app/notif/inbox_notif.php
Normal file
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
$satker=$_POST['satker'];
|
||||
|
||||
include('../koneksi.php');
|
||||
$data = pg_query("SELECT COUNT(*)
|
||||
FROM surat s
|
||||
INNER JOIN kirim k ON (s.id=k.surat_id)
|
||||
WHERE k.satuan_kerja_tujuan='$satker' AND (s.satuan_kerja_id <> k.satuan_kerja_tujuan)
|
||||
AND k.proses_tu IS NULL
|
||||
AND s.jenis_surat_id='3' AND s.jenis_disposisi_id='3' AND k.lama IS NOT NULL
|
||||
");
|
||||
while($r=pg_fetch_array($data)) {$j=$r[0];}
|
||||
echo $j;
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user