105 lines
5.5 KiB
PHP
105 lines
5.5 KiB
PHP
<body class="hold-transition skin-blue sidebar-mini">
|
|
<section class="content-header">
|
|
<!--h1 style="text-align: center;"><b>List Antrian Pendaftaran Yang Dipanggil - <code>Silahkan Menuju Ke Petugas Barcode </code></b></h1-->
|
|
<h1 style="text-align: center;"><b>LOKET 1 SETELAH AMBIL NOMOR ANTRIAN SILAHKAN MENUJU PENDAFTARAN DI LOKET LANTAI 2</b></h1>
|
|
<ol class="breadcrumb">
|
|
<li><a href="<?php echo base_url()?>index.php/"><i class="fa fa-backward"></i> Kembali</a></li>
|
|
</ol>
|
|
</section>
|
|
<!-- Main content -->
|
|
<section class="content">
|
|
<div class="row">
|
|
<table class="table table-striped">
|
|
|
|
<?php
|
|
$setklinik=""; $tabsatu=""; $tabdua="";
|
|
$no=0; $sethr=0;
|
|
foreach ($ml as $dat_ml){
|
|
$no++;
|
|
switch($no){
|
|
case '1':$color = "green";break;
|
|
case '2':$color = "red";break;
|
|
case '3':$color = "yellow";break;
|
|
case '4':$color = "blue";break;
|
|
case '5':$color = "navy";break;
|
|
case '6':$color = "teal";break;
|
|
case '7':$color = "purple";break;
|
|
case '8':$color = "orange";break;
|
|
case '9':$color = "maroon";break;
|
|
case '10':$color = "gray";break;
|
|
case '11':$color = "black";break;
|
|
case '12':$color = "info";break;
|
|
case '13':$color = "red";break;
|
|
case '14':$color = "yellow";break;
|
|
default: $color = "green";break;
|
|
}
|
|
|
|
$datapp="";
|
|
$pecahpelayanan = explode(",",$dat_ml->ml_pelayanan);
|
|
$jumlayanan = count($pecahpelayanan);
|
|
|
|
$numrow=0;
|
|
$baris=0;
|
|
$isi=1;
|
|
|
|
foreach ($ip as $dat_pp){
|
|
for ($x = 0; $x < $jumlayanan; $x++){
|
|
if($pecahpelayanan[$x]==$dat_pp->pp_klinik_id){
|
|
if($dat_pp->pp_pembayaran==$dat_ml->ml_pembayaran){
|
|
$numrow++;$baris++;
|
|
if($isi<=18){
|
|
if($baris==3){
|
|
$baris=0;
|
|
$datapp=$datapp."<td style='text-align: center;' class='bg-$color'><div class='small-box'><h3>".$dat_pp->pp_nomor_antrian."</h3></div></td></tr>";
|
|
$isi++;
|
|
}
|
|
elseif($baris==2){
|
|
$datapp=$datapp."<td style='text-align: center;' class='bg-$color'><div class='small-box'><h3>".$dat_pp->pp_nomor_antrian."</h3></div></td>";
|
|
$isi++;
|
|
}else{
|
|
$datapp=$datapp."<tr><td style='text-align: center;' class='bg-$color'><div class='small-box'><h3>".$dat_pp->pp_nomor_antrian."</h3></div></td>";
|
|
$isi++;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if($numrow!=0 ){$sethr++;
|
|
if($sethr<=7){
|
|
if($sethr<=4){
|
|
$tabsatu = $tabsatu."<td><table class='table table-striped'><tr><td colspan='3' style='text-align: center;' class='bg-$color'><div class='small-box'><h3>$dat_ml->ml_nama</h3></div></td></tr>$datapp</table></td>";
|
|
}else{
|
|
$tabdua = $tabdua."<td><table class='table table-striped'><tr><td colspan='3' style='text-align: center;' class='bg-$color'><div class='small-box'><h3>$dat_ml->ml_nama</h3></div></td></tr>$datapp</table></td>";
|
|
}
|
|
//$tabsatu = $tabsatu."<td><table class='table table-striped'><tr><td colspan='3' style='text-align: center;' class='bg-$color'><div class='small-box'><h3>$dat_ml->ml_nama</h3></div></td></tr>$datapp</table></td>";
|
|
}else{
|
|
//$tabdua = $tabdua."<td><table class='table table-striped'><tr><td colspan='3' style='text-align: center;' class='bg-$color'><div class='small-box'><h3>$dat_ml->ml_nama</h3></div></td></tr>$datapp</table></td>";
|
|
}
|
|
|
|
}
|
|
}
|
|
?>
|
|
<tr>
|
|
<td><?php echo $tabsatu;?></td>
|
|
</tr>
|
|
<tr>
|
|
<td><?php echo $tabdua;?></td>
|
|
</tr>
|
|
</table>
|
|
<marquee bgcolor="black">
|
|
<h1 style="color: white;"><b>NOMOR ANTRIAN YANG TERTERA PADA LAYAR HARAP MENUJU KE PETUGAS BARCODE YANG ADA DI PINTU MASUK LOBBY</b></h1>
|
|
</marquee>
|
|
</div>
|
|
</section>
|
|
<div class="control-sidebar-bg"></div>
|
|
</body>
|
|
|
|
<script>
|
|
var url="<?php echo base_url();?>";
|
|
|
|
setTimeout(function(){
|
|
window.location.reload(1);
|
|
|
|
}, 53000);
|
|
</script>
|