first commit
This commit is contained in:
@@ -0,0 +1,208 @@
|
||||
<body onload="panggil()" class="hold-transition skin-blue sidebar-mini">
|
||||
<section class="content-header">
|
||||
<h2 style="text-align: center;"><b></b></h2>
|
||||
<ol class="breadcrumb">
|
||||
<li><!--a href="<?php echo base_url()?>index.php/"><i class="fa fa-backward"></i> Kembali</a--></li>
|
||||
</ol>
|
||||
</section>
|
||||
<?php
|
||||
$noantr = "TUNGGU";
|
||||
|
||||
$setnext= 1;
|
||||
|
||||
$info1="KOSONG";
|
||||
$info2="KOSONG";
|
||||
$info3="KOSONG";
|
||||
$info4="KOSONG";
|
||||
$info5="KOSONG";
|
||||
$info6="KOSONG";
|
||||
$info7="KOSONG";
|
||||
$info8="KOSONG";
|
||||
$info9="KOSONG";
|
||||
$info10="KOSONG";
|
||||
//
|
||||
foreach ($dp as $pengunjung) {
|
||||
if($setnext<=10){
|
||||
if($setnext==1){$info1=$pengunjung->ppr_nomor_antrian;}
|
||||
elseif($setnext==2){$info2=$pengunjung->ppr_nomor_antrian;}
|
||||
elseif($setnext==3){$info3=$pengunjung->ppr_nomor_antrian;}
|
||||
elseif($setnext==4){$info4=$pengunjung->ppr_nomor_antrian;}
|
||||
elseif($setnext==5){$info5=$pengunjung->ppr_nomor_antrian;}
|
||||
elseif($setnext==6){$info6=$pengunjung->ppr_nomor_antrian;}
|
||||
elseif($setnext==7){$info7=$pengunjung->ppr_nomor_antrian;}
|
||||
elseif($setnext==8){$info8=$pengunjung->ppr_nomor_antrian;}
|
||||
elseif($setnext==9){$info9=$pengunjung->ppr_nomor_antrian;}
|
||||
elseif($setnext==10){$info10=$pengunjung->ppr_nomor_antrian;}
|
||||
$setnext++;
|
||||
}
|
||||
}
|
||||
|
||||
$noan = "TUNGGU";
|
||||
$id = "";
|
||||
|
||||
$pang = 1;
|
||||
$infopang1="KOSONG";
|
||||
foreach ($dps as $setpang){
|
||||
if($pang<=1){
|
||||
if($pang==1){
|
||||
$infopang1=$setpang->ppr_nomor_antrian;
|
||||
if($setpang->ppr_callstatus=="1"){
|
||||
$noan = $setpang->ppr_nomor_antrian;
|
||||
$id = $setpang->ppr_id;
|
||||
}
|
||||
}
|
||||
$pang++;
|
||||
}
|
||||
}
|
||||
?>
|
||||
<!-- Main content -->
|
||||
<input type="hidden" id="noantrian" value="<?php echo $noan;?>" />
|
||||
<input type="hidden" id="idantrian" value="<?php echo $id;?>" />
|
||||
|
||||
|
||||
<section class="content">
|
||||
<div class="row">
|
||||
<div class="form-group">
|
||||
<div class="col-sm-12">
|
||||
<div class="col-lg-2"></div>
|
||||
<div class="col-lg-8">
|
||||
<div class="small-box bg-purple">
|
||||
<div class="inner text-center">
|
||||
<h3>Loket Rawat Inap</h3>
|
||||
</div>
|
||||
</div>
|
||||
<div class="small-box bg-green">
|
||||
<div class="inner text-center">
|
||||
<h3 style="font-size: 200px" ><?php echo $infopang1;?></h3>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-lg-2"></div>
|
||||
</div>
|
||||
|
||||
<div class="col-sm-12">
|
||||
<div class="col-lg-12">
|
||||
<div class="small-box bg-blue">
|
||||
<div class="inner text-center">
|
||||
<h3>Antrian Rawat Inap Selanjutnya</h3>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-12">
|
||||
<div class="col-lg-4 col-xs-6">
|
||||
<div class="small-box bg-yellow">
|
||||
<div class="inner text-center">
|
||||
<h3 style="font-size: 50px"><?php echo $info1;?></h3>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-lg-4 col-xs-6">
|
||||
<div class="small-box bg-yellow">
|
||||
<div class="inner text-center">
|
||||
<h3 style="font-size: 50px"><?php echo $info2;?></h3>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-lg-4 col-xs-6">
|
||||
<div class="small-box bg-yellow">
|
||||
<div class="inner text-center">
|
||||
<h3 style="font-size: 50px"><?php echo $info3;?></h3>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-12">
|
||||
<div class="col-lg-4 col-xs-6">
|
||||
<div class="small-box bg-yellow">
|
||||
<div class="inner text-center">
|
||||
<h3 style="font-size: 50px"><?php echo $info4;?></h3>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-lg-4 col-xs-6">
|
||||
<div class="small-box bg-yellow">
|
||||
<div class="inner text-center">
|
||||
<h3 style="font-size: 50px"><?php echo $info5;?></h3>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-lg-4 col-xs-6">
|
||||
<div class="small-box bg-yellow">
|
||||
<div class="inner text-center">
|
||||
<h3 style="font-size: 50px"><?php echo $info6;?></h3>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-12">
|
||||
<div class="col-lg-4 col-xs-6">
|
||||
<div class="small-box bg-yellow">
|
||||
<div class="inner text-center">
|
||||
<h3 style="font-size: 50px"><?php echo $info7;?></h3>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-lg-4 col-xs-6">
|
||||
<div class="small-box bg-yellow">
|
||||
<div class="inner text-center">
|
||||
<h3 style="font-size: 50px"><?php echo $info8;?></h3>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-lg-4 col-xs-6">
|
||||
<div class="small-box bg-yellow">
|
||||
<div class="inner text-center">
|
||||
<h3 style="font-size: 50px"><?php echo $info9;?></h3>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<div class="control-sidebar-bg"></div>
|
||||
</body>
|
||||
<script>
|
||||
var url="<?php echo base_url();?>";
|
||||
setTimeout(function(){
|
||||
var kode = document.getElementById('noantrian').value;
|
||||
var id = document.getElementById('idantrian').value;
|
||||
if(kode!="TUNGGU"){
|
||||
window.location = url+"index.php/ps_screenranap/set_null/"+id;
|
||||
}else{
|
||||
window.location = url+"index.php/ps_screenranap";
|
||||
}
|
||||
|
||||
|
||||
}, 15000);
|
||||
|
||||
function panggil(){
|
||||
var kode = document.getElementById('noantrian').value;
|
||||
if(kode!="TUNGGU"){
|
||||
|
||||
var pecah = kode.split("",-2);
|
||||
var hasil = "";
|
||||
for (i=0;i<3;i++){
|
||||
if(i<=1){
|
||||
hasil = hasil+" "+pecah[i]+" . ";
|
||||
}else{
|
||||
hasil = hasil+" "+pecah[i]+", ";
|
||||
}
|
||||
}
|
||||
|
||||
responsiveVoice.speak(
|
||||
"Nomor Antrian. "+hasil+" , silahkan menuju Loket. Sekali lagi, Nomor Antrian. "+hasil+", silahkan menuju Loket.",
|
||||
"Indonesian Female",
|
||||
{
|
||||
pitch: 1,
|
||||
rate: 1,
|
||||
volume: 1
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<script src="https://code.responsivevoice.org/responsivevoice.js?key=VZgeKlw3"></script>
|
||||
Reference in New Issue
Block a user