error_reporting(0); session_start(); include ("koneksi.php"); $id_semester = set_semester(); $id_tahun = set_tahun(); function set_tahun(){ $select = mysql_query("SELECT id_periode_tahun FROM periode_tahun WHERE id_aktif = 1"); $r = mysql_fetch_assoc($select); $id= $r['id_periode_tahun']; return $id; } function set_semester(){ $select = mysql_query("SELECT id_semester FROM semester WHERE id_aktif = 1"); $r = mysql_fetch_assoc($select); $id= $r['id_semester']; return $id; } ?>
$hk=1; $query_kolom=mysql_query("select * from ruang"); while($kolom=mysql_fetch_array($query_kolom)){?> | echo " |
}?>
echo " ".$baris['deskripsi_jam_kuliah'];?> |
$query_kolom=mysql_query("select * from ruang"); while($kolom=mysql_fetch_array($query_kolom))
{
$tmpcol= $kolom['nama_ruang'];
$tmp=$baris['nama_jam_kuliah'];
//$querywar=mysql_query("select c.id_kuliah_rutin, a.kode_mata_kuliah, a.singkatan_mata_kuliah, c.sks_dipakai, b.nama_ruang, d.inisial_dosen, f.nama_kelas_pararel from mata_kuliah a, ruang b, dosen d, kuliah_rutin c, jam_kuliah e, kelas_pararel f where a.id_mata_kuliah=c.id_mata_kuliah and b.id_ruang=c.id_ruang and c.id_jam_kuliah=e.id_jam_kuliah and c.id_dosen=d.id_dosen and c.id_kelas_pararel=f.id_kelas_pararel and e.nama_jam_kuliah = '$tmp' AND b.nama_ruang='$tmpcol' AND c.id_hari_kuliah=$hk");
//$kodeWarna=mysql_fetch_array($querywar);
//$tmpKode= $kodeWarna['kode_mata_kuliah'];
//$tmp=$baris['nama_jam_kuliah'];
//echo $tmpKode;
?>
";
$query=mysql_query("select c.id_kuliah_rutin, a.kode_mata_kuliah, a.singkatan_mata_kuliah, c.sks_dipakai, b.nama_ruang, d.inisial_dosen, f.nama_kelas_pararel from mata_kuliah a, ruang b, dosen d, kuliah_rutin c, jam_kuliah e, kelas_pararel f, periode_tahun g, semester h where g.id_aktif=1 and c.id_periode_tahun=g.id_periode_tahun and h.id_aktif=1 and h.id_semester=c.id_semester and a.id_mata_kuliah=c.id_mata_kuliah and b.id_ruang=c.id_ruang and c.id_jam_kuliah=e.id_jam_kuliah and c.id_dosen=d.id_dosen and c.id_kelas_pararel=f.id_kelas_pararel and e.nama_jam_kuliah = '$tmp' AND b.nama_ruang='$tmpcol' AND c.id_hari_kuliah=$hk");
while($row=mysql_fetch_assoc($query)){
//echo $tmp;
echo "".$row['kode_mata_kuliah']."(".$row['nama_kelas_pararel'].") ".$row['singkatan_mata_kuliah']."(".$row['sks_dipakai'].") ".$row['inisial_dosen']; //echo $warna; $idkr=$row['id_kuliah_rutin']; $query2=mysql_query("select b.inisial_dosen as ini from mata_kuliah a, dosen b, kuliah_rutin c where c.id_kuliah_rutin='$idkr' and c.id_dosen2=b.id_dosen and c.id_dosen2!=0 group by id_kuliah_rutin"); while($row2=mysql_fetch_assoc($query2)){ echo "/".$row2['ini']; } }?> }?> |
$hk=2; //hari selasa $query_kolom=mysql_query("select * from ruang"); while($kolom=mysql_fetch_array($query_kolom)){?> | echo " |
}?>
echo " ".$baris['deskripsi_jam_kuliah'];?> |
$query_kolom=mysql_query("select * from ruang"); while($kolom=mysql_fetch_array($query_kolom))
{
$tmpcol= $kolom['nama_ruang'];
$tmp=$baris['nama_jam_kuliah'];
?>
";
$query=mysql_query("select c.id_kuliah_rutin, a.kode_mata_kuliah, a.singkatan_mata_kuliah, c.sks_dipakai, b.nama_ruang, d.inisial_dosen, f.nama_kelas_pararel, c.keterangan_kuliah_rutin from mata_kuliah a, ruang b, dosen d, kuliah_rutin c, jam_kuliah e, kelas_pararel f, periode_tahun g, semester h where g.id_aktif=1 and c.id_periode_tahun=g.id_periode_tahun and h.id_aktif=1 and h.id_semester=c.id_semester and a.id_mata_kuliah=c.id_mata_kuliah and b.id_ruang=c.id_ruang and c.id_jam_kuliah=e.id_jam_kuliah and c.id_dosen=d.id_dosen and c.id_kelas_pararel=f.id_kelas_pararel and e.nama_jam_kuliah = '$tmp' AND b.nama_ruang='$tmpcol' AND c.id_hari_kuliah=$hk");
while($row=mysql_fetch_assoc($query)){
//echo $tmp;
echo "".$row['keterangan_kuliah_rutin']."".$row['kode_mata_kuliah']."(".$row['nama_kelas_pararel'].") ".$row['singkatan_mata_kuliah']."(".$row['sks_dipakai'].") ".$row['inisial_dosen']; //echo $warna; $idkr=$row['id_kuliah_rutin']; $query2=mysql_query("select b.inisial_dosen as ini from mata_kuliah a, dosen b, kuliah_rutin c where c.id_kuliah_rutin='$idkr' and c.id_dosen2=b.id_dosen and c.id_dosen2!=0 group by id_kuliah_rutin"); while($row2=mysql_fetch_assoc($query2)){ echo "/".$row2['ini']; } }?> }?> |
$hk=3; //hari rabu $query_kolom=mysql_query("select * from ruang"); while($kolom=mysql_fetch_array($query_kolom)){?> | echo " |
}?>
echo " ".$baris['deskripsi_jam_kuliah'];?> |
$query_kolom=mysql_query("select * from ruang"); while($kolom=mysql_fetch_array($query_kolom))
{
$tmpcol= $kolom['nama_ruang'];
$tmp=$baris['nama_jam_kuliah'];
?>
";
$query=mysql_query("select c.id_kuliah_rutin, a.kode_mata_kuliah, a.singkatan_mata_kuliah, c.sks_dipakai, b.nama_ruang, d.inisial_dosen, f.nama_kelas_pararel, c.keterangan_kuliah_rutin from mata_kuliah a, ruang b, dosen d, kuliah_rutin c, jam_kuliah e, kelas_pararel f, periode_tahun g, semester h where g.id_aktif=1 and c.id_periode_tahun=g.id_periode_tahun and h.id_aktif=1 and h.id_semester=c.id_semester and a.id_mata_kuliah=c.id_mata_kuliah and b.id_ruang=c.id_ruang and c.id_jam_kuliah=e.id_jam_kuliah and c.id_dosen=d.id_dosen and c.id_kelas_pararel=f.id_kelas_pararel and e.nama_jam_kuliah = '$tmp' AND b.nama_ruang='$tmpcol' AND c.id_hari_kuliah=$hk");
while($row=mysql_fetch_assoc($query)){
//echo $tmp;
echo "".$row['keterangan_kuliah_rutin']."".$row['kode_mata_kuliah']."(".$row['nama_kelas_pararel'].") ".$row['singkatan_mata_kuliah']."(".$row['sks_dipakai'].") ".$row['inisial_dosen']; //echo $warna; $idkr=$row['id_kuliah_rutin']; $query2=mysql_query("select b.inisial_dosen as ini from mata_kuliah a, dosen b, kuliah_rutin c where c.id_kuliah_rutin='$idkr' and c.id_dosen2=b.id_dosen and c.id_dosen2!=0 group by id_kuliah_rutin"); while($row2=mysql_fetch_assoc($query2)){ echo "/".$row2['ini']; } }?> }?> |
$hk=4; //hari kamis $query_kolom=mysql_query("select * from ruang"); while($kolom=mysql_fetch_array($query_kolom)){?> | echo " |
}?>
echo " ".$baris['deskripsi_jam_kuliah'];?> |
$query_kolom=mysql_query("select * from ruang"); while($kolom=mysql_fetch_array($query_kolom))
{
$tmpcol= $kolom['nama_ruang'];
$tmp=$baris['nama_jam_kuliah'];
?>
";
$query=mysql_query("select c.id_kuliah_rutin, a.kode_mata_kuliah, a.singkatan_mata_kuliah, c.sks_dipakai, b.nama_ruang, d.inisial_dosen, f.nama_kelas_pararel, c.keterangan_kuliah_rutin from mata_kuliah a, ruang b, dosen d, kuliah_rutin c, jam_kuliah e, kelas_pararel f, periode_tahun g, semester h where g.id_aktif=1 and c.id_periode_tahun=g.id_periode_tahun and h.id_aktif=1 and h.id_semester=c.id_semester and a.id_mata_kuliah=c.id_mata_kuliah and b.id_ruang=c.id_ruang and c.id_jam_kuliah=e.id_jam_kuliah and c.id_dosen=d.id_dosen and c.id_kelas_pararel=f.id_kelas_pararel and e.nama_jam_kuliah = '$tmp' AND b.nama_ruang='$tmpcol' AND c.id_hari_kuliah=$hk");
while($row=mysql_fetch_assoc($query)){
//echo $tmp;
echo "".$row['keterangan_kuliah_rutin']."".$row['kode_mata_kuliah']."(".$row['nama_kelas_pararel'].") ".$row['singkatan_mata_kuliah']."(".$row['sks_dipakai'].") ".$row['inisial_dosen']; //echo $warna; $idkr=$row['id_kuliah_rutin']; $query2=mysql_query("select b.inisial_dosen as ini from mata_kuliah a, dosen b, kuliah_rutin c where c.id_kuliah_rutin='$idkr' and c.id_dosen2=b.id_dosen and c.id_dosen2!=0 group by id_kuliah_rutin"); while($row2=mysql_fetch_assoc($query2)){ echo "/".$row2['ini']; } }?> }?> |
$hk=5; //hari jumat $query_kolom=mysql_query("select * from ruang"); while($kolom=mysql_fetch_array($query_kolom)){?> | echo " |
}?>
echo " ".$baris['deskripsi_jam_kuliah'];?> |
$query_kolom=mysql_query("select * from ruang"); while($kolom=mysql_fetch_array($query_kolom))
{
$tmpcol= $kolom['nama_ruang'];
$tmp=$baris['nama_jam_kuliah'];
?>
";
$query=mysql_query("select c.id_kuliah_rutin, a.kode_mata_kuliah, a.singkatan_mata_kuliah, c.sks_dipakai, b.nama_ruang, d.inisial_dosen, f.nama_kelas_pararel, c.keterangan_kuliah_rutin from mata_kuliah a, ruang b, dosen d, kuliah_rutin c, jam_kuliah e, kelas_pararel f, periode_tahun g, semester h where g.id_aktif=1 and c.id_periode_tahun=g.id_periode_tahun and h.id_aktif=1 and h.id_semester=c.id_semester and a.id_mata_kuliah=c.id_mata_kuliah and b.id_ruang=c.id_ruang and c.id_jam_kuliah=e.id_jam_kuliah and c.id_dosen=d.id_dosen and c.id_kelas_pararel=f.id_kelas_pararel and e.nama_jam_kuliah = '$tmp' AND b.nama_ruang='$tmpcol' AND c.id_hari_kuliah=$hk");
while($row=mysql_fetch_assoc($query)){
//echo $tmp;
echo "".$row['keterangan_kuliah_rutin']."".$row['kode_mata_kuliah']."(".$row['nama_kelas_pararel'].") ".$row['singkatan_mata_kuliah']."(".$row['sks_dipakai'].") ".$row['inisial_dosen']; //echo $warna; $idkr=$row['id_kuliah_rutin']; $query2=mysql_query("select b.inisial_dosen as ini from mata_kuliah a, dosen b, kuliah_rutin c where c.id_kuliah_rutin='$idkr' and c.id_dosen2=b.id_dosen and c.id_dosen2!=0 group by id_kuliah_rutin"); while($row2=mysql_fetch_assoc($query2)){ echo "/".$row2['ini']; } }?> }?> |