forked from mas-elkhanza/SIMRS-Khanza
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcoba.php
executable file
·68 lines (57 loc) · 1.75 KB
/
coba.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
<html lang="en">
<head>
</head>
<body>
<div id="smallRight"><h3 style="background-color:#A6D44D">Jadwal Dokter</h3>
<table style="border: none;font-size: 12px;color: #5b5b5b;width: 100%;margin: 10px 0 10px 0;">
<tr>
<td colspan="5">
<form method="post" action="">
<select name="kd_poli">
<option value="" disabled="disabled">--informasi--</option>
<?php
require_once('conf/conf.php');
$a="SELECT * FROM poliklinik";
$sql=mysql_query($a);
while($data=mysqli_fetch_array($sql)){
?>
<option value="<?php echo $data['kd_poli']?>"><?php echo $data['nm_poli']?></option>
<?php
}
?>
</select>
<input type="submit" value="cari"/>
</form>
</td>
</tr>
</table>
<table style="border: none;font-size: 12px;color: #5b5b5b;width: 100%;margin: 10px 0 10px 0;">
<tr>
<td style="border: none;padding: 4px;"><b>Hari</b></td>
<td style="border: none;padding: 4px;"><b>Jam</b></td>
<td style="border: none;padding: 4px;"><b>Dokter</b></td>
<td style="border: none;padding: 4px;"><b>Keterangan</b></td>
</tr>
<?php
if(isset($_POST['kd_poli'])){
$sql = "select * from reg_periksa WHERE kd_poli = ".$_POST['kd_poli'];
$q = mysql_query($sql);
while($data = mysqli_fetch_array($q)){
?>
<tr>
<td style="border: none;padding: 4px;"><?php echo $data['no_reg'];?></td>
<td style="border: none;padding: 4px;"><?php echo $data['kd_poli'];?></td>
<td style="border: none;padding: 4px;"><?php echo $data['nm_poli'];?></td>
<td style="border: none;padding: 4px;"><?php echo $data['no_rkm_medis'];?></td>
</tr>
<?php
}
}
?>
</table>
</div>
<script src="asset/js/jquery.js"></script>
<!-- Bootstrap Core JavaScript -->
<script src="asset/js/bootstrap.min.js"></script>
</body>
</html>