143 lines
8.4 KiB
PHP
143 lines
8.4 KiB
PHP
<body class="hold-transition skin-blue sidebar-mini">
|
|
<section class="content-header">
|
|
<h1>
|
|
<br />
|
|
</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-12">
|
|
<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>Tgl Daftar</th>
|
|
<th>No Barcode</th>
|
|
<th>No Antrian</th>
|
|
<th>No Klinik</th>
|
|
<th>RM</th>
|
|
<th>Klinik</th>
|
|
<th>Shift</th>
|
|
<th>Ket</th>
|
|
<th>Pembayaran</th>
|
|
<th>Status</th>
|
|
<th width="10%">Aksi</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<?php
|
|
$no=0;
|
|
foreach ($mp as $datapasien) {
|
|
$no++;
|
|
//---------------------start check access action-------------------//
|
|
$editbutton="";
|
|
$deletebutton="";
|
|
$viewbutton="";
|
|
if(!empty($this->varedit)){
|
|
$editbutton="<a href='".base_url()."index.php/ps_pasien/edit/".$datapasien->pp_id."' class='btn btn-warning btn-xs'><i class='fa fa-edit'></i> Edit</a> ";
|
|
}
|
|
if(!empty($this->vardelete)){
|
|
$deletebutton="<a onclick='del(".$datapasien->pp_id.")' class='btn btn-danger btn-xs'><i class='fa fa-trash'></i> Delete</a><input type='hidden' id='isi".$datapasien->pp_id."' value='".$datapasien->pp_nomor_antrian."'> ";
|
|
}
|
|
if(!empty($this->varview)){
|
|
$viewbutton="<a href='".base_url()."index.php/ps_pasien/view/".$datapasien->pp_id."' class='btn btn-primary btn-xs'><i class='fa fa-eye'></i> View</a> ";
|
|
}
|
|
//---------------------end check access action-------------------//
|
|
|
|
$ketonline="";
|
|
if($datapasien->pp_pendaftaran_online!=null){
|
|
$ketonline="<code> Online $datapasien->pp_pendaftaran_online </code>";
|
|
}
|
|
|
|
$ketpembayaran="";
|
|
if($datapasien->pp_pembayaran==2){
|
|
$ketpembayaran="JKN";
|
|
}else{
|
|
$ketpembayaran="UMUM";
|
|
}
|
|
|
|
$ketkonsul="";
|
|
if($datapasien->pp_konsul!=null){
|
|
$ketkonsul="<code> Konsul </code>";
|
|
}
|
|
|
|
$ketfasttrack="";
|
|
if($datapasien->pp_fasttrack!=null){
|
|
$ketfasttrack="<code> Fast Track </code>";
|
|
}
|
|
|
|
$datastatus = $datapasien->prt_status;
|
|
$statusnya = "";
|
|
switch ($datastatus) {
|
|
case "0":$statusnya = "Barcode";break;
|
|
case "1":$statusnya = "Tunggu Daftar";break;
|
|
case "2":$statusnya = "Proses Daftar";break;
|
|
case "3":$statusnya = "Pending Daftar";break;
|
|
case "4":$statusnya = "Tunggu Klinik";break;
|
|
case "5":$statusnya = "Panggil Klinik";break;
|
|
case "6":$statusnya = "Tunggu Proses Klinik";break;
|
|
case "7":$statusnya = "Proses Klinik";break;
|
|
case "8":$statusnya = "Pending Klinik";break;
|
|
case "9":$statusnya = "Selesai";break;
|
|
default:$statusnya = "Anjungan";
|
|
}
|
|
|
|
echo("
|
|
<tr>
|
|
<td>".$no."</td>
|
|
<td>".$datapasien->pp_tanggal_datang."</td>
|
|
<td>".$datapasien->pp_barcode."</td>
|
|
<td>".$datapasien->pp_nomor_antrian."</td>
|
|
<td>".$datapasien->pp_nomor_antrian_klinik."</td>
|
|
<td>".$datapasien->pp_rekamedik."</td>
|
|
<td>".$datapasien->mk_nama."</td>
|
|
<td>Shift ".$datapasien->pp_shift."</td>
|
|
<td>".$ketonline.$ketkonsul.$ketfasttrack."</td>
|
|
<td>".$ketpembayaran."</td>
|
|
<td>".$statusnya."</td>
|
|
<td>".$viewbutton.$editbutton."</td>
|
|
</tr>
|
|
");
|
|
|
|
}
|
|
?>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div><!-- /.box-body -->
|
|
</div><!-- /.box -->
|
|
</div><!-- /.col -->
|
|
</div><!-- /.row -->
|
|
</section>
|
|
<div class="control-sidebar-bg"></div>
|
|
</body>
|
|
<script type="text/javascript">
|
|
var url="<?php echo base_url();?>";
|
|
function del(id){
|
|
var isi=document.getElementById('isi'+id).value;
|
|
var r=confirm("Apakah anda ingin menghapus user "+isi+"?")
|
|
if (r==true)
|
|
window.location = url+"index.php/ps_pasien/delete/"+id;
|
|
else
|
|
return false;
|
|
}
|
|
</script>
|