-
Notifications
You must be signed in to change notification settings - Fork 0
/
laporan_pilihan.php
38 lines (35 loc) · 1.46 KB
/
laporan_pilihan.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
<html>
<link rel="stylesheet" href="borang.css">
<link rel="stylesheet" href="button.css">
<body>
<h3 class = "pendek">PILIHAN JENIS LAPORAN</h3>
<form class = "pendek" action="laporan_cetak.php" method="post">
<select id='pilihan' name='pilihan' onchange='papar_pilihan()'>
<option value=1>Semua Kelas dan Peratus</option>
<option value=2>Mengikut Kelas</option>
<option value=3>Mengikut Peratus</option>
<option value=4>Mengikut Kelas dan Peratus</option>
</select> <br>
<div id="kelas">
<select name="idkelas">
<?php
include('sambungan.php');
$sql = "select * from kelas";
$data = mysqli_query($sambungan, $sql);
while ($kelas = mysqli_fetch_array($data)) {
echo "<option value='$kelas[idkelas]'>$kelas[namakelas]</option>";
}
?>
</select>
</div>
<div id="peratus">
<select name="peratus">
<option value=80>Lebih 80</option>
<option value=50>Lebih 50</option>
<option value=0>Kurang 50</option>
</select>
</div>
<button class="papar" type="submit">Papar</button>
</form>
</body>
</html>