-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdatajadwal.php
157 lines (151 loc) · 3.8 KB
/
datajadwal.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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
<html>
<head>
<title>Data Jadwal</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/admin.png" width="150" height="150" /></td>
<td><h1>Admin Page</h1></td>
</tr>
</table>
</div>
<div id="cpanel">
<form action="tambahjadwal.php" method="POST">
<table border="0" cellspacing="40">
<tr>
<td colspan="3"><h1>Data Jadwal</h1></td>
</tr>
<tr>
<td>
<a href="tampiljadwal.php" title="Tampilkan Data Mhs"><img src="Images/open.png" /></a>
</td>
<td>
<a href="paneladmin.php" title="Kembali"><img src="Images/back.png" /></a>
</td>
</tr>
<tr>
<td>Nama MK</td>
<td>:</td>
<td>
<select name="kodemk">
<option value="000" selected>[Pilih Nama MK]</option>
<?php
include "koneksi.php";
$tampil = "SELECT * FROM data_matkul";
$querytampil = mysql_query($tampil);
while($hasil = mysql_fetch_array($querytampil)) {
$kodemk = $hasil['kodemk'];
$namamk = $hasil['namamk'];
?>
<option value="<?php echo $kodemk; ?>"><?php echo $kodemk. " " .$namamk; ?></option>
<?php
}
?>
</select>
</td>
</tr>
<tr>
<td>Kelompok</td>
<td>:</td>
<td><input type="text" name="kelompok" size="25" /></td>
</tr>
<tr>
<td>Kuota</td>
<td>:</td>
<td><input type="text" name="kuota" size="15" /></td>
</tr>
<tr>
<td colspan="3"><h2>Jadwal 1</h2></td>
</tr>
<tr>
<td>Hari</td>
<td>:</td>
<td><input type="text" name="hari" size="25" /></td>
</tr>
<tr>
<td>Jam Mulai</td>
<td>:</td>
<td><input type="text" name="jamm" size="25" /> *Contoh Format Penulisan Jam: 07.00, 10.20</td>
</tr>
<tr>
<td>Jam Selesai</td>
<td>:</td>
<td><input type="text" name="jams" size="25" /></td>
</tr>
<tr>
<td>Ruang</td>
<td>:</td>
<td>
<select name="ruang">
<option value="000" selected>[Pilih Kode Ruang]</option>
<?php
include "koneksi.php";
$tampil = "SELECT * FROM data_ruang";
$querytampil = mysql_query($tampil);
while($hasil = mysql_fetch_array($querytampil)) {
$koderuang = $hasil['koderuang'];
?>
<option value="<?php echo $koderuang; ?>"><?php echo $koderuang; ?></option>
<?php
}
?>
</select>
</td>
</tr>
<tr>
<tr>
<td colspan="3"><h2>Jadwal 2</h2></td>
</tr>
<tr>
<td>Hari</td>
<td>:</td>
<td><input type="text" name="hari2" size="25" value="-" /></td>
</tr>
<tr>
<td>Jam Mulai</td>
<td>:</td>
<td><input type="text" name="jamm2" size="25" value="-" /></td>
</tr>
<tr>
<td>Jam Selesai</td>
<td>:</td>
<td><input type="text" name="jams2" size="25" value="-" /></td>
</tr>
<tr>
<td>Ruang</td>
<td>:</td>
<td>
<select name="ruang2">
<option value="-" selected>[Pilih Kode Ruang]</option>
<?php
include "koneksi.php";
$tampil = "SELECT * FROM data_ruang";
$querytampil = mysql_query($tampil);
while($hasil = mysql_fetch_array($querytampil)) {
$koderuang = $hasil['koderuang'];
?>
<option value="<?php echo $koderuang; ?>"><?php echo $koderuang; ?></option>
<?php
}
?>
</select>
</td>
</tr>
<td colspan="3">
<input type="submit" name="submit" value="Submit" />
<input type="reset" name="reset" value="Reset" />
</td>
</tr>
</table>
</form>
</div>
</div>
<div id="footer">Copyright © 2013 ERA</div>
</body>
</html>