Dokumen
Download
$qdownload = mysqli_query($konekli, "select * from `download` where `untuk`='Publik' order by `id`limit 8"); while ($download = mysqli_fetch_array($qdownload)) { if ($download['ext'] == 'jpg' or $download['ext'] == 'bmp' or $download['ext'] == 'jpeg' or $download['ext'] == 'gif' or $download['ext'] == 'png' or $download['ext'] == 'JPG') { $icon = "bi-filetype-jpg"; } elseif ($download['ext'] == 'pdf') { $icon = "bi-filetype-pdf"; } elseif ($download['ext'] == 'rar' or $download['ext'] == 'zip' or $download['ext'] == '7z') { $icon = "bi-file-zip-fill"; } elseif ($download['ext'] == 'doc' or $download['ext'] == 'docx' or $download['ext'] == 'xls' or $download['ext'] == 'xlsx' or $download['ext'] == 'ppt' or $download['ext'] == 'pptx') { $icon = "bi-filetype-docx"; } ?> } ?> LainnyaAgenda Kegiatan
$qagenda = mysqli_query($konekli, "select * from `agenda` order by `tanggal_mulai` DESC limit 5"); while ($agenda = mysqli_fetch_array($qagenda)) { $tanggal_mulai = explode('-', $agenda['tanggal_mulai']); $tanggal_akhir = explode('-', $agenda['tanggal_akhir']); $bulan = mysqli_fetch_array(mysqli_query($konekli, "select * from `kalender` where `month`='" . $tanggal_mulai[1] . "'")); $bln = substr($bulan['bulan'], 0, 3); $date = $agenda['tanggal_mulai']; $hari = date('D', strtotime($date)); $hari = mysqli_fetch_array(mysqli_query($konekli, "select * from `kalender` where `day`='" . $hari . "'")); $hari = $hari['hari']; ?>- echo $hari . ', ' . $tanggal_mulai[2] . ' ' . $bln . ' ' . $tanggal_mulai[0]; ?> Lihat