ON counter_status.status_code = antrian_pasien.status_code
...
...
@@ -1779,9 +1882,9 @@ class Mysql extends \Khansia\Db\Storage implements Skeleton {
ON dokter_to_poli.id_dokter = antrian_pasien.id_dokter
INNER JOIN ruang
ON ruang.id_ruang = antrian_pasien.id_ruang
";
WHERE antrian_pasien.create_date > CURRENT_TIMESTAMP - INTERVAL '24 HOUR'";
if($id){
$sql.="WHERE antrian_pasien.id_pasien IS NOT NULL AND dokter_to_poli.id_dokter = $id AND antrian_pasien.status_code=10 or dokter_to_poli.id_dokter = $id and antrian_pasien.status_code=30 or dokter_to_poli.id_dokter = $id and antrian_pasien.status_code=40 ORDER BY no_antrian ASC";
$sql.=" AND antrian_pasien.id_pasien IS NOT NULL AND dokter_to_poli.id_dokter = $id AND antrian_pasien.status_code=10 or dokter_to_poli.id_dokter = $id and antrian_pasien.status_code=30 or dokter_to_poli.id_dokter = $id and antrian_pasien.status_code=40 ORDER BY no_antrian ASC";
<h6class="panel-title"><iclass="icon-cog3 position-left"></i> Nomor Antrian</h6>
</div>
<divclass="text-center content-group">
<div><inputtype="hidden"value="nomer antrian"id="text-to-speech"placeholder="Enter text to speak..."/></div>
<h1class="error-title"style=" font-weight: bold;font-size:250px;font-family: Times New Roman, Times, serif;color: #808080"><spanid="no_antrian"></span></h1>
<h1class="error-title"style="padding-top: 48px; padding-bottom:47px; font-weight: bold;font-size:170px;font-family: Times New Roman, Times, serif;color: #808080"><spanid="no_antrian"></span></h1>
<h6class="panel-title"><iclass="icon-cog3 position-left"></i> Nomor Antrian</h6>
...
...
@@ -87,7 +87,7 @@
<divclass="card-header">
<h1class="panel-title "style="font-family: Times New Roman, Times, serif;text-align:center">Daftar Antrian Hari ini<aclass="heading-elements-toggle"></a></h1>
}elseif($antrian[i]['status_code']==10||$antrian[i]['status_code']==20||$antrian[i]['status_code']==30||$antrian[i]['status_code']==40){//jika antrian sudah terisi
}elseif($antrian[i]['status_code']==10||$antrian[i]['status_code']==20||$antrian[i]['status_code']==30||$antrian[i]['status_code']==40){//jika antrian sudah terisi