first commit
This commit is contained in:
@@ -0,0 +1,181 @@
|
||||
<body class="hold-transition skin-blue sidebar-mini">
|
||||
<section class="content-header">
|
||||
<h1>
|
||||
<small>
|
||||
<a href="<?php echo base_url();?>index.php/ps_ranap_admin/prosesadd" class="btn btn-block btn-primary btn-sm">Tambah Pengunjung</a>
|
||||
</small>
|
||||
<small>
|
||||
<a href="<?php echo base_url();?>index.php/ps_ranap_admin" class="btn btn-block btn-info btn-sm">Reload <li class="fa fa-refresh"></li></a>
|
||||
</small>
|
||||
|
||||
</h1>
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="<?php echo base_url()?>index.php"><i class="fa fa-dashboard"></i> Dashboard</a></li>
|
||||
<li class="active"><?php echo $title ?></li>
|
||||
</ol>
|
||||
</section>
|
||||
|
||||
<!-- Main content -->
|
||||
<section class="content">
|
||||
<div class="row">
|
||||
<div class="col-xs-8">
|
||||
<div class="box">
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title"><?php echo $title ?></h3>
|
||||
</div><!-- /.box-header -->
|
||||
<div class="box-body">
|
||||
<?php if($this->session->flashdata('message')){?>
|
||||
<div class="alert alert-success alert-dismissable">
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
<h4> <i class="icon fa fa-check"></i> Alert!</h4>
|
||||
<?php echo $this->session->flashdata('message');?>
|
||||
</div>
|
||||
<?php }?>
|
||||
<div class="box-body table-responsive no-padding">
|
||||
<table id="example1" class="table table-bordered table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th width="5%">No</th>
|
||||
<th>No Antrian</th>
|
||||
<th>Daftar</th>
|
||||
<th>Pelayanan</th>
|
||||
<th width="20%">Aksi</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php $no=0;
|
||||
foreach ($rn as $dataranap){ $no++;
|
||||
?>
|
||||
<tr>
|
||||
<td><?php echo $no;?></td>
|
||||
<td><?php echo $dataranap->ppr_nomor_antrian;?></td>
|
||||
<td><?php echo date("d M Y H:i:s", strtotime($dataranap->ppr_tanggal_periksa));?></td>
|
||||
<td><?php if($dataranap->ppr_panggil!=null){echo date("H:i:s", strtotime($dataranap->ppr_panggil))." ".$dataranap->ml_nama;}else{ echo "<code>Belum Dilayanai</code>";}?></td>
|
||||
<td>
|
||||
<?php
|
||||
if($dataranap->ppr_status=="0"){
|
||||
// if($dataranap->ppr_callsound==null){
|
||||
// echo " <button type='button' onclick='callsound($dataranap->ppr_id)' class='btn btn-primary btn-xs'>Panggil</button> ";
|
||||
// }
|
||||
echo " <button type='button' onclick='selesai($dataranap->ppr_id)' class='btn btn-success btn-xs'>Selesai</button> ";
|
||||
}elseif($dataranap->ppr_status=="1"){
|
||||
echo " <button type='button' onclick='selesai($dataranap->ppr_id)' class='btn btn-success btn-xs'>Selesai</button> ";
|
||||
echo " <button type='button' onclick='pending($dataranap->ppr_id)' class='btn btn-warning btn-xs'>Pending</button> ";
|
||||
}elseif($dataranap->ppr_status=="2"){
|
||||
echo "<button type='button' onclick='pendingselesai($dataranap->ppr_id)' class='btn btn-warning btn-xs'>Pending Selesai</button>";
|
||||
}
|
||||
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<?php
|
||||
}
|
||||
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div><!-- /.box-body -->
|
||||
</div><!-- /.box -->
|
||||
</div><!-- /.col -->
|
||||
|
||||
<!-- small box -->
|
||||
<?php if($sl->num_rows()==0){
|
||||
?>
|
||||
<div class="col-xs-4">
|
||||
<div onclick="next()" class="btn small-box bg-green">
|
||||
<div class="inner">
|
||||
<h3>NEXT</h3>
|
||||
<p>Kosong</p>
|
||||
</div>
|
||||
<div class="icon">
|
||||
<i class="fa fa-play"></i>
|
||||
</div>
|
||||
<a href="#" class="small-box-footer">Klik untuk memanggil pasien selanjutnya</a>
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
}else{
|
||||
?>
|
||||
<div class="col-xs-4">
|
||||
<div class="small-box bg-purple">
|
||||
<div class="inner">
|
||||
<h3><?php echo $sl->row('ppr_nomor_antrian'); ?></h3>
|
||||
<p>Jam Panggil : <?php echo $sl->row('ppr_panggil'); ?></p>
|
||||
</div>
|
||||
<div class="icon">
|
||||
<i class="fa fa-play"></i>
|
||||
</div>
|
||||
<a href="#" class="small-box-footer">Informasi Pengunjung</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xs-1">
|
||||
<!-- small box -->
|
||||
<div onclick="pending(<?php echo $sl->row('ppr_id');?>)" class="btn small-box bg-yellow">
|
||||
<div class="inner">
|
||||
<h3><i class="fa fa-ban"></i></h3>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xs-1">
|
||||
<!-- small box -->
|
||||
<div onclick="callsound(<?php echo $sl->row('ppr_id');?>)" class="btn small-box bg-blue">
|
||||
<div class="inner">
|
||||
<h3><i class="fa fa-microphone"></i></h3>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xs-2">
|
||||
<!-- small box -->
|
||||
<div onclick="selesai(<?php echo $sl->row('ppr_id');?>)" class="btn small-box bg-green">
|
||||
<div class="inner">
|
||||
<h3>Selesai</h3>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
}?>
|
||||
</div><!-- /.row -->
|
||||
</section>
|
||||
<div class="control-sidebar-bg"></div>
|
||||
</body>
|
||||
<script type="text/javascript">
|
||||
var url="<?php echo base_url();?>";
|
||||
function next(){
|
||||
window.location = url+"index.php/ps_ranap_admin/next";
|
||||
}
|
||||
|
||||
function selesai(id){
|
||||
window.location = url+"index.php/ps_ranap_admin/selesai/"+id;
|
||||
}
|
||||
|
||||
function callsound(id){
|
||||
window.location = url+"index.php/ps_ranap_admin/callsound/"+id;
|
||||
}
|
||||
|
||||
function pending(id){
|
||||
var r=confirm("Apakah anda ingin melakukan pending ?")
|
||||
if (r==true)
|
||||
window.location = url+"index.php/ps_ranap_admin/pending/"+id;
|
||||
else
|
||||
return false;
|
||||
}
|
||||
|
||||
function pendingselesai(id){
|
||||
var r=confirm("Apakah anda ingin selesaikan pending?")
|
||||
if (r==true)
|
||||
window.location = url+"index.php/ps_ranap_admin/selesai/"+id;
|
||||
else
|
||||
return false;
|
||||
}
|
||||
|
||||
// function del(id){
|
||||
// var isi=document.getElementById('isi'+id).value;
|
||||
// var r=confirm("Apakah anda ingin menghapus nomor "+isi+"?")
|
||||
// if (r==true)
|
||||
// window.location = url+"index.php/ps_loket/delete/"+id;
|
||||
// else
|
||||
// return false;
|
||||
// }
|
||||
</script>
|
||||
Reference in New Issue
Block a user