<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>Nama Kursus</td>
		<td>:</td>
		<td>' . $namakursus . '</td>
	</tr>';
        $admin .= "<tr><td>Kelas</td>\n\t\t<td>:</td>\n\t\t<td colspan='4'>";
        $getkelasid_ks = getkelasid_ks($idkursus);
        $qry_kelas = mysql_query("SELECT * from kelas where id in({$getkelasid_ks})");
        $no = 1;
        while ($datas = mysql_fetch_array($qry_kelas)) {
            $idkelas = $datas["idkelas"];
            $kelas = $datas["kelas"];
            $admin .= "<input type='checkbox' name='kelas{$no}' value='{$idkelas}' checked disabled /> {$kelas} </label>&nbsp;";
            $no++;
        }
        $admin .= '</td></tr>';
        $admin .= '</table>';
        /************************************/
        $hasil = $koneksi_db->sql_query("SELECT * FROM ujian where guru='{$guru}' and idkursus='{$idkursus}' order by tgl desc");
        $admin .= '<div class="panel-heading"><b>Daftar Ujian</b></div>';
        $admin .= '<table id="example" class="table table-striped table-hover">
<thead><tr>
        $data = $koneksi_db->sql_fetchrow($hasil);
        $judul = $data['judul'];
        $konten = $data['konten'];
        $materi = $data['materi'];
        $pertemuan = $data['pertemuan'];
        $kelaskursus = explode(",", $data["kelas"]);
        $jml_pil = count($kelaskursus);
        if ($materi) {
            $mateributton = "<a href='mod/materi/download/{$materi}'><span class='label label-success'>Download materi</span></a>";
        } else {
            $mateributton = "<span class='label label-danger'>Download materi tidak tersedia</span>";
        }
        $admin .= '<div class="border">';
        $admin .= "\n<form method='post' action='' enctype ='multipart/form-data' id='posts'class='form-inline'>\n<table class='table table-striped table-hover'>";
        $admin .= "<tr><td><label><b>Kelas</b></label></td><td>";
        $getkelasid_ks = getkelasid_ks($id);
        $qry_kelas = mysql_query("SELECT * from kelas where id in({$getkelasid_ks})");
        while ($datas = mysql_fetch_array($qry_kelas)) {
            $idkelas = $datas["id"];
            $kelas = $datas["kelas"];
            if (in_array($idkelas, $kelaskursus)) {
                $checked = 'checked';
            } else {
                $checked = '';
            }
            $admin .= "<input type='checkbox' name='kelas[]' value='{$idkelas}' {$checked} > {$kelas} </label>&nbsp;";
            $no++;
        }
        $admin .= '</td></tr>';
        $admin .= '<tr>
		<td><b>Pertemuan</b></td>
        $hasil = $koneksi_db->sql_query("SELECT * FROM kursus_setting  order by guru asc");
        $admin .= '<div class="panel-heading"><b>Daftar Kursus</b></div>';
        $admin .= '<table id="example" class="table table-striped table-hover">
<thead><tr>
<th>No</th>
<th>Guru</th>
<th>Mata Pelajaran</th>
<th>Tahun Ajaran</th>
<th>Nama Kursus</th>
<th>Aksi</th>
</tr></thead><tbody>';
        $no = 1;
        while ($data = $koneksi_db->sql_fetchrow($hasil)) {
            $idkursus = $data['id'];
            $cekjmlpertemuan = cekjmlpertemuan2($idkursus);
            $getkelasid_ks = getkelasid_ks($data['id']);
            if ($getkelasid_ks != '') {
                $tambah = '<a href="?pilih=pertemuan&amp;mod=yes&amp;aksi=add&amp;id=' . $data['id'] . '"><span class="btn btn-warning">Tambah Pertemuan (' . $cekjmlpertemuan . ')</span></a>&nbsp;';
            } else {
                $tambah = '';
            }
            $admin .= '<tr>
<td><b>' . $no . '</b></td>
<td>' . getnamaguru($data['guru']) . '</td>
<td>' . getmapel($data['mapel']) . '</td>
<td>' . $data['tahun'] . '</td>
<td>' . $data['judul'] . '</td>
<td>' . $tambah . '</td>
</tr>';
            $no++;
        }