-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathjadwalmengajar.php
87 lines (86 loc) · 2.51 KB
/
jadwalmengajar.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
<html>
<head>
<title>Jadwal Mengajar</title>
<link rel="stylesheet" type="text/css" href="CSS/layout.css"/>
<link rel="stylesheet" type="text/css" href="CSS/font.css"/>
<link rel="stylesheet" type="text/css" href="CSS/element.css"/>
</head>
<body>
<div id="container">
<div id="header">
<table border="0" cellspacing="10">
<tr>
<td><img src="Images/teacher.png" width="150" height="150" /></td>
<td><h1>Lecturer Page</h1></td>
</tr>
</table>
</div>
<div id="cpanel">
<form action="" >
<table border="0" cellspacing="40">
<tr>
<td colspan="9"><h1>Jadwal Mengajar</h1></td>
</tr>
<tr>
<td><a href="downloadpdfdosen.php" title="Download" ><img src="Images/cetakpdf.png" />Download</a></td>
<td><a href="paneldosen.php" title="Kembali"><img src="Images/back.png" /></a></td>
</tr>
</table>
<table border="0" cellspacing="35">
<tr>
<td><b>No</b></td>
<td><b>Kode MK</b></td>
<td><b>Nama MK</b></td>
<td><b>SKS</b></td>
<td><b>Kelompok</b></td>
<td><b>Jadwal 1</b></td>
<td><b>Ruang</b></td>
<td><b>Jadwal 2</b></td>
<td><b>Ruang</b></td>
</tr>
<?php
session_start();
include "koneksi.php";
$dosen = $_SESSION['user'];
$i = 1;
$tampil = "SELECT j.kodemk, m.namamk, m.sks, j.kelompok, j.hari, j.jammulai, j.jamselesai, j.koderuang, j.hari2, j.jammulai2, j.jamselesai2, j.koderuang2
FROM data_jadwaldosen AS jd
INNER JOIN data_jadwal AS j ON jd.id_jadwal=j.id_jadwal
INNER JOIN data_matkul AS m ON j.kodemk=m.kodemk
WHERE jd.nip='$dosen';";
$querytampil = mysql_query($tampil);
while($hasil = mysql_fetch_array($querytampil)) {
$kode = $hasil['kodemk'];
$nama = $hasil['namamk'];
$sks = $hasil['sks'];
$kel = $hasil['kelompok'];
$hari = $hasil['hari'];
$jamm = $hasil['jammulai'];
$jams = $hasil['jamselesai'];
$ruang = $hasil['koderuang'];
$hari2 = $hasil['hari2'];
$jamm2 = $hasil['jammulai2'];
$jams2 = $hasil['jamselesai2'];
$ruang2 = $hasil['koderuang2'];
?>
<tr>
<td><?php echo $i; ?></td>
<td><?php echo $kode; ?></td>
<td><?php echo $nama; ?></td>
<td><?php echo $sks; ?></td>
<td><?php echo $kel; ?></td>
<td><?php echo $hari. ", " .$jamm. " - " .$jams; ?></td>
<td><?php echo $ruang; ?></td>
<td><?php echo $hari2. ", " .$jamm2. " - " .$jams2; ?></td>
<td><?php echo $ruang2; ?></td>
</tr>
<?php
$i++;
}
?>
</table>
</form>
</div>
</div>
</body>
</html>