147 lines
8.6 KiB
PHP
147 lines
8.6 KiB
PHP
<body class="hold-transition skin-blue sidebar-mini">
|
|
<section class="content-header">
|
|
<h1>
|
|
<small>
|
|
|
|
</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-12">
|
|
<div class="box">
|
|
<div class="box-header with-border">
|
|
<h3 class="box-title"><?php echo $title ?></h3>
|
|
</div><!-- /.box-header -->
|
|
<form class="form-horizontal" id="form" action="<?php echo(base_url()); ?>index.php/ps_listpasien/search" method="post" autocomplete="off">
|
|
<?php
|
|
if(isset($tglset)){
|
|
$setdate=$tglset;
|
|
$setket = $ketset;
|
|
}else{
|
|
$setdate=date("d/m/Y");
|
|
$setket="";
|
|
}
|
|
?>
|
|
<div class="box-body">
|
|
<div class="col-xs-3">
|
|
<div class="input-group">
|
|
<div class="input-group-addon">
|
|
<i class="fa fa-calendar"></i>
|
|
</div>
|
|
<input name="tglperiksa" type="text" class="form-control" data-inputmask="'alias': 'dd/mm/yyyy'" data-mask="" value="<?php echo $setdate;?>" />
|
|
</div>
|
|
</div>
|
|
<div class="col-xs-1">
|
|
<select name="ketkunjungan" class="form-control">
|
|
<option <?php if($setket=="all"){echo "selected=''";}?> value="all">Semua</option>
|
|
<option <?php if($setket=="online"){echo "selected=''";}?> value="online">Online</option>
|
|
<option <?php if($setket=="offline"){echo "selected=''";}?> value="offline">Offline</option>
|
|
</select>
|
|
</div>
|
|
<div class="col-xs-1">
|
|
<button type="submit" class="btn btn-primary">Search</button>
|
|
</div>
|
|
<div class="col-xs-1">
|
|
<a href="<?php echo base_url()?>index.php/ps_listpasien/laporanpasien" type="button" class="btn btn-primary">Laporan Pasien</a>
|
|
</div>
|
|
<div class="col-xs-1">
|
|
<a href="<?php echo base_url()?>index.php/ps_listpasien/laporanpasienperklinik" type="button" class="btn btn-primary">Laporan Pasien Per Klinik</a>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
<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 Periksa</th>
|
|
<th>NIK</th>
|
|
<th>RM</th>
|
|
<th>Barcode</th>
|
|
<th>No Antrian</th>
|
|
<th>Klinik</th>
|
|
<th>First Name Last Name</th>
|
|
<th>Shift</th>
|
|
<th>Pembayaran</th>
|
|
<th>Keterangan</th>
|
|
<th>Status</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<?php
|
|
$no=0;
|
|
foreach ($lp as $listpasien) {
|
|
$online="Offline";
|
|
if(isset($listpasien->pp_pendaftaran_online)){
|
|
$online="<code>Online </code>| ".$listpasien->pp_pendaftaran_online;
|
|
}
|
|
$setpembayaran="";
|
|
if($listpasien->pp_pembayaran=="2"){
|
|
$setpembayaran="JKN";
|
|
}else{$setpembayaran="UMUM";}
|
|
|
|
$newDate = date("d/m/Y", strtotime($listpasien->pp_tanggal_periksa));
|
|
|
|
$datastatus = $listpasien->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";
|
|
}
|
|
|
|
$no++;
|
|
echo("
|
|
<tr>
|
|
<td>".$no."</td>
|
|
<td>".$newDate."</td>
|
|
<td>".$listpasien->var_nik."</td>
|
|
<td>".$listpasien->pp_rekamedik."</td>
|
|
<td>".$listpasien->pp_barcode."</td>
|
|
<td>".$listpasien->pp_nomor_antrian."</td>
|
|
<td>".$listpasien->mk_nama."</td>
|
|
<td>".$listpasien->var_nama_depan." ".$listpasien->var_nama_belakang."</td>
|
|
<td>Shift ".$listpasien->pp_shift."</td>
|
|
<td>".$setpembayaran."</td>
|
|
<td>".$online."</td>
|
|
<td>".$statusnya."</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">
|
|
</script>
|