Pengumuman
"; $logQ = mysqli_query($koneksi, "SELECT * FROM pengumuman where type='eksternal' ORDER BY date DESC"); while ($log = mysqli_fetch_array($logQ)) { $logC++; $user = mysqli_fetch_array(mysqli_query($koneksi, "SELECT * FROM pengawas WHERE id_pengawas='$log[user]'")); if ($log['type'] == 'internal') { $bg = 'bg-green'; $color = 'text-green'; } else { $bg = 'bg-blue'; $color = 'text-blue'; } echo "
" . buat_tanggal('d-m-Y', $log['date']) . " " . buat_tanggal('h:i', $log['date']) . "
$log[judul] $user[nama]
" . ucfirst($log['text']) . "
Tidak ada aktifitas.
"; } echo "";?>
Tombol ujian akan aktif bila waktu sudah sama dengan jadwal ujian,
Refresh browser atau tekan F5 jika waktu ujian belum aktif
Jadwal Ujian Hari ini
= date('Y-m-d') and date('Y-m-d', strtotime($mapelx['tgl_ujian'])) <= date('Y-m-d')) : ?>
$mapelx['id_ujian'],
'id_mapel' => $mapelx['id_mapel'],
'id_siswa' => $id_siswa
//'kode_ujian' => $mapelx['kode_ujian']
);
$nilai = fetch($koneksi, 'nilai', $where);
$ceknilai = rowcount($koneksi, 'nilai', $where);
if ($ceknilai == '0') :
if (strtotime($mapelx['tgl_ujian']) <= time() and time() <= strtotime($mapelx['tgl_selesai'])) :
$status = '';
$btntest = "";
elseif (strtotime($mapelx['tgl_ujian']) >= time() and time() <= strtotime($mapelx['tgl_selesai'])) :
$status = '';
$btntest = "";
else :
$status = '';
$btntest = "";
endif;
else :
if ($nilai['ujian_mulai'] <> '' and $nilai['ujian_berlangsung'] <> '' and $nilai['ujian_selesai'] == '') :
if ($mapelx['reset'] == 1) {
if($nilai['online']==0){
$status = '';
$btntest = "";
}else{
$status = '';
$btntest = "";
}
} else {
$status = '';
$btntest = "";
}
else :
if ($nilai['ujian_mulai'] <> '' and $nilai['ujian_berlangsung'] <> '' and $nilai['ujian_selesai'] <> '') {
$status = '';
$btntest = "";
} else {
$btntest = "";
}
endif;
endif;
?>
null) : ?>
Data Hasil Ujian
No Induk | : | = $siswa['nis'] ?> | Nilai |
---|---|---|---|
Nama | : | = $siswa['nama'] ?> | = $nilai['total'] ?> |
Kelas | : | = $siswa['id_kelas'] ?> | |
Mata Pelajaran | : | = $mapel['nama'] ?> | |
Nama Ujian | : | = $nilai['kode_ujian'] ?> |