示例#1
0
<th>Tanggal</th>
<th>Jam</th>
<th>Nama</th>
<th>Terisi</th>
<th>Benar</th>
<th>Salah</th>
<th>Nilai</th>
</tr></thead><tbody>';
            $no = 1;
            while ($data = $koneksi_db->sql_fetchrow($hasil)) {
                $tgl = $data['tgl'];
                $nilai = $data['nilai'];
                $terisi = $data['terisi'];
                $benar = $data['benar'];
                $salah = $data['salah'];
                $nama = getnamaguru($data['user']);
                $admin .= '<tr>
<td><b>' . $no . '</b></td>
<td>' . datetimes($data['tgl']) . '</td>
<td>' . $data['jam'] . '</td>
<td>' . $nama . '</td>
<td>' . $terisi . '</td>
<td>' . $benar . '</td>
<td>' . $salah . '</td>
<td>' . $nilai . '</td>';
                $admin .= '
</tr>';
                $no++;
            }
            $admin .= '</tbody></table>';
        }
示例#2
0
    if ($_GET['aksi'] == "detail") {
        $id = int_filter($_GET['id']);
        $idmateri = int_filter($_GET['materi']);
        $admin .= '<div class="panel-heading"><b>Materi</b></div>';
        $hasil = $koneksi_db->sql_query("SELECT * FROM kursus_setting where id='{$id}' ");
        $data = $koneksi_db->sql_fetchrow($hasil);
        $idkursus = $data['id'];
        $guru = $data['guru'];
        $mapel = $data['mapel'];
        $tahun = $data['tahun'];
        $admin .= '
<table cellspacing="0" cellpadding="0"class="table table-striped table-hover">
	<tr>
		<td>Nama Guru</td>
		<td>:</td>
		<td>' . getnamaguru($guru) . '</td>
		<td>Tahun</td>
		<td>:</td>
		<td>' . $tahun . '</td>
	</tr>
	<tr>
		<td>Mata Pelajaran</td>
		<td>:</td>
		<td>' . getmapel($mapel) . '</td>
		<td></td>
		<td></td>
		<td></td>
	</tr>
</table>';
        $judul = !isset($judul) ? '' : $judul;
        $konten = !isset($konten) ? '' : $konten;
    if ($_GET['aksi'] == "") {
        $hasil = $koneksi_db->sql_query("SELECT * FROM kursus_setting where status='guru' order by guru asc");
        $admin .= '<div class="panel-heading"><b>Course List</b></div>';
        $admin .= '<table id="example" class="table table-striped table-hover">
<thead><tr>
<th>No</th>
<th>Teacher</th>
<th>Subjects</th>
<th>Year</th>
<th>Action</th>
</tr></thead><tbody>';
        $no = 1;
        while ($data = $koneksi_db->sql_fetchrow($hasil)) {
            $admin .= '<tr>
<td><b>' . $no . '</b></td>
<td>' . getnamaguru($data['guru']) . '</td>
<td>' . getmapel($data['mapel']) . '</td>
<td>' . $data['tahun'] . '</td>
<td><a href="?pilih=materiguru&amp;mod=yes&amp;aksi=detail&amp;id=' . $data['id'] . '"><span class="btn btn-warning">Lihat Materi</span></a></td>
</tr>';
            $no++;
        }
        $admin .= '</tbody></table>';
        /************************************/
    }
    /**************************************************************/
    if ($_GET['aksi'] == "detail") {
        $id = int_filter($_GET['id']);
        /************************************/
        $hasil = $koneksi_db->sql_query("SELECT * FROM materi where idkursus='{$id}'  order by judul asc");
        $admin .= '<div class="panel-heading"><b>Daftar Materi</b></div>';