-
Notifications
You must be signed in to change notification settings - Fork 0
/
queue-check.php
49 lines (48 loc) · 2.29 KB
/
queue-check.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
<?php include "views/header.php"; ?>
<div class="content mt-3">
<div class="animated fadeIn">
<div class="row">
<div class="col-lg-12">
<?php
$id_dokter = $_POST['id_dokter'];
$booking_tanggal = $_POST['booking_tanggal'];
$id_sesi = $_POST['id_sesi'];
include 'controller/connection.php';
$a = mysqli_query($koneksi,
"SELECT COUNT(booking.id_booking) AS total, dokter.nama_dokter, sesi.nama_sesi
FROM booking, dokter, sesi
WHERE booking.id_dokter = dokter.id_dokter
AND booking.id_sesi = sesi.id_sesi
AND booking.booking_tanggal = '$booking_tanggal'
AND booking.id_sesi = '$id_sesi'
AND booking.id_dokter='$id_dokter';");
while($b = mysqli_fetch_array($a)){
?>
<div class="card"><br>
<div align="center">
<h3>Poliklinik <?php echo $b['nama_sesi'];?></h3><br>
<p><b>Tanggal <?php echo format_indo($booking_tanggal);?></b></p>
<h5 class="bluetext"><?php echo $b['nama_dokter'];?></h5><br>
<h1><?php echo $b['total'];?> Pasien</h1><br>
<p>**Jumlah pasien terdaftar bersifat sementara dapat berubah setiap saat kecuali telah memenuhi kuota masing-masing dokter, booking jadwal poli dapat Anda lakukan maksimal H-30</p>
</div><br>
</div><br><?php } ?>
</div>
</div>
</div>
</div>
<nav class="nav-bottom">
<a href="help" class="nav-bottom__link">
<i class="material-icons nav-bottom__icon">help_outline</i>
<span class="nav-bottom__text">Help</span>
</a>
<a href="https://pendaftaran.rskiarachmi.co.id/" class="nav-bottom__link nav-bottom__link--active">
<i class="material-icons nav__icon">dashboard</i>
<span class="nav-bottom__text">Home</span>
</a>
<a href="registration" class="nav-bottom__link">
<i class="material-icons nav-bottom__icon">arrow_back</i>
<span class="nav-bottom__text">Back</span>
</a>
</nav>
<?php include "views/footer.php"; ?>