Files
simutu/app/notif/undtu_notif.php
2025-10-09 12:30:11 +07:00

15 lines
838 B
PHP

<li>
<a href="#" id="undtu"><i class="mdi mdi-wunderlist"></i>Kegiatan
<?php
include('../koneksi.php');
$data = pg_query("SELECT id FROM riwayat_kegiatan WHERE st_persiapan='Pending' AND st_batal IS NULL");
$j=pg_num_rows($data);
if ($j==0) {} else {
?>
<span class="badge up bg-danger" style="margin-top:-1px" id="bg_notif"><?php echo $j; ?></span>
<?php
}
?>
</a>
</li>