$admin .= '</tbody></table>'; } else { $hasil = $koneksi_db->sql_query("SELECT * FROM kursus_setting WHERE LOCATE(CONCAT(',', {$kelasaktif} ,','),CONCAT(',',kelas,',')) group by guru asc"); $admin .= '<div class="panel-heading"><b>Subject Details</b></div>'; $admin .= '<table class="table"><tr>'; $no = 1; while ($data = $koneksi_db->sql_fetchrow($hasil)) { $urutan = $no; $guru = $data['guru']; $cekjmlujian = cekjmlujian2($data['id']); if ($cekjmlujian > 0) { $klikujian = '<a href="?pilih=ujian&mod=yes&aksi=listujian&id=' . $data['id'] . '"><span class="btn btn-primary">Test List (' . $cekjmlujian . ')</span></a>'; } else { $klikujian = '<a href="#"><span class="btn btn-danger">Data Kosong</span></a>'; } $admin .= '<td valign="top" align="center"><img src="' . $url_situs . 'mod/mapel/' . geticonmapel($data['mapel']) . '" width="100px" height="100px" alt="' . $judul . '"/><br>' . getmapel($data['mapel']) . '<br> ' . $klikujian . ' </td>'; if ($urutan % 4 == 0) { $admin .= '</tr>'; } $no++; } $admin .= '</table>'; } } if (in_array($_GET['aksi'], array('listujian'))) { $id = int_filter($_GET['id']); $admin .= '<div class="panel-heading"><b>Subject Details</b></div>'; $hasil = $koneksi_db->sql_query("SELECT * FROM kursus_setting where id='{$id}' "); $data = $koneksi_db->sql_fetchrow($hasil);
$kelasaktif = getkelasid($user); if ($_GET['aksi'] == "") { if ($tampilan == 'icon') { $hasil = $koneksi_db->sql_query("SELECT * FROM kursus_setting WHERE LOCATE(CONCAT(',', {$kelasaktif} ,','),CONCAT(',',kelas,',')) group by mapel asc"); $admin .= '<div class="panel-heading"><b>Your Subjects</b></div>'; $admin .= '<table class="table"><tr>'; $no = 1; while ($data = $koneksi_db->sql_fetchrow($hasil)) { $urutan = $no; $cekjmlmateri = cekjmlmateri2($data['id']); if ($cekjmlmateri > 0) { $klikmateri = '<a href="?pilih=materi&mod=yes&aksi=lihat&id=' . $data['id'] . '"><span class="btn btn-primary">Open (' . $cekjmlmateri . ')</span></a>'; } else { $klikmateri = '<a href="#"><span class="btn btn-danger">No Lessons</span></a>'; } $admin .= '<td valign="top" align="center"><img src="mod/mapel/' . geticonmapel($data['mapel']) . '" width="100px" height="100px" alt="' . $data['mapel'] . '"/><br><b>' . getmapel($data['mapel']) . '</b><br> ' . $klikmateri . ' </td>'; if ($urutan % 4 == 0) { $admin .= '</tr>'; } $no++; } $admin .= '</table>'; } else { $hasil = $koneksi_db->sql_query("SELECT * FROM kursus_setting WHERE LOCATE(CONCAT(',', {$kelasaktif} ,','),CONCAT(',',kelas,',')) group by guru asc"); $admin .= '<div class="panel-heading"><b>Subject Info</b></div>'; $admin .= '<table id="example" class="table table-striped table-hover"> <thead><tr> <th>No</th> <th>Guru</th>