<td>' . gettahunajaran($tahunajaran) . '</td> </tr>'; $admin .= '<tr> <td>Tingkat</td> <td>:</td> <td>' . gettingkat($tingkat) . '</td> </tr>'; $admin .= '<tr> <td>Kelas</td> <td>:</td> <td>' . getkelas($kelas) . '</td> </tr>'; $admin .= '<tr> <td>Hari</td> <td>:</td> <td>' . gethari($hari) . '</td> </tr>'; $admin .= '<tr> <td>Jam Ke</td> <td>:</td> <td>' . getjam($jamke) . '</td> </tr>'; $admin .= ' <tr> <td>Mata Pelajaran</td> <td>:</td> <td><select name="matpel" class="form-control" id="matpel" required>'; $hasilj = $koneksi_db->sql_query("SELECT *FROM akad_guru where tingkat = '{$tingkat}' ORDER BY id asc"); $admin .= '<option value="">== Pilih Mata Pelajaran ==</option>'; while ($datasj = $koneksi_db->sql_fetchrow($hasilj)) { $admin .= '<option value="' . $datasj['matpel'] . '">' . getmatpel($datasj['matpel']) . '</option>';
$hasil = mysql_query($query); while ($data = mysql_fetch_assoc($hasil)) { $filename = $data['filename']; $jumlahfilename = $data['jumlahfilename']; $dataSet3->addPoint(new Point("{$filename}", $jumlahfilename)); } $chart3->setDataSet($dataSet3); $chart3->setTitle("Most visited pages"); $chart3->render("mostvisited.png"); $gethari1 = gethari("1"); $gethari2 = gethari("2"); $gethari3 = gethari("3"); $gethari4 = gethari("4"); $gethari5 = gethari("5"); $gethari6 = gethari("6"); $gethari0 = gethari("0"); $chart4 = new PieChart(400); $dataSet4 = new XYDataSet(); $dataSet4->addPoint(new Point("Senin ({$gethari1})", $gethari1)); $dataSet4->addPoint(new Point("Selasa ({$gethari2})", $gethari2)); $dataSet4->addPoint(new Point("Rabu ({$gethari3})", $gethari3)); $dataSet4->addPoint(new Point("Kamis ({$gethari4})", $gethari4)); $dataSet4->addPoint(new Point("Jumat ({$gethari5})", $gethari5)); $dataSet4->addPoint(new Point("Sabtu ({$gethari6})", $gethari6)); $dataSet4->addPoint(new Point("Minggu ({$gethari0})", $gethari0)); $chart4->setDataSet($dataSet4); $chart4->setTitle("Berdasarkan Hari"); $chart4->render("hari.png"); /********************************************************/ $chart5 = new VerticalBarChart(900, 300); $serie1 = new XYDataSet();