ON counter_status.status_code = antrian_pasien.status_code
ON counter_status.status_code = antrian_pasien.status_code
INNER JOIN dokter_to_poli
INNER JOIN dokter_to_poli
ON dokter_to_poli.id_dokter = antrian_pasien.id_dokter
ON dokter_to_poli.id_dokter = antrian_pasien.id_dokter
INNER JOIN ruang
ON ruang.id_ruang = antrian_pasien.id_ruang
";
";
if($id){
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.="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";
<h6class="panel-title"><iclass="icon-cog3 position-left"></i> Nomor Antrian</h6>
<h6class="panel-title"><iclass="icon-cog3 position-left"></i> Nomor Antrian</h6>
</div>
</div>
<divclass="text-center content-group">
<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=" font-weight: bold;font-size:250px;font-family: Times New Roman, Times, serif;color: #808080"><spanid="no_antrian"></span></h1>