first commit - report data
This commit is contained in:
@@ -0,0 +1,216 @@
|
||||
<section class="content-header">
|
||||
<div class="container-fluid">
|
||||
<div class="row mb-2">
|
||||
<div class="col-sm-6">
|
||||
<h1>
|
||||
</h1>
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<ol class="breadcrumb float-sm-right">
|
||||
<li class="breadcrumb-item"><a href="<?php echo base_url();?>">Dashboard</a></li>
|
||||
<li class="breadcrumb-item"><?php echo $parent;?></li>
|
||||
<li class="breadcrumb-item active"><?php echo $title;?></li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<!-- Main content -->
|
||||
<section class="content">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="card card-default">
|
||||
<div class="card-header">
|
||||
<h3 class="card-title"><?php echo $title;?></h3>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<?php if($this->session->flashdata('message')){?>
|
||||
<div id="alert" class="alert alert-success alert-dismissable">
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
<i class="icon fa fa-check"></i> Alert!
|
||||
<?php echo $this->session->flashdata('message');?>
|
||||
</div>
|
||||
<?php }?>
|
||||
<script>
|
||||
setTimeout(function() {
|
||||
$('#alert').hide('fast');
|
||||
}, 3000);
|
||||
</script>
|
||||
<table class="table table-bordered">
|
||||
<thead>
|
||||
<tr class="bg-gray color-palette">
|
||||
<th>No</th>
|
||||
<th>Gr 1</th>
|
||||
<th>Gr 2</th>
|
||||
<th>Gr 3</th>
|
||||
<th>Gr 4</th>
|
||||
<th>Gr 5</th>
|
||||
<th>Kode</th>
|
||||
<th>Nama</th>
|
||||
<th>Kode Satu Sehat</th>
|
||||
<th>ID Location Simgos</th>
|
||||
<th>Kode Parent</th>
|
||||
<th>Nama Parent</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$no=0;
|
||||
foreach($lrgr as $datlrgr){
|
||||
if($datlrgr->Group == "1"){$no++;
|
||||
echo("
|
||||
<tr class='bg-red'>
|
||||
<th>".$no."</th>
|
||||
<td>".$datlrgr->Group."</td>
|
||||
<td colspan='4'></td>
|
||||
<td>".$datlrgr->Kode."</td>
|
||||
<td>".$datlrgr->Nama."</td>
|
||||
<td>".$datlrgr->Kode_satusehat."</td>
|
||||
<td>".$datlrgr->Id_location_simgos."</td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
</tr>
|
||||
");
|
||||
foreach($lrgr as $datlrgr2){
|
||||
$setgr2=""; $setbg2="";
|
||||
if($datlrgr2->Parent == $datlrgr->id){
|
||||
if($datlrgr2->Group == "1"){
|
||||
$setbg2 ="class='bg-red'";
|
||||
$setgr2 = "<td></td>".$datlrgr2->Group."</td><td colspan='4'></td>";
|
||||
}elseif($datlrgr2->Group == "2"){
|
||||
$setbg2 ="class='bg-yellow'";
|
||||
$setgr2 = "<td></td><td></td><td>".$datlrgr2->Group."</td><td colspan='3'></td>";
|
||||
}elseif($datlrgr2->Group == "3"){
|
||||
$setbg2 ="class='bg-blue'";
|
||||
$setgr2 = "<td></td><td colspan='2'></td><td>".$datlrgr2->Group."</td><td colspan='2'></td>";
|
||||
}elseif($datlrgr2->Group == "4"){
|
||||
$setbg2 ="class='bg-green'";
|
||||
$setgr2 = "<td></td><td colspan='3'></td><td>".$datlrgr2->Group."</td><td colspan='1'></td>";
|
||||
}elseif($datlrgr2->Group == "5"){
|
||||
$setbg2 ="class='bg-purple'";
|
||||
$setgr2 = "<td></td><td colspan='4'></td><td>".$datlrgr2->Group."</td>";
|
||||
}
|
||||
echo("
|
||||
<tr ".$setbg2." >
|
||||
".$setgr2."
|
||||
<td>".$datlrgr2->Kode."</td>
|
||||
<td>".$datlrgr2->Nama."</td>
|
||||
<td>".$datlrgr2->Kode_satusehat."</td>
|
||||
<td>".$datlrgr2->Id_location_simgos."</td>
|
||||
<td>".$datlrgr->Kode."</td>
|
||||
<td>".$datlrgr->Nama."</td>
|
||||
</tr>
|
||||
");
|
||||
|
||||
foreach($lrgr as $datlrgr3){
|
||||
$setgr3=""; $setbg3="";
|
||||
if($datlrgr3->Parent == $datlrgr2->id){
|
||||
if($datlrgr3->Group == "1"){
|
||||
$setbg3 ="class='bg-red'";
|
||||
$setgr3 = "<td></td>".$datlrgr3->Group."</td><td colspan='4'></td>";
|
||||
}elseif($datlrgr3->Group == "2"){
|
||||
$setbg3 ="class='bg-yellow'";
|
||||
$setgr3 = "<td></td><td></td><td>".$datlrgr3->Group."</td><td colspan='3'></td>";
|
||||
}elseif($datlrgr3->Group == "3"){
|
||||
$setbg3 ="class='bg-blue'";
|
||||
$setgr3 = "<td></td><td colspan='2'></td><td>".$datlrgr3->Group."</td><td colspan='2'></td>";
|
||||
}elseif($datlrgr3->Group == "4"){
|
||||
$setbg3 ="class='bg-green'";
|
||||
$setgr3 = "<td></td><td colspan='3'></td><td>".$datlrgr3->Group."</td><td colspan='1'></td>";
|
||||
}elseif($datlrgr3->Group == "5"){
|
||||
$setbg3 ="class='bg-purple'";
|
||||
$setgr3 = "<td></td><td colspan='4'></td><td>".$datlrgr3->Group."</td>";
|
||||
}
|
||||
echo("
|
||||
<tr ".$setbg3.">
|
||||
".$setgr3."
|
||||
<td>".$datlrgr3->Kode."</td>
|
||||
<td>".$datlrgr3->Nama."</td>
|
||||
<td>".$datlrgr3->Kode_satusehat."</td>
|
||||
<td>".$datlrgr3->Id_location_simgos."</td>
|
||||
<td>".$datlrgr2->Kode."</td>
|
||||
<td>".$datlrgr2->Nama."</td>
|
||||
</tr>
|
||||
");
|
||||
|
||||
foreach($lrgr as $datlrgr4){
|
||||
$setgr4=""; $setbg4="";
|
||||
if($datlrgr4->Parent == $datlrgr3->id){
|
||||
if($datlrgr4->Group == "1"){
|
||||
$setbg4 ="class='bg-red'";
|
||||
$setgr4 = "<td></td>".$datlrgr4->Group."</td><td colspan='4'></td>";
|
||||
}elseif($datlrgr4->Group == "2"){
|
||||
$setbg4 ="class='bg-yellow'";
|
||||
$setgr4 = "<td></td><td></td><td>".$datlrgr4->Group."</td><td colspan='3'></td>";
|
||||
}elseif($datlrgr4->Group == "3"){
|
||||
$setbg4 ="class='bg-blue'";
|
||||
$setgr4 = "<td></td><td colspan='2'></td><td>".$datlrgr4->Group."</td><td colspan='2'></td>";
|
||||
}elseif($datlrgr4->Group == "4"){
|
||||
$setbg4 ="class='bg-green'";
|
||||
$setgr4 = "<td></td><td colspan='3'></td><td>".$datlrgr4->Group."</td><td colspan='1'></td>";
|
||||
}elseif($datlrgr4->Group == "5"){
|
||||
$setbg4 ="class='bg-purple'";
|
||||
$setgr4 = "<td></td><td colspan='4'></td><td>".$datlrgr4->Group."</td>";
|
||||
}
|
||||
echo("
|
||||
<tr ".$setbg3.">
|
||||
".$setgr4."
|
||||
<td>".$datlrgr4->Kode."</td>
|
||||
<td>".$datlrgr4->Nama."</td>
|
||||
<td>".$datlrgr4->Kode_satusehat."</td>
|
||||
<td>".$datlrgr4->Id_location_simgos."</td>
|
||||
<td>".$datlrgr3->Kode."</td>
|
||||
<td>".$datlrgr3->Nama."</td>
|
||||
</tr>
|
||||
");
|
||||
|
||||
foreach($lrgr as $datlrgr5){
|
||||
$setgr5=""; $setbg5="";
|
||||
if($datlrgr5->Parent == $datlrgr4->id){
|
||||
if($datlrgr5->Group == "1"){
|
||||
$setbg5 ="class='bg-red'";
|
||||
$setgr5 = "<td></td>".$datlrgr5->Group."</td><td colspan='4'></td>";
|
||||
}elseif($datlrgr5->Group == "2"){
|
||||
$setbg5 ="class='bg-yellow'";
|
||||
$setgr5 = "<td></td><td></td><td>".$datlrgr5->Group."</td><td colspan='3'></td>";
|
||||
}elseif($datlrgr5->Group == "3"){
|
||||
$setbg5 ="class='bg-blue'";
|
||||
$setgr5 = "<td></td><td colspan='2'></td><td>".$datlrgr5->Group."</td><td colspan='2'></td>";
|
||||
}elseif($datlrgr5->Group == "4"){
|
||||
$setbg5 ="class='bg-green'";
|
||||
$setgr5 = "<td></td><td colspan='3'></td><td>".$datlrgr5->Group."</td><td colspan='1'></td>";
|
||||
}elseif($datlrgr5->Group == "5"){
|
||||
$setbg5 ="class='bg-purple'";
|
||||
$setgr5 = "<td></td><td colspan='4'></td><td>".$datlrgr5->Group."</td>";
|
||||
}
|
||||
echo("
|
||||
<tr ".$setbg3.">
|
||||
".$setgr5."
|
||||
<td>".$datlrgr5->Kode."</td>
|
||||
<td>".$datlrgr5->Nama."</td>
|
||||
<td>".$datlrgr5->Kode_satusehat."</td>
|
||||
<td>".$datlrgr5->Id_location_simgos."</td>
|
||||
<td>".$datlrgr4->Kode."</td>
|
||||
<td>".$datlrgr4->Nama."</td>
|
||||
</tr>
|
||||
");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
@@ -0,0 +1,417 @@
|
||||
|
||||
<!--link rel="stylesheet" href="<?php echo base_url();?>assets/css/organisasi.css"-->
|
||||
<style>
|
||||
/* RESET STYLES & HELPER CLASSES
|
||||
–––––––––––––––––––––––––––––––––––––––––––––––––– */
|
||||
:root {
|
||||
--level-1: #8dccad;
|
||||
--level-2: #f5cc7f;
|
||||
--level-3: #7b9fe0;
|
||||
--level-4: #f27c8d;
|
||||
--black: black;
|
||||
}
|
||||
|
||||
* {
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
ol {
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
body {
|
||||
margin: 50px 0 100px;
|
||||
text-align: center;
|
||||
font-family: "Inter", sans-serif;
|
||||
}
|
||||
|
||||
.container {
|
||||
max-width: 1000px;
|
||||
padding: 0 10px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.rectangle {
|
||||
position: relative;
|
||||
padding: 20px;
|
||||
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
|
||||
}
|
||||
|
||||
|
||||
/* LEVEL-1 STYLES
|
||||
–––––––––––––––––––––––––––––––––––––––––––––––––– */
|
||||
.level-1 {
|
||||
width: 50%;
|
||||
margin: 0 auto 40px;
|
||||
background: var(--level-1);
|
||||
}
|
||||
|
||||
.level-1::before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
top: 100%;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
width: 2px;
|
||||
height: 20px;
|
||||
background: var(--black);
|
||||
}
|
||||
|
||||
|
||||
/* LEVEL-2 STYLES
|
||||
–––––––––––––––––––––––––––––––––––––––––––––––––– */
|
||||
.level-2-wrapper {
|
||||
position: relative;
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, 1fr);
|
||||
}
|
||||
|
||||
.level-2-wrapper::before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
top: -20px;
|
||||
left: 25%;
|
||||
width: 50%;
|
||||
height: 2px;
|
||||
background: var(--black);
|
||||
}
|
||||
|
||||
.level-2-wrapper::after {
|
||||
display: none;
|
||||
content: "";
|
||||
position: absolute;
|
||||
left: -20px;
|
||||
bottom: -20px;
|
||||
width: calc(100% + 20px);
|
||||
height: 2px;
|
||||
background: var(--black);
|
||||
}
|
||||
|
||||
.level-2-wrapper li {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.level-2-wrapper > li::before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
bottom: 100%;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
width: 2px;
|
||||
height: 20px;
|
||||
background: var(--black);
|
||||
}
|
||||
|
||||
.level-2 {
|
||||
width: 70%;
|
||||
margin: 0 auto 40px;
|
||||
background: var(--level-2);
|
||||
}
|
||||
|
||||
.level-2::before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
top: 100%;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
width: 2px;
|
||||
height: 20px;
|
||||
background: var(--black);
|
||||
}
|
||||
|
||||
.level-2::after {
|
||||
display: none;
|
||||
content: "";
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 0%;
|
||||
transform: translate(-100%, -50%);
|
||||
width: 20px;
|
||||
height: 2px;
|
||||
background: var(--black);
|
||||
}
|
||||
|
||||
|
||||
/* LEVEL-3 STYLES
|
||||
–––––––––––––––––––––––––––––––––––––––––––––––––– */
|
||||
.level-3-wrapper {
|
||||
position: relative;
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, 1fr);
|
||||
grid-column-gap: 20px;
|
||||
width: 90%;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.level-3-wrapper::before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
top: -20px;
|
||||
left: calc(25% - 5px);
|
||||
width: calc(50% + 10px);
|
||||
height: 2px;
|
||||
background: var(--black);
|
||||
}
|
||||
|
||||
.level-3-wrapper > li::before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 50%;
|
||||
transform: translate(-50%, -100%);
|
||||
width: 2px;
|
||||
height: 20px;
|
||||
background: var(--black);
|
||||
}
|
||||
|
||||
.level-3 {
|
||||
margin-bottom: 20px;
|
||||
background: var(--level-3);
|
||||
}
|
||||
|
||||
|
||||
/* LEVEL-4 STYLES
|
||||
–––––––––––––––––––––––––––––––––––––––––––––––––– */
|
||||
.level-4-wrapper {
|
||||
position: relative;
|
||||
width: 80%;
|
||||
margin-left: auto;
|
||||
}
|
||||
|
||||
.level-4-wrapper::before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
top: -20px;
|
||||
left: -20px;
|
||||
width: 2px;
|
||||
height: calc(100% + 20px);
|
||||
background: var(--black);
|
||||
}
|
||||
|
||||
.level-4-wrapper li + li {
|
||||
margin-top: 20px;
|
||||
}
|
||||
|
||||
.level-4 {
|
||||
font-weight: normal;
|
||||
background: var(--level-4);
|
||||
}
|
||||
|
||||
.level-4::before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 0%;
|
||||
transform: translate(-100%, -50%);
|
||||
width: 20px;
|
||||
height: 2px;
|
||||
background: var(--black);
|
||||
}
|
||||
|
||||
|
||||
/* MQ STYLES
|
||||
–––––––––––––––––––––––––––––––––––––––––––––––––– */
|
||||
@media screen and (max-width: 700px) {
|
||||
.rectangle {
|
||||
padding: 20px 10px;
|
||||
}
|
||||
|
||||
.level-1,
|
||||
.level-2 {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.level-1 {
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.level-1::before,
|
||||
.level-2-wrapper > li::before {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.level-2-wrapper,
|
||||
.level-2-wrapper::after,
|
||||
.level-2::after {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.level-2-wrapper {
|
||||
width: 90%;
|
||||
margin-left: 10%;
|
||||
}
|
||||
|
||||
.level-2-wrapper::before {
|
||||
left: -20px;
|
||||
width: 2px;
|
||||
height: calc(100% + 40px);
|
||||
}
|
||||
|
||||
.level-2-wrapper > li:not(:first-child) {
|
||||
margin-top: 50px;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/* FOOTER
|
||||
–––––––––––––––––––––––––––––––––––––––––––––––––– */
|
||||
.page-footer {
|
||||
position: fixed;
|
||||
right: 0;
|
||||
bottom: 20px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 5px;
|
||||
}
|
||||
|
||||
.page-footer a {
|
||||
margin-left: 4px;
|
||||
}
|
||||
|
||||
|
||||
</style>
|
||||
<section class="content-header">
|
||||
<div class="container-fluid">
|
||||
<div class="row mb-2">
|
||||
<div class="col-sm-6">
|
||||
<h1>
|
||||
</h1>
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<ol class="breadcrumb float-sm-right">
|
||||
<li class="breadcrumb-item"><a href="<?php echo base_url();?>">Dashboard</a></li>
|
||||
<li class="breadcrumb-item"><?php echo $parent;?></li>
|
||||
<li class="breadcrumb-item active"><?php echo $title;?></li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<!-- Main content -->
|
||||
<section class="content">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="card card-default">
|
||||
<div class="card-header">
|
||||
<h3 class="card-title"><?php echo $title;?></h3>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<?php if($this->session->flashdata('message')){?>
|
||||
<div id="alert" class="alert alert-success alert-dismissable">
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
<i class="icon fa fa-check"></i> Alert!
|
||||
<?php echo $this->session->flashdata('message');?>
|
||||
</div>
|
||||
<?php }?>
|
||||
<script>
|
||||
setTimeout(function() {
|
||||
$('#alert').hide('fast');
|
||||
}, 3000);
|
||||
</script>
|
||||
|
||||
<?php
|
||||
foreach($org1 as $datorg1){
|
||||
?>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
|
||||
<div class="container">
|
||||
<h1 class="level-1 rectangle">CEO</h1>
|
||||
<ol class="level-2-wrapper">
|
||||
<li>
|
||||
<h2 class="level-2 rectangle">Director A</h2>
|
||||
<ol class="level-3-wrapper">
|
||||
<li>
|
||||
<h3 class="level-3 rectangle">Manager A</h3>
|
||||
<ol class="level-4-wrapper">
|
||||
<li>
|
||||
<h4 class="level-4 rectangle">Person A</h4>
|
||||
</li>
|
||||
<li>
|
||||
<h4 class="level-4 rectangle">Person B</h4>
|
||||
</li>
|
||||
<li>
|
||||
<h4 class="level-4 rectangle">Person C</h4>
|
||||
</li>
|
||||
<li>
|
||||
<h4 class="level-4 rectangle">Person D</h4>
|
||||
</li>
|
||||
</ol>
|
||||
</li>
|
||||
<li>
|
||||
<h3 class="level-3 rectangle">Manager B</h3>
|
||||
<ol class="level-4-wrapper">
|
||||
<li>
|
||||
<h4 class="level-4 rectangle">Person A</h4>
|
||||
</li>
|
||||
<li>
|
||||
<h4 class="level-4 rectangle">Person B</h4>
|
||||
</li>
|
||||
<li>
|
||||
<h4 class="level-4 rectangle">Person C</h4>
|
||||
</li>
|
||||
<li>
|
||||
<h4 class="level-4 rectangle">Person D</h4>
|
||||
</li>
|
||||
</ol>
|
||||
</li>
|
||||
</ol>
|
||||
</li>
|
||||
<li>
|
||||
<h2 class="level-2 rectangle">Director B</h2>
|
||||
<ol class="level-3-wrapper">
|
||||
<li>
|
||||
<h3 class="level-3 rectangle">Manager C</h3>
|
||||
<ol class="level-4-wrapper">
|
||||
<li>
|
||||
<h4 class="level-4 rectangle">Person A</h4>
|
||||
</li>
|
||||
<li>
|
||||
<h4 class="level-4 rectangle">Person B</h4>
|
||||
</li>
|
||||
<li>
|
||||
<h4 class="level-4 rectangle">Person C</h4>
|
||||
</li>
|
||||
<li>
|
||||
<h4 class="level-4 rectangle">Person D</h4>
|
||||
</li>
|
||||
</ol>
|
||||
</li>
|
||||
<li>
|
||||
<h3 class="level-3 rectangle">Manager D</h3>
|
||||
<ol class="level-4-wrapper">
|
||||
<li>
|
||||
<h4 class="level-4 rectangle">Person A</h4>
|
||||
</li>
|
||||
<li>
|
||||
<h4 class="level-4 rectangle">Person B</h4>
|
||||
</li>
|
||||
<li>
|
||||
<h4 class="level-4 rectangle">Person C</h4>
|
||||
</li>
|
||||
<li>
|
||||
<h4 class="level-4 rectangle">Person D</h4>
|
||||
</li>
|
||||
</ol>
|
||||
</li>
|
||||
</ol>
|
||||
</li>
|
||||
</ol>
|
||||
</div>
|
||||
|
||||
<footer class="page-footer">
|
||||
<span>made by </span>
|
||||
<a href="https://georgemartsoukos.com/" target="_blank">
|
||||
<img width="24" height="24" src="https://assets.codepen.io/162656/george-martsoukos-small-logo.svg" alt="George Martsoukos logo">
|
||||
</a>
|
||||
</footer>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
@@ -0,0 +1,8 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
echo "\nERROR: ",
|
||||
$heading,
|
||||
"\n\n",
|
||||
$message,
|
||||
"\n\n";
|
||||
@@ -0,0 +1,8 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
echo "\nDatabase error: ",
|
||||
$heading,
|
||||
"\n\n",
|
||||
$message,
|
||||
"\n\n";
|
||||
@@ -0,0 +1,21 @@
|
||||
<?php defined('BASEPATH') OR exit('No direct script access allowed'); ?>
|
||||
|
||||
An uncaught Exception was encountered
|
||||
|
||||
Type: <?php echo get_class($exception), "\n"; ?>
|
||||
Message: <?php echo $message, "\n"; ?>
|
||||
Filename: <?php echo $exception->getFile(), "\n"; ?>
|
||||
Line Number: <?php echo $exception->getLine(); ?>
|
||||
|
||||
<?php if (defined('SHOW_DEBUG_BACKTRACE') && SHOW_DEBUG_BACKTRACE === TRUE): ?>
|
||||
|
||||
Backtrace:
|
||||
<?php foreach ($exception->getTrace() as $error): ?>
|
||||
<?php if (isset($error['file']) && strpos($error['file'], realpath(BASEPATH)) !== 0): ?>
|
||||
File: <?php echo $error['file'], "\n"; ?>
|
||||
Line: <?php echo $error['line'], "\n"; ?>
|
||||
Function: <?php echo $error['function'], "\n\n"; ?>
|
||||
<?php endif ?>
|
||||
<?php endforeach ?>
|
||||
|
||||
<?php endif ?>
|
||||
@@ -0,0 +1,8 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
echo "\nERROR: ",
|
||||
$heading,
|
||||
"\n\n",
|
||||
$message,
|
||||
"\n\n";
|
||||
@@ -0,0 +1,21 @@
|
||||
<?php defined('BASEPATH') OR exit('No direct script access allowed'); ?>
|
||||
|
||||
A PHP Error was encountered
|
||||
|
||||
Severity: <?php echo $severity, "\n"; ?>
|
||||
Message: <?php echo $message, "\n"; ?>
|
||||
Filename: <?php echo $filepath, "\n"; ?>
|
||||
Line Number: <?php echo $line; ?>
|
||||
|
||||
<?php if (defined('SHOW_DEBUG_BACKTRACE') && SHOW_DEBUG_BACKTRACE === TRUE): ?>
|
||||
|
||||
Backtrace:
|
||||
<?php foreach (debug_backtrace() as $error): ?>
|
||||
<?php if (isset($error['file']) && strpos($error['file'], realpath(BASEPATH)) !== 0): ?>
|
||||
File: <?php echo $error['file'], "\n"; ?>
|
||||
Line: <?php echo $error['line'], "\n"; ?>
|
||||
Function: <?php echo $error['function'], "\n\n"; ?>
|
||||
<?php endif ?>
|
||||
<?php endforeach ?>
|
||||
|
||||
<?php endif ?>
|
||||
@@ -0,0 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>403 Forbidden</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<p>Directory access is forbidden.</p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,64 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
?><!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>404 Page Not Found</title>
|
||||
<style type="text/css">
|
||||
|
||||
::selection { background-color: #E13300; color: white; }
|
||||
::-moz-selection { background-color: #E13300; color: white; }
|
||||
|
||||
body {
|
||||
background-color: #fff;
|
||||
margin: 40px;
|
||||
font: 13px/20px normal Helvetica, Arial, sans-serif;
|
||||
color: #4F5155;
|
||||
}
|
||||
|
||||
a {
|
||||
color: #003399;
|
||||
background-color: transparent;
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
h1 {
|
||||
color: #444;
|
||||
background-color: transparent;
|
||||
border-bottom: 1px solid #D0D0D0;
|
||||
font-size: 19px;
|
||||
font-weight: normal;
|
||||
margin: 0 0 14px 0;
|
||||
padding: 14px 15px 10px 15px;
|
||||
}
|
||||
|
||||
code {
|
||||
font-family: Consolas, Monaco, Courier New, Courier, monospace;
|
||||
font-size: 12px;
|
||||
background-color: #f9f9f9;
|
||||
border: 1px solid #D0D0D0;
|
||||
color: #002166;
|
||||
display: block;
|
||||
margin: 14px 0 14px 0;
|
||||
padding: 12px 10px 12px 10px;
|
||||
}
|
||||
|
||||
#container {
|
||||
margin: 10px;
|
||||
border: 1px solid #D0D0D0;
|
||||
box-shadow: 0 0 8px #D0D0D0;
|
||||
}
|
||||
|
||||
p {
|
||||
margin: 12px 15px 12px 15px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div id="container">
|
||||
<h1><?php echo $heading; ?></h1>
|
||||
<?php echo $message; ?>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,64 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
?><!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Database Error</title>
|
||||
<style type="text/css">
|
||||
|
||||
::selection { background-color: #E13300; color: white; }
|
||||
::-moz-selection { background-color: #E13300; color: white; }
|
||||
|
||||
body {
|
||||
background-color: #fff;
|
||||
margin: 40px;
|
||||
font: 13px/20px normal Helvetica, Arial, sans-serif;
|
||||
color: #4F5155;
|
||||
}
|
||||
|
||||
a {
|
||||
color: #003399;
|
||||
background-color: transparent;
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
h1 {
|
||||
color: #444;
|
||||
background-color: transparent;
|
||||
border-bottom: 1px solid #D0D0D0;
|
||||
font-size: 19px;
|
||||
font-weight: normal;
|
||||
margin: 0 0 14px 0;
|
||||
padding: 14px 15px 10px 15px;
|
||||
}
|
||||
|
||||
code {
|
||||
font-family: Consolas, Monaco, Courier New, Courier, monospace;
|
||||
font-size: 12px;
|
||||
background-color: #f9f9f9;
|
||||
border: 1px solid #D0D0D0;
|
||||
color: #002166;
|
||||
display: block;
|
||||
margin: 14px 0 14px 0;
|
||||
padding: 12px 10px 12px 10px;
|
||||
}
|
||||
|
||||
#container {
|
||||
margin: 10px;
|
||||
border: 1px solid #D0D0D0;
|
||||
box-shadow: 0 0 8px #D0D0D0;
|
||||
}
|
||||
|
||||
p {
|
||||
margin: 12px 15px 12px 15px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div id="container">
|
||||
<h1><?php echo $heading; ?></h1>
|
||||
<?php echo $message; ?>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
?>
|
||||
|
||||
<div style="border:1px solid #990000;padding-left:20px;margin:0 0 10px 0;">
|
||||
|
||||
<h4>An uncaught Exception was encountered</h4>
|
||||
|
||||
<p>Type: <?php echo get_class($exception); ?></p>
|
||||
<p>Message: <?php echo $message; ?></p>
|
||||
<p>Filename: <?php echo $exception->getFile(); ?></p>
|
||||
<p>Line Number: <?php echo $exception->getLine(); ?></p>
|
||||
|
||||
<?php if (defined('SHOW_DEBUG_BACKTRACE') && SHOW_DEBUG_BACKTRACE === TRUE): ?>
|
||||
|
||||
<p>Backtrace:</p>
|
||||
<?php foreach ($exception->getTrace() as $error): ?>
|
||||
|
||||
<?php if (isset($error['file']) && strpos($error['file'], realpath(BASEPATH)) !== 0): ?>
|
||||
|
||||
<p style="margin-left:10px">
|
||||
File: <?php echo $error['file']; ?><br />
|
||||
Line: <?php echo $error['line']; ?><br />
|
||||
Function: <?php echo $error['function']; ?>
|
||||
</p>
|
||||
<?php endif ?>
|
||||
|
||||
<?php endforeach ?>
|
||||
|
||||
<?php endif ?>
|
||||
|
||||
</div>
|
||||
@@ -0,0 +1,64 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
?><!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Error</title>
|
||||
<style type="text/css">
|
||||
|
||||
::selection { background-color: #E13300; color: white; }
|
||||
::-moz-selection { background-color: #E13300; color: white; }
|
||||
|
||||
body {
|
||||
background-color: #fff;
|
||||
margin: 40px;
|
||||
font: 13px/20px normal Helvetica, Arial, sans-serif;
|
||||
color: #4F5155;
|
||||
}
|
||||
|
||||
a {
|
||||
color: #003399;
|
||||
background-color: transparent;
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
h1 {
|
||||
color: #444;
|
||||
background-color: transparent;
|
||||
border-bottom: 1px solid #D0D0D0;
|
||||
font-size: 19px;
|
||||
font-weight: normal;
|
||||
margin: 0 0 14px 0;
|
||||
padding: 14px 15px 10px 15px;
|
||||
}
|
||||
|
||||
code {
|
||||
font-family: Consolas, Monaco, Courier New, Courier, monospace;
|
||||
font-size: 12px;
|
||||
background-color: #f9f9f9;
|
||||
border: 1px solid #D0D0D0;
|
||||
color: #002166;
|
||||
display: block;
|
||||
margin: 14px 0 14px 0;
|
||||
padding: 12px 10px 12px 10px;
|
||||
}
|
||||
|
||||
#container {
|
||||
margin: 10px;
|
||||
border: 1px solid #D0D0D0;
|
||||
box-shadow: 0 0 8px #D0D0D0;
|
||||
}
|
||||
|
||||
p {
|
||||
margin: 12px 15px 12px 15px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div id="container">
|
||||
<h1><?php echo $heading; ?></h1>
|
||||
<?php echo $message; ?>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
?>
|
||||
|
||||
<div style="border:1px solid #990000;padding-left:20px;margin:0 0 10px 0;">
|
||||
|
||||
<h4>A PHP Error was encountered</h4>
|
||||
|
||||
<p>Severity: <?php echo $severity; ?></p>
|
||||
<p>Message: <?php echo $message; ?></p>
|
||||
<p>Filename: <?php echo $filepath; ?></p>
|
||||
<p>Line Number: <?php echo $line; ?></p>
|
||||
|
||||
<?php if (defined('SHOW_DEBUG_BACKTRACE') && SHOW_DEBUG_BACKTRACE === TRUE): ?>
|
||||
|
||||
<p>Backtrace:</p>
|
||||
<?php foreach (debug_backtrace() as $error): ?>
|
||||
|
||||
<?php if (isset($error['file']) && strpos($error['file'], realpath(BASEPATH)) !== 0): ?>
|
||||
|
||||
<p style="margin-left:10px">
|
||||
File: <?php echo $error['file'] ?><br />
|
||||
Line: <?php echo $error['line'] ?><br />
|
||||
Function: <?php echo $error['function'] ?>
|
||||
</p>
|
||||
|
||||
<?php endif ?>
|
||||
|
||||
<?php endforeach ?>
|
||||
|
||||
<?php endif ?>
|
||||
|
||||
</div>
|
||||
@@ -0,0 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>403 Forbidden</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<p>Directory access is forbidden.</p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>403 Forbidden</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<p>Directory access is forbidden.</p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,6 @@
|
||||
<strong>
|
||||
Copyright © 2022 <a href="https://adminlte.io">Satu RSSA</a>.
|
||||
</strong>
|
||||
<div class="float-right d-none d-sm-inline-block">
|
||||
<b>Version</b> 0.0.1
|
||||
</div>
|
||||
@@ -0,0 +1,106 @@
|
||||
<!-- Navbar -->
|
||||
<nav class="main-header navbar navbar-expand navbar-white navbar-light">
|
||||
<!-- Left navbar links -->
|
||||
<ul class="navbar-nav">
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" data-widget="pushmenu" href="#" role="button"><i class="fas fa-bars"></i></a>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<!-- Right navbar links -->
|
||||
<ul class="navbar-nav ml-auto">
|
||||
<!-- Messages Dropdown Menu -->
|
||||
<li class="nav-item dropdown">
|
||||
<a class="nav-link" data-toggle="dropdown" href="#">
|
||||
<i class="far fa-comments"></i>
|
||||
<span class="badge badge-danger navbar-badge">3</span>
|
||||
</a>
|
||||
<div class="dropdown-menu dropdown-menu-lg dropdown-menu-right">
|
||||
<a href="#" class="dropdown-item">
|
||||
<!-- Message Start -->
|
||||
<div class="media">
|
||||
<img src="<?php echo base_url();?>theme/AdminLTE3/dist/img/user1-128x128.jpg" alt="User Avatar" class="img-size-50 mr-3 img-circle">
|
||||
<div class="media-body">
|
||||
<h3 class="dropdown-item-title">
|
||||
Brad Diesel<span class="float-right text-sm text-danger"><i class="fas fa-star"></i></span>
|
||||
</h3>
|
||||
<p class="text-sm">Call me whenever you can...</p>
|
||||
<p class="text-sm text-muted"><i class="far fa-clock mr-1"></i> 4 Hours Ago</p>
|
||||
</div>
|
||||
</div>
|
||||
<!-- Message End -->
|
||||
</a>
|
||||
<div class="dropdown-divider"></div>
|
||||
<a href="#" class="dropdown-item">
|
||||
<!-- Message Start -->
|
||||
<div class="media">
|
||||
<img src="<?php echo base_url();?>theme/AdminLTE3/dist/img/user8-128x128.jpg" alt="User Avatar" class="img-size-50 img-circle mr-3">
|
||||
<div class="media-body">
|
||||
<h3 class="dropdown-item-title">
|
||||
John Pierce<span class="float-right text-sm text-muted"><i class="fas fa-star"></i></span>
|
||||
</h3>
|
||||
<p class="text-sm">I got your message bro</p>
|
||||
<p class="text-sm text-muted"><i class="far fa-clock mr-1"></i> 4 Hours Ago</p>
|
||||
</div>
|
||||
</div>
|
||||
<!-- Message End -->
|
||||
</a>
|
||||
<div class="dropdown-divider"></div>
|
||||
<a href="#" class="dropdown-item">
|
||||
<!-- Message Start -->
|
||||
<div class="media">
|
||||
<img src="<?php echo base_url();?>theme/AdminLTE3/dist/img/user3-128x128.jpg" alt="User Avatar" class="img-size-50 img-circle mr-3">
|
||||
<div class="media-body">
|
||||
<h3 class="dropdown-item-title">
|
||||
Nora Silvester<span class="float-right text-sm text-warning"><i class="fas fa-star"></i></span>
|
||||
</h3>
|
||||
<p class="text-sm">The subject goes here</p>
|
||||
<p class="text-sm text-muted"><i class="far fa-clock mr-1"></i> 4 Hours Ago</p>
|
||||
</div>
|
||||
</div>
|
||||
<!-- Message End -->
|
||||
</a>
|
||||
<div class="dropdown-divider"></div>
|
||||
<a href="#" class="dropdown-item dropdown-footer">See All Messages</a>
|
||||
</div>
|
||||
</li>
|
||||
<!-- Notifications Dropdown Menu -->
|
||||
<li class="nav-item dropdown">
|
||||
<a class="nav-link" data-toggle="dropdown" href="#">
|
||||
<i class="far fa-bell"></i>
|
||||
<span class="badge badge-warning navbar-badge">15</span>
|
||||
</a>
|
||||
<div class="dropdown-menu dropdown-menu-lg dropdown-menu-right">
|
||||
<span class="dropdown-item dropdown-header">15 Notifications</span>
|
||||
<div class="dropdown-divider"></div>
|
||||
<a href="#" class="dropdown-item">
|
||||
<i class="fas fa-envelope mr-2"></i> 4 new messages
|
||||
<span class="float-right text-muted text-sm">3 mins</span>
|
||||
</a>
|
||||
<div class="dropdown-divider"></div>
|
||||
<a href="#" class="dropdown-item">
|
||||
<i class="fas fa-users mr-2"></i> 8 friend requests
|
||||
<span class="float-right text-muted text-sm">12 hours</span>
|
||||
</a>
|
||||
<div class="dropdown-divider"></div>
|
||||
<a href="#" class="dropdown-item">
|
||||
<i class="fas fa-file mr-2"></i> 3 new reports
|
||||
<span class="float-right text-muted text-sm">2 days</span>
|
||||
</a>
|
||||
<div class="dropdown-divider"></div>
|
||||
<a href="#" class="dropdown-item dropdown-footer">See All Notifications</a>
|
||||
</div>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" data-widget="fullscreen" href="#" role="button">
|
||||
<i class="fas fa-expand-arrows-alt"></i>
|
||||
</a>
|
||||
</li>
|
||||
<!--li class="nav-item">
|
||||
<a class="nav-link" data-widget="control-sidebar" data-controlsidebar-slide="true" href="#" role="button">
|
||||
<i class="fas fa-th-large"></i>
|
||||
</a>
|
||||
</li-->
|
||||
</ul>
|
||||
</nav>
|
||||
<!-- /.navbar -->
|
||||
@@ -0,0 +1,91 @@
|
||||
<!-- Main Sidebar Container -->
|
||||
<aside class="main-sidebar elevation-4 sidebar-light-teal">
|
||||
<!-- Brand Logo -->
|
||||
<a href="index3.html" class="brand-link">
|
||||
<img src="<?php echo base_url();?>theme/AdminLTE3/dist/img/AdminLTELogo.png" alt="AdminLTE Logo" class="brand-image img-circle elevation-3" style="opacity: .8"/>
|
||||
<span class="brand-text font-weight-light">SatuRSSA</span>
|
||||
</a>
|
||||
<div class="sidebar">
|
||||
<div class="user-panel mt-3 pb-3 mb-3 d-flex">
|
||||
<div class="image">
|
||||
<img src="<?php echo base_url();?>theme/AdminLTE3/dist/img/user2-160x160.jpg" class="img-circle elevation-2" alt="User Image"/>
|
||||
</div>
|
||||
<div class="info">
|
||||
<a href="#" class="d-block"><?php echo $this->session->userdata('s_UserName');?></a>
|
||||
</div>
|
||||
</div>
|
||||
<nav class="mt-2">
|
||||
<ul class="nav nav-pills nav-sidebar flex-column nav-compact" data-widget="treeview" role="menu" data-accordion="false">
|
||||
<?php
|
||||
$linknow=$this->uri->segment(1, 0);
|
||||
//--------------start lp_ppi 1 controller--------------//
|
||||
if($linknow=="lp_ppi"){
|
||||
$linknow=$this->uri->segment(1, 0)."/".$this->uri->segment(2, 0);
|
||||
$linksearch = substr($this->uri->segment(2, 0), 0, 6);
|
||||
// if($linksearch=="search"){
|
||||
// $linknow=$this->uri->segment(1, 0)."/".substr($this->uri->segment(2, 0), 6);
|
||||
// }
|
||||
}elseif($linknow=="lp_simrs_kemenkes"){
|
||||
$linknow=$this->uri->segment(1, 0)."/".$this->uri->segment(2, 0);
|
||||
$linksearch = substr($this->uri->segment(2, 0), 0, 6);
|
||||
// if($linksearch=="search"){
|
||||
// $linknow=$this->uri->segment(1, 0)."/".substr($this->uri->segment(2, 0), 6);
|
||||
// }
|
||||
}elseif($linknow=="lp_simrs_report"){
|
||||
$linknow=$this->uri->segment(1, 0)."/".$this->uri->segment(2, 0);
|
||||
$linksearch = substr($this->uri->segment(2, 0), 0, 6);
|
||||
// if($linksearch=="search"){
|
||||
// $linknow=$this->uri->segment(1, 0)."/".substr($this->uri->segment(2, 0), 6);
|
||||
// }
|
||||
}elseif($linknow=="lp_data_master"){
|
||||
$linknow=$this->uri->segment(1, 0)."/".$this->uri->segment(2, 0);
|
||||
$linksearch = substr($this->uri->segment(2, 0), 0, 6);
|
||||
}
|
||||
//--------------end lp_ppi 1 controller--------------//
|
||||
$this->db->join('master_menu', 'mm_id = am_fk_menu_id', 'LEFT');
|
||||
$this->db->where('mm_status', 1);
|
||||
$this->db->where('am_fk_rolegroup_id', $this->session->userdata('s_IDRoleGroup'));
|
||||
$query = $this->db->get('access_menu');
|
||||
|
||||
foreach ($query->result() as $parent){
|
||||
if($parent->mm_level==1){
|
||||
$aktif= "";
|
||||
$open = "";
|
||||
foreach ($query->result() as $aktifcek){
|
||||
if($aktifcek->mm_link===$linknow && $parent->mm_id==$aktifcek->mm_parent){
|
||||
$aktif= "active";
|
||||
$open = "menu-open";
|
||||
}
|
||||
}
|
||||
?>
|
||||
<li class="nav-item <?php echo $open;?>">
|
||||
<a href="<?php echo base_url()."index.php/".$parent->mm_link;?>" class="nav-link <?php if($parent->mm_link === $linknow){echo "active";} echo $aktif; if(0===$linknow && $parent->mm_name == "Dashboard"){echo "active";}?>">
|
||||
<i class="<?php echo $parent->mm_icon;?>"> </i>
|
||||
<p> <?php echo $parent->mm_name; if($parent->mm_link=="#"){?> <i class="right fas fa-angle-left"></i> <?php } ?> </p>
|
||||
</a>
|
||||
<?php
|
||||
if($parent->mm_link=="#"){
|
||||
foreach ($query->result() as $menuchild){
|
||||
if($parent->mm_id==$menuchild->mm_parent){
|
||||
?>
|
||||
<ul class="nav nav-treeview">
|
||||
<li class="nav-item ">
|
||||
<a href="<?php echo base_url()."index.php/".$menuchild->mm_link;?>" class="nav-link <?php if($menuchild->mm_link === $linknow){echo "active";}?>">
|
||||
<i class="fa fa-caret-right nav-icon"></i>
|
||||
<p> <?php echo $menuchild->mm_name;?></p>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
} ?>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
?>
|
||||
</ul>
|
||||
</nav>
|
||||
</div>
|
||||
</aside>
|
||||
@@ -0,0 +1,286 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>SatuRSSA</title>
|
||||
|
||||
<!-- Select2 -->
|
||||
<link rel="stylesheet" href="<?php echo base_url(); ?>theme/AdminLTE3/plugins/select2/css/select2.min.css">
|
||||
<link rel="stylesheet"
|
||||
href="<?php echo base_url(); ?>theme/AdminLTE3/plugins/select2-bootstrap4-theme/select2-bootstrap4.min.css">
|
||||
<!-- Google Font: Source Sans Pro -->
|
||||
<link rel="stylesheet"
|
||||
href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,400i,700&display=fallback">
|
||||
<!-- Font Awesome -->
|
||||
<link rel="stylesheet" href="<?php echo base_url(); ?>theme/AdminLTE3/plugins/fontawesome-free/css/all.min.css">
|
||||
<!-- Ionicons -->
|
||||
<link rel="stylesheet" href="https://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css">
|
||||
<!-- Tempusdominus Bootstrap 4 -->
|
||||
<link rel="stylesheet"
|
||||
href="<?php echo base_url(); ?>theme/AdminLTE3/plugins/tempusdominus-bootstrap-4/css/tempusdominus-bootstrap-4.min.css">
|
||||
<!-- iCheck -->
|
||||
<link rel="stylesheet"
|
||||
href="<?php echo base_url(); ?>theme/AdminLTE3/plugins/icheck-bootstrap/icheck-bootstrap.min.css">
|
||||
<!-- JQVMap -->
|
||||
<link rel="stylesheet" href="<?php echo base_url(); ?>theme/AdminLTE3/plugins/jqvmap/jqvmap.min.css">
|
||||
<!-- Theme style -->
|
||||
<link rel="stylesheet" href="<?php echo base_url(); ?>theme/AdminLTE3/dist/css/adminlte.min.css">
|
||||
<!-- overlayScrollbars -->
|
||||
<link rel="stylesheet"
|
||||
href="<?php echo base_url(); ?>theme/AdminLTE3/plugins/overlayScrollbars/css/OverlayScrollbars.min.css">
|
||||
<!-- Daterange picker -->
|
||||
<link rel="stylesheet" href="<?php echo base_url(); ?>theme/AdminLTE3/plugins/daterangepicker/daterangepicker.css">
|
||||
<!-- summernote -->
|
||||
<link rel="stylesheet" href="<?php echo base_url(); ?>theme/AdminLTE3/plugins/summernote/summernote-bs4.min.css">
|
||||
<!-- DataTables -->
|
||||
<link rel="stylesheet"
|
||||
href="<?php echo base_url(); ?>theme/AdminLTE3/plugins/datatables-bs4/css/dataTables.bootstrap4.min.css">
|
||||
<link rel="stylesheet"
|
||||
href="<?php echo base_url(); ?>theme/AdminLTE3/plugins/datatables-responsive/css/responsive.bootstrap4.min.css">
|
||||
<link rel="stylesheet"
|
||||
href="<?php echo base_url(); ?>theme/AdminLTE3/plugins/datatables-buttons/css/buttons.bootstrap4.min.css">
|
||||
|
||||
</head>
|
||||
|
||||
<body class="hold-transition sidebar-mini layout-fixed accent-gray layout-footer-fixed text-sm">
|
||||
<div class="wrapper">
|
||||
<!-- Preloader -->
|
||||
<!--div class="preloader flex-column justify-content-center align-items-center">
|
||||
<img class="animation__shake" src="<?php echo base_url(); ?>theme/AdminLTE3/dist/img/AdminLTELogo.png" alt="AdminLTELogo" height="60" width="60"/>
|
||||
</div-->
|
||||
|
||||
<div class="row-fluid">
|
||||
<?php $this->load->view("includes/header"); ?>
|
||||
</div>
|
||||
<div id="main-container">
|
||||
<?php $this->load->view("includes/sidebar"); ?>
|
||||
<div class="content-wrapper">
|
||||
<?php $this->load->view($main_content); ?>
|
||||
</div>
|
||||
<footer class="main-footer">
|
||||
<?php $this->load->view("includes/footer"); ?>
|
||||
</footer>
|
||||
</div>
|
||||
<!-- Control Sidebar -->
|
||||
<aside class="control-sidebar control-sidebar-dark">
|
||||
<!-- Control sidebar content goes here -->
|
||||
</aside>
|
||||
<!-- /.control-sidebar -->
|
||||
</div>
|
||||
<!-- ./wrapper -->
|
||||
<!-- jQuery -->
|
||||
<script src="<?php echo base_url(); ?>theme/AdminLTE3/plugins/jquery/jquery.min.js"></script>
|
||||
<!-- jQuery UI 1.11.4 -->
|
||||
<script src="<?php echo base_url(); ?>theme/AdminLTE3/plugins/jquery-ui/jquery-ui.min.js"></script>
|
||||
<!-- Resolve conflict in jQuery UI tooltip with Bootstrap tooltip -->
|
||||
<script>
|
||||
$.widget.bridge('uibutton', $.ui.button)
|
||||
</script>
|
||||
<!-- Bootstrap 4 -->
|
||||
<script src="<?php echo base_url(); ?>theme/AdminLTE3/plugins/bootstrap/js/bootstrap.bundle.min.js"></script>
|
||||
<!-- ChartJS -->
|
||||
<script src="<?php echo base_url(); ?>theme/AdminLTE3/plugins/chart.js/Chart.min.js"></script>
|
||||
<!-- Sparkline -->
|
||||
<script src="<?php echo base_url(); ?>theme/AdminLTE3/plugins/sparklines/sparkline.js"></script>
|
||||
<!-- JQVMap -->
|
||||
<script src="<?php echo base_url(); ?>theme/AdminLTE3/plugins/jqvmap/jquery.vmap.min.js"></script>
|
||||
<script src="<?php echo base_url(); ?>theme/AdminLTE3/plugins/jqvmap/maps/jquery.vmap.usa.js"></script>
|
||||
<!-- jQuery Knob Chart -->
|
||||
<script src="<?php echo base_url(); ?>theme/AdminLTE3/plugins/jquery-knob/jquery.knob.min.js"></script>
|
||||
<!-- daterangepicker -->
|
||||
<script src="<?php echo base_url(); ?>theme/AdminLTE3/plugins/moment/moment.min.js"></script>
|
||||
<script src="<?php echo base_url(); ?>theme/AdminLTE3/plugins/daterangepicker/daterangepicker.js"></script>
|
||||
<!-- Tempusdominus Bootstrap 4 -->
|
||||
<script
|
||||
src="<?php echo base_url(); ?>theme/AdminLTE3/plugins/tempusdominus-bootstrap-4/js/tempusdominus-bootstrap-4.min.js">
|
||||
</script>
|
||||
<!-- Summernote -->
|
||||
<script src="<?php echo base_url(); ?>theme/AdminLTE3/plugins/summernote/summernote-bs4.min.js"></script>
|
||||
<!-- overlayScrollbars -->
|
||||
<script src="<?php echo base_url(); ?>theme/AdminLTE3/plugins/overlayScrollbars/js/jquery.overlayScrollbars.min.js">
|
||||
</script>
|
||||
<!-- Bootstrap Switch -->
|
||||
<script src="<?php echo base_url(); ?>theme/AdminLTE3/plugins/bootstrap-switch/js/bootstrap-switch.min.js"></script>
|
||||
<!-- InputMask -->
|
||||
<script src="<?php echo base_url(); ?>theme/AdminLTE3/plugins/inputmask/jquery.inputmask.min.js"></script>
|
||||
<!-- AdminLTE App -->
|
||||
<script src="<?php echo base_url(); ?>theme/AdminLTE3/dist/js/adminlte.js"></script>
|
||||
<!-- AdminLTE for demo purposes -->
|
||||
<!--script src="<?php echo base_url(); ?>theme/AdminLTE3/dist/js/demo.js"></script-->
|
||||
<!-- AdminLTE dashboard demo (This is only for demo purposes) -->
|
||||
<!--script src="<?php echo base_url(); ?>theme/AdminLTE3/dist/js/pages/dashboard.js"></script-->
|
||||
|
||||
<!-- DataTables & Plugins -->
|
||||
<script src="<?php echo base_url(); ?>theme/AdminLTE3/plugins/datatables/jquery.dataTables.min.js"></script>
|
||||
<script src="<?php echo base_url(); ?>theme/AdminLTE3/plugins/datatables-bs4/js/dataTables.bootstrap4.min.js">
|
||||
</script>
|
||||
<script
|
||||
src="<?php echo base_url(); ?>theme/AdminLTE3/plugins/datatables-responsive/js/dataTables.responsive.min.js">
|
||||
</script>
|
||||
<script
|
||||
src="<?php echo base_url(); ?>theme/AdminLTE3/plugins/datatables-responsive/js/responsive.bootstrap4.min.js">
|
||||
</script>
|
||||
<script src="<?php echo base_url(); ?>theme/AdminLTE3/plugins/datatables-buttons/js/dataTables.buttons.min.js">
|
||||
</script>
|
||||
<script src="<?php echo base_url(); ?>theme/AdminLTE3/plugins/datatables-buttons/js/buttons.bootstrap4.min.js">
|
||||
</script>
|
||||
<script src="<?php echo base_url(); ?>theme/AdminLTE3/plugins/jszip/jszip.min.js"></script>
|
||||
<script src="<?php echo base_url(); ?>theme/AdminLTE3/plugins/pdfmake/pdfmake.min.js"></script>
|
||||
<script src="<?php echo base_url(); ?>theme/AdminLTE3/plugins/pdfmake/vfs_fonts.js"></script>
|
||||
<script src="<?php echo base_url(); ?>theme/AdminLTE3/plugins/datatables-buttons/js/buttons.html5.min.js"></script>
|
||||
<script src="<?php echo base_url(); ?>theme/AdminLTE3/plugins/datatables-buttons/js/buttons.print.min.js"></script>
|
||||
<script src="<?php echo base_url(); ?>theme/AdminLTE3/plugins/datatables-buttons/js/buttons.colVis.min.js"></script>
|
||||
<script src="<?php echo base_url(); ?>theme/AdminLTE3/plugins/bs-custom-file-input/bs-custom-file-input.min.js">
|
||||
</script>
|
||||
<!-- Select2 -->
|
||||
<script src="<?php echo base_url(); ?>theme/AdminLTE3/plugins/select2/js/select2.full.min.js"></script>
|
||||
<!-- Page specific script -->
|
||||
<script>
|
||||
$(function() {
|
||||
$("#example1").DataTable({
|
||||
"dom": 'Brftip',
|
||||
"responsive": true,
|
||||
"lengthChange": false,
|
||||
"autoWidth": false,
|
||||
// "buttons": ["copy", "csv", "excel", "pdf", "print", "colvis"]
|
||||
buttons: [{
|
||||
extend: "copy",
|
||||
exportOptions: {
|
||||
columns: [':not(.act):visible']
|
||||
}
|
||||
},
|
||||
{
|
||||
extend: "print",
|
||||
orientation: "landscape",
|
||||
filename: "laporan_" + moment().format("YYYYMMDD"),
|
||||
customize: function(win) {
|
||||
$(win.document.body).css("font-size", "10pt").prepend();
|
||||
$(win.document.body)
|
||||
.find("table")
|
||||
.addClass("compact")
|
||||
.css("font-size", "inherit");
|
||||
},
|
||||
exportOptions: {
|
||||
columns: [':not(.act):visible']
|
||||
}
|
||||
},
|
||||
{
|
||||
extend: "excel",
|
||||
filename: "laporan_" + moment().format("YYYYMMDD"),
|
||||
exportOptions: {
|
||||
columns: [':not(.act):visible']
|
||||
}
|
||||
},
|
||||
{
|
||||
extend: "csv",
|
||||
filename: "laporan_" + moment().format("YYYYMMDD"),
|
||||
exportOptions: {
|
||||
columns: [':not(.act):visible']
|
||||
}
|
||||
},
|
||||
{
|
||||
extend: "pdfHtml5",
|
||||
text: "PDF",
|
||||
filename: "laporan_" + moment().format("YYYYMMDD"),
|
||||
orientation: "landscape",
|
||||
customize: function(doc) {},
|
||||
exportOptions: {
|
||||
columns: [':not(.act):visible']
|
||||
}
|
||||
},
|
||||
{
|
||||
extend: "colvis"
|
||||
},
|
||||
],
|
||||
}).buttons().container().appendTo('#example1_wrapper .col-md-6:eq(0)');
|
||||
$('#example2').DataTable({
|
||||
"dom": 'Brftip',
|
||||
"responsive": true,
|
||||
"lengthChange": false,
|
||||
"autoWidth": false,
|
||||
// "buttons": ["copy", "csv", "excel", "pdf", "print", "colvis"]
|
||||
buttons: [{
|
||||
extend: "copy",
|
||||
exportOptions: {
|
||||
columns: [':not(.act):visible']
|
||||
}
|
||||
},
|
||||
{
|
||||
extend: "print",
|
||||
orientation: "landscape",
|
||||
filename: "laporan_" + moment().format("YYYYMMDD"),
|
||||
customize: function(win) {
|
||||
$(win.document.body).css("font-size", "10pt").prepend();
|
||||
$(win.document.body)
|
||||
.find("table")
|
||||
.addClass("compact")
|
||||
.css("font-size", "inherit");
|
||||
},
|
||||
exportOptions: {
|
||||
columns: [':not(.act):visible']
|
||||
}
|
||||
},
|
||||
{
|
||||
extend: "excel",
|
||||
filename: "laporan_" + moment().format("YYYYMMDD"),
|
||||
exportOptions: {
|
||||
columns: [':not(.act):visible']
|
||||
}
|
||||
},
|
||||
{
|
||||
extend: "csv",
|
||||
filename: "laporan_" + moment().format("YYYYMMDD"),
|
||||
exportOptions: {
|
||||
columns: [':not(.act):visible']
|
||||
}
|
||||
},
|
||||
{
|
||||
extend: "pdfHtml5",
|
||||
text: "PDF",
|
||||
filename: "laporan_" + moment().format("YYYYMMDD"),
|
||||
orientation: "landscape",
|
||||
customize: function(doc) {},
|
||||
exportOptions: {
|
||||
columns: [':not(.act):visible']
|
||||
}
|
||||
},
|
||||
{
|
||||
extend: "colvis"
|
||||
},
|
||||
],
|
||||
})
|
||||
|
||||
$("input[data-bootstrap-switch]").each(function() {
|
||||
$(this).bootstrapSwitch('state', $(this).prop('checked'));
|
||||
})
|
||||
|
||||
//Initialize Select2 Elements
|
||||
$('.select2').select2()
|
||||
|
||||
//Initialize Select2 Elements
|
||||
$('.select2bs4').select2({
|
||||
theme: 'bootstrap4'
|
||||
})
|
||||
|
||||
$('#reservation').daterangepicker()
|
||||
|
||||
//Datemask dd/mm/yyyy
|
||||
$('#datemask').inputmask('dd/mm/yyyy', {
|
||||
'placeholder': 'dd/mm/yyyy'
|
||||
})
|
||||
//Datemask2 mm/dd/yyyy
|
||||
$('#datemask2').inputmask('mm/dd/yyyy', {
|
||||
'placeholder': 'mm/dd/yyyy'
|
||||
})
|
||||
//Money Euro
|
||||
$('[data-mask]').inputmask()
|
||||
|
||||
bsCustomFileInput.init();
|
||||
});
|
||||
</script>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>403 Forbidden</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<p>Directory access is forbidden.</p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,67 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
<title>SatuRSSA | Log in</title>
|
||||
|
||||
<!-- Google Font: Source Sans Pro -->
|
||||
<!--link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,400i,700&display=fallback"-->
|
||||
<!-- Font Awesome -->
|
||||
<link rel="stylesheet" href="<?php echo base_url();?>theme/AdminLTE3/plugins/fontawesome-free/css/all.min.css"/>
|
||||
<!-- icheck bootstrap -->
|
||||
<link rel="stylesheet" href="<?php echo base_url();?>theme/AdminLTE3/plugins/icheck-bootstrap/icheck-bootstrap.min.css"/>
|
||||
<!-- Theme style -->
|
||||
<link rel="stylesheet" href="<?php echo base_url();?>theme/AdminLTE3/dist/css/adminlte.min.css"/>
|
||||
</head>
|
||||
<body class="hold-transition login-page">
|
||||
<div class="login-box">
|
||||
<div class="login-logo">
|
||||
<a><b>Satu</b>RSSA</a>
|
||||
</div>
|
||||
<div class="card">
|
||||
<div class="card-body login-card-body">
|
||||
<p class="login-box-msg">Masukan Nama User & Password</p>
|
||||
<p><?php echo $error?></p>
|
||||
<script>
|
||||
setTimeout(function() {
|
||||
$('#alert').hide('fast');
|
||||
}, 3000);
|
||||
</script>
|
||||
<form action="<?php echo base_url();?>index.php/ps_login/process" name="process" method="post" autocomplete="off">
|
||||
<div class="input-group mb-3">
|
||||
<input id="username" name="username" type="text" class="form-control" placeholder="Username"/>
|
||||
<div class="input-group-append">
|
||||
<div class="input-group-text">
|
||||
<span class="fas fa-user"></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="input-group mb-3">
|
||||
<input id="password" name="password" type="password" class="form-control" placeholder="Password"/>
|
||||
<div class="input-group-append">
|
||||
<div class="input-group-text">
|
||||
<span class="fas fa-lock"></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-6">
|
||||
<button type="submit" class="btn btn-info btn-block">Sign In</button>
|
||||
</div>
|
||||
<div class="col-6">
|
||||
<a href="https://auth.rssa.top/realms/rssa/protocol" class="btn btn-warning btn-block">Keycloak</a>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- jQuery -->
|
||||
<script src="<?php echo base_url();?>theme/AdminLTE3/plugins/jquery/jquery.min.js"></script>
|
||||
<!-- Bootstrap 4 -->
|
||||
<script src="<?php echo base_url();?>theme/AdminLTE3/plugins/bootstrap/js/bootstrap.bundle.min.js"></script>
|
||||
<!-- AdminLTE App -->
|
||||
<script src="<?php echo base_url();?>theme/AdminLTE3/dist/js/adminlte.min.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,301 @@
|
||||
<section class="content-header">
|
||||
<div class="container-fluid">
|
||||
<div class="row mb-2">
|
||||
<div class="col-sm-6">
|
||||
<h1>
|
||||
|
||||
</h1>
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<ol class="breadcrumb float-sm-right">
|
||||
<li class="breadcrumb-item"><a href="<?php echo base_url();?>">Dashboard</a></li>
|
||||
<li class="breadcrumb-item"><?php echo $parent;?></li>
|
||||
<li class="breadcrumb-item"><a href="<?php echo base_url()."index.php/".$link;?>"><?php echo $titlebefore;?></a></li>
|
||||
<li class="breadcrumb-item active"><?php echo $title;?></li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<!-- Main content -->
|
||||
<section class="content">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="card card-default">
|
||||
<?php
|
||||
$setdisabled = "";
|
||||
$setid = "";
|
||||
$setnama = "";
|
||||
$setkode = "";
|
||||
$setketerangan = "";
|
||||
$setquotabangku = "";
|
||||
|
||||
$setstatus = 1;
|
||||
if ($actionform=="prosesview"){
|
||||
$setdisabled="disabled='disabled'";
|
||||
}
|
||||
if ($actionform!="prosesadd"){
|
||||
$setid = $kl->row('mk_id');
|
||||
$setnama = $kl->row('mk_nama');
|
||||
$setkode = $kl->row('mk_kode');
|
||||
$setketerangan = $kl->row('mk_ket');
|
||||
$setquotabangku = $kl->row('mk_quota_bangku');
|
||||
$setstatus = $kl->row('mk_status');
|
||||
}
|
||||
?>
|
||||
<form action="<?php echo(base_url()); ?>index.php/<?php echo $link;?>/<?php echo $actionform; ?>" method="post" autocomplete="off">
|
||||
<div class="card-header">
|
||||
<h3 class="card-title"><?php echo $title;?></h3>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<?php if(validation_errors()){ ?>
|
||||
<div id="alert" class="alert alert-danger alert-dismissable">
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
<i class="icon fa fa-ban"></i> Alert!
|
||||
<?php echo validation_errors() ?>
|
||||
</div>
|
||||
<script>
|
||||
setTimeout(function() {
|
||||
$('#alert').hide('fast');
|
||||
}, 5000);
|
||||
</script>
|
||||
<?php } ?>
|
||||
<div class="form-group row">
|
||||
<label for="nama" class="col-sm-2 col-form-label">Nama</label>
|
||||
<div class="col-sm-3">
|
||||
<input type="hidden" name="id" value="<?php echo $setid;?>"/>
|
||||
<input id="nama" name="nama" type="text" <?php echo $setdisabled;?> class="form-control" placeholder="Nama Klinik" value="<?php echo $setnama;?>" />
|
||||
</div>
|
||||
<div class="col-sm-1">
|
||||
<input id="kode" name="kode" type="text" <?php echo $setdisabled;?> class="form-control" placeholder="Kode" value="<?php echo $setkode;?>" maxlength="2" style="text-transform:uppercase" />
|
||||
</div>
|
||||
<div class="col-sm-2">
|
||||
<input id="quotabangku" name="quotabangku" type="number" <?php echo $setdisabled;?> class="form-control" placeholder="Quota Bangku" value="<?php echo $setquotabangku;?>" />
|
||||
</div>
|
||||
<div class="col-sm-4">
|
||||
<input id="keterangan" name="keterangan" type="text" <?php echo $setdisabled;?> class="form-control" placeholder="Keterangan" value="<?php echo $setketerangan;?>" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row">
|
||||
<label class="col-sm-2 col-form-label">Jadwal Klinik</label>
|
||||
<div class="col-sm-10">
|
||||
<table class="table table-sm table-bordered table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="width: 5%">#</th>
|
||||
<th style="width: 10%">Hari</th>
|
||||
<th style="width: 10%">Shift</th>
|
||||
<th style="width: 10%">Quota</th>
|
||||
<th style="width: 10%">Buka</th>
|
||||
<th style="width: 10%">Tutup</th>
|
||||
<th style="width: 5%">Pilih</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
<?php
|
||||
for($i=1;$i<=7;$i++){
|
||||
$hari = ""; $haritext = "";
|
||||
switch ($i) {
|
||||
case 1: $hari = "senin"; $haritext = "Senin"; break;
|
||||
case 2: $hari = "selasa"; $haritext = "Selasa"; break;
|
||||
case 3: $hari = "rabu"; $haritext = "Rabu"; break;
|
||||
case 4: $hari = "kamis"; $haritext = "Kamis"; break;
|
||||
case 5: $hari = "jumat"; $haritext = "Jum'at"; break;
|
||||
case 6: $hari = "sabtu"; $haritext = "Sabtu"; break;
|
||||
case 7: $hari = "minggu"; $haritext = "Minggu"; break;
|
||||
}
|
||||
|
||||
$setidjadwal = "";
|
||||
$setshiftjadwal = "";
|
||||
$setquotajadwal = "";
|
||||
$setbukajadwal = "";
|
||||
$settutupjadwal = "";
|
||||
$setcheckedjadwal = "";
|
||||
$setdisabledjadawal = "disabled='disabled'";
|
||||
if ($actionform!="prosesadd"){
|
||||
foreach($jd as $datjadwal){
|
||||
if($datjadwal->mkj_kode_jadwal==$i){
|
||||
$setidjadwal = $datjadwal->mkj_id;
|
||||
$setshiftjadwal = $datjadwal->mkj_jumlah_shift;
|
||||
$setquotajadwal = $datjadwal->mkj_total_quota;
|
||||
$setbukajadwal = $datjadwal->mkj_jam_buka;
|
||||
$settutupjadwal = $datjadwal->mkj_jam_tutup;
|
||||
$setcheckedjadwal = "checked";
|
||||
$setdisabledjadawal = "";
|
||||
}
|
||||
}
|
||||
}
|
||||
?>
|
||||
<tr>
|
||||
<td class="bg-info"><?php echo $i;?></td>
|
||||
<td class="bg-info"><?php echo $haritext;?></td>
|
||||
<td>
|
||||
<input <?php echo $setdisabledjadawal;?> onkeyup="addcolomjadwal(<?php echo $i;?>)" id="shift<?php echo $i;?>" name="shift<?php echo $hari;?>" type="number" <?php echo $setdisabled;?> class="form-control form-control-sm" value="<?php echo $setshiftjadwal;?>" />
|
||||
<input hidden id='idjadwal<?php echo $i;?>' name="idjadwal<?php echo $hari;?>" type="text" value="<?php echo $setidjadwal;?>" />
|
||||
</td>
|
||||
<td>
|
||||
<input <?php echo $setdisabledjadawal;?> onkeyup="bagiquota(<?php echo $i;?>)" id="quota<?php echo $i;?>" name="quota<?php echo $hari;?>" type="number" <?php echo $setdisabled;?> class="form-control form-control-sm" value="<?php echo $setquotajadwal;?>" />
|
||||
</td>
|
||||
<td>
|
||||
<input <?php echo $setdisabledjadawal;?> onkeyup="bagijam(<?php echo $i;?>)" id="jambuka<?php echo $i;?>" name="jambuka<?php echo $hari;?>" type="text" <?php echo $setdisabled;?> class="form-control form-control-sm" data-inputmask="'mask': ['99:99', '99:99']" data-mask value="<?php echo $setbukajadwal;?>" />
|
||||
</td>
|
||||
<td>
|
||||
<input <?php echo $setdisabledjadawal;?> onkeyup="bagijam(<?php echo $i;?>)" id="jamtutup<?php echo $i;?>" name="jamtutup<?php echo $hari;?>" type="text" <?php echo $setdisabled;?> class="form-control form-control-sm" data-inputmask="'mask': ['99:99', '99:99']" data-mask value="<?php echo $settutupjadwal;?>" />
|
||||
</td>
|
||||
<td style="text-align: center;">
|
||||
<div class="custom-control custom-checkbox">
|
||||
<input <?php echo $setcheckedjadwal;?> onchange="enablecolom(<?php echo $i;?>)" <?php echo $setdisabled; ?> id="jadwal<?php echo $i;?>" name="jadwalklinik[]" class="custom-control-input custom-control-input-danger custom-control-input-outline" type="checkbox" id="customCheckbox5" value="<?php echo $i;?>" />
|
||||
<label for="jadwal<?php echo $i;?>" class="custom-control-label"></label>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="7" id="app<?php echo $i;?>">
|
||||
<?php
|
||||
if ($actionform!="prosesadd"){
|
||||
$numshift=0;
|
||||
echo "<table>";
|
||||
foreach($sh as $datshift){
|
||||
if($datshift->mks_klinik_jadwal_id==$setidjadwal){
|
||||
$numshift++;
|
||||
$sjbuka = $datshift->mks_jam_buka;
|
||||
$splitsjb = explode(":",$sjbuka);
|
||||
?>
|
||||
<tr class="shiftremove<?php echo $i;?>">
|
||||
<td style="width: 10%">Mulai Shift <?php echo $numshift;?></td>
|
||||
<td style="width: 10%"><input id="jambukashift<?php echo $i.$numshift;?>" name="jambuka<?php echo $i;?>[]" type="text" class="form-control form-control-sm" placeholder="00 (Jam)" maxlength="2" value="<?php echo $splitsjb[0];?>"/></td>
|
||||
<td style="width: 2%;text-align: center;">:</td>
|
||||
<td style="width: 10%"><input id="menitbukashift<?php echo $i.$numshift;?>" name="menitbuka<?php echo $i;?>[]" type="text" class="form-control form-control-sm" placeholder="00 (Menit)" maxlength="2" value="<?php echo $splitsjb[1];?>"/></td>
|
||||
<td style="width: 5%">Quota Shift </td>
|
||||
<td style="width: 10%">
|
||||
<input onkeyup="tambahquota(<?php echo $i;?>)" id="quotashift<?php echo $i.$numshift;?>" name="quotashift<?php echo $i;?>[]" type="number" class="form-control form-control-sm" value="<?php echo $datshift->mks_quota;?>"/>
|
||||
<input hidden name="idshift<?php echo $i;?>[]" type="text" value="<?php echo $datshift->mks_id;?>"/>
|
||||
</td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
echo "</table>";
|
||||
}
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
<script>
|
||||
function enablecolom(num){
|
||||
if( $('#jadwal'+num).is(':checked') ){
|
||||
$('.shiftremove'+num).remove();
|
||||
document.getElementById("shift"+num).disabled = false;
|
||||
document.getElementById("quota"+num).disabled = false;
|
||||
document.getElementById("jambuka"+num).disabled = false;
|
||||
document.getElementById("jamtutup"+num).disabled = false;
|
||||
}
|
||||
else{
|
||||
$("#shift"+num).val("");
|
||||
$("#quota"+num).val("");
|
||||
$("#jambuka"+num).val("");
|
||||
$("#jamtutup"+num).val("");
|
||||
document.getElementById("shift"+num).disabled = true;
|
||||
document.getElementById("quota"+num).disabled = true;
|
||||
document.getElementById("jambuka"+num).disabled = true;
|
||||
document.getElementById("jamtutup"+num).disabled = true;
|
||||
var idjadwal = $("#idjadwal"+num).val();
|
||||
$('.shiftremove'+num).remove();
|
||||
$("#app"+num).append("<div class='shiftremove"+num+"'><input hidden name='iddeljadwal"+num+"' type='text' value='"+idjadwal+"' /></div>");
|
||||
}
|
||||
}
|
||||
|
||||
function addcolomjadwal(num){
|
||||
$('.shiftremove'+num).remove();
|
||||
var jumapp = $("#shift"+num).val();
|
||||
for(let i=1;i<=jumapp;i++){
|
||||
$("#app"+num).append(" <tr class='shiftremove"+num+"'>"+
|
||||
"<td style='width: 10%'>Mulai Shift "+i+"</td>"+
|
||||
"<td style='width: 10%'><input id='jambukashift"+num+i+"' name='jambuka"+num+"[]' type='text' class='form-control form-control-sm' placeholder='00 (Jam)' maxlength='2' /></td>"+
|
||||
"<td style='width: 2%;text-align: center;'>:</td>"+
|
||||
"<td style='width: 10%'><input id='menitbukashift"+num+i+"' name='menitbuka"+num+"[]' type='text' class='form-control form-control-sm' placeholder='00 (Menit)' maxlength='2' /></td>"+
|
||||
"<td style='width: 5%'>Quota Shift </td>"+
|
||||
"<td style='width: 10%'><input onkeyup='tambahquota("+num+")' id='quotashift"+num+i+"' name='quotashift"+num+"[]' type='number' class='form-control form-control-sm' /></td>"+
|
||||
"</tr>");
|
||||
}
|
||||
this.bagiquota(num);
|
||||
this.bagijam(num);
|
||||
}
|
||||
|
||||
function bagiquota(num){
|
||||
var shift = parseInt($("#shift"+num).val());
|
||||
var quota = parseInt($("#quota"+num).val());
|
||||
var hasil = quota / shift;
|
||||
for(let i=1;i<=shift;i++){
|
||||
$("#quotashift"+num+i).val(Math.floor(hasil));
|
||||
}
|
||||
}
|
||||
|
||||
function tambahquota(num){
|
||||
var shift = parseInt($("#shift"+num).val());
|
||||
var hasil = 0;
|
||||
for(let i=1;i<=shift;i++){
|
||||
hasil = parseInt(hasil) + parseInt($("#quotashift"+num+i).val());
|
||||
}
|
||||
$("#quota"+num).val(hasil);
|
||||
}
|
||||
|
||||
function bagijam(num){
|
||||
var shift = parseInt($("#shift"+num).val());
|
||||
var jambuka = new Date("2023-01-01 "+$("#jambuka"+num).val());
|
||||
var jamtutup= new Date("2023-01-01 "+$("#jamtutup"+num).val());
|
||||
var diff = Math.abs(jamtutup - jambuka);
|
||||
var minutes = Math.floor((diff/1000)/60);
|
||||
var selshift= parseInt(minutes)/parseInt(shift);
|
||||
|
||||
for(let i=1;i<=shift;i++){
|
||||
if(parseInt(i)==1){
|
||||
var h = jambuka.getHours("H");
|
||||
var m = jambuka.getMinutes("M");
|
||||
if(h<10){$("#jambukashift"+num+i).val("0"+h);
|
||||
}else{$("#jambukashift"+num+i).val(h);}
|
||||
if(m<10){$("#menitbukashift"+num+i).val("0"+m);
|
||||
}else{$("#menitbukashift"+num+i).val(m);}
|
||||
}else{
|
||||
jambuka.setMinutes(jambuka.getMinutes() + selshift);
|
||||
var h = jambuka.getHours("H");
|
||||
var m = jambuka.getMinutes("M");
|
||||
if(h<10){$("#jambukashift"+num+i).val("0"+h);
|
||||
}else{$("#jambukashift"+num+i).val(h);}
|
||||
if(m<10){$("#menitbukashift"+num+i).val("0"+m);
|
||||
}else{$("#menitbukashift"+num+i).val(m);}
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="form-group row">
|
||||
<label class="col-sm-2 col-form-label"></label>
|
||||
<div class="col-sm-2">
|
||||
<input id="status" name="status" type="checkbox" value="1" <?php echo $setdisabled;?> <?php if($setstatus==1){echo "checked";}?> data-bootstrap-switch data-off-color="danger" data-on-color="success"/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card-footer">
|
||||
<?php if ($actionform!="prosesview"){ ?>
|
||||
<button type="submit" class="btn btn-info">Simpan</button>
|
||||
<?php } ?>
|
||||
<a href="<?php echo base_url()."index.php/".$link;?>" class="btn btn-default float-right">Cancel</a>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
@@ -0,0 +1,152 @@
|
||||
<section class="content-header">
|
||||
<div class="container-fluid">
|
||||
<div class="row mb-2">
|
||||
<div class="col-sm-6">
|
||||
<h1>
|
||||
<?php
|
||||
//---------------------start check access action TAMBAH-------------------//
|
||||
if(!empty($this->vartambah)){
|
||||
echo "<a href='".base_url()."index.php/$link/add' class='btn btn-outline-info btn-sm'>Tambah Baru</a>";
|
||||
}
|
||||
//---------------------end check access action TAMBAH-------------------//
|
||||
?>
|
||||
</h1>
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<ol class="breadcrumb float-sm-right">
|
||||
<li class="breadcrumb-item"><a href="<?php echo base_url();?>">Dashboard</a></li>
|
||||
<li class="breadcrumb-item"><?php echo $parent;?></li>
|
||||
<li class="breadcrumb-item active"><?php echo $title;?></li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<!-- Main content -->
|
||||
<section class="content">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="card card-default">
|
||||
<div class="card-header">
|
||||
<h3 class="card-title"><?php echo $title;?></h3>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<?php if($this->session->flashdata('message')){?>
|
||||
<div id="alert" class="alert alert-success alert-dismissable">
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
<i class="icon fa fa-check"></i> Alert!
|
||||
<?php echo $this->session->flashdata('message');?>
|
||||
</div>
|
||||
<?php }?>
|
||||
<script>
|
||||
setTimeout(function() {
|
||||
$('#alert').hide('fast');
|
||||
}, 3000);
|
||||
</script>
|
||||
<table id="example1" class="table table-bordered table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>No</th>
|
||||
<th>Nama</th>
|
||||
<th>Kode</th>
|
||||
<th>Keterangan</th>
|
||||
<th>Quota Bangku</th>
|
||||
<th>Jadwal</th>
|
||||
<th>Status</th>
|
||||
<th width="15%">Action</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$no=0;
|
||||
foreach ($kl as $dat) {
|
||||
$no++;
|
||||
//---------------------start check access action-------------------//
|
||||
$editbutton = "";
|
||||
$viewbutton = "";
|
||||
$deletebutton = "";
|
||||
$disabledbutton = "";
|
||||
$aktifbutton = "";
|
||||
|
||||
if(!empty($this->varview)){
|
||||
$viewbutton="<a href='".base_url()."index.php/$link/view/".$dat->mk_id."' class='btn btn-info btn-xs'><i class='fa fa-eye'></i></a> ";
|
||||
}
|
||||
if(!empty($this->varedit)){
|
||||
$editbutton="<a href='".base_url()."index.php/$link/edit/".$dat->mk_id."' class='btn btn-warning btn-xs'><i class='fa fa-edit'></i></a> ";
|
||||
}
|
||||
if(!empty($this->vardelete)){
|
||||
$deletebutton="<a onclick='del(".$dat->mk_id.")' class='btn btn-danger btn-xs'><i class='fa fa-times'></i></a> ";
|
||||
}
|
||||
|
||||
$setstatus = "<span class='badge bg-teal'> Active</span>";
|
||||
if($dat->mk_status==0){
|
||||
$setstatus = "<span class='badge bg-red'> Disabled</span>";
|
||||
if(!empty($this->varedit)){
|
||||
$aktifbutton="<a onclick='aktif(".$dat->mk_id.")' class='btn btn-outline-success btn-xs'><i class='fa fa-check'></i></a> ";
|
||||
}
|
||||
}else{
|
||||
if(!empty($this->varedit)){
|
||||
$disabledbutton="<a onclick='disabled(".$dat->mk_id.")' class='btn btn-outline-danger btn-xs'><i class='fa fa-ban'></i></a> ";
|
||||
}
|
||||
}
|
||||
|
||||
$jadwal = "";
|
||||
foreach($jd as $datjadwal){
|
||||
if($datjadwal->mkj_klinik_id==$dat->mk_id){
|
||||
$jadwal = $jadwal." <span class='badge bg-info'>".$datjadwal->mkj_jadwal." (".$datjadwal->mkj_jumlah_shift." Shift / ".$datjadwal->mkj_total_quota.")</span>";
|
||||
}
|
||||
}
|
||||
|
||||
echo("
|
||||
<tr>
|
||||
<input type='hidden' id='isi".$dat->mk_id."' value='".$dat->mk_nama."'>
|
||||
<td>".$no."</td>
|
||||
<td>".$dat->mk_nama."</td>
|
||||
<td>".$dat->mk_kode."</td>
|
||||
<td>".$dat->mk_ket."</td>
|
||||
<td>".$dat->mk_quota_bangku."</td>
|
||||
<td>".$jadwal."</td>
|
||||
<td style='text-align: center;'>".$setstatus."</td>
|
||||
<td>".$viewbutton.$editbutton.$disabledbutton.$aktifbutton.$deletebutton."</td>
|
||||
</tr>
|
||||
");
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<script type="text/javascript">
|
||||
var url="<?php echo base_url();?>";
|
||||
function disabled(id){
|
||||
var isi=document.getElementById('isi'+id).value;
|
||||
var r=confirm("Apakah anda ingin Disbaled Klinik '"+isi+"'?")
|
||||
if (r==true)
|
||||
window.location = url+"index.php/ps_klinik/disabled/"+id;
|
||||
else
|
||||
return false;
|
||||
}
|
||||
|
||||
function aktif(id){
|
||||
var isi=document.getElementById('isi'+id).value;
|
||||
var r=confirm("Apakah anda ingin Aktifkan Klinik '"+isi+"'?")
|
||||
if (r==true)
|
||||
window.location = url+"index.php/ps_klinik/active/"+id;
|
||||
else
|
||||
return false;
|
||||
}
|
||||
|
||||
function del(id){
|
||||
var isi=document.getElementById('isi'+id).value;
|
||||
var r=confirm("Apakah anda ingin Menghapus Klinik '"+isi+"'?")
|
||||
if (r==true)
|
||||
window.location = url+"index.php/ps_klinik/delete/"+id;
|
||||
else
|
||||
return false;
|
||||
}
|
||||
</script>
|
||||
@@ -0,0 +1,205 @@
|
||||
<section class="content-header">
|
||||
<div class="container-fluid">
|
||||
<div class="row mb-2">
|
||||
<div class="col-sm-6">
|
||||
<h1>
|
||||
|
||||
</h1>
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<ol class="breadcrumb float-sm-right">
|
||||
<li class="breadcrumb-item"><a href="<?php echo base_url();?>">Dashboard</a></li>
|
||||
<li class="breadcrumb-item"><?php echo $parent;?></li>
|
||||
<li class="breadcrumb-item"><a href="<?php echo base_url()."index.php/".$link;?>"><?php echo $titlebefore;?></a></li>
|
||||
<li class="breadcrumb-item active"><?php echo $title;?></li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<!-- Main content -->
|
||||
<section class="content">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="card card-default">
|
||||
<?php
|
||||
$setdisabled = "";
|
||||
$setid = "";
|
||||
$setnama = "";
|
||||
$setkode = "";
|
||||
$setquota = "";
|
||||
$setpembayaran = "";
|
||||
$setonline = "";
|
||||
$setpelayanan = "";
|
||||
$setstatus = 1;
|
||||
if ($actionform=="prosesview"){
|
||||
$setdisabled="disabled='disabled'";
|
||||
}
|
||||
if ($actionform!="prosesadd"){
|
||||
$setid = $lkrj->row('mlrj_id');
|
||||
$setnama = $lkrj->row('mlrj_nama');
|
||||
$setkode = $lkrj->row('mlrj_kode');
|
||||
$setquota = $lkrj->row('mlrj_quotabangku');
|
||||
$setpembayaran = $lkrj->row('mlrj_pembayaran');
|
||||
$setonline = $lkrj->row('mlrj_online');
|
||||
$setpelayanan = $lkrj->row('mlrj_pelayanan');
|
||||
$setstatus = $lkrj->row('mlrj_status');
|
||||
}
|
||||
?>
|
||||
<form action="<?php echo(base_url()); ?>index.php/<?php echo $link;?>/<?php echo $actionform; ?>" method="post" autocomplete="off">
|
||||
<div class="card-header">
|
||||
<h3 class="card-title"><?php echo $title;?></h3>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<?php if(validation_errors()){ ?>
|
||||
<div id="alert" class="alert alert-danger alert-dismissable">
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
<i class="icon fa fa-ban"></i> Alert!
|
||||
<?php echo validation_errors() ?>
|
||||
</div>
|
||||
<script>
|
||||
setTimeout(function() {
|
||||
$('#alert').hide('fast');
|
||||
}, 5000);
|
||||
</script>
|
||||
<?php } ?>
|
||||
<div class="form-group row">
|
||||
<label for="nama" class="col-sm-2 col-form-label">Nama</label>
|
||||
<div class="col-sm-3">
|
||||
<input type="hidden" name="id" value="<?php echo $setid;?>"/>
|
||||
<input id="nama" name="nama" type="text" <?php echo $setdisabled;?> class="form-control" placeholder="Nama Loket" value="<?php echo $setnama;?>" />
|
||||
</div>
|
||||
<div class="col-sm-1">
|
||||
<input id="kode" name="kode" type="text" <?php echo $setdisabled;?> class="form-control" placeholder="Kode" value="<?php echo $setkode;?>" maxlength="2" style="text-transform:uppercase" />
|
||||
</div>
|
||||
<div class="col-sm-2">
|
||||
<input id="quota" name="quota" type="number" <?php echo $setdisabled;?> class="form-control" placeholder="Quota Bangku" value="<?php echo $setquota;?>" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label for="online" class="col-sm-2 col-form-label">Keterangan</label>
|
||||
<div class="col-sm-6">
|
||||
<select <?php echo $setdisabled; ?> id="online" name="online" class="form-control">
|
||||
<option value="">Pilih Keterangan</option>
|
||||
<option <?php if($setonline==1){echo "selected='selected'";} ?> value="1">Online</option>
|
||||
<option <?php if($setonline==2){echo "selected='selected'";} ?> value="2">Offline</option>
|
||||
<option <?php if($setonline==3){echo "selected='selected'";} ?> value="3">Semua</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label for="pembayaran" class="col-sm-2 col-form-label">Pembayaran</label>
|
||||
<div class="col-sm-6">
|
||||
<table class="table table-sm table-bordered table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="width: 10px">#</th>
|
||||
<th>Pembayaran</th>
|
||||
<th style="width: 40px">Pilih</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$no=0;
|
||||
foreach($pm as $dat){
|
||||
$no++;
|
||||
$checkedpem = "";
|
||||
$pecahpem = explode("|",$setpembayaran);
|
||||
$jumpem = (count($pecahpem));
|
||||
for($y=0;$y<=$jumpem;$y++){
|
||||
if(isset($pecahpem[$y])){
|
||||
if($pecahpem[$y]==$dat->mp_id){
|
||||
$checkedpem = "Checked";
|
||||
}
|
||||
}
|
||||
}
|
||||
?>
|
||||
<tr>
|
||||
<td><?php echo $no."."; ?></td>
|
||||
<td><?php echo $dat->mp_nama; ?></td>
|
||||
<td>
|
||||
<div class="custom-control custom-checkbox">
|
||||
<input <?php echo $setdisabled; echo $checkedpem;?> id="pembayaran<?php echo $no;?>" name="pembayaran[]" class="custom-control-input custom-control-input-danger custom-control-input-outline" type="checkbox" id="customCheckbox5" value="<?php echo $dat->mp_id;?>" />
|
||||
<label for="pembayaran<?php echo $no;?>" class="custom-control-label"></label>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row">
|
||||
<label for="Pelayanan" class="col-sm-2 col-form-label">Pelayanan</label>
|
||||
<div class="col-sm-6">
|
||||
<table class="table table-sm table-bordered table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="width: 10px">#</th>
|
||||
<th style="width: 100px">Kode</th>
|
||||
<th>Klinik</th>
|
||||
<th style="width: 40px">Pilih</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$no=0;
|
||||
foreach($kl as $dat){
|
||||
$no++;
|
||||
$checkedpel = "";
|
||||
$pecahpel = explode("|",$setpelayanan);
|
||||
$jumpel = (count($pecahpel));
|
||||
for($y=0;$y<=$jumpel;$y++){
|
||||
if(isset($pecahpel[$y])){
|
||||
if($pecahpel[$y]==$dat->mk_id){
|
||||
$checkedpel = "Checked";
|
||||
}
|
||||
}
|
||||
}
|
||||
?>
|
||||
<tr>
|
||||
<td><?php echo $no."."; ?></td>
|
||||
<td><?php echo $dat->mk_kode; ?></td>
|
||||
<td><?php echo $dat->mk_nama; ?></td>
|
||||
<td>
|
||||
<label>
|
||||
<div class="custom-control custom-checkbox">
|
||||
<input <?php echo $setdisabled; echo $checkedpel; ?> id="pelayanan<?php echo $no;?>" name="pelayanan[]" class="custom-control-input custom-control-input-danger custom-control-input-outline" type="checkbox" id="customCheckbox5" value="<?php echo $dat->mk_id;?>" />
|
||||
<label for="pelayanan<?php echo $no;?>" class="custom-control-label"></label>
|
||||
</div>
|
||||
</label>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row">
|
||||
<label class="col-sm-2 col-form-label"></label>
|
||||
<div class="col-sm-2">
|
||||
<input id="status" name="status" type="checkbox" value="1" <?php echo $setdisabled;?> <?php if($setstatus==1){echo "checked";}?> data-bootstrap-switch data-off-color="danger" data-on-color="success"/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card-footer">
|
||||
<?php if ($actionform!="prosesview"){ ?>
|
||||
<button type="submit" class="btn btn-info">Simpan</button>
|
||||
<?php } ?>
|
||||
<a href="<?php echo base_url()."index.php/".$link;?>" class="btn btn-default float-right">Cancel</a>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
@@ -0,0 +1,188 @@
|
||||
<section class="content-header">
|
||||
<div class="container-fluid">
|
||||
<div class="row mb-2">
|
||||
<div class="col-sm-6">
|
||||
<h1>
|
||||
<?php
|
||||
//---------------------start check access action TAMBAH-------------------//
|
||||
if(!empty($this->vartambah)){
|
||||
echo "<a href='".base_url()."index.php/$link/add' class='btn btn-outline-info btn-sm'>Tambah Baru</a>";
|
||||
}
|
||||
//---------------------end check access action TAMBAH-------------------//
|
||||
?>
|
||||
</h1>
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<ol class="breadcrumb float-sm-right">
|
||||
<li class="breadcrumb-item"><a href="<?php echo base_url();?>">Dashboard</a></li>
|
||||
<li class="breadcrumb-item"><?php echo $parent;?></li>
|
||||
<li class="breadcrumb-item active"><?php echo $title;?></li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<!-- Main content -->
|
||||
<section class="content">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="card card-default">
|
||||
<div class="card-header">
|
||||
<h3 class="card-title"><?php echo $title;?></h3>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<?php if($this->session->flashdata('message')){?>
|
||||
<div id="alert" class="alert alert-success alert-dismissable">
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
<i class="icon fa fa-check"></i> Alert!
|
||||
<?php echo $this->session->flashdata('message');?>
|
||||
</div>
|
||||
<?php }?>
|
||||
<script>
|
||||
setTimeout(function() {
|
||||
$('#alert').hide('fast');
|
||||
}, 3000);
|
||||
</script>
|
||||
<table id="example1" class="table table-bordered table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>No</th>
|
||||
<th>Nama</th>
|
||||
<th>Kode</th>
|
||||
<th>Quota</th>
|
||||
<th>Pelayanan</th>
|
||||
<th>Pembayaran</th>
|
||||
<th>Online</th>
|
||||
<th>Status</th>
|
||||
<th width="15%">Action</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$no=0;
|
||||
foreach ($lkrj as $dat) {
|
||||
$no++;
|
||||
//---------------------start check access action-------------------//
|
||||
$editbutton = "";
|
||||
$viewbutton = "";
|
||||
$deletebutton = "";
|
||||
$disabledbutton = "";
|
||||
$aktifbutton = "";
|
||||
|
||||
if(!empty($this->varview)){
|
||||
$viewbutton="<a href='".base_url()."index.php/$link/view/".$dat->mlrj_id."' class='btn btn-info btn-xs'><i class='fa fa-eye'></i></a> ";
|
||||
}
|
||||
if(!empty($this->varedit)){
|
||||
$editbutton="<a href='".base_url()."index.php/$link/edit/".$dat->mlrj_id."' class='btn btn-warning btn-xs'><i class='fa fa-edit'></i></a> ";
|
||||
}
|
||||
if(!empty($this->vardelete)){
|
||||
$deletebutton="<a onclick='del(".$dat->mlrj_id.")' class='btn btn-danger btn-xs'><i class='fa fa-times'></i></a> ";
|
||||
}
|
||||
|
||||
$setstatus = "<span class='badge bg-teal'> Active</span>";
|
||||
if($dat->mlrj_status==0){
|
||||
$setstatus = "<span class='badge bg-red'> Disabled</span>";
|
||||
if(!empty($this->varedit)){
|
||||
$aktifbutton="<a onclick='aktif(".$dat->mlrj_id.")' class='btn btn-outline-success btn-xs'><i class='fa fa-check'></i></a> ";
|
||||
}
|
||||
}else{
|
||||
if(!empty($this->varedit)){
|
||||
$disabledbutton="<a onclick='disabled(".$dat->mlrj_id.")' class='btn btn-outline-danger btn-xs'><i class='fa fa-ban'></i></a> ";
|
||||
}
|
||||
}
|
||||
|
||||
//---------------------end check access action-------------------//
|
||||
//----------start pelayanan-------------//
|
||||
$pecahpel = explode("|",$dat->mlrj_pelayanan);
|
||||
$jumpel = (count($pecahpel));
|
||||
$infoklinik = "";
|
||||
for($x=0;$x<=$jumpel;$x++){
|
||||
if(isset($pecahpel[$x])){
|
||||
foreach ($kl as $datkli){
|
||||
if($pecahpel[$x]==$datkli->mk_id){
|
||||
$infoklinik=$infoklinik."<small class='badge badge-success'>".$datkli->mk_nama."</small> ";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
//------------end pelayanan-------------//
|
||||
|
||||
//----------start pembayaran------------//
|
||||
$pecahpem = explode("|",$dat->mlrj_pembayaran);
|
||||
$jumpem = (count($pecahpem));
|
||||
$infopem = "";
|
||||
for($y=0;$y<=$jumpem;$y++){
|
||||
if(isset($pecahpem[$y])){
|
||||
foreach ($pm as $datpem){
|
||||
if($pecahpem[$y]==$datpem->mp_id){
|
||||
$infopem=$infopem."<small class='badge badge-warning'>".$datpem->mp_nama."</small> ";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
//------------end pembayaran------------//
|
||||
//------------start online--------------//
|
||||
if($dat->mlrj_online==1){
|
||||
$infoonl="<small class='badge badge-primary'>Online</small> ";
|
||||
}elseif($dat->mlrj_online==2){
|
||||
$infoonl="<small class='badge badge-secondary'>Offline</small> ";
|
||||
}elseif($dat->mlrj_online==3){
|
||||
$infoonl="<small class='badge badge-info'>Semua</small> ";
|
||||
}
|
||||
|
||||
//--------------end online--------------//
|
||||
|
||||
echo("
|
||||
<tr>
|
||||
<input type='hidden' id='isi".$dat->mlrj_id."' value='".$dat->mlrj_nama."'>
|
||||
<td>".$no."</td>
|
||||
<td>".$dat->mlrj_nama."</td>
|
||||
<td>".$dat->mlrj_kode."</td>
|
||||
<td>".$dat->mlrj_quotabangku."</td>
|
||||
<td>".$infoklinik."</td>
|
||||
<td>".$infopem."</td>
|
||||
<td>".$infoonl."</td>
|
||||
<td style='text-align: center;'>".$setstatus."</td>
|
||||
<td>".$viewbutton.$editbutton.$disabledbutton.$aktifbutton.$deletebutton."</td>
|
||||
</tr>
|
||||
");
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<script type="text/javascript">
|
||||
var url="<?php echo base_url();?>";
|
||||
function disabled(id){
|
||||
var isi=document.getElementById('isi'+id).value;
|
||||
var r=confirm("Apakah anda ingin Disbaled Loket Rajal '"+isi+"'?")
|
||||
if (r==true)
|
||||
window.location = url+"index.php/ps_loket_rajal/disabled/"+id;
|
||||
else
|
||||
return false;
|
||||
}
|
||||
|
||||
function aktif(id){
|
||||
var isi=document.getElementById('isi'+id).value;
|
||||
var r=confirm("Apakah anda ingin Aktifkan Loket Rajal '"+isi+"'?")
|
||||
if (r==true)
|
||||
window.location = url+"index.php/ps_loket_rajal/active/"+id;
|
||||
else
|
||||
return false;
|
||||
}
|
||||
|
||||
function del(id){
|
||||
var isi=document.getElementById('isi'+id).value;
|
||||
var r=confirm("Apakah anda ingin Menghapus Loket Rajal '"+isi+"'?")
|
||||
if (r==true)
|
||||
window.location = url+"index.php/ps_loket_rajal/delete/"+id;
|
||||
else
|
||||
return false;
|
||||
}
|
||||
</script>
|
||||
@@ -0,0 +1,82 @@
|
||||
<section class="content-header">
|
||||
<div class="container-fluid">
|
||||
<div class="row mb-2">
|
||||
<div class="col-sm-6">
|
||||
<h1>
|
||||
|
||||
</h1>
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<ol class="breadcrumb float-sm-right">
|
||||
<li class="breadcrumb-item"><a href="<?php echo base_url();?>">Dashboard</a></li>
|
||||
<li class="breadcrumb-item"><?php echo $parent;?></li>
|
||||
<li class="breadcrumb-item"><a href="<?php echo base_url()."index.php/".$link;?>"><?php echo $titlebefore;?></a></li>
|
||||
<li class="breadcrumb-item active"><?php echo $title;?></li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<!-- Main content -->
|
||||
<section class="content">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="card card-default">
|
||||
<?php
|
||||
$setdisabled = "";
|
||||
$setid = "";
|
||||
$setnama = "";
|
||||
$setstatus = 1;
|
||||
if ($actionform=="prosesview"){
|
||||
$setdisabled="disabled='disabled'";
|
||||
}
|
||||
if ($actionform!="prosesadd"){
|
||||
$setid = $pm->row('mp_id');
|
||||
$setnama = $pm->row('mp_nama');
|
||||
$setstatus = $pm->row('mp_status');
|
||||
}
|
||||
?>
|
||||
<form action="<?php echo(base_url()); ?>index.php/<?php echo $link;?>/<?php echo $actionform; ?>" method="post" autocomplete="off">
|
||||
<div class="card-header">
|
||||
<h3 class="card-title"><?php echo $title;?></h3>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<?php if(validation_errors()){ ?>
|
||||
<div id="alert" class="alert alert-danger alert-dismissable">
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
<i class="icon fa fa-ban"></i> Alert!
|
||||
<?php echo validation_errors() ?>
|
||||
</div>
|
||||
<script>
|
||||
setTimeout(function() {
|
||||
$('#alert').hide('fast');
|
||||
}, 5000);
|
||||
</script>
|
||||
<?php } ?>
|
||||
<div class="form-group row">
|
||||
<label for="nama" class="col-sm-2 col-form-label">Nama</label>
|
||||
<div class="col-sm-6">
|
||||
<input type="hidden" name="id" value="<?php echo $setid;?>"/>
|
||||
<input id="nama" name="nama" type="text" <?php echo $setdisabled;?> class="form-control" placeholder="Nama Pembayaran" value="<?php echo $setnama;?>" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-sm-2 col-form-label"></label>
|
||||
<div class="col-sm-2">
|
||||
<input id="status" name="status" type="checkbox" value="1" <?php echo $setdisabled;?> <?php if($setstatus==1){echo "checked";}?> data-bootstrap-switch data-off-color="danger" data-on-color="success"/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card-footer">
|
||||
<?php if ($actionform!="prosesview"){ ?>
|
||||
<button type="submit" class="btn btn-info">Simpan</button>
|
||||
<?php } ?>
|
||||
<a href="<?php echo base_url()."index.php/".$link;?>" class="btn btn-default float-right">Cancel</a>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
@@ -0,0 +1,138 @@
|
||||
<section class="content-header">
|
||||
<div class="container-fluid">
|
||||
<div class="row mb-2">
|
||||
<div class="col-sm-6">
|
||||
<h1>
|
||||
<?php
|
||||
//---------------------start check access action TAMBAH-------------------//
|
||||
if(!empty($this->vartambah)){
|
||||
echo "<a href='".base_url()."index.php/$link/add' class='btn btn-outline-info btn-sm'>Tambah Baru</a>";
|
||||
}
|
||||
//---------------------end check access action TAMBAH-------------------//
|
||||
?>
|
||||
</h1>
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<ol class="breadcrumb float-sm-right">
|
||||
<li class="breadcrumb-item"><a href="<?php echo base_url();?>">Dashboard</a></li>
|
||||
<li class="breadcrumb-item"><?php echo $parent;?></li>
|
||||
<li class="breadcrumb-item active"><?php echo $title;?></li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<!-- Main content -->
|
||||
<section class="content">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="card card-default">
|
||||
<div class="card-header">
|
||||
<h3 class="card-title"><?php echo $title;?></h3>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<?php if($this->session->flashdata('message')){?>
|
||||
<div id="alert" class="alert alert-success alert-dismissable">
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
<i class="icon fa fa-check"></i> Alert!
|
||||
<?php echo $this->session->flashdata('message');?>
|
||||
</div>
|
||||
<?php }?>
|
||||
<script>
|
||||
setTimeout(function() {
|
||||
$('#alert').hide('fast');
|
||||
}, 3000);
|
||||
</script>
|
||||
<table id="example1" class="table table-bordered table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>No</th>
|
||||
<th>Nama</th>
|
||||
<th>Status</th>
|
||||
<th width="15%">Action</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$no=0;
|
||||
foreach ($pm as $dat) {
|
||||
$no++;
|
||||
//---------------------start check access action-------------------//
|
||||
$editbutton = "";
|
||||
$viewbutton = "";
|
||||
$deletebutton = "";
|
||||
$disabledbutton = "";
|
||||
$aktifbutton = "";
|
||||
|
||||
if(!empty($this->varview)){
|
||||
$viewbutton="<a href='".base_url()."index.php/$link/view/".$dat->mp_id."' class='btn btn-info btn-xs'><i class='fa fa-eye'></i></a> ";
|
||||
}
|
||||
if(!empty($this->varedit)){
|
||||
$editbutton="<a href='".base_url()."index.php/$link/edit/".$dat->mp_id."' class='btn btn-warning btn-xs'><i class='fa fa-edit'></i></a> ";
|
||||
}
|
||||
if(!empty($this->vardelete)){
|
||||
$deletebutton="<a onclick='del(".$dat->mp_id.")' class='btn btn-danger btn-xs'><i class='fa fa-times'></i></a> ";
|
||||
}
|
||||
|
||||
$setstatus = "<span class='badge bg-teal'> Active</span>";
|
||||
if($dat->mp_status==0){
|
||||
$setstatus = "<span class='badge bg-red'> Disabled</span>";
|
||||
if(!empty($this->varedit)){
|
||||
$aktifbutton="<a onclick='aktif(".$dat->mp_id.")' class='btn btn-outline-success btn-xs'><i class='fa fa-check'></i></a> ";
|
||||
}
|
||||
}else{
|
||||
if(!empty($this->varedit)){
|
||||
$disabledbutton="<a onclick='disabled(".$dat->mp_id.")' class='btn btn-outline-danger btn-xs'><i class='fa fa-ban'></i></a> ";
|
||||
}
|
||||
}
|
||||
//---------------------end check access action-------------------//
|
||||
|
||||
echo("
|
||||
<tr>
|
||||
<input type='hidden' id='isi".$dat->mp_id."' value='".$dat->mp_nama."'>
|
||||
<td>".$no."</td>
|
||||
<td>".$dat->mp_nama."</td>
|
||||
<td style='text-align: center;'>".$setstatus."</td>
|
||||
<td>".$viewbutton.$editbutton.$disabledbutton.$aktifbutton.$deletebutton."</td>
|
||||
</tr>
|
||||
");
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<script type="text/javascript">
|
||||
var url="<?php echo base_url();?>";
|
||||
function disabled(id){
|
||||
var isi=document.getElementById('isi'+id).value;
|
||||
var r=confirm("Apakah anda ingin Disbaled Pembayaran '"+isi+"'?")
|
||||
if (r==true)
|
||||
window.location = url+"index.php/ps_pembayaran/disabled/"+id;
|
||||
else
|
||||
return false;
|
||||
}
|
||||
|
||||
function aktif(id){
|
||||
var isi=document.getElementById('isi'+id).value;
|
||||
var r=confirm("Apakah anda ingin Aktifkan Pembayaran '"+isi+"'?")
|
||||
if (r==true)
|
||||
window.location = url+"index.php/ps_pembayaran/active/"+id;
|
||||
else
|
||||
return false;
|
||||
}
|
||||
|
||||
function del(id){
|
||||
var isi=document.getElementById('isi'+id).value;
|
||||
var r=confirm("Apakah anda ingin Menghapus Pembayaran '"+isi+"'?")
|
||||
if (r==true)
|
||||
window.location = url+"index.php/ps_pembayaran/delete/"+id;
|
||||
else
|
||||
return false;
|
||||
}
|
||||
</script>
|
||||
@@ -0,0 +1,109 @@
|
||||
<section class="content-header">
|
||||
<div class="container-fluid">
|
||||
<div class="row mb-2">
|
||||
<div class="col-sm-6">
|
||||
<h1>
|
||||
</h1>
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<ol class="breadcrumb float-sm-right">
|
||||
<li class="breadcrumb-item"><a href="<?php echo base_url();?>">Dashboard</a></li>
|
||||
<li class="breadcrumb-item"><?php echo $parent;?></li>
|
||||
<li class="breadcrumb-item active"><?php echo $title;?></li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<!-- Main content -->
|
||||
<section class="content">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="card card-default">
|
||||
<div class="card-header">
|
||||
<h3 class="card-title"><?php
|
||||
echo $title;
|
||||
$tglawal = $awal;
|
||||
$tglakhir= $akhir;
|
||||
$tglgabung = date("m/d/Y", strtotime($awal))." - ".date("m/d/Y", strtotime($akhir));
|
||||
?></h3>
|
||||
</div>
|
||||
<form action="<?php echo(base_url()); ?>index.php/lp_ppi/apd" method="post" autocomplete="off">
|
||||
<div class="card-body">
|
||||
<div class="form-group row">
|
||||
<label class="col-sm-1 col-form-label">Tanggal :</label>
|
||||
<div class="col-sm-4">
|
||||
<div class="input-group">
|
||||
<div class="input-group-prepend">
|
||||
<span class="input-group-text">
|
||||
<i class="far fa-calendar-alt"></i>
|
||||
</span>
|
||||
</div>
|
||||
<input type="text" name="tanggalmonitoring" class="form-control float-right" id="reservation" value="<?php echo $tglgabung;?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-2">
|
||||
<button type="submit" class="btn btn-outline-info">Search </button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<div class="card-body">
|
||||
<?php if($this->session->flashdata('message')){?>
|
||||
<div id="alert" class="alert alert-success alert-dismissable">
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
<i class="icon fa fa-check"></i> Alert!
|
||||
<?php echo $this->session->flashdata('message');?>
|
||||
</div>
|
||||
<?php }?>
|
||||
<script>
|
||||
setTimeout(function() {
|
||||
$('#alert').hide('fast');
|
||||
}, 3000);
|
||||
</script>
|
||||
<table id="example1" class="table table-bordered table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>No</th>
|
||||
<th>Kode</th>
|
||||
<th>Ruangan</th>
|
||||
<th>Kelas</th>
|
||||
<th>Total Patuh</th>
|
||||
<th>Total Tidak Patuh</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$no=0;
|
||||
foreach ($rua as $datrua) {
|
||||
$totpatuh = 0; $tottidak_patuh = 0;
|
||||
foreach ($apd as $datapd) {
|
||||
if($datrua->id == $datapd->idruang){
|
||||
$totpatuh = $totpatuh + $datapd->apatuh + $datapd->bpatuh + $datapd->cpatuh + $datapd->dpatuh + $datapd->epatuh + $datapd->fpatuh;
|
||||
$tottidak_patuh = $tottidak_patuh + $datapd->atidak_patuh + $datapd->btidak_patuh + $datapd->ctidak_patuh + $datapd->dtidak_patuh + $datapd->etidak_patuh + $datapd->ftidak_patuh;
|
||||
}
|
||||
}
|
||||
if($totpatuh != 0 || $tottidak_patuh != 0){
|
||||
$no++;
|
||||
echo("
|
||||
<tr>
|
||||
<td>".$no."</td>
|
||||
<td>".$datrua->Kode."</td>
|
||||
<td>".$datrua->Nama."</td>
|
||||
<td>".$datrua->Kelas."</td>
|
||||
<td>".$totpatuh."</td>
|
||||
<td>".$tottidak_patuh."</td>
|
||||
</tr>
|
||||
");
|
||||
}
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
@@ -0,0 +1,132 @@
|
||||
<section class="content-header">
|
||||
<div class="container-fluid">
|
||||
<div class="row mb-2">
|
||||
<div class="col-sm-6">
|
||||
<h1>
|
||||
</h1>
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<ol class="breadcrumb float-sm-right">
|
||||
<li class="breadcrumb-item"><a href="<?php echo base_url();?>">Dashboard</a></li>
|
||||
<li class="breadcrumb-item"><?php echo $parent;?></li>
|
||||
<li class="breadcrumb-item active"><?php echo $title;?></li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<!-- Main content -->
|
||||
<section class="content">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="card card-default">
|
||||
<div class="card-header">
|
||||
<h3 class="card-title"><?php
|
||||
echo $title;
|
||||
$tglawal = $awal;
|
||||
$tglakhir= $akhir;
|
||||
$tglgabung = date("m/d/Y", strtotime($awal))." - ".date("m/d/Y", strtotime($akhir));
|
||||
?></h3>
|
||||
</div>
|
||||
<form action="<?php echo(base_url()); ?>index.php/lp_ppi/detail_apd" method="post" autocomplete="off">
|
||||
<div class="card-body">
|
||||
<div class="form-group row">
|
||||
<label class="col-sm-1 col-form-label">Tanggal :</label>
|
||||
<div class="col-sm-4">
|
||||
<div class="input-group">
|
||||
<div class="input-group-prepend">
|
||||
<span class="input-group-text">
|
||||
<i class="far fa-calendar-alt"></i>
|
||||
</span>
|
||||
</div>
|
||||
<input type="text" name="tanggalmonitoring" class="form-control float-right" id="reservation" value="<?php echo $tglgabung;?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-2">
|
||||
<button type="submit" class="btn btn-outline-info">Search </button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<div class="card-body">
|
||||
<?php if($this->session->flashdata('message')){?>
|
||||
<div id="alert" class="alert alert-success alert-dismissable">
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
<i class="icon fa fa-check"></i> Alert!
|
||||
<?php echo $this->session->flashdata('message');?>
|
||||
</div>
|
||||
<?php }?>
|
||||
<script>
|
||||
setTimeout(function() {
|
||||
$('#alert').hide('fast');
|
||||
}, 3000);
|
||||
</script>
|
||||
<table id="example1" class="table table-bordered table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>No</th>
|
||||
<th>Kode</th>
|
||||
<th>Ruangan</th>
|
||||
<th>Kelas</th>
|
||||
<th>Fristname</th>
|
||||
<th>Datecreated</th>
|
||||
<th>Jenis Tindakan</th>
|
||||
<th>A P</th>
|
||||
<th>A TP</th>
|
||||
<th>B P</th>
|
||||
<th>B TP</th>
|
||||
<th>C P</th>
|
||||
<th>C TP</th>
|
||||
<th>D P</th>
|
||||
<th>D TP</th>
|
||||
<th>E P</th>
|
||||
<th>E TP</th>
|
||||
<th>F P</th>
|
||||
<th>F TP</th>
|
||||
<th>TOT P</th>
|
||||
<th>TOT TP</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$no=0; $totpatuh = 0; $tottidak_patuh = 0;
|
||||
foreach($apd as $datapd){
|
||||
$no++;
|
||||
$totpatuh = $datapd->apatuh + $datapd->bpatuh + $datapd->cpatuh + $datapd->dpatuh + $datapd->epatuh + $datapd->fpatuh;
|
||||
$tottidak_patuh = $datapd->atidak_patuh + $datapd->btidak_patuh + $datapd->ctidak_patuh + $datapd->dtidak_patuh + $datapd->etidak_patuh + $datapd->ftidak_patuh;
|
||||
echo("
|
||||
<tr>
|
||||
<td>".$no."</td>
|
||||
<td>".$datapd->koderuang."</td>
|
||||
<td>".$datapd->namaruang."</td>
|
||||
<td>".$datapd->kelasruang."</td>
|
||||
<td>".$datapd->first_name."</td>
|
||||
<td>".$datapd->date_created."</td>
|
||||
<td>".$datapd->jenis_tindakan." ".$datapd->keterangan."</td>
|
||||
<td>".$datapd->apatuh."</td>
|
||||
<td>".$datapd->atidak_patuh."</td>
|
||||
<td>".$datapd->bpatuh."</td>
|
||||
<td>".$datapd->btidak_patuh."</td>
|
||||
<td>".$datapd->cpatuh."</td>
|
||||
<td>".$datapd->ctidak_patuh."</td>
|
||||
<td>".$datapd->dpatuh."</td>
|
||||
<td>".$datapd->dtidak_patuh."</td>
|
||||
<td>".$datapd->epatuh."</td>
|
||||
<td>".$datapd->etidak_patuh."</td>
|
||||
<td>".$datapd->fpatuh."</td>
|
||||
<td>".$datapd->ftidak_patuh."</td>
|
||||
<td>".$totpatuh."</td>
|
||||
<td>".$tottidak_patuh."</td>
|
||||
</tr>
|
||||
");
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
@@ -0,0 +1,136 @@
|
||||
<section class="content-header">
|
||||
<div class="container-fluid">
|
||||
<div class="row mb-2">
|
||||
<div class="col-sm-6">
|
||||
<h1>
|
||||
</h1>
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<ol class="breadcrumb float-sm-right">
|
||||
<li class="breadcrumb-item"><a href="<?php echo base_url();?>">Dashboard</a></li>
|
||||
<li class="breadcrumb-item"><?php echo $parent;?></li>
|
||||
<li class="breadcrumb-item active"><?php echo $title;?></li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<!-- Main content -->
|
||||
<section class="content">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="card card-default">
|
||||
<div class="card-header">
|
||||
<h3 class="card-title"><?php
|
||||
echo $title;
|
||||
$tglawal = $awal;
|
||||
$tglakhir= $akhir;
|
||||
$tglgabung = date("m/d/Y", strtotime($awal))." - ".date("m/d/Y", strtotime($akhir));
|
||||
?></h3>
|
||||
</div>
|
||||
<form action="<?php echo(base_url()); ?>index.php/lp_ppi/cuci_tangan" method="post" autocomplete="off">
|
||||
<div class="card-body">
|
||||
<div class="form-group row">
|
||||
<label class="col-sm-1 col-form-label">Tanggal :</label>
|
||||
<div class="col-sm-4">
|
||||
<div class="input-group">
|
||||
<div class="input-group-prepend">
|
||||
<span class="input-group-text">
|
||||
<i class="far fa-calendar-alt"></i>
|
||||
</span>
|
||||
</div>
|
||||
<input type="text" name="tanggalmonitoring" class="form-control float-right" id="reservation" value="<?php echo $tglgabung;?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-2">
|
||||
<button type="submit" class="btn btn-outline-info">Search </button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<div class="card-body">
|
||||
<?php if($this->session->flashdata('message')){?>
|
||||
<div id="alert" class="alert alert-success alert-dismissable">
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
<i class="icon fa fa-check"></i> Alert!
|
||||
<?php echo $this->session->flashdata('message');?>
|
||||
</div>
|
||||
<?php }?>
|
||||
<script>
|
||||
setTimeout(function() {
|
||||
$('#alert').hide('fast');
|
||||
}, 3000);
|
||||
</script>
|
||||
<table id="example1" class="table table-bordered table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>No</th>
|
||||
<th>Kode</th>
|
||||
<th>Ruangan</th>
|
||||
<th>Kelas</th>
|
||||
<th>OPP PR</th>
|
||||
<th>CC PR</th>
|
||||
<th>OPP DK</th>
|
||||
<th>CC DK</th>
|
||||
<th>OPP MH</th>
|
||||
<th>CC MH</th>
|
||||
<th>OPP PKL</th>
|
||||
<th>CC PKL</th>
|
||||
<th>OPP TOT</th>
|
||||
<th>CC TOT</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$no=0;
|
||||
foreach ($rua as $dat) { $opppr=0; $ccpr=0; $oppdk=0; $ccdk=0; $oppmh=0; $ccmh=0; $opppkl=0; $ccpkl=0; $opptot=0; $cctot=0;
|
||||
foreach($cc as $datcc){
|
||||
if($dat->id == $datcc->idruang){
|
||||
if($datcc->petugas_cuci_tangan=="Perawat"){
|
||||
$ccpr = $ccpr+$datcc->nilai_kepatuhan;
|
||||
$opppr++;
|
||||
}elseif($datcc->petugas_cuci_tangan=="Dokter"){
|
||||
$ccdk = $ccdk+$datcc->nilai_kepatuhan;
|
||||
$oppdk++;
|
||||
}elseif($datcc->petugas_cuci_tangan=="Mahasiswa"){
|
||||
$ccmh = $ccmh+$datcc->nilai_kepatuhan;
|
||||
$oppmh++;
|
||||
}elseif($datcc->petugas_cuci_tangan=="Petugas kesehatan lain"){
|
||||
$ccpkl = $ccpkl+$datcc->nilai_kepatuhan;
|
||||
$opppkl++;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
$opptot = $opppr+$oppdk+$oppmh+$opppkl;
|
||||
$cctot = $ccpr+$ccdk+$ccmh+$ccpkl;
|
||||
$no++;
|
||||
echo("
|
||||
<tr>
|
||||
<td>".$no."</td>
|
||||
<td>".$dat->Kode."</td>
|
||||
<td>".$dat->Nama."</td>
|
||||
<td>".$dat->Kelas."</td>
|
||||
<td>".$opppr."</td>
|
||||
<td>".$ccpr."</td>
|
||||
<td>".$oppdk."</td>
|
||||
<td>".$ccdk."</td>
|
||||
<td>".$oppmh."</td>
|
||||
<td>".$ccmh."</td>
|
||||
<td>".$opppkl."</td>
|
||||
<td>".$ccpkl."</td>
|
||||
<td>".$opptot."</td>
|
||||
<td>".$cctot."</td>
|
||||
</tr>
|
||||
");
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
@@ -0,0 +1,104 @@
|
||||
<section class="content-header">
|
||||
<div class="container-fluid">
|
||||
<div class="row mb-2">
|
||||
<div class="col-sm-6">
|
||||
<h1>
|
||||
</h1>
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<ol class="breadcrumb float-sm-right">
|
||||
<li class="breadcrumb-item"><a href="<?php echo base_url();?>">Dashboard</a></li>
|
||||
<li class="breadcrumb-item"><?php echo $parent;?></li>
|
||||
<li class="breadcrumb-item active"><?php echo $title;?></li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<!-- Main content -->
|
||||
<section class="content">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="card card-default">
|
||||
<div class="card-header">
|
||||
<h3 class="card-title"><?php
|
||||
echo $title;
|
||||
$tglawal = $awal;
|
||||
$tglakhir= $akhir;
|
||||
$tglgabung = date("m/d/Y", strtotime($awal))." - ".date("m/d/Y", strtotime($akhir));
|
||||
?></h3>
|
||||
</div>
|
||||
<form action="<?php echo(base_url()); ?>index.php/lp_ppi/detail_cuci_tangan" method="post" autocomplete="off">
|
||||
<div class="card-body">
|
||||
<div class="form-group row">
|
||||
<label class="col-sm-1 col-form-label">Tanggal :</label>
|
||||
<div class="col-sm-4">
|
||||
<div class="input-group">
|
||||
<div class="input-group-prepend">
|
||||
<span class="input-group-text">
|
||||
<i class="far fa-calendar-alt"></i>
|
||||
</span>
|
||||
</div>
|
||||
<input type="text" name="tanggalmonitoring" class="form-control float-right" id="reservation" value="<?php echo $tglgabung;?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-2">
|
||||
<button type="submit" class="btn btn-outline-info">Search </button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<div class="card-body">
|
||||
<?php if($this->session->flashdata('message')){?>
|
||||
<div id="alert" class="alert alert-success alert-dismissable">
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
<i class="icon fa fa-check"></i> Alert!
|
||||
<?php echo $this->session->flashdata('message');?>
|
||||
</div>
|
||||
<?php }?>
|
||||
<script>
|
||||
setTimeout(function() {
|
||||
$('#alert').hide('fast');
|
||||
}, 3000);
|
||||
</script>
|
||||
<table id="example1" class="table table-bordered table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>No</th>
|
||||
<th>Kode</th>
|
||||
<th>Ruangan</th>
|
||||
<th>Kelas</th>
|
||||
<th>Firstname</th>
|
||||
<th>Datecreate</th>
|
||||
<th>Petugas</th>
|
||||
<th>Nilai Kepatuhan</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$no=0;
|
||||
foreach ($cc as $dat) {
|
||||
$no++;
|
||||
echo("
|
||||
<tr>
|
||||
<td>".$no."</td>
|
||||
<td>".$dat->koderuang."</td>
|
||||
<td>".$dat->namaruang."</td>
|
||||
<td>".$dat->kelasruang."</td>
|
||||
<td>".$dat->first_name."</td>
|
||||
<td>".$dat->date_created."</td>
|
||||
<td>".$dat->petugas_cuci_tangan."</td>
|
||||
<td>".$dat->nilai_kepatuhan."</td>
|
||||
</tr>
|
||||
");
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
@@ -0,0 +1,129 @@
|
||||
<section class="content-header">
|
||||
<div class="container-fluid">
|
||||
<div class="row mb-2">
|
||||
<div class="col-sm-6">
|
||||
<h1>
|
||||
</h1>
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<ol class="breadcrumb float-sm-right">
|
||||
<li class="breadcrumb-item"><a href="<?php echo base_url();?>">Dashboard</a></li>
|
||||
<li class="breadcrumb-item"><?php echo $parent;?></li>
|
||||
<li class="breadcrumb-item active"><?php echo $title;?></li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<!-- Main content -->
|
||||
<section class="content">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="card card-default">
|
||||
<div class="card-header">
|
||||
<h3 class="card-title"><?php
|
||||
echo $title;
|
||||
$tglawal = $awal;
|
||||
$tglakhir= $akhir;
|
||||
$tglgabung = date("m/d/Y", strtotime($awal))." - ".date("m/d/Y", strtotime($akhir));
|
||||
?></h3>
|
||||
</div>
|
||||
<form action="<?php echo(base_url()); ?>index.php/lp_ppi/hap" method="post" autocomplete="off">
|
||||
<div class="card-body">
|
||||
<div class="form-group row">
|
||||
<label class="col-sm-1 col-form-label">Tanggal :</label>
|
||||
<div class="col-sm-4">
|
||||
<div class="input-group">
|
||||
<div class="input-group-prepend">
|
||||
<span class="input-group-text">
|
||||
<i class="far fa-calendar-alt"></i>
|
||||
</span>
|
||||
</div>
|
||||
<input type="text" name="tanggalmonitoring" class="form-control float-right" id="reservation" value="<?php echo $tglgabung;?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-2">
|
||||
<button type="submit" class="btn btn-outline-info">Search </button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<div class="card-body">
|
||||
<?php if($this->session->flashdata('message')){?>
|
||||
<div id="alert" class="alert alert-success alert-dismissable">
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
<i class="icon fa fa-check"></i> Alert!
|
||||
<?php echo $this->session->flashdata('message');?>
|
||||
</div>
|
||||
<?php }?>
|
||||
<script>
|
||||
setTimeout(function() {
|
||||
$('#alert').hide('fast');
|
||||
}, 3000);
|
||||
</script>
|
||||
<table id="example1" class="table table-bordered table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>No</th>
|
||||
<th>Data Pasien</th>
|
||||
<th>Ruang Ranap</th>
|
||||
<th>Created</th>
|
||||
<th>Datecreated</th>
|
||||
<th>MRS</th>
|
||||
<th>KRS</th>
|
||||
<th>Monitoring</th>
|
||||
<th>Tanggal</th>
|
||||
<th>Tgl TB Mulai</th>
|
||||
<th>Tgl TB Selesai</th>
|
||||
<th>Lama TB</th>
|
||||
<th>Diagnosa PPI</th>
|
||||
<th>Diagnosa DPJP</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$no=0;
|
||||
foreach ($hap as $dat) {
|
||||
$no++;
|
||||
if($dat->Diagnosa_nilai_hap_ppi == 1){
|
||||
$diagnosappi = "<span class='badge bg-red'> Positif</span>";
|
||||
}else{
|
||||
$diagnosappi = "<span class='badge bg-gray'> Tidak</span>";
|
||||
}
|
||||
|
||||
if($dat->Diagnosa_ppi_dpjp == "TIDAK"){
|
||||
$diagnosadpjp = "<span class='badge bg-gray'> ".$dat->Diagnosa_ppi_dpjp."</span>";
|
||||
}else{
|
||||
$diagnosadpjp = "<span class='badge bg-red'> ".$dat->Diagnosa_ppi_dpjp."</span>";
|
||||
}
|
||||
|
||||
echo("
|
||||
<tr>
|
||||
<input type='hidden' id='isi".$dat->id."' value='".$dat->status."'>
|
||||
<td>".$no."</td>
|
||||
<td>".$dat->No_rekam_medis." - ".$dat->Nama_pasien." / ".$dat->Umur." Th / ".$dat->Jenis_kelamin."</td>
|
||||
<td>".$dat->Kode." - ".$dat->Nama." - Kelas ".$dat->Kelas."</td>
|
||||
<td>".$dat->first_name."</td>
|
||||
<td>".$dat->date_created."</td>
|
||||
<td>".$dat->Tanggal_mrs."</td>
|
||||
<td>".$dat->Tanggal_krs."</td>
|
||||
<td>".$dat->Monitoring_ke."</td>
|
||||
<td>".$dat->Tanggal_monitoring."</td>
|
||||
<td>".$dat->Tanggal_mulai_tirah_baring."</td>
|
||||
<td>".$dat->Tanggal_selesai_tirah_baring."</td>
|
||||
<td>".$dat->Lama_tirah_baring."</td>
|
||||
<td>".$diagnosappi."</td>
|
||||
<td>".$diagnosadpjp."</td>
|
||||
</tr>
|
||||
");
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
@@ -0,0 +1,138 @@
|
||||
<section class="content-header">
|
||||
<div class="container-fluid">
|
||||
<div class="row mb-2">
|
||||
<div class="col-sm-6">
|
||||
<h1>
|
||||
</h1>
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<ol class="breadcrumb float-sm-right">
|
||||
<li class="breadcrumb-item"><a href="<?php echo base_url();?>">Dashboard</a></li>
|
||||
<li class="breadcrumb-item"><?php echo $parent;?></li>
|
||||
<li class="breadcrumb-item active"><?php echo $title;?></li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<!-- Main content -->
|
||||
<section class="content">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="card card-default">
|
||||
<div class="card-header">
|
||||
<h3 class="card-title"><?php
|
||||
echo $title;
|
||||
$tglawal = $awal;
|
||||
$tglakhir= $akhir;
|
||||
$tglgabung = date("m/d/Y", strtotime($awal))." - ".date("m/d/Y", strtotime($akhir));
|
||||
?></h3>
|
||||
</div>
|
||||
<form action="<?php echo(base_url()); ?>index.php/lp_ppi/iadanak" method="post" autocomplete="off">
|
||||
<div class="card-body">
|
||||
<div class="form-group row">
|
||||
<label class="col-sm-1 col-form-label">Tanggal :</label>
|
||||
<div class="col-sm-4">
|
||||
<div class="input-group">
|
||||
<div class="input-group-prepend">
|
||||
<span class="input-group-text">
|
||||
<i class="far fa-calendar-alt"></i>
|
||||
</span>
|
||||
</div>
|
||||
<input type="text" name="tanggalmonitoring" class="form-control float-right" id="reservation" value="<?php echo $tglgabung;?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-2">
|
||||
<button type="submit" class="btn btn-outline-info">Search </button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<div class="card-body">
|
||||
<?php if($this->session->flashdata('message')){?>
|
||||
<div id="alert" class="alert alert-success alert-dismissable">
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
<i class="icon fa fa-check"></i> Alert!
|
||||
<?php echo $this->session->flashdata('message');?>
|
||||
</div>
|
||||
<?php }?>
|
||||
<script>
|
||||
setTimeout(function() {
|
||||
$('#alert').hide('fast');
|
||||
}, 3000);
|
||||
</script>
|
||||
<table id="example1" class="table table-bordered table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>No</th>
|
||||
<th>Data Pasien</th>
|
||||
<th>Ruang Ranap</th>
|
||||
<th>Created</th>
|
||||
<th>Datecreated</th>
|
||||
<th>MRS</th>
|
||||
<th>KRS</th>
|
||||
<th>Monitoring</th>
|
||||
<th>Tanggal</th>
|
||||
<th>Tgl Pasang</th>
|
||||
<th>Tgl Lepas</th>
|
||||
<th>Lama Pakai</th>
|
||||
<th>Ruang Pasang</th>
|
||||
<th>Diagnosa PPI</th>
|
||||
<th>Diagnosa DPJP</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$no=0;
|
||||
foreach ($iadanak as $dat) {
|
||||
$no++;
|
||||
if($dat->Diagnosa_nilai_iad_ppi == 1){
|
||||
$diagnosappi = "<span class='badge bg-yellow'> Positif</span>";
|
||||
}else{
|
||||
$diagnosappi = "<span class='badge bg-gray'> Tidak</span>";
|
||||
}
|
||||
|
||||
if($dat->Diagnosa_ppi_dpjp == "TIDAK"){
|
||||
$diagnosadpjp = "<span class='badge bg-gray'> ".$dat->Diagnosa_ppi_dpjp."</span>";
|
||||
}else{
|
||||
$diagnosadpjp = "<span class='badge bg-red'> ".$dat->Diagnosa_ppi_dpjp."</span>";
|
||||
}
|
||||
|
||||
$ruangpasang = "-";
|
||||
foreach($rua as $row){
|
||||
if($row->id == $dat->Ruang_pemasangan_cvc){
|
||||
$ruangpasang = $row->Kode." - ".$row->Nama." - Kelas ".$row->Kelas;
|
||||
}
|
||||
}
|
||||
|
||||
echo("
|
||||
<tr>
|
||||
<input type='hidden' id='isi".$dat->id."' value='".$dat->status."'>
|
||||
<td>".$no."</td>
|
||||
<td>".$dat->No_rekam_medis." - ".$dat->Nama_pasien." / ".$dat->Umur." Th / ".$dat->Jenis_kelamin."</td>
|
||||
<td>".$dat->Kode." - ".$dat->Nama." - Kelas ".$dat->Kelas."</td>
|
||||
<td>".$dat->first_name."</td>
|
||||
<td>".$dat->date_created."</td>
|
||||
<td>".$dat->Tanggal_mrs."</td>
|
||||
<td>".$dat->Tanggal_krs."</td>
|
||||
<td>".$dat->Monitoring_ke."</td>
|
||||
<td>".$dat->Tanggal_monitoring."</td>
|
||||
<td>".$dat->Tanggal_pemasangan_cvc."</td>
|
||||
<td>".$dat->Tanggal_pelepasan_cvc."</td>
|
||||
<td>".$dat->Lama_pemakaian_cvc."</td>
|
||||
<td>".$ruangpasang."</td>
|
||||
<td>".$diagnosappi."</td>
|
||||
<td>".$diagnosadpjp."</td>
|
||||
</tr>
|
||||
");
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
@@ -0,0 +1,138 @@
|
||||
<section class="content-header">
|
||||
<div class="container-fluid">
|
||||
<div class="row mb-2">
|
||||
<div class="col-sm-6">
|
||||
<h1>
|
||||
</h1>
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<ol class="breadcrumb float-sm-right">
|
||||
<li class="breadcrumb-item"><a href="<?php echo base_url();?>">Dashboard</a></li>
|
||||
<li class="breadcrumb-item"><?php echo $parent;?></li>
|
||||
<li class="breadcrumb-item active"><?php echo $title;?></li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<!-- Main content -->
|
||||
<section class="content">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="card card-default">
|
||||
<div class="card-header">
|
||||
<h3 class="card-title"><?php
|
||||
echo $title;
|
||||
$tglawal = $awal;
|
||||
$tglakhir= $akhir;
|
||||
$tglgabung = date("m/d/Y", strtotime($awal))." - ".date("m/d/Y", strtotime($akhir));
|
||||
?></h3>
|
||||
</div>
|
||||
<form action="<?php echo(base_url()); ?>index.php/lp_ppi/iaddewasa" method="post" autocomplete="off">
|
||||
<div class="card-body">
|
||||
<div class="form-group row">
|
||||
<label class="col-sm-1 col-form-label">Tanggal :</label>
|
||||
<div class="col-sm-4">
|
||||
<div class="input-group">
|
||||
<div class="input-group-prepend">
|
||||
<span class="input-group-text">
|
||||
<i class="far fa-calendar-alt"></i>
|
||||
</span>
|
||||
</div>
|
||||
<input type="text" name="tanggalmonitoring" class="form-control float-right" id="reservation" value="<?php echo $tglgabung;?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-2">
|
||||
<button type="submit" class="btn btn-outline-info">Search </button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<div class="card-body">
|
||||
<?php if($this->session->flashdata('message')){?>
|
||||
<div id="alert" class="alert alert-success alert-dismissable">
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
<i class="icon fa fa-check"></i> Alert!
|
||||
<?php echo $this->session->flashdata('message');?>
|
||||
</div>
|
||||
<?php }?>
|
||||
<script>
|
||||
setTimeout(function() {
|
||||
$('#alert').hide('fast');
|
||||
}, 3000);
|
||||
</script>
|
||||
<table id="example1" class="table table-bordered table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>No</th>
|
||||
<th>Data Pasien</th>
|
||||
<th>Ruang Ranap</th>
|
||||
<th>Created</th>
|
||||
<th>Datecreated</th>
|
||||
<th>MRS</th>
|
||||
<th>KRS</th>
|
||||
<th>Monitoring</th>
|
||||
<th>Tanggal</th>
|
||||
<th>Tgl Pasang</th>
|
||||
<th>Tgl Lepas</th>
|
||||
<th>Lama Pakai</th>
|
||||
<th>Ruang Pasang</th>
|
||||
<th>Diagnosa PPI</th>
|
||||
<th>Diagnosa DPJP</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$no=0;
|
||||
foreach ($iaddewasa as $dat) {
|
||||
$no++;
|
||||
if($dat->Diagnosa_nilai_iad_ppi == 1){
|
||||
$diagnosappi = "<span class='badge bg-yellow'> Positif</span>";
|
||||
}else{
|
||||
$diagnosappi = "<span class='badge bg-gray'> Tidak</span>";
|
||||
}
|
||||
|
||||
if($dat->Diagnosa_ppi_dpjp == "TIDAK"){
|
||||
$diagnosadpjp = "<span class='badge bg-gray'> ".$dat->Diagnosa_ppi_dpjp."</span>";
|
||||
}else{
|
||||
$diagnosadpjp = "<span class='badge bg-red'> ".$dat->Diagnosa_ppi_dpjp."</span>";
|
||||
}
|
||||
|
||||
$ruangpasang = "-";
|
||||
foreach($rua as $row){
|
||||
if($row->id == $dat->Ruang_pemasangan_cvc){
|
||||
$ruangpasang = $row->Kode." - ".$row->Nama." - Kelas ".$row->Kelas;
|
||||
}
|
||||
}
|
||||
|
||||
echo("
|
||||
<tr>
|
||||
<input type='hidden' id='isi".$dat->id."' value='".$dat->status."'>
|
||||
<td>".$no."</td>
|
||||
<td>".$dat->No_rekam_medis." - ".$dat->Nama_pasien." / ".$dat->Umur." Th / ".$dat->Jenis_kelamin."</td>
|
||||
<td>".$dat->Kode." - ".$dat->Nama." - Kelas ".$dat->Kelas."</td>
|
||||
<td>".$dat->first_name."</td>
|
||||
<td>".$dat->date_created."</td>
|
||||
<td>".$dat->Tanggal_mrs."</td>
|
||||
<td>".$dat->Tanggal_krs."</td>
|
||||
<td>".$dat->Monitoring_ke."</td>
|
||||
<td>".$dat->Tanggal_monitoring."</td>
|
||||
<td>".$dat->Tanggal_pemasangan_cvc."</td>
|
||||
<td>".$dat->Tanggal_pelepasan_cvc."</td>
|
||||
<td>".$dat->Lama_pemakaian_cvc."</td>
|
||||
<td>".$ruangpasang."</td>
|
||||
<td>".$diagnosappi."</td>
|
||||
<td>".$diagnosadpjp."</td>
|
||||
</tr>
|
||||
");
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
@@ -0,0 +1,127 @@
|
||||
<section class="content-header">
|
||||
<div class="container-fluid">
|
||||
<div class="row mb-2">
|
||||
<div class="col-sm-6">
|
||||
<h1>
|
||||
</h1>
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<ol class="breadcrumb float-sm-right">
|
||||
<li class="breadcrumb-item"><a href="<?php echo base_url();?>">Dashboard</a></li>
|
||||
<li class="breadcrumb-item"><?php echo $parent;?></li>
|
||||
<li class="breadcrumb-item active"><?php echo $title;?></li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<!-- Main content -->
|
||||
<section class="content">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="card card-default">
|
||||
<div class="card-header">
|
||||
<h3 class="card-title"><?php
|
||||
echo $title;
|
||||
$tglawal = $awal;
|
||||
$tglakhir= $akhir;
|
||||
$tglgabung = date("m/d/Y", strtotime($awal))." - ".date("m/d/Y", strtotime($akhir));
|
||||
?></h3>
|
||||
</div>
|
||||
<form action="<?php echo(base_url()); ?>index.php/lp_ppi/idobersih" method="post" autocomplete="off">
|
||||
<div class="card-body">
|
||||
<div class="form-group row">
|
||||
<label class="col-sm-1 col-form-label">Tanggal :</label>
|
||||
<div class="col-sm-4">
|
||||
<div class="input-group">
|
||||
<div class="input-group-prepend">
|
||||
<span class="input-group-text">
|
||||
<i class="far fa-calendar-alt"></i>
|
||||
</span>
|
||||
</div>
|
||||
<input type="text" name="tanggalmonitoring" class="form-control float-right" id="reservation" value="<?php echo $tglgabung;?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-2">
|
||||
<button type="submit" class="btn btn-outline-info">Search </button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<div class="card-body">
|
||||
<?php if($this->session->flashdata('message')){?>
|
||||
<div id="alert" class="alert alert-success alert-dismissable">
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
<i class="icon fa fa-check"></i> Alert!
|
||||
<?php echo $this->session->flashdata('message');?>
|
||||
</div>
|
||||
<?php }?>
|
||||
<script>
|
||||
setTimeout(function() {
|
||||
$('#alert').hide('fast');
|
||||
}, 3000);
|
||||
</script>
|
||||
<table id="example1" class="table table-bordered table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>No</th>
|
||||
<th>Data Pasien</th>
|
||||
<th>Ruang Ranap</th>
|
||||
<th>Created</th>
|
||||
<th>Datecreated</th>
|
||||
<th>MRS</th>
|
||||
<th>KRS</th>
|
||||
<th>Monitoring</th>
|
||||
<th>Tanggal</th>
|
||||
<th>Tgl Operasi</th>
|
||||
<th>Lama Perawatan</th>
|
||||
<th>Diagnosa PPI</th>
|
||||
<th>Diagnosa DPJP</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$no=0;
|
||||
foreach ($idobersih as $dat) {
|
||||
$no++;
|
||||
if($dat->Diagnosa_nilai_iob_ppi == 1){
|
||||
$diagnosappi = "<span class='badge bg-yellow'> Positif</span>";
|
||||
}else{
|
||||
$diagnosappi = "<span class='badge bg-gray'> Tidak</span>";
|
||||
}
|
||||
|
||||
if($dat->Diagnosa_ppi_dpjp == "TIDAK"){
|
||||
$diagnosadpjp = "<span class='badge bg-gray'> ".$dat->Diagnosa_ppi_dpjp."</span>";
|
||||
}else{
|
||||
$diagnosadpjp = "<span class='badge bg-red'> ".$dat->Diagnosa_ppi_dpjp."</span>";
|
||||
}
|
||||
|
||||
echo("
|
||||
<tr>
|
||||
<input type='hidden' id='isi".$dat->id."' value='".$dat->status."'>
|
||||
<td>".$no."</td>
|
||||
<td>".$dat->No_rekam_medis." - ".$dat->Nama_pasien." / ".$dat->Umur." Th / ".$dat->Jenis_kelamin."</td>
|
||||
<td>".$dat->Kode." - ".$dat->Nama." - Kelas ".$dat->Kelas."</td>
|
||||
<td>".$dat->first_name."</td>
|
||||
<td>".$dat->date_created."</td>
|
||||
<td>".$dat->Tanggal_mrs."</td>
|
||||
<td>".$dat->Tanggal_krs."</td>
|
||||
<td>".$dat->Monitoring_ke."</td>
|
||||
<td>".$dat->Tanggal_monitoring."</td>
|
||||
<td>".$dat->Tanggal_operasi."</td>
|
||||
<td>".$dat->Lama_hari_perawatan."</td>
|
||||
<td>".$diagnosappi."</td>
|
||||
<td>".$diagnosadpjp."</td>
|
||||
</tr>
|
||||
");
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
@@ -0,0 +1,127 @@
|
||||
<section class="content-header">
|
||||
<div class="container-fluid">
|
||||
<div class="row mb-2">
|
||||
<div class="col-sm-6">
|
||||
<h1>
|
||||
</h1>
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<ol class="breadcrumb float-sm-right">
|
||||
<li class="breadcrumb-item"><a href="<?php echo base_url();?>">Dashboard</a></li>
|
||||
<li class="breadcrumb-item"><?php echo $parent;?></li>
|
||||
<li class="breadcrumb-item active"><?php echo $title;?></li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<!-- Main content -->
|
||||
<section class="content">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="card card-default">
|
||||
<div class="card-header">
|
||||
<h3 class="card-title"><?php
|
||||
echo $title;
|
||||
$tglawal = $awal;
|
||||
$tglakhir= $akhir;
|
||||
$tglgabung = date("m/d/Y", strtotime($awal))." - ".date("m/d/Y", strtotime($akhir));
|
||||
?></h3>
|
||||
</div>
|
||||
<form action="<?php echo(base_url()); ?>index.php/lp_ppi/idoterkontaminasi" method="post" autocomplete="off">
|
||||
<div class="card-body">
|
||||
<div class="form-group row">
|
||||
<label class="col-sm-1 col-form-label">Tanggal :</label>
|
||||
<div class="col-sm-4">
|
||||
<div class="input-group">
|
||||
<div class="input-group-prepend">
|
||||
<span class="input-group-text">
|
||||
<i class="far fa-calendar-alt"></i>
|
||||
</span>
|
||||
</div>
|
||||
<input type="text" name="tanggalmonitoring" class="form-control float-right" id="reservation" value="<?php echo $tglgabung;?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-2">
|
||||
<button type="submit" class="btn btn-outline-info">Search </button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<div class="card-body">
|
||||
<?php if($this->session->flashdata('message')){?>
|
||||
<div id="alert" class="alert alert-success alert-dismissable">
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
<i class="icon fa fa-check"></i> Alert!
|
||||
<?php echo $this->session->flashdata('message');?>
|
||||
</div>
|
||||
<?php }?>
|
||||
<script>
|
||||
setTimeout(function() {
|
||||
$('#alert').hide('fast');
|
||||
}, 3000);
|
||||
</script>
|
||||
<table id="example1" class="table table-bordered table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>No</th>
|
||||
<th>Data Pasien</th>
|
||||
<th>Ruang Ranap</th>
|
||||
<th>Created</th>
|
||||
<th>Datecreated</th>
|
||||
<th>MRS</th>
|
||||
<th>KRS</th>
|
||||
<th>Monitoring</th>
|
||||
<th>Tanggal</th>
|
||||
<th>Tgl Operasi</th>
|
||||
<th>Lama Perawatan</th>
|
||||
<th>Diagnosa PPI</th>
|
||||
<th>Diagnosa DPJP</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$no=0;
|
||||
foreach ($idoterkontaminasi as $dat) {
|
||||
$no++;
|
||||
if($dat->Diagnosa_nilai_iobt_ppi == 1){
|
||||
$diagnosappi = "<span class='badge bg-yellow'> Positif</span>";
|
||||
}else{
|
||||
$diagnosappi = "<span class='badge bg-gray'> Tidak</span>";
|
||||
}
|
||||
|
||||
if($dat->Diagnosa_ppi_dpjp == "TIDAK"){
|
||||
$diagnosadpjp = "<span class='badge bg-gray'> ".$dat->Diagnosa_ppi_dpjp."</span>";
|
||||
}else{
|
||||
$diagnosadpjp = "<span class='badge bg-red'> ".$dat->Diagnosa_ppi_dpjp."</span>";
|
||||
}
|
||||
|
||||
echo("
|
||||
<tr>
|
||||
<input type='hidden' id='isi".$dat->id."' value='".$dat->status."'>
|
||||
<td>".$no."</td>
|
||||
<td>".$dat->No_rekam_medis." - ".$dat->Nama_pasien." / ".$dat->Umur." Th / ".$dat->Jenis_kelamin."</td>
|
||||
<td>".$dat->Kode." - ".$dat->Nama." - Kelas ".$dat->Kelas."</td>
|
||||
<td>".$dat->first_name."</td>
|
||||
<td>".$dat->date_created."</td>
|
||||
<td>".$dat->Tanggal_mrs."</td>
|
||||
<td>".$dat->Tanggal_krs."</td>
|
||||
<td>".$dat->Monitoring_ke."</td>
|
||||
<td>".$dat->Tanggal_monitoring."</td>
|
||||
<td>".$dat->Tanggal_operasi."</td>
|
||||
<td>".$dat->Lama_hari_perawatan."</td>
|
||||
<td>".$diagnosappi."</td>
|
||||
<td>".$diagnosadpjp."</td>
|
||||
</tr>
|
||||
");
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
@@ -0,0 +1,138 @@
|
||||
<section class="content-header">
|
||||
<div class="container-fluid">
|
||||
<div class="row mb-2">
|
||||
<div class="col-sm-6">
|
||||
<h1>
|
||||
</h1>
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<ol class="breadcrumb float-sm-right">
|
||||
<li class="breadcrumb-item"><a href="<?php echo base_url();?>">Dashboard</a></li>
|
||||
<li class="breadcrumb-item"><?php echo $parent;?></li>
|
||||
<li class="breadcrumb-item active"><?php echo $title;?></li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<!-- Main content -->
|
||||
<section class="content">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="card card-default">
|
||||
<div class="card-header">
|
||||
<h3 class="card-title"><?php
|
||||
echo $title;
|
||||
$tglawal = $awal;
|
||||
$tglakhir= $akhir;
|
||||
$tglgabung = date("m/d/Y", strtotime($awal))." - ".date("m/d/Y", strtotime($akhir));
|
||||
?></h3>
|
||||
</div>
|
||||
<form action="<?php echo(base_url()); ?>index.php/lp_ppi/iskanak" method="post" autocomplete="off">
|
||||
<div class="card-body">
|
||||
<div class="form-group row">
|
||||
<label class="col-sm-1 col-form-label">Tanggal :</label>
|
||||
<div class="col-sm-4">
|
||||
<div class="input-group">
|
||||
<div class="input-group-prepend">
|
||||
<span class="input-group-text">
|
||||
<i class="far fa-calendar-alt"></i>
|
||||
</span>
|
||||
</div>
|
||||
<input type="text" name="tanggalmonitoring" class="form-control float-right" id="reservation" value="<?php echo $tglgabung;?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-2">
|
||||
<button type="submit" class="btn btn-outline-info">Search </button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<div class="card-body">
|
||||
<?php if($this->session->flashdata('message')){?>
|
||||
<div id="alert" class="alert alert-success alert-dismissable">
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
<i class="icon fa fa-check"></i> Alert!
|
||||
<?php echo $this->session->flashdata('message');?>
|
||||
</div>
|
||||
<?php }?>
|
||||
<script>
|
||||
setTimeout(function() {
|
||||
$('#alert').hide('fast');
|
||||
}, 3000);
|
||||
</script>
|
||||
<table id="example1" class="table table-bordered table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>No</th>
|
||||
<th>Data Pasien</th>
|
||||
<th>Ruang Ranap</th>
|
||||
<th>Created</th>
|
||||
<th>Datecreated</th>
|
||||
<th>MRS</th>
|
||||
<th>KRS</th>
|
||||
<th>Monitoring</th>
|
||||
<th>Tanggal</th>
|
||||
<th>Tgl Pasang</th>
|
||||
<th>Tgl Lepas</th>
|
||||
<th>Lama Pakai</th>
|
||||
<th>Ruang Pasang</th>
|
||||
<th>Diagnosa PPI</th>
|
||||
<th>Diagnosa DPJP</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$no=0;
|
||||
foreach ($iskanak as $dat) {
|
||||
$no++;
|
||||
if($dat->Diagnosa_nilai_isk_anak_ppi == 1){
|
||||
$diagnosappi = "<span class='badge bg-yellow'> Positif</span>";
|
||||
}else{
|
||||
$diagnosappi = "<span class='badge bg-gray'> Tidak</span>";
|
||||
}
|
||||
|
||||
if($dat->Diagnosa_ppi_dpjp == "TIDAK"){
|
||||
$diagnosadpjp = "<span class='badge bg-gray'> ".$dat->Diagnosa_ppi_dpjp."</span>";
|
||||
}else{
|
||||
$diagnosadpjp = "<span class='badge bg-red'> ".$dat->Diagnosa_ppi_dpjp."</span>";
|
||||
}
|
||||
|
||||
$ruangpasang = "-";
|
||||
foreach($rua as $row){
|
||||
if($row->id == $dat->Ruang_pemasangan_catheter_urine){
|
||||
$ruangpasang = $row->Kode." - ".$row->Nama." - Kelas ".$row->Kelas;
|
||||
}
|
||||
}
|
||||
|
||||
echo("
|
||||
<tr>
|
||||
<input type='hidden' id='isi".$dat->id."' value='".$dat->status."'>
|
||||
<td>".$no."</td>
|
||||
<td>".$dat->No_rekam_medis." - ".$dat->Nama_pasien." / ".$dat->Umur." Th / ".$dat->Jenis_kelamin."</td>
|
||||
<td>".$dat->Kode." - ".$dat->Nama." - Kelas ".$dat->Kelas."</td>
|
||||
<td>".$dat->first_name."</td>
|
||||
<td>".$dat->date_created."</td>
|
||||
<td>".$dat->Tanggal_mrs."</td>
|
||||
<td>".$dat->Tanggal_krs."</td>
|
||||
<td>".$dat->Monitoring_ke."</td>
|
||||
<td>".$dat->Tanggal_monitoring."</td>
|
||||
<td>".$dat->Tanggal_pemasangan_catheter_urine."</td>
|
||||
<td>".$dat->Tanggal_pelepasan_catheter_urine."</td>
|
||||
<td>".$dat->Lama_pemakaian_catheter_urine."</td>
|
||||
<td>".$ruangpasang."</td>
|
||||
<td>".$diagnosappi."</td>
|
||||
<td>".$diagnosadpjp."</td>
|
||||
</tr>
|
||||
");
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
@@ -0,0 +1,138 @@
|
||||
<section class="content-header">
|
||||
<div class="container-fluid">
|
||||
<div class="row mb-2">
|
||||
<div class="col-sm-6">
|
||||
<h1>
|
||||
</h1>
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<ol class="breadcrumb float-sm-right">
|
||||
<li class="breadcrumb-item"><a href="<?php echo base_url();?>">Dashboard</a></li>
|
||||
<li class="breadcrumb-item"><?php echo $parent;?></li>
|
||||
<li class="breadcrumb-item active"><?php echo $title;?></li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<!-- Main content -->
|
||||
<section class="content">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="card card-default">
|
||||
<div class="card-header">
|
||||
<h3 class="card-title"><?php
|
||||
echo $title;
|
||||
$tglawal = $awal;
|
||||
$tglakhir= $akhir;
|
||||
$tglgabung = date("m/d/Y", strtotime($awal))." - ".date("m/d/Y", strtotime($akhir));
|
||||
?></h3>
|
||||
</div>
|
||||
<form action="<?php echo(base_url()); ?>index.php/lp_ppi/iskdewasa" method="post" autocomplete="off">
|
||||
<div class="card-body">
|
||||
<div class="form-group row">
|
||||
<label class="col-sm-1 col-form-label">Tanggal :</label>
|
||||
<div class="col-sm-4">
|
||||
<div class="input-group">
|
||||
<div class="input-group-prepend">
|
||||
<span class="input-group-text">
|
||||
<i class="far fa-calendar-alt"></i>
|
||||
</span>
|
||||
</div>
|
||||
<input type="text" name="tanggalmonitoring" class="form-control float-right" id="reservation" value="<?php echo $tglgabung;?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-2">
|
||||
<button type="submit" class="btn btn-outline-info">Search </button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<div class="card-body">
|
||||
<?php if($this->session->flashdata('message')){?>
|
||||
<div id="alert" class="alert alert-success alert-dismissable">
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
<i class="icon fa fa-check"></i> Alert!
|
||||
<?php echo $this->session->flashdata('message');?>
|
||||
</div>
|
||||
<?php }?>
|
||||
<script>
|
||||
setTimeout(function() {
|
||||
$('#alert').hide('fast');
|
||||
}, 3000);
|
||||
</script>
|
||||
<table id="example1" class="table table-bordered table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>No</th>
|
||||
<th>Data Pasien</th>
|
||||
<th>Ruang Ranap</th>
|
||||
<th>Created</th>
|
||||
<th>Datecreated</th>
|
||||
<th>MRS</th>
|
||||
<th>KRS</th>
|
||||
<th>Monitoring</th>
|
||||
<th>Tanggal</th>
|
||||
<th>Tgl Pasang</th>
|
||||
<th>Tgl Lepas</th>
|
||||
<th>Lama Pakai</th>
|
||||
<th>Ruang Pasang</th>
|
||||
<th>Diagnosa PPI</th>
|
||||
<th>Diagnosa DPJP</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$no=0;
|
||||
foreach ($iskdewasa as $dat) {
|
||||
$no++;
|
||||
if($dat->Diagnosa_nilai_isk_dewasa_ppi == 1){
|
||||
$diagnosappi = "<span class='badge bg-yellow'> Positif</span>";
|
||||
}else{
|
||||
$diagnosappi = "<span class='badge bg-gray'> Tidak</span>";
|
||||
}
|
||||
|
||||
if($dat->Diagnosa_ppi_dpjp == "TIDAK"){
|
||||
$diagnosadpjp = "<span class='badge bg-gray'> ".$dat->Diagnosa_ppi_dpjp."</span>";
|
||||
}else{
|
||||
$diagnosadpjp = "<span class='badge bg-red'> ".$dat->Diagnosa_ppi_dpjp."</span>";
|
||||
}
|
||||
|
||||
$ruangpasang = "-";
|
||||
foreach($rua as $row){
|
||||
if($row->id == $dat->Ruang_pemasangan_catheter_urine){
|
||||
$ruangpasang = $row->Kode." - ".$row->Nama." - Kelas ".$row->Kelas;
|
||||
}
|
||||
}
|
||||
|
||||
echo("
|
||||
<tr>
|
||||
<input type='hidden' id='isi".$dat->id."' value='".$dat->status."'>
|
||||
<td>".$no."</td>
|
||||
<td>".$dat->No_rekam_medis." - ".$dat->Nama_pasien." / ".$dat->Umur." Th / ".$dat->Jenis_kelamin."</td>
|
||||
<td>".$dat->Kode." - ".$dat->Nama." - Kelas ".$dat->Kelas."</td>
|
||||
<td>".$dat->first_name."</td>
|
||||
<td>".$dat->date_created."</td>
|
||||
<td>".$dat->Tanggal_mrs."</td>
|
||||
<td>".$dat->Tanggal_krs."</td>
|
||||
<td>".$dat->Monitoring_ke."</td>
|
||||
<td>".$dat->Tanggal_monitoring."</td>
|
||||
<td>".$dat->Tanggal_pemasangan_catheter_urine."</td>
|
||||
<td>".$dat->Tanggal_pelepasan_catheter_urine."</td>
|
||||
<td>".$dat->Lama_pemakaian_catheter_urine."</td>
|
||||
<td>".$ruangpasang."</td>
|
||||
<td>".$diagnosappi."</td>
|
||||
<td>".$diagnosadpjp."</td>
|
||||
</tr>
|
||||
");
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
@@ -0,0 +1,326 @@
|
||||
<section class="content-header">
|
||||
<div class="container-fluid">
|
||||
<div class="row mb-2">
|
||||
<div class="col-sm-6">
|
||||
<h1>
|
||||
</h1>
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<ol class="breadcrumb float-sm-right">
|
||||
<li class="breadcrumb-item"><a href="<?php echo base_url();?>">Dashboard</a></li>
|
||||
<li class="breadcrumb-item"><?php echo $parent;?></li>
|
||||
<li class="breadcrumb-item active"><?php echo $title;?></li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<!-- Main content -->
|
||||
<section class="content">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="card card-default">
|
||||
<div class="card-header">
|
||||
<h3 class="card-title"><?php
|
||||
echo $title;
|
||||
$tglawal = $awal;
|
||||
$tglakhir= $akhir;
|
||||
$tglgabung = date("m/d/Y", strtotime($awal))." - ".date("m/d/Y", strtotime($akhir));
|
||||
?></h3>
|
||||
</div>
|
||||
<form action="<?php echo(base_url()); ?>index.php/lp_ppi/pasien_ppi" method="post" autocomplete="off">
|
||||
<div class="card-body">
|
||||
<div class="form-group row">
|
||||
<label class="col-sm-1 col-form-label">Tanggal :</label>
|
||||
<div class="col-sm-4">
|
||||
<div class="input-group">
|
||||
<div class="input-group-prepend">
|
||||
<span class="input-group-text">
|
||||
<i class="far fa-calendar-alt"></i>
|
||||
</span>
|
||||
</div>
|
||||
<input type="text" name="tanggalmonitoring" class="form-control float-right" id="reservation" value="<?php echo $tglgabung;?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-2">
|
||||
<button type="submit" class="btn btn-outline-info">Search </button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<div class="card-body">
|
||||
<?php if($this->session->flashdata('message')){?>
|
||||
<div id="alert" class="alert alert-success alert-dismissable">
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
<i class="icon fa fa-check"></i> Alert!
|
||||
<?php echo $this->session->flashdata('message');?>
|
||||
</div>
|
||||
<?php }?>
|
||||
<script>
|
||||
setTimeout(function() {
|
||||
$('#alert').hide('fast');
|
||||
}, 3000);
|
||||
</script>
|
||||
<table id="example1" class="table table-bordered table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>No</th>
|
||||
<th>Data Pasien</th>
|
||||
<th>Ruang Ranap</th>
|
||||
<th>MRS</th>
|
||||
<th>KRS</th>
|
||||
<th>PLELP</th>
|
||||
<th>PLEKJ</th>
|
||||
<th>VAPLP</th>
|
||||
<th>VAPKJ</th>
|
||||
<th>HAPLP</th>
|
||||
<th>HAPKJ</th>
|
||||
<th>IADALP</th>
|
||||
<th>IADAKJ</th>
|
||||
<th>IADDLP</th>
|
||||
<th>IADDKJ</th>
|
||||
<th>ISKALP</th>
|
||||
<th>ISKAKJ</th>
|
||||
<th>ISKDLP</th>
|
||||
<th>ISKDKJ</th>
|
||||
<th>IDOBLP</th>
|
||||
<th>IDOBKJ</th>
|
||||
<th>IDOTLP</th>
|
||||
<th>IDOTKJ</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$no=0; $datpasien = array();
|
||||
foreach($plb as $dat){
|
||||
$plenama = $dat->No_rekam_medis." - ".$dat->Nama_pasien." / ".$dat->Umur." Th / ".$dat->Jenis_kelamin;
|
||||
$ruangpasang = $dat->Kode." - ".$dat->Nama." - Kelas ".$dat->Kelas;
|
||||
$datpasien[] = array("nama" => $plenama,"ruang" => $ruangpasang,"mrs" => $dat->Tanggal_mrs,"krs" => $dat->Tanggal_krs,"idmrs" => $dat->FK_datamrs_datamedisplebitis_ID);
|
||||
}
|
||||
|
||||
foreach($vap as $dat){
|
||||
$plenama = $dat->No_rekam_medis." - ".$dat->Nama_pasien." / ".$dat->Umur." Th / ".$dat->Jenis_kelamin;
|
||||
$ruangpasang = $dat->Kode." - ".$dat->Nama." - Kelas ".$dat->Kelas;
|
||||
$datpasien[] = array("nama" => $plenama,"ruang" => $ruangpasang,"mrs" => $dat->Tanggal_mrs,"krs" => $dat->Tanggal_krs,"idmrs" => $dat->FK_datamrs_datamedissvap_ID);
|
||||
}
|
||||
|
||||
foreach($hap as $dat){
|
||||
$plenama = $dat->No_rekam_medis." - ".$dat->Nama_pasien." / ".$dat->Umur." Th / ".$dat->Jenis_kelamin;
|
||||
$ruangpasang = $dat->Kode." - ".$dat->Nama." - Kelas ".$dat->Kelas;
|
||||
$datpasien[] = array("nama" => $plenama,"ruang" => $ruangpasang,"mrs" => $dat->Tanggal_mrs,"krs" => $dat->Tanggal_krs,"idmrs" => $dat->FK_datamrs_datamedishap_ID);
|
||||
}
|
||||
|
||||
foreach($iadanak as $dat){
|
||||
$plenama = $dat->No_rekam_medis." - ".$dat->Nama_pasien." / ".$dat->Umur." Th / ".$dat->Jenis_kelamin;
|
||||
$ruangpasang = $dat->Kode." - ".$dat->Nama." - Kelas ".$dat->Kelas;
|
||||
$datpasien[] = array("nama" => $plenama,"ruang" => $ruangpasang,"mrs" => $dat->Tanggal_mrs,"krs" => $dat->Tanggal_krs,"idmrs" => $dat->FK_datamrs_datamedissiadanak_ID);
|
||||
}
|
||||
|
||||
foreach($iaddewasa as $dat){
|
||||
$plenama = $dat->No_rekam_medis." - ".$dat->Nama_pasien." / ".$dat->Umur." Th / ".$dat->Jenis_kelamin;
|
||||
$ruangpasang = $dat->Kode." - ".$dat->Nama." - Kelas ".$dat->Kelas;
|
||||
$datpasien[] = array("nama" => $plenama,"ruang" => $ruangpasang,"mrs" => $dat->Tanggal_mrs,"krs" => $dat->Tanggal_krs,"idmrs" => $dat->FK_datamrs_datamedissiaddewasa_ID);
|
||||
}
|
||||
|
||||
foreach($iskanak as $dat){
|
||||
$plenama = $dat->No_rekam_medis." - ".$dat->Nama_pasien." / ".$dat->Umur." Th / ".$dat->Jenis_kelamin;
|
||||
$ruangpasang = $dat->Kode." - ".$dat->Nama." - Kelas ".$dat->Kelas;
|
||||
$datpasien[] = array("nama" => $plenama,"ruang" => $ruangpasang,"mrs" => $dat->Tanggal_mrs,"krs" => $dat->Tanggal_krs,"idmrs" => $dat->FK_datamrs_datamedissiskanak_ID);
|
||||
}
|
||||
|
||||
foreach($iskdewasa as $dat){
|
||||
$plenama = $dat->No_rekam_medis." - ".$dat->Nama_pasien." / ".$dat->Umur." Th / ".$dat->Jenis_kelamin;
|
||||
$ruangpasang = $dat->Kode." - ".$dat->Nama." - Kelas ".$dat->Kelas;
|
||||
$datpasien[] = array("nama" => $plenama,"ruang" => $ruangpasang,"mrs" => $dat->Tanggal_mrs,"krs" => $dat->Tanggal_krs,"idmrs" => $dat->FK_datamrs_datamedissiskdewasa_ID);
|
||||
}
|
||||
|
||||
foreach($idobersih as $dat){
|
||||
$plenama = $dat->No_rekam_medis." - ".$dat->Nama_pasien." / ".$dat->Umur." Th / ".$dat->Jenis_kelamin;
|
||||
$ruangpasang = $dat->Kode." - ".$dat->Nama." - Kelas ".$dat->Kelas;
|
||||
$datpasien[] = array("nama" => $plenama,"ruang" => $ruangpasang,"mrs" => $dat->Tanggal_mrs,"krs" => $dat->Tanggal_krs,"idmrs" => $dat->FK_datamrs_datamedissiob_ID);
|
||||
}
|
||||
|
||||
foreach($idoterkontaminasi as $dat){
|
||||
$plenama = $dat->No_rekam_medis." - ".$dat->Nama_pasien." / ".$dat->Umur." Th / ".$dat->Jenis_kelamin;
|
||||
$ruangpasang = $dat->Kode." - ".$dat->Nama." - Kelas ".$dat->Kelas;
|
||||
$datpasien[] = array("nama" => $plenama,"ruang" => $ruangpasang,"mrs" => $dat->Tanggal_mrs,"krs" => $dat->Tanggal_krs,"idmrs" => $dat->FK_datamrs_datamedissiobt_ID);
|
||||
}
|
||||
|
||||
|
||||
$unique_pasien = array_unique($datpasien, SORT_REGULAR);
|
||||
foreach($unique_pasien as $item){ $no++;
|
||||
//================================================================Search Data Plebitis hitung monitoring Ke & Kejadian
|
||||
$tgl = 1; $plelp = 0; $plekj=0;
|
||||
foreach($mplb as $dat){
|
||||
if($dat->FK_datamrs_datamedisplebitis_ID==$item['idmrs']){
|
||||
$plekj = $plekj + $dat->Diagnosa_nilai_plebitis_ppi;
|
||||
if($tgl == 1){
|
||||
$tgl = $dat->Tanggal_pemasangan_infus;
|
||||
$plelp = $plelp + $dat->Lama_pemakaian_infus;
|
||||
}else if($tgl !=$dat->Tanggal_pemasangan_infus){
|
||||
$tgl = $dat->Tanggal_pemasangan_infus;
|
||||
$plelp = $plelp + $dat->Lama_pemakaian_infus;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
if($plelp==0){$plelp="-";}if($plekj==0){$plekj="-";}
|
||||
//================================================================Search Data Vap hitung monitoring Ke & Kejadian
|
||||
$tgl = 1; $vaplp = 0; $vapkj=0;
|
||||
foreach($mvap as $dat){
|
||||
if($dat->FK_datamrs_datamedissvap_ID==$item['idmrs']){
|
||||
if($dat->Diagnosa_ppi_dpjp!="TIDAK"){$vapkj = $vapkj + 1;}
|
||||
if($tgl == 1){
|
||||
$tgl = $dat->Tanggal_pemasangan_ventilator;
|
||||
$vaplp = $vaplp + $dat->Lama_pemakaian_ventilator;
|
||||
}else if($tgl !=$dat->Tanggal_pemasangan_ventilator){
|
||||
$tgl = $dat->Tanggal_pemasangan_ventilator;
|
||||
$vaplp = $vaplp + $dat->Lama_pemakaian_ventilator;
|
||||
}
|
||||
}
|
||||
}
|
||||
if($vaplp==0){$vaplp="-";}if($vapkj==0){$vapkj="-";}
|
||||
//================================================================Search Data Hap hitung monitoring Ke & Kejadian
|
||||
$tgl = 1; $haplp = 0; $hapkj=0;
|
||||
foreach($mhap as $dat){
|
||||
if($dat->FK_datamrs_datamedishap_ID==$item['idmrs']){
|
||||
if($dat->Diagnosa_ppi_dpjp!="TIDAK"){$hapkj = $hapkj + 1;}
|
||||
if($tgl == 1){
|
||||
$tgl = $dat->Tanggal_mulai_tirah_baring;
|
||||
$haplp = $haplp + $dat->Lama_tirah_baring;
|
||||
}else if($tgl !=$dat->Tanggal_mulai_tirah_baring){
|
||||
$tgl = $dat->Tanggal_mulai_tirah_baring;
|
||||
$haplp = $haplp + $dat->Lama_tirah_baring;
|
||||
}
|
||||
}
|
||||
}
|
||||
if($haplp==0){$haplp="-";}if($hapkj==0){$hapkj="-";}
|
||||
//================================================================Search Data IAD Anak hitung monitoring Ke & Kejadian
|
||||
$tgl = 1; $iadanaklp = 0; $iadanakkj=0;
|
||||
foreach($iadanak as $dat){
|
||||
if($dat->FK_datamrs_datamedissiadanak_ID==$item['idmrs']){
|
||||
if($dat->Diagnosa_ppi_dpjp!="TIDAK"){$iadanakkj = $iadanakkj + 1;}
|
||||
if($tgl == 1){
|
||||
$tgl = $dat->Tanggal_pemasangan_cvc;
|
||||
$iadanaklp = $iadanaklp + $dat->Lama_pemakaian_cvc;
|
||||
}else if($tgl !=$dat->Tanggal_pemasangan_cvc){
|
||||
$tgl = $dat->Tanggal_pemasangan_cvc;
|
||||
$iadanaklp = $iadanaklp + $dat->Lama_pemakaian_cvc;
|
||||
}
|
||||
}
|
||||
}
|
||||
if($iadanaklp==0){$iadanaklp="-";}if($iadanakkj==0){$iadanakkj="-";}
|
||||
//================================================================Search Data IAD Dewasa hitung monitoring Ke & Kejadian
|
||||
$tgl = 1; $iaddewasalp = 0; $iaddewasakj=0;
|
||||
foreach($iaddewasa as $dat){
|
||||
if($dat->FK_datamrs_datamedissiaddewasa_ID==$item['idmrs']){
|
||||
if($dat->Diagnosa_ppi_dpjp!="TIDAK"){$iaddewasakj = $iaddewasakj + 1;}
|
||||
if($tgl == 1){
|
||||
$tgl = $dat->Tanggal_pemasangan_cvc;
|
||||
$iaddewasalp = $iaddewasalp + $dat->Lama_pemakaian_cvc;
|
||||
}else if($tgl !=$dat->Tanggal_pemasangan_cvc){
|
||||
$tgl = $dat->Tanggal_pemasangan_cvc;
|
||||
$iaddewasalp = $iaddewasalp + $dat->Lama_pemakaian_cvc;
|
||||
}
|
||||
}
|
||||
}
|
||||
if($iaddewasalp==0){$iaddewasalp="-";}if($iaddewasakj==0){$iaddewasakj="-";}
|
||||
//================================================================Search Data ISK Anak hitung monitoring Ke & Kejadian
|
||||
$tgl = 1; $iskanaklp = 0; $iskanakkj=0;
|
||||
foreach($iskanak as $dat){
|
||||
if($dat->FK_datamrs_datamedissiskanak_ID==$item['idmrs']){
|
||||
if($dat->Diagnosa_ppi_dpjp!="TIDAK"){$iskanakkj = $iskanakkj + 1;}
|
||||
if($tgl == 1){
|
||||
$tgl = $dat->Tanggal_pemasangan_catheter_urine;
|
||||
$iskanaklp = $iskanaklp + $dat->Lama_pemakaian_catheter_urine;
|
||||
}else if($tgl !=$dat->Tanggal_pemasangan_catheter_urine){
|
||||
$tgl = $dat->Tanggal_pemasangan_catheter_urine;
|
||||
$iskanaklp = $iskanaklp + $dat->Lama_pemakaian_catheter_urine;
|
||||
}
|
||||
}
|
||||
}
|
||||
if($iskanaklp==0){$iskanaklp="-";}if($iskanakkj==0){$iskanakkj="-";}
|
||||
//================================================================Search Data ISK Dewasa hitung monitoring Ke & Kejadian
|
||||
$tgl = 1; $iskdewasalp = 0; $iskdewasakj=0;
|
||||
foreach($iskdewasa as $dat){
|
||||
if($dat->FK_datamrs_datamedissiskdewasa_ID==$item['idmrs']){
|
||||
if($dat->Diagnosa_ppi_dpjp!="TIDAK"){$iskdewasakj = $iskdewasakj + 1;}
|
||||
if($tgl == 1){
|
||||
$tgl = $dat->Tanggal_pemasangan_catheter_urine;
|
||||
$iskdewasalp = $iskdewasalp + $dat->Lama_pemakaian_catheter_urine;
|
||||
}else if($tgl !=$dat->Tanggal_pemasangan_catheter_urine){
|
||||
$tgl = $dat->Tanggal_pemasangan_catheter_urine;
|
||||
$iskdewasalp = $iskdewasalp + $dat->Lama_pemakaian_catheter_urine;
|
||||
}
|
||||
}
|
||||
}
|
||||
if($iskdewasalp==0){$iskdewasalp="-";}if($iskdewasakj==0){$iskdewasakj="-";}
|
||||
//================================================================Search Data IDO Bersih hitung monitoring Ke & Kejadian
|
||||
$tgl = 1; $idolp = 0; $idokj=0;
|
||||
foreach($mido as $dat){
|
||||
if($dat->FK_datamrs_datamedissiob_ID==$item['idmrs']){
|
||||
if($dat->Diagnosa_ppi_dpjp!="TIDAK"){$idokj = $idokj + 1;}
|
||||
if($tgl == 1){
|
||||
$tgl = $dat->Tanggal_operasi;
|
||||
$idolp = $idolp + $dat->Lama_hari_perawatan;
|
||||
}else if($tgl !=$dat->Tanggal_operasi){
|
||||
$tgl = $dat->Tanggal_operasi;
|
||||
$idolp = $idolp + $dat->Lama_hari_perawatan;
|
||||
}
|
||||
}
|
||||
}
|
||||
if($idolp==0){$idolp="-";}if($idokj==0){$idokj="-";}
|
||||
//================================================================Search Data IDO Terkontaminasi hitung monitoring Ke & Kejadian
|
||||
$tgl = 1; $idotlp = 0; $idotkj=0;
|
||||
foreach($midot as $dat){
|
||||
if($dat->FK_datamrs_datamedissiobt_ID==$item['idmrs']){
|
||||
if($dat->Diagnosa_ppi_dpjp!="TIDAK"){$idotkj = $idotkj + 1;}
|
||||
if($tgl == 1){
|
||||
$tgl = $dat->Tanggal_operasi;
|
||||
$idotlp = $idotlp + $dat->Lama_hari_perawatan;
|
||||
}else if($tgl !=$dat->Tanggal_operasi){
|
||||
$tgl = $dat->Tanggal_operasi;
|
||||
$idotlp = $idotlp + $dat->Lama_hari_perawatan;
|
||||
}
|
||||
}
|
||||
}
|
||||
if($idotlp==0){$idotlp="-";}if($idotkj==0){$idotkj="-";}
|
||||
echo("
|
||||
<tr>
|
||||
<td>".$no."</td>
|
||||
<td>".$item['nama']."</td>
|
||||
<td>".$item['ruang']."</td>
|
||||
<td>".$item['mrs']."</td>
|
||||
<td>".$item['krs']."</td>
|
||||
<td>".$plelp."</td>
|
||||
<td>".$plekj."</td>
|
||||
<td>".$vaplp."</td>
|
||||
<td>".$vapkj."</td>
|
||||
<td>".$haplp."</td>
|
||||
<td>".$hapkj."</td>
|
||||
<td>".$iadanaklp."</td>
|
||||
<td>".$iadanakkj."</td>
|
||||
<td>".$iaddewasalp."</td>
|
||||
<td>".$iaddewasakj."</td>
|
||||
<td>".$iskanaklp."</td>
|
||||
<td>".$iskanakkj."</td>
|
||||
<td>".$iskdewasalp."</td>
|
||||
<td>".$iskdewasakj."</td>
|
||||
<td>".$idolp."</td>
|
||||
<td>".$idokj."</td>
|
||||
<td>".$idotlp."</td>
|
||||
<td>".$idotkj."</td>
|
||||
</tr>
|
||||
");
|
||||
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
@@ -0,0 +1,130 @@
|
||||
<section class="content-header">
|
||||
<div class="container-fluid">
|
||||
<div class="row mb-2">
|
||||
<div class="col-sm-6">
|
||||
<h1>
|
||||
</h1>
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<ol class="breadcrumb float-sm-right">
|
||||
<li class="breadcrumb-item"><a href="<?php echo base_url();?>">Dashboard</a></li>
|
||||
<li class="breadcrumb-item"><?php echo $parent;?></li>
|
||||
<li class="breadcrumb-item active"><?php echo $title;?></li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<!-- Main content -->
|
||||
<section class="content">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="card card-default">
|
||||
<div class="card-header">
|
||||
<h3 class="card-title"><?php
|
||||
echo $title;
|
||||
$tglawal = $awal;
|
||||
$tglakhir= $akhir;
|
||||
$tglgabung = date("m/d/Y", strtotime($awal))." - ".date("m/d/Y", strtotime($akhir));
|
||||
?></h3>
|
||||
</div>
|
||||
<form action="<?php echo(base_url()); ?>index.php/lp_ppi/plebitis" method="post" autocomplete="off">
|
||||
<div class="card-body">
|
||||
<div class="form-group row">
|
||||
<label class="col-sm-1 col-form-label">Tanggal :</label>
|
||||
<div class="col-sm-4">
|
||||
<div class="input-group">
|
||||
<div class="input-group-prepend">
|
||||
<span class="input-group-text">
|
||||
<i class="far fa-calendar-alt"></i>
|
||||
</span>
|
||||
</div>
|
||||
<input type="text" name="tanggalmonitoring" class="form-control float-right" id="reservation" value="<?php echo $tglgabung;?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-2">
|
||||
<button type="submit" class="btn btn-outline-info">Search </button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<div class="card-body">
|
||||
<?php if($this->session->flashdata('message')){?>
|
||||
<div id="alert" class="alert alert-success alert-dismissable">
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
<i class="icon fa fa-check"></i> Alert!
|
||||
<?php echo $this->session->flashdata('message');?>
|
||||
</div>
|
||||
<?php }?>
|
||||
<script>
|
||||
setTimeout(function() {
|
||||
$('#alert').hide('fast');
|
||||
}, 3000);
|
||||
</script>
|
||||
<table id="example1" class="table table-bordered table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>No</th>
|
||||
<th>Data Pasien</th>
|
||||
<th>Ruang Ranap</th>
|
||||
<th>Created</th>
|
||||
<th>Datecreated</th>
|
||||
<th>MRS</th>
|
||||
<th>KRS</th>
|
||||
<th>Monitoring</th>
|
||||
<th>Tanggal</th>
|
||||
<th>Tgl Pasang</th>
|
||||
<th>Tgl Lepas</th>
|
||||
<th>Lama Pakai</th>
|
||||
<th>Ruang Pasang</th>
|
||||
<th>Diagnosa PPI</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$no=0;
|
||||
foreach ($plb as $dat) {
|
||||
$no++;
|
||||
if($dat->Diagnosa_nilai_plebitis_ppi == 1){
|
||||
$diagnosappi = "<span class='badge bg-red'> Positif</span>";
|
||||
}else{
|
||||
$diagnosappi = "<span class='badge bg-gray'> Tidak</span>";
|
||||
}
|
||||
|
||||
$ruangpasang = "-";
|
||||
foreach($rua as $row){
|
||||
if($row->id == $dat->Ruang_pemasangan_infus){
|
||||
$ruangpasang = $row->Kode." - ".$row->Nama." - Kelas ".$row->Kelas;
|
||||
}
|
||||
}
|
||||
|
||||
echo("
|
||||
<tr>
|
||||
<input type='hidden' id='isi".$dat->id."' value='".$dat->status."'>
|
||||
<td>".$no."</td>
|
||||
<td>".$dat->No_rekam_medis." - ".$dat->Nama_pasien." / ".$dat->Umur." Th / ".$dat->Jenis_kelamin."</td>
|
||||
<td>".$dat->Kode." - ".$dat->Nama." - Kelas ".$dat->Kelas."</td>
|
||||
<td>".$dat->first_name."</td>
|
||||
<td>".$dat->date_created."</td>
|
||||
<td>".$dat->Tanggal_mrs."</td>
|
||||
<td>".$dat->Tanggal_krs."</td>
|
||||
<td>".$dat->Monitoring_ke."</td>
|
||||
<td>".$dat->Tanggal_monitoring."</td>
|
||||
<td>".$dat->Tanggal_pemasangan_infus."</td>
|
||||
<td>".$dat->Tanggal_pelepasan_infus."</td>
|
||||
<td>".$dat->Lama_pemakaian_infus."</td>
|
||||
<td>".$ruangpasang."</td>
|
||||
<td>".$diagnosappi."</td>
|
||||
</tr>
|
||||
");
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
@@ -0,0 +1,331 @@
|
||||
<section class="content-header">
|
||||
<div class="container-fluid">
|
||||
<div class="row mb-2">
|
||||
<div class="col-sm-6">
|
||||
<h1>
|
||||
</h1>
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<ol class="breadcrumb float-sm-right">
|
||||
<li class="breadcrumb-item"><a href="<?php echo base_url();?>">Dashboard</a></li>
|
||||
<li class="breadcrumb-item"><?php echo $parent;?></li>
|
||||
<li class="breadcrumb-item active"><?php echo $title;?></li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<!-- Main content -->
|
||||
<section class="content">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="card card-default">
|
||||
<div class="card-header">
|
||||
<h3 class="card-title"><?php
|
||||
echo $title;
|
||||
$tglawal = $awal;
|
||||
$tglakhir= $akhir;
|
||||
$tglgabung = date("m/d/Y", strtotime($awal))." - ".date("m/d/Y", strtotime($akhir));
|
||||
?></h3>
|
||||
</div>
|
||||
<form action="<?php echo(base_url()); ?>index.php/lp_ppi/ruang_ppi" method="post" autocomplete="off">
|
||||
<div class="card-body">
|
||||
<div class="form-group row">
|
||||
<label class="col-sm-1 col-form-label">Tanggal :</label>
|
||||
<div class="col-sm-4">
|
||||
<div class="input-group">
|
||||
<div class="input-group-prepend">
|
||||
<span class="input-group-text">
|
||||
<i class="far fa-calendar-alt"></i>
|
||||
</span>
|
||||
</div>
|
||||
<input type="text" name="tanggalmonitoring" class="form-control float-right" id="reservation" value="<?php echo $tglgabung;?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-2">
|
||||
<button type="submit" class="btn btn-outline-info">Search </button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<div class="card-body">
|
||||
<?php if($this->session->flashdata('message')){?>
|
||||
<div id="alert" class="alert alert-success alert-dismissable">
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
<i class="icon fa fa-check"></i> Alert!
|
||||
<?php echo $this->session->flashdata('message');?>
|
||||
</div>
|
||||
<?php }?>
|
||||
<script>
|
||||
setTimeout(function() {
|
||||
$('#alert').hide('fast');
|
||||
}, 3000);
|
||||
</script>
|
||||
<table id="example1" class="table table-bordered table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>No</th>
|
||||
<th>Kode</th>
|
||||
<th>Ruang Ranap</th>
|
||||
<th>Kelas</th>
|
||||
<th>Pasien</th>
|
||||
<th>PLELP</th>
|
||||
<th>PLEKJ</th>
|
||||
<th>VAPLP</th>
|
||||
<th>VAPKJ</th>
|
||||
<th>HAPLP</th>
|
||||
<th>HAPKJ</th>
|
||||
<th>IADALP</th>
|
||||
<th>IADAKJ</th>
|
||||
<th>IADDLP</th>
|
||||
<th>IADDKJ</th>
|
||||
<th>ISKALP</th>
|
||||
<th>ISKAKJ</th>
|
||||
<th>ISKDLP</th>
|
||||
<th>ISKDKJ</th>
|
||||
<th>IDOBLP</th>
|
||||
<th>IDOBKJ</th>
|
||||
<th>IDOTLP</th>
|
||||
<th>IDOTKJ</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$no=0; $datpasien = array();
|
||||
foreach($plb as $dat){
|
||||
$plenama = $dat->No_rekam_medis." - ".$dat->Nama_pasien." / ".$dat->Umur." Th / ".$dat->Jenis_kelamin;
|
||||
$ruangpasang = $dat->Kode." - ".$dat->Nama." - Kelas ".$dat->Kelas;
|
||||
$datpasien[] = array("nama" => $plenama,"ruang" => $ruangpasang,"mrs" => $dat->Tanggal_mrs,"krs" => $dat->Tanggal_krs,"idmrs" => $dat->FK_datamrs_datamedisplebitis_ID,"idruang" => $dat->Ruang);
|
||||
}
|
||||
|
||||
foreach($vap as $dat){
|
||||
$plenama = $dat->No_rekam_medis." - ".$dat->Nama_pasien." / ".$dat->Umur." Th / ".$dat->Jenis_kelamin;
|
||||
$ruangpasang = $dat->Kode." - ".$dat->Nama." - Kelas ".$dat->Kelas;
|
||||
$datpasien[] = array("nama" => $plenama,"ruang" => $ruangpasang,"mrs" => $dat->Tanggal_mrs,"krs" => $dat->Tanggal_krs,"idmrs" => $dat->FK_datamrs_datamedissvap_ID,"idruang" => $dat->Ruang);
|
||||
}
|
||||
|
||||
foreach($hap as $dat){
|
||||
$plenama = $dat->No_rekam_medis." - ".$dat->Nama_pasien." / ".$dat->Umur." Th / ".$dat->Jenis_kelamin;
|
||||
$ruangpasang = $dat->Kode." - ".$dat->Nama." - Kelas ".$dat->Kelas;
|
||||
$datpasien[] = array("nama" => $plenama,"ruang" => $ruangpasang,"mrs" => $dat->Tanggal_mrs,"krs" => $dat->Tanggal_krs,"idmrs" => $dat->FK_datamrs_datamedishap_ID,"idruang" => $dat->Ruang);
|
||||
}
|
||||
|
||||
foreach($iadanak as $dat){
|
||||
$plenama = $dat->No_rekam_medis." - ".$dat->Nama_pasien." / ".$dat->Umur." Th / ".$dat->Jenis_kelamin;
|
||||
$ruangpasang = $dat->Kode." - ".$dat->Nama." - Kelas ".$dat->Kelas;
|
||||
$datpasien[] = array("nama" => $plenama,"ruang" => $ruangpasang,"mrs" => $dat->Tanggal_mrs,"krs" => $dat->Tanggal_krs,"idmrs" => $dat->FK_datamrs_datamedissiadanak_ID,"idruang" => $dat->Ruang);
|
||||
}
|
||||
|
||||
foreach($iaddewasa as $dat){
|
||||
$plenama = $dat->No_rekam_medis." - ".$dat->Nama_pasien." / ".$dat->Umur." Th / ".$dat->Jenis_kelamin;
|
||||
$ruangpasang = $dat->Kode." - ".$dat->Nama." - Kelas ".$dat->Kelas;
|
||||
$datpasien[] = array("nama" => $plenama,"ruang" => $ruangpasang,"mrs" => $dat->Tanggal_mrs,"krs" => $dat->Tanggal_krs,"idmrs" => $dat->FK_datamrs_datamedissiaddewasa_ID,"idruang" => $dat->Ruang);
|
||||
}
|
||||
|
||||
foreach($iskanak as $dat){
|
||||
$plenama = $dat->No_rekam_medis." - ".$dat->Nama_pasien." / ".$dat->Umur." Th / ".$dat->Jenis_kelamin;
|
||||
$ruangpasang = $dat->Kode." - ".$dat->Nama." - Kelas ".$dat->Kelas;
|
||||
$datpasien[] = array("nama" => $plenama,"ruang" => $ruangpasang,"mrs" => $dat->Tanggal_mrs,"krs" => $dat->Tanggal_krs,"idmrs" => $dat->FK_datamrs_datamedissiskanak_ID,"idruang" => $dat->Ruang);
|
||||
}
|
||||
|
||||
foreach($iskdewasa as $dat){
|
||||
$plenama = $dat->No_rekam_medis." - ".$dat->Nama_pasien." / ".$dat->Umur." Th / ".$dat->Jenis_kelamin;
|
||||
$ruangpasang = $dat->Kode." - ".$dat->Nama." - Kelas ".$dat->Kelas;
|
||||
$datpasien[] = array("nama" => $plenama,"ruang" => $ruangpasang,"mrs" => $dat->Tanggal_mrs,"krs" => $dat->Tanggal_krs,"idmrs" => $dat->FK_datamrs_datamedissiskdewasa_ID,"idruang" => $dat->Ruang);
|
||||
}
|
||||
|
||||
foreach($idobersih as $dat){
|
||||
$plenama = $dat->No_rekam_medis." - ".$dat->Nama_pasien." / ".$dat->Umur." Th / ".$dat->Jenis_kelamin;
|
||||
$ruangpasang = $dat->Kode." - ".$dat->Nama." - Kelas ".$dat->Kelas;
|
||||
$datpasien[] = array("nama" => $plenama,"ruang" => $ruangpasang,"mrs" => $dat->Tanggal_mrs,"krs" => $dat->Tanggal_krs,"idmrs" => $dat->FK_datamrs_datamedissiob_ID,"idruang" => $dat->Ruang);
|
||||
}
|
||||
|
||||
foreach($idoterkontaminasi as $dat){
|
||||
$plenama = $dat->No_rekam_medis." - ".$dat->Nama_pasien." / ".$dat->Umur." Th / ".$dat->Jenis_kelamin;
|
||||
$ruangpasang = $dat->Kode." - ".$dat->Nama." - Kelas ".$dat->Kelas;
|
||||
$datpasien[] = array("nama" => $plenama,"ruang" => $ruangpasang,"mrs" => $dat->Tanggal_mrs,"krs" => $dat->Tanggal_krs,"idmrs" => $dat->FK_datamrs_datamedissiobt_ID,"idruang" => $dat->Ruang);
|
||||
}
|
||||
|
||||
|
||||
$unique_pasien = array_unique($datpasien, SORT_REGULAR);
|
||||
foreach($rua as $datruang){
|
||||
$plelp = 0; $plekj = 0; $vaplp = 0; $vapkj = 0;
|
||||
$haplp = 0; $hapkj=0; $iadanaklp = 0; $iadanakkj=0; $iaddewasalp = 0; $iaddewasakj=0;
|
||||
$iskanaklp = 0; $iskanakkj=0; $iskdewasalp = 0; $iskdewasakj=0;
|
||||
$idolp = 0; $idokj=0; $idotlp = 0; $idotkj=0;
|
||||
$jmlpx=0;
|
||||
foreach($unique_pasien as $item){
|
||||
if($item['idruang']==$datruang->id){ $jmlpx++;
|
||||
//================================================================Search Data Plebitis hitung monitoring Ke & Kejadian
|
||||
$tgl = 1; //$plelp = 0; $plekj = 0;
|
||||
foreach($mplb as $dat){
|
||||
if($dat->FK_datamrs_datamedisplebitis_ID==$item['idmrs']){
|
||||
$plekj = (int)$plekj + (int)$dat->Diagnosa_nilai_plebitis_ppi;
|
||||
if($tgl == 1){
|
||||
$tgl = $dat->Tanggal_pemasangan_infus;
|
||||
$plelp = (int)$plelp + $dat->Lama_pemakaian_infus;
|
||||
}else if($tgl !=$dat->Tanggal_pemasangan_infus){
|
||||
$tgl = $dat->Tanggal_pemasangan_infus;
|
||||
$plelp = (int)$plelp + $dat->Lama_pemakaian_infus;
|
||||
}
|
||||
}
|
||||
}
|
||||
//================================================================Search Data Vap hitung monitoring Ke & Kejadian
|
||||
$tgl = 1; //$vaplp = 0; $vapkj=0;
|
||||
foreach($mvap as $dat){
|
||||
if($dat->FK_datamrs_datamedissvap_ID==$item['idmrs']){
|
||||
if($dat->Diagnosa_ppi_dpjp!="TIDAK"){$vapkj = (int)$vapkj + 1;}
|
||||
if($tgl == 1){
|
||||
$tgl = $dat->Tanggal_pemasangan_ventilator;
|
||||
$vaplp = (int)$vaplp + (int)$dat->Lama_pemakaian_ventilator;
|
||||
}else if($tgl !=$dat->Tanggal_pemasangan_ventilator){
|
||||
$tgl = $dat->Tanggal_pemasangan_ventilator;
|
||||
$vaplp = (int)$vaplp + (int)$dat->Lama_pemakaian_ventilator;
|
||||
}
|
||||
}
|
||||
}
|
||||
//================================================================Search Data Hap hitung monitoring Ke & Kejadian
|
||||
$tgl = 1; //$haplp = 0; $hapkj=0;
|
||||
foreach($mhap as $dat){
|
||||
if($dat->FK_datamrs_datamedishap_ID==$item['idmrs']){
|
||||
if($dat->Diagnosa_ppi_dpjp!="TIDAK"){$hapkj = (int)$hapkj + 1;}
|
||||
if($tgl == 1){
|
||||
$tgl = $dat->Tanggal_mulai_tirah_baring;
|
||||
$haplp = (int)$haplp + (int)$dat->Lama_tirah_baring;
|
||||
}else if($tgl !=$dat->Tanggal_mulai_tirah_baring){
|
||||
$tgl = $dat->Tanggal_mulai_tirah_baring;
|
||||
$haplp = (int)$haplp + (int)$dat->Lama_tirah_baring;
|
||||
}
|
||||
}
|
||||
}
|
||||
//================================================================Search Data IAD Anak hitung monitoring Ke & Kejadian
|
||||
$tgl = 1; //$iadanaklp = 0; $iadanakkj=0;
|
||||
foreach($iadanak as $dat){
|
||||
if($dat->FK_datamrs_datamedissiadanak_ID==$item['idmrs']){
|
||||
if($dat->Diagnosa_ppi_dpjp!="TIDAK"){$iadanakkj = (int)$iadanakkj + 1;}
|
||||
if($tgl == 1){
|
||||
$tgl = $dat->Tanggal_pemasangan_cvc;
|
||||
$iadanaklp = (int)$iadanaklp + (int)$dat->Lama_pemakaian_cvc;
|
||||
}else if($tgl !=$dat->Tanggal_pemasangan_cvc){
|
||||
$tgl = $dat->Tanggal_pemasangan_cvc;
|
||||
$iadanaklp = (int)$iadanaklp + (int)$dat->Lama_pemakaian_cvc;
|
||||
}
|
||||
}
|
||||
}
|
||||
//================================================================Search Data IAD Dewasa hitung monitoring Ke & Kejadian
|
||||
$tgl = 1; //$iaddewasalp = 0; $iaddewasakj=0;
|
||||
foreach($iaddewasa as $dat){
|
||||
if($dat->FK_datamrs_datamedissiaddewasa_ID==$item['idmrs']){
|
||||
if($dat->Diagnosa_ppi_dpjp!="TIDAK"){$iaddewasakj = (int)$iaddewasakj + 1;}
|
||||
if($tgl == 1){
|
||||
$tgl = $dat->Tanggal_pemasangan_cvc;
|
||||
$iaddewasalp = (int)$iaddewasalp + (int)$dat->Lama_pemakaian_cvc;
|
||||
}else if($tgl !=$dat->Tanggal_pemasangan_cvc){
|
||||
$tgl = $dat->Tanggal_pemasangan_cvc;
|
||||
$iaddewasalp = (int)$iaddewasalp + (int)$dat->Lama_pemakaian_cvc;
|
||||
}
|
||||
}
|
||||
}
|
||||
//================================================================Search Data ISK Anak hitung monitoring Ke & Kejadian
|
||||
$tgl = 1; //$iskanaklp = 0; $iskanakkj=0;
|
||||
foreach($iskanak as $dat){
|
||||
if($dat->FK_datamrs_datamedissiskanak_ID==$item['idmrs']){
|
||||
if($dat->Diagnosa_ppi_dpjp!="TIDAK"){$iskanakkj = (int)$iskanakkj + 1;}
|
||||
if($tgl == 1){
|
||||
$tgl = $dat->Tanggal_pemasangan_catheter_urine;
|
||||
$iskanaklp = (int)$iskanaklp + (int)$dat->Lama_pemakaian_catheter_urine;
|
||||
}else if($tgl !=$dat->Tanggal_pemasangan_catheter_urine){
|
||||
$tgl = $dat->Tanggal_pemasangan_catheter_urine;
|
||||
$iskanaklp = (int)$iskanaklp + (int)$dat->Lama_pemakaian_catheter_urine;
|
||||
}
|
||||
}
|
||||
}
|
||||
//================================================================Search Data ISK Dewasa hitung monitoring Ke & Kejadian
|
||||
$tgl = 1; //$iskdewasalp = 0; $iskdewasakj=0;
|
||||
foreach($iskdewasa as $dat){
|
||||
if($dat->FK_datamrs_datamedissiskdewasa_ID==$item['idmrs']){
|
||||
if($dat->Diagnosa_ppi_dpjp!="TIDAK"){$iskdewasakj = (int)$iskdewasakj + 1;}
|
||||
if($tgl == 1){
|
||||
$tgl = $dat->Tanggal_pemasangan_catheter_urine;
|
||||
$iskdewasalp = (int)$iskdewasalp + (int)$dat->Lama_pemakaian_catheter_urine;
|
||||
}else if($tgl !=$dat->Tanggal_pemasangan_catheter_urine){
|
||||
$tgl = $dat->Tanggal_pemasangan_catheter_urine;
|
||||
$iskdewasalp = (int)$iskdewasalp + (int)$dat->Lama_pemakaian_catheter_urine;
|
||||
}
|
||||
}
|
||||
}
|
||||
//================================================================Search Data IDO Bersih hitung monitoring Ke & Kejadian
|
||||
$tgl = 1; //$idolp = 0; $idokj=0;
|
||||
foreach($mido as $dat){
|
||||
if($dat->FK_datamrs_datamedissiob_ID==$item['idmrs']){
|
||||
if($dat->Diagnosa_ppi_dpjp!="TIDAK"){$idokj = (int)$idokj + 1;}
|
||||
if($tgl == 1){
|
||||
$tgl = $dat->Tanggal_operasi;
|
||||
$idolp = (int)$idolp + (int)$dat->Lama_hari_perawatan;
|
||||
}else if($tgl !=$dat->Tanggal_operasi){
|
||||
$tgl = $dat->Tanggal_operasi;
|
||||
$idolp = (int)$idolp + (int)$dat->Lama_hari_perawatan;
|
||||
}
|
||||
}
|
||||
}
|
||||
//================================================================Search Data IDO Terkontaminasi hitung monitoring Ke & Kejadian
|
||||
$tgl = 1; //$idotlp = 0; $idotkj=0;
|
||||
foreach($midot as $dat){
|
||||
if($dat->FK_datamrs_datamedissiobt_ID==$item['idmrs']){
|
||||
if($dat->Diagnosa_ppi_dpjp!="TIDAK"){$idotkj = (int)$idotkj + 1;}
|
||||
if($tgl == 1){
|
||||
$tgl = $dat->Tanggal_operasi;
|
||||
$idotlp = (int)$idotlp + (int)$dat->Lama_hari_perawatan;
|
||||
}else if($tgl !=$dat->Tanggal_operasi){
|
||||
$tgl = $dat->Tanggal_operasi;
|
||||
$idotlp = (int)$idotlp + (int)$dat->Lama_hari_perawatan;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if($plelp==0){$plelp="-";}if($plekj==0){$plekj="-";}if($vaplp==0){$vaplp="-";}if($vapkj==0){$vapkj="-";}if($haplp==0){$haplp="-";}if($hapkj==0){$hapkj="-";}if($iadanaklp==0){$iadanaklp="-";}if($iadanakkj==0){$iadanakkj="-";}if($iaddewasalp==0){$iaddewasalp="-";}if($iaddewasakj==0){$iaddewasakj="-";}if($iskanaklp==0){$iskanaklp="-";}if($iskanakkj==0){$iskanakkj="-";}if($iskdewasalp==0){$iskdewasalp="-";}if($iskdewasakj==0){$iskdewasakj="-";}if($idolp==0){$idolp="-";}if($idokj==0){$idokj="-";}if($idotlp==0){$idotlp="-";}if($idotkj==0){$idotkj="-";}
|
||||
$jmlpxshow = "-";
|
||||
if($jmlpx==0){$jmlpxshow="-";}else{$jmlpxshow=$jmlpx;}
|
||||
}
|
||||
|
||||
if($jmlpxshow!="-"){
|
||||
$no++;
|
||||
echo("
|
||||
<tr>
|
||||
<td>".$no."</td>
|
||||
<td>".$datruang->Kode."</td>
|
||||
<td>".$datruang->Nama."</td>
|
||||
<td>".$datruang->Kelas."</td>
|
||||
<td>".$jmlpxshow."</td>
|
||||
<td>".$plelp."</td>
|
||||
<td>".$plekj."</td>
|
||||
<td>".$vaplp."</td>
|
||||
<td>".$vapkj."</td>
|
||||
<td>".$haplp."</td>
|
||||
<td>".$hapkj."</td>
|
||||
<td>".$iadanaklp."</td>
|
||||
<td>".$iadanakkj."</td>
|
||||
<td>".$iaddewasalp."</td>
|
||||
<td>".$iaddewasakj."</td>
|
||||
<td>".$iskanaklp."</td>
|
||||
<td>".$iskanakkj."</td>
|
||||
<td>".$iskdewasalp."</td>
|
||||
<td>".$iskdewasakj."</td>
|
||||
<td>".$idolp."</td>
|
||||
<td>".$idokj."</td>
|
||||
<td>".$idotlp."</td>
|
||||
<td>".$idotkj."</td>
|
||||
</tr>
|
||||
");
|
||||
}
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
@@ -0,0 +1,138 @@
|
||||
<section class="content-header">
|
||||
<div class="container-fluid">
|
||||
<div class="row mb-2">
|
||||
<div class="col-sm-6">
|
||||
<h1>
|
||||
</h1>
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<ol class="breadcrumb float-sm-right">
|
||||
<li class="breadcrumb-item"><a href="<?php echo base_url();?>">Dashboard</a></li>
|
||||
<li class="breadcrumb-item"><?php echo $parent;?></li>
|
||||
<li class="breadcrumb-item active"><?php echo $title;?></li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<!-- Main content -->
|
||||
<section class="content">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="card card-default">
|
||||
<div class="card-header">
|
||||
<h3 class="card-title"><?php
|
||||
echo $title;
|
||||
$tglawal = $awal;
|
||||
$tglakhir= $akhir;
|
||||
$tglgabung = date("m/d/Y", strtotime($awal))." - ".date("m/d/Y", strtotime($akhir));
|
||||
?></h3>
|
||||
</div>
|
||||
<form action="<?php echo(base_url()); ?>index.php/lp_ppi/vap" method="post" autocomplete="off">
|
||||
<div class="card-body">
|
||||
<div class="form-group row">
|
||||
<label class="col-sm-1 col-form-label">Tanggal :</label>
|
||||
<div class="col-sm-4">
|
||||
<div class="input-group">
|
||||
<div class="input-group-prepend">
|
||||
<span class="input-group-text">
|
||||
<i class="far fa-calendar-alt"></i>
|
||||
</span>
|
||||
</div>
|
||||
<input type="text" name="tanggalmonitoring" class="form-control float-right" id="reservation" value="<?php echo $tglgabung;?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-2">
|
||||
<button type="submit" class="btn btn-outline-info">Search </button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<div class="card-body">
|
||||
<?php if($this->session->flashdata('message')){?>
|
||||
<div id="alert" class="alert alert-success alert-dismissable">
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
<i class="icon fa fa-check"></i> Alert!
|
||||
<?php echo $this->session->flashdata('message');?>
|
||||
</div>
|
||||
<?php }?>
|
||||
<script>
|
||||
setTimeout(function() {
|
||||
$('#alert').hide('fast');
|
||||
}, 3000);
|
||||
</script>
|
||||
<table id="example1" class="table table-bordered table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>No</th>
|
||||
<th>Data Pasien</th>
|
||||
<th>Ruang Ranap</th>
|
||||
<th>Created</th>
|
||||
<th>Datecreated</th>
|
||||
<th>MRS</th>
|
||||
<th>KRS</th>
|
||||
<th>Monitoring</th>
|
||||
<th>Tanggal</th>
|
||||
<th>Tgl Pasang</th>
|
||||
<th>Tgl Lepas</th>
|
||||
<th>Lama Pakai</th>
|
||||
<th>Ruang Pasang</th>
|
||||
<th>Diagnosa PPI</th>
|
||||
<th>Diagnosa DPJP</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$no=0;
|
||||
foreach ($vap as $dat) {
|
||||
$no++;
|
||||
if($dat->Diagnosa_nilai_vap_ppi == 1){
|
||||
$diagnosappi = "<span class='badge bg-yellow'> Positif</span>";
|
||||
}else{
|
||||
$diagnosappi = "<span class='badge bg-gray'> Tidak</span>";
|
||||
}
|
||||
|
||||
if($dat->Diagnosa_ppi_dpjp == "TIDAK"){
|
||||
$diagnosadpjp = "<span class='badge bg-gray'> ".$dat->Diagnosa_ppi_dpjp."</span>";
|
||||
}else{
|
||||
$diagnosadpjp = "<span class='badge bg-red'> ".$dat->Diagnosa_ppi_dpjp."</span>";
|
||||
}
|
||||
|
||||
$ruangpasang = "-";
|
||||
foreach($rua as $row){
|
||||
if($row->id == $dat->Ruang_pemasangan_ventilator){
|
||||
$ruangpasang = $row->Kode." - ".$row->Nama." - Kelas ".$row->Kelas;
|
||||
}
|
||||
}
|
||||
|
||||
echo("
|
||||
<tr>
|
||||
<input type='hidden' id='isi".$dat->id."' value='".$dat->status."'>
|
||||
<td>".$no."</td>
|
||||
<td>".$dat->No_rekam_medis." - ".$dat->Nama_pasien." / ".$dat->Umur." Th / ".$dat->Jenis_kelamin."</td>
|
||||
<td>".$dat->Kode." - ".$dat->Nama." - Kelas ".$dat->Kelas."</td>
|
||||
<td>".$dat->first_name."</td>
|
||||
<td>".$dat->date_created."</td>
|
||||
<td>".$dat->Tanggal_mrs."</td>
|
||||
<td>".$dat->Tanggal_krs."</td>
|
||||
<td>".$dat->Monitoring_ke."</td>
|
||||
<td>".$dat->Tanggal_monitoring."</td>
|
||||
<td>".$dat->Tanggal_pemasangan_ventilator."</td>
|
||||
<td>".$dat->Tanggal_pelepasan_ventilator."</td>
|
||||
<td>".$dat->Lama_pemakaian_ventilator."</td>
|
||||
<td>".$ruangpasang."</td>
|
||||
<td>".$diagnosappi."</td>
|
||||
<td>".$diagnosadpjp."</td>
|
||||
</tr>
|
||||
");
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
+123
@@ -0,0 +1,123 @@
|
||||
<section class="content-header">
|
||||
<div class="container-fluid">
|
||||
<div class="row mb-2">
|
||||
<div class="col-sm-6">
|
||||
<h1>
|
||||
</h1>
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<ol class="breadcrumb float-sm-right">
|
||||
<li class="breadcrumb-item"><a href="<?php echo base_url();?>">Dashboard</a></li>
|
||||
<li class="breadcrumb-item"><?php echo $parent;?></li>
|
||||
<li class="breadcrumb-item active"><?php echo $title;?></li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<!-- Main content -->
|
||||
<section class="content">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="card card-default">
|
||||
<div class="card-header">
|
||||
<h3 class="card-title"><?php
|
||||
echo $title;
|
||||
$tglawal = $awal;
|
||||
$tglakhir= $akhir;
|
||||
$tglgabung = date("m/d/Y", strtotime($awal))." - ".date("m/d/Y", strtotime($akhir));
|
||||
?></h3>
|
||||
</div>
|
||||
<form action="<?php echo(base_url()); ?>index.php/lp_saturssa/ketepatantrianoperasi" method="post" autocomplete="off">
|
||||
<div class="card-body">
|
||||
<div class="form-group row">
|
||||
<label class="col-sm-1 col-form-label">Tanggal :</label>
|
||||
<div class="col-sm-4">
|
||||
<div class="input-group">
|
||||
<div class="input-group-prepend">
|
||||
<span class="input-group-text">
|
||||
<i class="far fa-calendar-alt"></i>
|
||||
</span>
|
||||
</div>
|
||||
<input type="text" name="tanggal" class="form-control float-right" id="reservation" value="<?php echo $tglgabung;?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-2">
|
||||
<button type="submit" class="btn btn-outline-info">Search </button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<div class="card-body">
|
||||
<?php if($this->session->flashdata('message')){?>
|
||||
<div id="alert" class="alert alert-success alert-dismissable">
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
<i class="icon fa fa-check"></i> Alert!
|
||||
<?php echo $this->session->flashdata('message');?>
|
||||
</div>
|
||||
<?php }?>
|
||||
<script>
|
||||
setTimeout(function() {
|
||||
$('#alert').hide('fast');
|
||||
}, 3000);
|
||||
</script>
|
||||
<table id="example1" class="table table-bordered table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>No</th>
|
||||
<th>Tanggal Daftar</th>
|
||||
<th>Tanggal Selesai</th>
|
||||
<th>Nama Pasien</th>
|
||||
<th>Tanggal Lahir</th>
|
||||
<th>No RM</th>
|
||||
<th>Kategori Operasi</th>
|
||||
<th>Waktu Tunggu Operasi</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$no = 0;
|
||||
foreach ($datanya as $dat){
|
||||
$no++;
|
||||
|
||||
$kategorioperasi = "";
|
||||
if($dat->kodekategorioperasi == 1){
|
||||
$kategorioperasi = "<span class='badge bg-green'> ".$dat->kategorioperasi."</span>";
|
||||
}elseif($dat->kodekategorioperasi == 2){
|
||||
$kategorioperasi = "<span class='badge bg-blue'> ".$dat->kategorioperasi."</span>";
|
||||
}elseif($dat->kodekategorioperasi == 3){
|
||||
$kategorioperasi = "<span class='badge bg-yellow'> ".$dat->kategorioperasi."</span>";
|
||||
}elseif($dat->kodekategorioperasi == 4){
|
||||
$kategorioperasi = "<span class='badge bg-red'> ".$dat->kategorioperasi."</span>";
|
||||
}elseif($dat->kodekategorioperasi == 5){
|
||||
$kategorioperasi = "<span class='badge bg-balck'> ".$dat->kategorioperasi."</span>";
|
||||
}
|
||||
|
||||
$dateawal = date_create($dat->tgldaftar);
|
||||
$dateakhir = date_create($dat->tglselesai);
|
||||
$diff = date_diff($dateawal, $dateakhir);
|
||||
|
||||
$hasil = $diff->y." Tahun, ".$diff->m." Bulan, ".$diff->d." Hari";
|
||||
echo("
|
||||
<tr>
|
||||
<td>".$no."</td>
|
||||
<td>".$dat->tgldaftar."</td>
|
||||
<td>".$dat->tglselesai."</td>
|
||||
<td>".$dat->nik." | ".$dat->jk." - ".$dat->namapasien."</td>
|
||||
<td>".$dat->tgllahir." | Umur ".$dat->umur."</td>
|
||||
<td>".$dat->norm."</td>
|
||||
<td>".$kategorioperasi."</td>
|
||||
<td>".$hasil."</td>
|
||||
</tr>
|
||||
");
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
@@ -0,0 +1,157 @@
|
||||
<section class="content-header">
|
||||
<div class="container-fluid">
|
||||
<div class="row mb-2">
|
||||
<div class="col-sm-6">
|
||||
<h1>
|
||||
|
||||
</h1>
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<ol class="breadcrumb float-sm-right">
|
||||
<li class="breadcrumb-item"><a href="<?php echo base_url();?>">Dashboard</a></li>
|
||||
<li class="breadcrumb-item"><a href="<?php echo base_url()."index.php/".$link;?>"><?php echo $titlebefore;?></a></li>
|
||||
<li class="breadcrumb-item active"><?php echo $title;?></li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<!-- Main content -->
|
||||
<section class="content">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="card card-default">
|
||||
<?php
|
||||
$setdisabled= "";
|
||||
$setid = "";
|
||||
$setnama = "";
|
||||
$setstatus = 1;
|
||||
if ($actionform=="prosesview"){
|
||||
$setdisabled="disabled=''";
|
||||
}
|
||||
if ($actionform!="prosesadd"){
|
||||
// $setid = $ha->row('mt_id');
|
||||
// $setnama = $ha->row('mt_nama');
|
||||
// $setstatus = $ha->row('mt_status');
|
||||
}
|
||||
?>
|
||||
<form action="<?php echo(base_url()); ?>index.php/<?php echo $link;?>/<?php echo $actionform; ?>" method="post" autocomplete="off">
|
||||
<div class="card-header">
|
||||
<h3 class="card-title"><?php echo $title." - <b> ".$tu->row("mt_nama")."</b>"; ?> </h3>
|
||||
</div>
|
||||
<?php if($this->session->flashdata('message')){?>
|
||||
<div id="alert" class="alert alert-info alert-dismissable">
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
<i class="icon fa fa-check"></i> Alert!
|
||||
<?php echo $this->session->flashdata('message');?>
|
||||
</div>
|
||||
<?php }?>
|
||||
<script>
|
||||
setTimeout(function() {
|
||||
$('#alert').hide('fast');
|
||||
}, 3000);
|
||||
</script>
|
||||
<table class="table table-hover text-nowrap">
|
||||
<input id="id" name="id" hidden="" value="<?php echo $id;?>" />
|
||||
<thead>
|
||||
<tr>
|
||||
<th>No</th>
|
||||
<th>Menu</th>
|
||||
<th>Access</th>
|
||||
<th>View</th>
|
||||
<th>Add</th>
|
||||
<th>Edit</th>
|
||||
<th>Delete</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$no=0;
|
||||
//$id_input="";
|
||||
foreach ($mn as $menu) {
|
||||
$parentmenu="";
|
||||
//----cek parent menu----------------------------//
|
||||
$this->db->where('mm_id', $menu->mm_parent);
|
||||
$cekParent = $this->db->get('m_menu');
|
||||
foreach ($cekParent->result() as $par)
|
||||
{
|
||||
$parentmenu="<code>".$par->mm_nama." /</code> ";
|
||||
}
|
||||
//----cek parent menu----------------------------//
|
||||
|
||||
$no++;
|
||||
echo("
|
||||
<tr>
|
||||
<td>".$no."</td>
|
||||
<td><input type='hidden' name='id_menu' value='".$menu->mm_id."'>".$parentmenu.$menu->mm_nama."</td>
|
||||
");
|
||||
$cekakses = "";
|
||||
$cekview = "";
|
||||
$cektambah = "";
|
||||
$cekedit = "";
|
||||
$cekdelete = "";
|
||||
$idusermenu = "";
|
||||
$setdisabled= "";
|
||||
foreach($um as $usermenu){
|
||||
if($usermenu->mh_menu_id==$menu->mm_id){
|
||||
$cekakses="checked";
|
||||
|
||||
$this->db->where('mh_id', $usermenu->mh_id);
|
||||
$query1 = $this->db->get('m_hakakses');
|
||||
foreach ($query1->result() as $row1)
|
||||
{
|
||||
if($row1->mh_view==1){
|
||||
$cekview="checked";
|
||||
}
|
||||
if($row1->mh_add==1){
|
||||
$cektambah="checked";
|
||||
}
|
||||
if($row1->mh_edit==1){
|
||||
$cekedit="checked";
|
||||
}
|
||||
if($row1->mh_delete==1){
|
||||
$cekdelete="checked";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if ($actionform=="prosesview"){
|
||||
$setdisabled="disabled=''";
|
||||
}
|
||||
if($menu->mm_action==1){
|
||||
echo ("
|
||||
<td><input type='checkbox'".$setdisabled." id='action".$no."' name='akses[]' ".$cekakses." value='".$tu->row('mt_id')."-".$menu->mm_id."'></td>
|
||||
<td><input type='checkbox'".$setdisabled." id='view".$no."' name='view[]' ".$cekview." value='".$menu->mm_id."' ></td>
|
||||
<td><input type='checkbox'".$setdisabled." id='tambah".$no."' name='tambah[]' ".$cektambah." value='".$menu->mm_id."' ></td>
|
||||
<td><input type='checkbox'".$setdisabled." id='edit".$no."' name='edit[]' ".$cekedit." value='".$menu->mm_id."'></td>
|
||||
<td><input type='checkbox'".$setdisabled." id='delete".$no."' name='delete[]' ".$cekdelete." value='".$menu->mm_id."'></td>
|
||||
</tr>
|
||||
");
|
||||
|
||||
}else{
|
||||
echo ("
|
||||
<td><input type='checkbox'".$setdisabled." id='action".$no."' name='akses[]' class='flat-red'".$cekakses." value='".$tu->row('mt_id')."-".$menu->mm_id."'></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
</tr>
|
||||
");
|
||||
}
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
<div class="card-footer">
|
||||
<?php if ($actionform!="prosesview"){ ?>
|
||||
<button type="submit" class="btn btn-info">Simpan</button>
|
||||
<?php } ?>
|
||||
<a href="<?php echo base_url()."index.php/".$link;?>" class="btn btn-default float-right">Cancel</a>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
@@ -0,0 +1,81 @@
|
||||
<section class="content-header">
|
||||
<div class="container-fluid">
|
||||
<div class="row mb-2">
|
||||
<div class="col-sm-6">
|
||||
<h1>
|
||||
|
||||
</h1>
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<ol class="breadcrumb float-sm-right">
|
||||
<li class="breadcrumb-item"><a href="<?php echo base_url();?>">Dashboard</a></li>
|
||||
<li class="breadcrumb-item"><a href="<?php echo base_url()."index.php/".$link;?>"><?php echo $titlebefore;?></a></li>
|
||||
<li class="breadcrumb-item active"><?php echo $title;?></li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<!-- Main content -->
|
||||
<section class="content">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="card card-default">
|
||||
<?php
|
||||
$setdisabled= "";
|
||||
$setid = "";
|
||||
$setnama = "";
|
||||
$setstatus = 1;
|
||||
if ($actionform=="prosesview"){
|
||||
$setdisabled="disabled=''";
|
||||
}
|
||||
if ($actionform!="prosesadd"){
|
||||
$setid = $ha->row('mt_id');
|
||||
$setnama = $ha->row('mt_nama');
|
||||
$setstatus = $ha->row('mt_status');
|
||||
}
|
||||
?>
|
||||
<form action="<?php echo(base_url()); ?>index.php/<?php echo $link;?>/<?php echo $actionform; ?>" method="post" autocomplete="off">
|
||||
<div class="card-header">
|
||||
<h3 class="card-title"><?php echo $title;?></h3>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<?php if(validation_errors()){ ?>
|
||||
<div id="alert" class="alert alert-danger alert-dismissable">
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
<i class="icon fa fa-ban"></i> Alert!
|
||||
<?php echo validation_errors() ?>
|
||||
</div>
|
||||
<script>
|
||||
setTimeout(function() {
|
||||
$('#alert').hide('fast');
|
||||
}, 5000);
|
||||
</script>
|
||||
<?php } ?>
|
||||
<div class="form-group row">
|
||||
<label for="nama" class="col-sm-2 col-form-label">Tipe User</label>
|
||||
<div class="col-sm-6">
|
||||
<input type="hidden" name="id" value="<?php echo $setid;?>"/>
|
||||
<input id="nama" name="nama" type="text" <?php echo $setdisabled;?> class="form-control" placeholder="Masukan Tipe User" value="<?php echo $setnama;?>" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-sm-2 col-form-label"></label>
|
||||
<div class="col-sm-2">
|
||||
<input id="status" name="status" type="checkbox" value="1" <?php echo $setdisabled;?> <?php if($setstatus==1){echo "checked";}?> data-bootstrap-switch data-off-color="danger" data-on-color="success"/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card-footer">
|
||||
<?php if ($actionform!="prosesview"){ ?>
|
||||
<button type="submit" class="btn btn-info">Simpan</button>
|
||||
<?php } ?>
|
||||
<a href="<?php echo base_url()."index.php/".$link;?>" class="btn btn-default float-right">Cancel</a>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
@@ -0,0 +1,141 @@
|
||||
<section class="content-header">
|
||||
<div class="container-fluid">
|
||||
<div class="row mb-2">
|
||||
<div class="col-sm-6">
|
||||
<h1>
|
||||
<?php
|
||||
//---------------------start check access action TAMBAH-------------------//
|
||||
if(!empty($this->vartambah)){
|
||||
echo "<a href='".base_url()."index.php/$link/add' class='btn btn-outline-info btn-sm'>Tambah Baru</a>";
|
||||
}
|
||||
//---------------------end check access action TAMBAH-------------------//
|
||||
?>
|
||||
</h1>
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<ol class="breadcrumb float-sm-right">
|
||||
<li class="breadcrumb-item"><a href="<?php echo base_url();?>">Dashboard</a></li>
|
||||
<li class="breadcrumb-item active"><?php echo $title;?></li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<!-- Main content -->
|
||||
<section class="content">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="card card-default">
|
||||
<div class="card-header">
|
||||
<h3 class="card-title"><?php echo $title;?></h3>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<?php if($this->session->flashdata('message')){?>
|
||||
<div id="alert" class="alert alert-info alert-dismissable">
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
<i class="icon fa fa-check"></i> Alert!
|
||||
<?php echo $this->session->flashdata('message');?>
|
||||
</div>
|
||||
<?php }?>
|
||||
<script>
|
||||
setTimeout(function() {
|
||||
$('#alert').hide('fast');
|
||||
}, 3000);
|
||||
</script>
|
||||
<table id="example1" class="table table-bordered table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>No</th>
|
||||
<th>Tipe User</th>
|
||||
<th>Status</th>
|
||||
<th>Action</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$no=0;
|
||||
foreach ($ha as $dat) {
|
||||
$no++;
|
||||
//---------------------start check access action-------------------//
|
||||
$editbutton = "";
|
||||
$hakaksesbutton = "";
|
||||
$viewbutton = "";
|
||||
$deletebutton = "";
|
||||
$disabledbutton = "";
|
||||
$aktifbutton = "";
|
||||
|
||||
if(!empty($this->varview)){
|
||||
$viewbutton="<a href='".base_url()."index.php/$link/view/".$dat->mt_id."' class='btn btn-info btn-xs'><i class='fa fa-eye'></i> <span class='d-none d-md-inline-block'> View</span></a> ";
|
||||
}
|
||||
if(!empty($this->varedit)){
|
||||
$editbutton="<a href='".base_url()."index.php/$link/edit/".$dat->mt_id."' class='btn btn-warning btn-xs'><i class='fa fa-edit'></i> <span class='d-none d-md-inline-block'> Edit</span></a> ";
|
||||
}
|
||||
if(!empty($this->varedit)){
|
||||
$hakaksesbutton="<a href='".base_url()."index.php/$link/edithakakses/".$dat->mt_id."' class='btn btn-success btn-xs'><i class='fa fa-cog'></i> <span class='d-none d-md-inline-block'> Hak Akses</span></a> ";
|
||||
}
|
||||
if(!empty($this->vardelete)){
|
||||
$deletebutton="<a onclick='del(".$dat->mt_id.")' class='btn btn-danger btn-xs'><i class='fa fa-ban'></i> <span class='d-none d-md-inline-block'> Delete</span></a> ";
|
||||
}
|
||||
|
||||
$setstatus = "<span class='badge bg-teal'> Active</span>";
|
||||
if($dat->mt_status==0){
|
||||
$setstatus = "<span class='badge bg-red'> Disabled</span>";
|
||||
if(!empty($this->varedit)){
|
||||
$aktifbutton="<a onclick='aktif(".$dat->mt_id.")' class='btn btn-outline-success btn-xs'><i class='fa fa-check'></i> <span class='d-none d-md-inline-block'> On</span></a> ";
|
||||
}
|
||||
}else{
|
||||
if(!empty($this->varedit)){
|
||||
$disabledbutton="<a onclick='disabled(".$dat->mt_id.")' class='btn btn-outline-danger btn-xs'><i class='fa fa-ban'></i> <span class='d-none d-md-inline-block'> Off</span></a> ";
|
||||
}
|
||||
}
|
||||
|
||||
//---------------------end check access action-------------------//
|
||||
echo("
|
||||
<tr>
|
||||
<input type='hidden' id='isi".$dat->mt_id."' value='".$dat->mt_nama."'>
|
||||
<td>".$no."</td>
|
||||
<td>".$dat->mt_nama."</td>
|
||||
<td style='text-align: center;'>".$setstatus."</td>
|
||||
<td>".$viewbutton.$editbutton.$hakaksesbutton.$disabledbutton.$aktifbutton.$deletebutton."</td>
|
||||
</tr>
|
||||
");
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<script type="text/javascript">
|
||||
var url="<?php echo base_url();?>";
|
||||
function disabled(id){
|
||||
var isi=document.getElementById('isi'+id).value;
|
||||
var r=confirm("Apakah anda ingin Disbaled Tipe User '"+isi+"'?")
|
||||
if (r==true)
|
||||
window.location = url+"index.php/ps_hakakses/disabled/"+id;
|
||||
else
|
||||
return false;
|
||||
}
|
||||
|
||||
function aktif(id){
|
||||
var isi=document.getElementById('isi'+id).value;
|
||||
var r=confirm("Apakah anda ingin Aktifkan Tipe User '"+isi+"'?")
|
||||
if (r==true)
|
||||
window.location = url+"index.php/ps_hakakses/active/"+id;
|
||||
else
|
||||
return false;
|
||||
}
|
||||
|
||||
function del(id){
|
||||
var isi=document.getElementById('isi'+id).value;
|
||||
var r=confirm("Apakah anda ingin Menghapus Tipe User '"+isi+"'?")
|
||||
if (r==true)
|
||||
window.location = url+"index.php/ps_hakakses/delete/"+id;
|
||||
else
|
||||
return false;
|
||||
}
|
||||
</script>
|
||||
@@ -0,0 +1,227 @@
|
||||
<section class="content-header">
|
||||
<div class="container-fluid">
|
||||
<div class="row mb-2">
|
||||
<div class="col-sm-6">
|
||||
<h1>
|
||||
|
||||
</h1>
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<ol class="breadcrumb float-sm-right">
|
||||
<li class="breadcrumb-item"><a href="<?php echo base_url();?>">Dashboard</a></li>
|
||||
<li class="breadcrumb-item"><?php echo $parent;?></li>
|
||||
<li class="breadcrumb-item"><a href="<?php echo base_url()."index.php/".$link;?>"><?php echo $titlebefore;?></a></li>
|
||||
<li class="breadcrumb-item active"><?php echo $title;?></li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<!-- Main content -->
|
||||
<section class="content">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="card card-default">
|
||||
<?php
|
||||
$setdisabled = "";
|
||||
$setid = "";
|
||||
$setname = "";
|
||||
$setlink = "";
|
||||
$seticon = "";
|
||||
$setparent = "";
|
||||
$setlevel = "";
|
||||
$setaction = "";
|
||||
$setsort = "";
|
||||
$setstatus = 1;
|
||||
|
||||
$setnumberfield = 0;
|
||||
|
||||
if ($actionform=="prosesview"){
|
||||
$setdisabled="disabled='disabled'";
|
||||
}
|
||||
if ($actionform!="prosesadd"){
|
||||
$setid = $mst->row('mm_id');
|
||||
$setname = $mst->row('mm_name');
|
||||
$setlink = $mst->row('mm_link');
|
||||
$seticon = $mst->row('mm_icon');
|
||||
$setparent = $mst->row('mm_parent');
|
||||
$setlevel = $mst->row('mm_level');
|
||||
$setaction = $mst->row('mm_action');
|
||||
$setsort = $mst->row('mm_sort');
|
||||
$setstatus = $mst->row('mm_status');
|
||||
}
|
||||
?>
|
||||
<form action="<?php echo(base_url()); ?>index.php/<?php echo $link;?>/<?php echo $actionform; ?>" method="post" autocomplete="off">
|
||||
<div class="card-header">
|
||||
<h3 class="card-title"><?php echo $title;?></h3>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<?php if(validation_errors()){ ?>
|
||||
<div id="alert" class="alert alert-danger alert-dismissable">
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
<i class="icon fa fa-ban"></i> Alert!
|
||||
<?php echo validation_errors() ?>
|
||||
</div>
|
||||
<script>
|
||||
setTimeout(function() {
|
||||
$('#alert').hide('fast');
|
||||
}, 5000);
|
||||
</script>
|
||||
<?php } ?>
|
||||
<div class="form-group row">
|
||||
<label for="nama" class="col-sm-2 col-form-label">Nama</label>
|
||||
<div class="col-sm-3">
|
||||
<input type="hidden" name="id" value="<?php echo $setid;?>"/>
|
||||
<input id="nama" name="nama" type="text" <?php echo $setdisabled;?> class="form-control" placeholder="Nama" value="<?php echo $setname;?>" />
|
||||
</div>
|
||||
<div class="col-sm-2">
|
||||
<input id="link" name="link" type="text" <?php echo $setdisabled;?> class="form-control" placeholder="Link" value="<?php echo $setlink;?>" />
|
||||
</div>
|
||||
<div class="col-sm-3">
|
||||
<input id="icon" name="icon" type="text" <?php echo $setdisabled;?> class="form-control" placeholder="Icon" value="<?php echo $seticon;?>" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label for="parent" class="col-sm-2 col-form-label">Parent</label>
|
||||
<div class="col-sm-3">
|
||||
<select <?php echo $setdisabled; ?> id="parent" name="parent" class="form-control select" >
|
||||
<option value="">Pilih Parent</option>
|
||||
<?php
|
||||
foreach ($ma as $dat) {
|
||||
$select="";
|
||||
if($setparent==$dat->mm_id){$select="selected='selected'";}
|
||||
echo "<option value='".$dat->mm_id."'".$select.">".$dat->mm_name."</option>";
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-sm-2">
|
||||
<select <?php echo $setdisabled; ?> id="level" name="level" class="form-control select" >
|
||||
<option value="">Pilih Level</option>
|
||||
<option <?php if($setlevel=="1"){echo "selected='selected'";}?> value="1">Parent</option>
|
||||
<option <?php if($setlevel=="2"){echo "selected='selected'";}?> value="2">Child 2</option>
|
||||
<option <?php if($setlevel=="3"){echo "selected='selected'";}?> value="3">Child 3</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-sm-3">
|
||||
<select <?php echo $setdisabled; ?> id="action" name="action" class="form-control select" >
|
||||
<option <?php if($setaction==""){echo "selected='selected'";}?> value="">Form Action False</option>
|
||||
<option <?php if($setaction=="1"){echo "selected='selected'";}?> value="1">Form Action True</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label for="sort" class="col-sm-2 col-form-label">Sort Menu</label>
|
||||
<div class="col-sm-3">
|
||||
<input id="sort" name="sort" type="number" <?php echo $setdisabled;?> class="form-control" placeholder="Sort" value="<?php echo $setsort;?>" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row">
|
||||
<div class="col-sm-2"></div>
|
||||
<div class="col-sm-2">
|
||||
<input id="status" name="status" type="checkbox" value="1" <?php echo $setdisabled;?> <?php if($setstatus==1){echo "checked";}?> data-bootstrap-switch data-off-color="danger" data-on-color="success"/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card-header">
|
||||
<h3 class="card-title">Field Data</h3>
|
||||
<div class="card-tools">
|
||||
<button <?php echo $setdisabled;?> onclick="addfield()" type="button" class="btn btn-success"><i class="fa fa-plus"></i> Add Field Data</button>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
function addfield(){
|
||||
var num = parseInt($("#numadd").val())+1;
|
||||
$("#numadd").val(num);
|
||||
$("#addfieldhere").append(" <div id='fieldnya"+num+"' class='form-group row'> "+
|
||||
"<div class='col-sm-2'></div>"+
|
||||
"<div class='col-sm-3'>"+
|
||||
"<input id='fieldlabel"+num+"' name='fieldlabel[]' type='text' class='form-control' placeholder='Field Label' value='' />"+
|
||||
"<input type='hidden' id='delfield"+num+"' name='delfield[]' value='2'/>"+
|
||||
"</div>"+
|
||||
"<div class='col-sm-2'>"+
|
||||
"<input id='fieldid"+num+"' name='fieldid[]' type='text' class='form-control' placeholder='Field ID' value='' />"+
|
||||
"</div>"+
|
||||
"<div class='col-sm-3'>"+
|
||||
"<input id='fieldname"+num+"' name='fieldname[]' type='text' class='form-control' placeholder='Field Name' value='' />"+
|
||||
"</div>"+
|
||||
"<div class='col-sm-2'>"+
|
||||
"<button onclick='delappfield("+num+")' type='button' class='btn btn-warning'><i class='fa fa-ban'></i> Delete</button>"+
|
||||
"</div>"+
|
||||
"</div>");
|
||||
}
|
||||
|
||||
function delappfield(num){
|
||||
$("#fieldnya"+num).remove();
|
||||
}
|
||||
function delfield(num){
|
||||
$("#delfield"+num).val(1);
|
||||
var element = document.getElementById("fieldlabel"+num);
|
||||
element.classList.add("is-invalid");
|
||||
var element = document.getElementById("fieldid"+num);
|
||||
element.classList.add("is-invalid");
|
||||
var element = document.getElementById("fieldname"+num);
|
||||
element.classList.add("is-invalid");
|
||||
$("#btndelfield"+num).remove();
|
||||
$("#divdelfield"+num).append("<button id='btndelfield"+num+"' onclick='cancelfield("+num+")' type='button' class='btn btn-warning'><i class='fa fa-times'></i> Cancel</button>");
|
||||
}
|
||||
|
||||
function cancelfield(num){
|
||||
$("#delfield"+num).val(0);
|
||||
var element = document.getElementById("fieldlabel"+num);
|
||||
element.classList.remove("is-invalid");
|
||||
var element = document.getElementById("fieldid"+num);
|
||||
element.classList.remove("is-invalid");
|
||||
var element = document.getElementById("fieldname"+num);
|
||||
element.classList.remove("is-invalid");
|
||||
$("#btndelfield"+num).remove();
|
||||
$("#divdelfield"+num).append("<button id='btndelfield"+num+"' onclick='delfield("+num+")' type='button' class='btn btn-danger'><i class='fa fa-ban'></i> Delete Field Data</button>");
|
||||
}
|
||||
</script>
|
||||
|
||||
<div id="addfieldhere" class="card-body"></div>
|
||||
<div class="card-body">
|
||||
<?php
|
||||
if ($actionform!="prosesadd"){
|
||||
foreach ($fa as $dat){
|
||||
$setnumberfield++;
|
||||
?>
|
||||
<div id="divid<?php echo $setnumberfield;?>" class="form-group row">
|
||||
<div class="col-sm-2"></div>
|
||||
<div class="col-sm-3">
|
||||
<input type="hidden" id="idfield<?php echo $setnumberfield;?>" name="idfield[]" value="<?php echo $dat->mf_id;?>" />
|
||||
<input type="hidden" id="delfield<?php echo $setnumberfield;?>" name="delfield[]" value="0">
|
||||
<input id="fieldlabel<?php echo $setnumberfield;?>" name="fieldlabel[]" type="text" <?php echo $setdisabled;?> class="form-control" placeholder="Field Label" value="<?php echo $dat->mf_label;?>" />
|
||||
</div>
|
||||
<div class="col-sm-2">
|
||||
<input id="fieldid<?php echo $setnumberfield;?>" name="fieldid[]" type="text" <?php echo $setdisabled;?> class="form-control" placeholder="Field ID" value="<?php echo $dat->mf_field_id;?>" />
|
||||
</div>
|
||||
<div class="col-sm-3">
|
||||
<input id="fieldname<?php echo $setnumberfield;?>" name="fieldname[]" type="text" <?php echo $setdisabled;?> class="form-control" placeholder="Field Name" value="<?php echo $dat->mf_name;?>" />
|
||||
</div>
|
||||
<div id="divdelfield<?php echo $setnumberfield;?>" class="col-sm-2">
|
||||
<button <?php echo $setdisabled;?> id="btndelfield<?php echo $setnumberfield;?>" onclick="delfield(<?php echo $setnumberfield;?>)" type="button" class="btn btn-danger"><i class="fa fa-ban"></i> Delete Field Data</button>
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
<input type="hidden" id="numadd" name="numadd" value="<?php echo $setnumberfield;?>">
|
||||
|
||||
<div class="card-footer">
|
||||
<?php if ($actionform!="prosesview"){ ?>
|
||||
<button type="submit" class="btn btn-info">Simpan</button>
|
||||
<?php } ?>
|
||||
<a href="<?php echo base_url()."index.php/".$link;?>" class="btn btn-default float-right">Cancel</a>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
@@ -0,0 +1,159 @@
|
||||
<section class="content-header">
|
||||
<div class="container-fluid">
|
||||
<div class="row mb-2">
|
||||
<div class="col-sm-6">
|
||||
<h1>
|
||||
<?php
|
||||
//---------------------start check access action TAMBAH-------------------//
|
||||
if(!empty($this->vartambah)){
|
||||
echo "<a href='".base_url()."index.php/$link/add' class='btn btn-outline-info btn-sm'>Tambah Baru</a>";
|
||||
}
|
||||
//---------------------end check access action TAMBAH-------------------//
|
||||
?>
|
||||
</h1>
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<ol class="breadcrumb float-sm-right">
|
||||
<li class="breadcrumb-item"><a href="<?php echo base_url();?>">Dashboard</a></li>
|
||||
<li class="breadcrumb-item"><?php echo $parent;?></li>
|
||||
<li class="breadcrumb-item active"><?php echo $title;?></li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<!-- Main content -->
|
||||
<section class="content">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="card card-default">
|
||||
<div class="card-header">
|
||||
<h3 class="card-title"><?php echo $title;?></h3>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<?php if($this->session->flashdata('message')){?>
|
||||
<div id="alert" class="alert alert-success alert-dismissable">
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
<i class="icon fa fa-check"></i> Alert!
|
||||
<?php echo $this->session->flashdata('message');?>
|
||||
</div>
|
||||
<?php }?>
|
||||
<script>
|
||||
setTimeout(function() {
|
||||
$('#alert').hide('fast');
|
||||
}, 3000);
|
||||
</script>
|
||||
<table id="example1" class="table table-bordered table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>No</th>
|
||||
<th>Nama</th>
|
||||
<th>Link</th>
|
||||
<th>Icon</th>
|
||||
<th>Parent</th>
|
||||
<th>Level</th>
|
||||
<th>Action</th>
|
||||
<th>Sort</th>
|
||||
<th>Status</th>
|
||||
<th width="15%">Action</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$no=0;
|
||||
foreach ($mn as $dat) {
|
||||
$no++;
|
||||
//---------------------start check access action-------------------//
|
||||
$editbutton = "";
|
||||
$viewbutton = "";
|
||||
$deletebutton = "";
|
||||
$disabledbutton = "";
|
||||
$aktifbutton = "";
|
||||
|
||||
if(!empty($this->varview)){
|
||||
$viewbutton="<a href='".base_url()."index.php/$link/view/".$dat->mm_id."' class='btn btn-info btn-xs'><i class='fa fa-eye'></i></a> ";
|
||||
}
|
||||
if(!empty($this->varedit)){
|
||||
$editbutton="<a href='".base_url()."index.php/$link/edit/".$dat->mm_id."' class='btn btn-warning btn-xs'><i class='fa fa-edit'></i></a> ";
|
||||
}
|
||||
if(!empty($this->vardelete)){
|
||||
$deletebutton="<a onclick='del(".$dat->mm_id.")' class='btn btn-danger btn-xs'><i class='fa fa-times'></i></a> ";
|
||||
}
|
||||
|
||||
$setstatus = "<span class='badge bg-teal'> Active</span>";
|
||||
if($dat->mm_status==0){
|
||||
$setstatus = "<span class='badge bg-red'> Disabled</span>";
|
||||
if(!empty($this->varedit)){
|
||||
$aktifbutton="<a onclick='aktif(".$dat->mm_id.")' class='btn btn-outline-success btn-xs'><i class='fa fa-check'></i></a> ";
|
||||
}
|
||||
}else{
|
||||
if(!empty($this->varedit)){
|
||||
$disabledbutton="<a onclick='disabled(".$dat->mm_id.")' class='btn btn-outline-danger btn-xs'><i class='fa fa-ban'></i></a> ";
|
||||
}
|
||||
}
|
||||
|
||||
$parentmenu = "";
|
||||
$levelmenu = "";
|
||||
$actionmenu = "";
|
||||
|
||||
foreach($mn as $datmenu){if($datmenu->mm_id == $dat->mm_parent){$parentmenu = $datmenu->mm_name;}}
|
||||
|
||||
if($dat->mm_level == 1){$levelmenu = "Parent";}else{$levelmenu = "Child - ".$dat->mm_level;}
|
||||
|
||||
if($dat->mm_action == 1){$actionmenu = "True";}else{$actionmenu = "<code>False</code>";}
|
||||
|
||||
echo("
|
||||
<tr>
|
||||
<input type='hidden' id='isi".$dat->mm_id."' value='".$dat->mm_name."'>
|
||||
<td>".$no."</td>
|
||||
<td>".$dat->mm_name."</td>
|
||||
<td>".$dat->mm_link."</td>
|
||||
<td>".$dat->mm_icon."</td>
|
||||
<td>".$parentmenu."</td>
|
||||
<td>".$levelmenu."</td>
|
||||
<td>".$actionmenu."</td>
|
||||
<td>".$dat->mm_sort."</td>
|
||||
<td style='text-align: center;'>".$setstatus."</td>
|
||||
<td>".$viewbutton.$editbutton.$disabledbutton.$aktifbutton.$deletebutton."</td>
|
||||
</tr>
|
||||
");
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<script type="text/javascript">
|
||||
var url="<?php echo base_url();?>";
|
||||
function disabled(id){
|
||||
var isi=document.getElementById('isi'+id).value;
|
||||
var r=confirm("Apakah anda ingin Disbaled Menu '"+isi+"'?")
|
||||
if (r==true)
|
||||
window.location = url+"index.php/st_menu/disabled/"+id;
|
||||
else
|
||||
return false;
|
||||
}
|
||||
|
||||
function aktif(id){
|
||||
var isi=document.getElementById('isi'+id).value;
|
||||
var r=confirm("Apakah anda ingin Aktifkan Menu '"+isi+"'?")
|
||||
if (r==true)
|
||||
window.location = url+"index.php/st_menu/active/"+id;
|
||||
else
|
||||
return false;
|
||||
}
|
||||
|
||||
function del(id){
|
||||
var isi=document.getElementById('isi'+id).value;
|
||||
var r=confirm("Apakah anda ingin Menghapus Menu '"+isi+"'?")
|
||||
if (r==true)
|
||||
window.location = url+"index.php/st_menu/delete/"+id;
|
||||
else
|
||||
return false;
|
||||
}
|
||||
</script>
|
||||
@@ -0,0 +1,82 @@
|
||||
<section class="content-header">
|
||||
<div class="container-fluid">
|
||||
<div class="row mb-2">
|
||||
<div class="col-sm-6">
|
||||
<h1>
|
||||
|
||||
</h1>
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<ol class="breadcrumb float-sm-right">
|
||||
<li class="breadcrumb-item"><a href="<?php echo base_url();?>">Dashboard</a></li>
|
||||
<li class="breadcrumb-item"><?php echo $parent;?></li>
|
||||
<li class="breadcrumb-item"><a href="<?php echo base_url()."index.php/".$link;?>"><?php echo $titlebefore;?></a></li>
|
||||
<li class="breadcrumb-item active"><?php echo $title;?></li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<!-- Main content -->
|
||||
<section class="content">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="card card-default">
|
||||
<?php
|
||||
$setdisabled = "";
|
||||
$setid = "";
|
||||
$setnama = "";
|
||||
$setstatus = 1;
|
||||
if ($actionform=="prosesview"){
|
||||
$setdisabled="disabled='disabled'";
|
||||
}
|
||||
if ($actionform!="prosesadd"){
|
||||
$setid = $mr->row('mr_id');
|
||||
$setnama = $mr->row('mr_name');
|
||||
$setstatus = $mr->row('mr_status');
|
||||
}
|
||||
?>
|
||||
<form action="<?php echo(base_url()); ?>index.php/<?php echo $link;?>/<?php echo $actionform; ?>" method="post" autocomplete="off">
|
||||
<div class="card-header">
|
||||
<h3 class="card-title"><?php echo $title;?></h3>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<?php if(validation_errors()){ ?>
|
||||
<div id="alert" class="alert alert-danger alert-dismissable">
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
<i class="icon fa fa-ban"></i> Alert!
|
||||
<?php echo validation_errors() ?>
|
||||
</div>
|
||||
<script>
|
||||
setTimeout(function() {
|
||||
$('#alert').hide('fast');
|
||||
}, 5000);
|
||||
</script>
|
||||
<?php } ?>
|
||||
<div class="form-group row">
|
||||
<label for="nama" class="col-sm-2 col-form-label">Nama</label>
|
||||
<div class="col-sm-6">
|
||||
<input type="hidden" name="id" value="<?php echo $setid;?>"/>
|
||||
<input id="nama" name="nama" type="text" <?php echo $setdisabled;?> class="form-control" placeholder="Nama Role Group" value="<?php echo $setnama;?>" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-sm-2 col-form-label"></label>
|
||||
<div class="col-sm-2">
|
||||
<input id="status" name="status" type="checkbox" value="1" <?php echo $setdisabled;?> <?php if($setstatus==1){echo "checked";}?> data-bootstrap-switch data-off-color="danger" data-on-color="success"/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card-footer">
|
||||
<?php if ($actionform!="prosesview"){ ?>
|
||||
<button type="submit" class="btn btn-info">Simpan</button>
|
||||
<?php } ?>
|
||||
<a href="<?php echo base_url()."index.php/".$link;?>" class="btn btn-default float-right">Cancel</a>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
@@ -0,0 +1,141 @@
|
||||
<section class="content-header">
|
||||
<div class="container-fluid">
|
||||
<div class="row mb-2">
|
||||
<div class="col-sm-6">
|
||||
<h1>
|
||||
<?php
|
||||
//---------------------start check access action TAMBAH-------------------//
|
||||
if(!empty($this->vartambah)){
|
||||
echo "<a href='".base_url()."index.php/$link/add' class='btn btn-outline-info btn-sm'>Tambah Baru</a>";
|
||||
}
|
||||
//---------------------end check access action TAMBAH-------------------//
|
||||
?>
|
||||
</h1>
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<ol class="breadcrumb float-sm-right">
|
||||
<li class="breadcrumb-item"><a href="<?php echo base_url();?>">Dashboard</a></li>
|
||||
<li class="breadcrumb-item"><?php echo $parent;?></li>
|
||||
<li class="breadcrumb-item active"><?php echo $title;?></li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<!-- Main content -->
|
||||
<section class="content">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="card card-default">
|
||||
<div class="card-header">
|
||||
<h3 class="card-title"><?php echo $title;?></h3>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<?php if($this->session->flashdata('message')){?>
|
||||
<div id="alert" class="alert alert-success alert-dismissable">
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
<i class="icon fa fa-check"></i> Alert!
|
||||
<?php echo $this->session->flashdata('message');?>
|
||||
</div>
|
||||
<?php }?>
|
||||
<script>
|
||||
setTimeout(function() {
|
||||
$('#alert').hide('fast');
|
||||
}, 3000);
|
||||
</script>
|
||||
<table id="example1" class="table table-bordered table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>No</th>
|
||||
<th>Nama</th>
|
||||
<th>Status</th>
|
||||
<th width="15%">Action</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$no=0;
|
||||
foreach ($mr as $dat) {
|
||||
$no++;
|
||||
//---------------------start check access action-------------------//
|
||||
$editbutton = "";
|
||||
$viewbutton = "";
|
||||
$deletebutton = "";
|
||||
$disabledbutton = "";
|
||||
$aktifbutton = "";
|
||||
|
||||
if(!empty($this->varview)){
|
||||
$viewbutton="<a href='".base_url()."index.php/$link/view/".$dat->mr_id."' class='btn btn-info btn-xs'><i class='fa fa-eye'></i></a> ";
|
||||
}
|
||||
if(!empty($this->varedit)){
|
||||
$editbutton="<a href='".base_url()."index.php/$link/edit/".$dat->mr_id."' class='btn btn-warning btn-xs'><i class='fa fa-edit'></i></a> ";
|
||||
}
|
||||
if(!empty($this->vardelete)){
|
||||
$deletebutton="<a onclick='del(".$dat->mr_id.")' class='btn btn-danger btn-xs'><i class='fa fa-times'></i></a> ";
|
||||
}
|
||||
|
||||
$setstatus = "<span class='badge bg-teal'> Active</span>";
|
||||
if($dat->mr_status==0){
|
||||
$setstatus = "<span class='badge bg-red'> Disabled</span>";
|
||||
if(!empty($this->varedit)){
|
||||
$aktifbutton="<a onclick='aktif(".$dat->mr_id.")' class='btn btn-outline-success btn-xs'><i class='fa fa-check'></i></a> ";
|
||||
}
|
||||
}else{
|
||||
if(!empty($this->varedit)){
|
||||
$disabledbutton="<a onclick='disabled(".$dat->mr_id.")' class='btn btn-outline-danger btn-xs'><i class='fa fa-ban'></i></a> ";
|
||||
}
|
||||
}
|
||||
|
||||
$parentmenu = "";
|
||||
$levelmenu = "";
|
||||
$actionmenu = "";
|
||||
|
||||
echo("
|
||||
<tr>
|
||||
<input type='hidden' id='isi".$dat->mr_id."' value='".$dat->mr_name."'>
|
||||
<td>".$no."</td>
|
||||
<td>".$dat->mr_name."</td>
|
||||
<td style='text-align: center;'>".$setstatus."</td>
|
||||
<td>".$viewbutton.$editbutton.$disabledbutton.$aktifbutton.$deletebutton."</td>
|
||||
</tr>
|
||||
");
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<script type="text/javascript">
|
||||
var url="<?php echo base_url();?>";
|
||||
function disabled(id){
|
||||
var isi=document.getElementById('isi'+id).value;
|
||||
var r=confirm("Apakah anda ingin Disbaled Role Group '"+isi+"'?")
|
||||
if (r==true)
|
||||
window.location = url+"index.php/st_rolegroup/disabled/"+id;
|
||||
else
|
||||
return false;
|
||||
}
|
||||
|
||||
function aktif(id){
|
||||
var isi=document.getElementById('isi'+id).value;
|
||||
var r=confirm("Apakah anda ingin Aktifkan Role Group '"+isi+"'?")
|
||||
if (r==true)
|
||||
window.location = url+"index.php/st_rolegroup/active/"+id;
|
||||
else
|
||||
return false;
|
||||
}
|
||||
|
||||
function del(id){
|
||||
var isi=document.getElementById('isi'+id).value;
|
||||
var r=confirm("Apakah anda ingin Menghapus Role Group '"+isi+"'?")
|
||||
if (r==true)
|
||||
window.location = url+"index.php/st_rolegroup/delete/"+id;
|
||||
else
|
||||
return false;
|
||||
}
|
||||
</script>
|
||||
@@ -0,0 +1,229 @@
|
||||
<section class="content-header">
|
||||
<div class="container-fluid">
|
||||
<div class="row mb-2">
|
||||
<div class="col-sm-6">
|
||||
<h1>
|
||||
|
||||
</h1>
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<ol class="breadcrumb float-sm-right">
|
||||
<li class="breadcrumb-item"><a href="<?php echo base_url();?>">Dashboard</a></li>
|
||||
<li class="breadcrumb-item"><a href="<?php echo base_url()."index.php/".$link;?>"><?php echo $titlebefore;?></a></li>
|
||||
<li class="breadcrumb-item active"><?php echo $title;?></li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<!-- Main content -->
|
||||
<section class="content">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="card card-default">
|
||||
<?php
|
||||
$setdisabled= "";
|
||||
$setid = "";
|
||||
$setnama = "";
|
||||
$setuser = "";
|
||||
$settipeuser= "";
|
||||
$setloket = "";
|
||||
|
||||
$setdisloket = "disabled=''";
|
||||
$setdisklinik = "disabled=''";
|
||||
|
||||
$setstatus = 1;
|
||||
if ($actionform=="prosesview"){
|
||||
$setdisabled="disabled=''";
|
||||
}
|
||||
if ($actionform!="prosesadd"){
|
||||
$setid = $us->row('mu_id');
|
||||
$setnama = $us->row('mu_namalengkap');
|
||||
$setuser = $us->row('mu_namauser');
|
||||
$settipeuser= $us->row('mu_tipeuser_id');
|
||||
$setstatus = $us->row('mu_status');
|
||||
$setloket = $us->row('mu_loket_id');
|
||||
$setklinik = $us->row('mu_klinik_id');
|
||||
|
||||
if($settipeuser=="3"){
|
||||
$setdisloket = "";
|
||||
}if ($settipeuser=="4") {
|
||||
$setdisklinik = "";
|
||||
}
|
||||
}
|
||||
?>
|
||||
<form action="<?php echo(base_url()); ?>index.php/<?php echo $link;?>/<?php echo $actionform; ?>" method="post" autocomplete="off">
|
||||
<div class="card-header">
|
||||
<h3 class="card-title"><?php echo $title;?></h3>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<?php if(validation_errors()){ ?>
|
||||
<div id="alert" class="alert alert-danger alert-dismissable">
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
<i class="icon fa fa-ban"></i> Alert!
|
||||
<?php echo validation_errors() ?>
|
||||
</div>
|
||||
<script>
|
||||
setTimeout(function() {
|
||||
$('#alert').hide('fast');
|
||||
}, 5000);
|
||||
</script>
|
||||
<?php } ?>
|
||||
<div class="form-group row">
|
||||
<label for="nama" class="col-sm-2 col-form-label">Nama Lengkap</label>
|
||||
<div class="col-sm-6">
|
||||
<input type="hidden" name="id" value="<?php echo $setid;?>"/>
|
||||
<input id="nama" name="nama" type="text" <?php echo $setdisabled;?> class="form-control" placeholder="Masukan Nama Lengkap" value="<?php echo $setnama;?>" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label for="user" class="col-sm-2 col-form-label">User</label>
|
||||
<div class="col-sm-6">
|
||||
<input id="user" name="user" type="text" <?php echo $setdisabled;?> class="form-control" placeholder="Masukan Nama User" value="<?php echo $setuser;?>" />
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
if($actionform!="prosesadd"){
|
||||
?>
|
||||
<div class="form-group row">
|
||||
<label for="passworduser" class="col-sm-2 col-form-label">Password</label>
|
||||
<div class="col-sm-6">
|
||||
<div class="input-group">
|
||||
<input disabled="" id="passworduser" class="form-control" name="passworduser" type="password" placeholder="Masukan Password" value=""/>
|
||||
<div class="input-group-prepend">
|
||||
<span class="input-group-text">
|
||||
<input <?php echo $setdisabled; ?> id="setaktif" type="checkbox" onchange="aktif()" />
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-2">
|
||||
<code>Ubah Password</code>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label for="repassworduser" class="col-sm-2 col-form-label">Retype Password</label>
|
||||
<div class="col-sm-6">
|
||||
<input disabled="" id="repassworduser" class="form-control" <?php if($actionform!="prosesadd"){}?> name="repassworduser" type="password" placeholder="Masukan Retype Password" value=""/>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
function aktif(){
|
||||
if ($('#setaktif').is(":checked"))
|
||||
{
|
||||
$("#passworduser").prop('disabled', false);
|
||||
$("#repassworduser").prop('disabled', false);
|
||||
}else{
|
||||
document.getElementById('passworduser').value="";
|
||||
document.getElementById('repassworduser').value="";
|
||||
$("#passworduser").prop('disabled', true);
|
||||
$("#repassworduser").prop('disabled', true);
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<?php }else{
|
||||
?>
|
||||
|
||||
<div class="form-group row">
|
||||
<label for="passworduser" class="col-sm-2 col-form-label">Password</label>
|
||||
<div class="col-sm-6">
|
||||
<input id="passworduser" class="form-control" name="passworduser" type="password" placeholder="Masukan Password" value=""/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label for="repassworduser" class="col-sm-2 col-form-label">Retype Password</label>
|
||||
<div class="col-sm-6">
|
||||
<input id="repassworduser" class="form-control" name="repassworduser" type="password" placeholder="Masukan Retype Password" value=""/>
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
}?>
|
||||
<div class="form-group row">
|
||||
<label for="tipeuser" class="col-sm-2 col-form-label">Tipe User</label>
|
||||
<div class="col-sm-6">
|
||||
<select <?php echo $setdisabled; ?> onchange="setpel()" id="tipeuser" name="tipeuser" class="form-control select" >
|
||||
<option value="">Pilih Tipe User</option>
|
||||
<?php
|
||||
foreach ($tu as $dat) {
|
||||
$select="";
|
||||
if($settipeuser==$dat->mt_id){$select="selected='selected'";}
|
||||
echo "<option value='".$dat->mt_id."'".$select.">".$dat->mt_nama."</option>";
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
function setpel(){
|
||||
var tp = document.getElementById("tipeuser").value;
|
||||
if(tp==3){
|
||||
document.getElementById("loket").value = "";
|
||||
document.getElementById("klinik").value = "";
|
||||
$("#loket").prop('disabled', false);
|
||||
$("#klinik").prop('disabled', true);
|
||||
|
||||
}else if(tp==4){
|
||||
document.getElementById("loket").value = "";
|
||||
document.getElementById("klinik").value = "";
|
||||
$("#loket").prop('disabled', true);
|
||||
$("#klinik").prop('disabled', false);
|
||||
}else{
|
||||
$("#loket").prop('disabled', true);
|
||||
$("#klinik").prop('disabled', true);
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<div class="form-group row">
|
||||
<label for="loket" class="col-sm-2 col-form-label">Loket Rajal</label>
|
||||
<div class="col-sm-6">
|
||||
<select <?php echo $setdisloket; echo $setdisabled; ?> id="loket" name="loket" class="form-control">
|
||||
<option value="">Pilih Loket Rajal</option>
|
||||
<?php
|
||||
foreach ($lo as $dat) {
|
||||
$select="";
|
||||
if($setloket==$dat->mlrj_id){$select="selected='selected'";}
|
||||
echo "<option value='".$dat->mlrj_id."'".$select.">".$dat->mlrj_nama."</option>";
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label for="klinik" class="col-sm-2 col-form-label">Klinik</label>
|
||||
<div class="col-sm-6">
|
||||
<select <?php echo $setdisklinik; echo $setdisabled; ?> id="klinik" name="klinik" class="form-control">
|
||||
<option value="">Pilih Klinik</option>
|
||||
<?php
|
||||
foreach ($kl as $dat) {
|
||||
$isiket="";
|
||||
if($dat->mk_ket!=""){
|
||||
$isiket="( ".$dat->mk_ket." )";
|
||||
}
|
||||
$select="";
|
||||
if($setklinik==$dat->mk_id){$select="selected='selected'";}
|
||||
echo "<option value='".$dat->mk_id."'".$select.">".$dat->mk_nama." | ".$dat->mk_kode." ".$isiket."</option>";
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-sm-2 col-form-label"></label>
|
||||
<div class="col-sm-2">
|
||||
<input id="status" name="status" type="checkbox" value="1" <?php echo $setdisabled;?> <?php if($setstatus==1){echo "checked";}?> data-bootstrap-switch data-off-color="danger" data-on-color="success"/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card-footer">
|
||||
<?php if ($actionform!="prosesview"){ ?>
|
||||
<button type="submit" class="btn btn-info">Simpan</button>
|
||||
<?php } ?>
|
||||
<a href="<?php echo base_url()."index.php/".$link;?>" class="btn btn-default float-right">Cancel</a>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
@@ -0,0 +1,141 @@
|
||||
<section class="content-header">
|
||||
<div class="container-fluid">
|
||||
<div class="row mb-2">
|
||||
<div class="col-sm-6">
|
||||
<h1>
|
||||
<?php
|
||||
//---------------------start check access action TAMBAH-------------------//
|
||||
if(!empty($this->vartambah)){
|
||||
echo "<a href='".base_url()."index.php/$link/add' class='btn btn-outline-info btn-sm'>Tambah Baru</a>";
|
||||
}
|
||||
//---------------------end check access action TAMBAH-------------------//
|
||||
?>
|
||||
</h1>
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<ol class="breadcrumb float-sm-right">
|
||||
<li class="breadcrumb-item"><a href="<?php echo base_url();?>">Dashboard</a></li>
|
||||
<li class="breadcrumb-item active"><?php echo $title;?></li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<!-- Main content -->
|
||||
<section class="content">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="card card-default">
|
||||
<div class="card-header">
|
||||
<h3 class="card-title"><?php echo $title;?></h3>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<?php if($this->session->flashdata('message')){?>
|
||||
<div id="alert" class="alert alert-success alert-dismissable">
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
<i class="icon fa fa-check"></i> Alert!
|
||||
<?php echo $this->session->flashdata('message');?>
|
||||
</div>
|
||||
<?php }?>
|
||||
<script>
|
||||
setTimeout(function() {
|
||||
$('#alert').hide('fast');
|
||||
}, 3000);
|
||||
</script>
|
||||
<table id="example1" class="table table-bordered table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>No</th>
|
||||
<th>Tipe User</th>
|
||||
<th>Nama Lengkap</th>
|
||||
<th>User</th>
|
||||
<th>Status</th>
|
||||
<th>Action</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$no=0;
|
||||
foreach ($us as $dat) {
|
||||
$no++;
|
||||
//---------------------start check access action-------------------//
|
||||
$editbutton = "";
|
||||
$viewbutton = "";
|
||||
$deletebutton = "";
|
||||
$disabledbutton = "";
|
||||
$aktifbutton = "";
|
||||
|
||||
if(!empty($this->varview)){
|
||||
$viewbutton="<a href='".base_url()."index.php/$link/view/".$dat->mu_id."' class='btn btn-info btn-xs'><i class='fa fa-eye'></i> <span class='d-none d-md-inline-block'> View</span></a> ";
|
||||
}
|
||||
if(!empty($this->varedit)){
|
||||
$editbutton="<a href='".base_url()."index.php/$link/edit/".$dat->mu_id."' class='btn btn-warning btn-xs'><i class='fa fa-edit'></i> <span class='d-none d-md-inline-block'> Edit</span></a> ";
|
||||
}
|
||||
if(!empty($this->vardelete)){
|
||||
$deletebutton="<a onclick='del(".$dat->mu_id.")' class='btn btn-danger btn-xs'><i class='fa fa-ban'></i> <span class='d-none d-md-inline-block'> Delete</span></a> ";
|
||||
}
|
||||
|
||||
$setstatus = "<span class='badge bg-teal'> Active</span>";
|
||||
if($dat->mu_status==0){
|
||||
$setstatus = "<span class='badge bg-red'> Disabled</span>";
|
||||
if(!empty($this->varedit)){
|
||||
$aktifbutton="<a onclick='aktif(".$dat->mu_id.")' class='btn btn-outline-success btn-xs'><i class='fa fa-check'></i> <span class='d-none d-md-inline-block'> On</span></a> ";
|
||||
}
|
||||
}else{
|
||||
if(!empty($this->varedit)){
|
||||
$disabledbutton="<a onclick='disabled(".$dat->mu_id.")' class='btn btn-outline-danger btn-xs'><i class='fa fa-ban'></i> <span class='d-none d-md-inline-block'> Off</span></a> ";
|
||||
}
|
||||
}
|
||||
|
||||
//---------------------end check access action-------------------//
|
||||
echo("
|
||||
<tr>
|
||||
<input type='hidden' id='isi".$dat->mu_id."' value='".$dat->mu_namalengkap."'>
|
||||
<td>".$no."</td>
|
||||
<td>".$dat->mt_nama."</td>
|
||||
<td>".$dat->mu_namalengkap."</td>
|
||||
<td>".$dat->mu_namauser."</td>
|
||||
<td style='text-align: center;'>".$setstatus."</td>
|
||||
<td>".$viewbutton.$editbutton.$disabledbutton.$aktifbutton.$deletebutton."</td>
|
||||
</tr>
|
||||
");
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<script type="text/javascript">
|
||||
var url="<?php echo base_url();?>";
|
||||
function disabled(id){
|
||||
var isi=document.getElementById('isi'+id).value;
|
||||
var r=confirm("Apakah anda ingin Disbaled User '"+isi+"'?")
|
||||
if (r==true)
|
||||
window.location = url+"index.php/ps_user/disabled/"+id;
|
||||
else
|
||||
return false;
|
||||
}
|
||||
|
||||
function aktif(id){
|
||||
var isi=document.getElementById('isi'+id).value;
|
||||
var r=confirm("Apakah anda ingin Aktifkan User '"+isi+"'?")
|
||||
if (r==true)
|
||||
window.location = url+"index.php/ps_user/active/"+id;
|
||||
else
|
||||
return false;
|
||||
}
|
||||
|
||||
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_user/delete/"+id;
|
||||
else
|
||||
return false;
|
||||
}
|
||||
</script>
|
||||
@@ -0,0 +1,129 @@
|
||||
<section class="content-header">
|
||||
<div class="container-fluid">
|
||||
<div class="row mb-2">
|
||||
<div class="col-sm-6">
|
||||
<h1>
|
||||
</h1>
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<ol class="breadcrumb float-sm-right">
|
||||
<li class="breadcrumb-item"><a href="<?php echo base_url();?>">Dashboard</a></li>
|
||||
<li class="breadcrumb-item"><?php echo $parent;?></li>
|
||||
<li class="breadcrumb-item active"><?php echo $title;?></li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<!-- Main content -->
|
||||
<section class="content">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="card card-default">
|
||||
<div class="card-header">
|
||||
<h3 class="card-title"><?php
|
||||
echo $title;
|
||||
$tglawal = $awal;
|
||||
$tglakhir= $akhir;
|
||||
$tglgabung = date("m/d/Y", strtotime($awal))." - ".date("m/d/Y", strtotime($akhir));
|
||||
?></h3>
|
||||
</div>
|
||||
<form action="<?php echo(base_url()); ?>index.php/lp_simrs_kemenkes/icd" method="post" autocomplete="off">
|
||||
<div class="card-body">
|
||||
<div class="form-group row">
|
||||
<label class="col-sm-1 col-form-label">Tanggal :</label>
|
||||
<div class="col-sm-4">
|
||||
<div class="input-group">
|
||||
<div class="input-group-prepend">
|
||||
<span class="input-group-text">
|
||||
<i class="far fa-calendar-alt"></i>
|
||||
</span>
|
||||
</div>
|
||||
<input type="text" name="tanggal" class="form-control float-right" id="reservation" value="<?php echo $tglgabung;?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-2">
|
||||
<button type="submit" class="btn btn-outline-info">Search </button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<div class="card-body">
|
||||
<?php if($this->session->flashdata('message')){?>
|
||||
<div id="alert" class="alert alert-success alert-dismissable">
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
<i class="icon fa fa-check"></i> Alert!
|
||||
<?php echo $this->session->flashdata('message');?>
|
||||
</div>
|
||||
<?php }?>
|
||||
<script>
|
||||
setTimeout(function() {
|
||||
$('#alert').hide('fast');
|
||||
}, 3000);
|
||||
</script>
|
||||
<table id="example1" class="table table-bordered table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>No</th>
|
||||
<th>Asal Masuk</th>
|
||||
<th>ICD 10</th>
|
||||
<th>JML Lanjut Ranap</th>
|
||||
<th>JML BILL Lanjut Ranap</th>
|
||||
<th>JML KRS</th>
|
||||
<th>JML BILL KRS</th>
|
||||
<th>Total Kasus ICD</th>
|
||||
<th>Total BILL</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$no=0;
|
||||
foreach ($icd as $daticd) {
|
||||
//----------------------------------------------------------------Billing Dibuat
|
||||
$billmrs = 0; $billkrs = 0; $billall = 0;
|
||||
foreach($billrj as $datbillrj){
|
||||
if($daticd->dxutama == $datbillrj->dxutama && $daticd->asalmasuk == $datbillrj->asalmasuk){
|
||||
$billmrs = $datbillrj->mrs;
|
||||
$billkrs = $datbillrj->krs;
|
||||
$billall = $datbillrj->allbill;
|
||||
}
|
||||
}
|
||||
//----------------------------------------------------------------Billing Batal
|
||||
$billbtlmrs = 0; $billbtlkrs = 0; $billbtlall = 0;
|
||||
foreach($billbtl as $datbillbtl){
|
||||
if($daticd->dxutama == $datbillbtl->dxutama && $daticd->asalmasuk == $datbillbtl->asalmasuk){
|
||||
$billbtlmrs = $datbillbtl->mrs;
|
||||
$billbtlkrs = $datbillbtl->krs;
|
||||
$billbtlall = $datbillbtl->allbill;
|
||||
}
|
||||
}
|
||||
|
||||
$billtotmrs = $billmrs-$billbtlmrs;
|
||||
$billtotkrs = $billkrs-$billbtlkrs;
|
||||
$billtotall = $billall-$billbtlall;
|
||||
|
||||
$no++;
|
||||
echo("
|
||||
<tr>
|
||||
<td>".$no."</td>
|
||||
<td>".$daticd->asalmasuk."</td>
|
||||
<td>".$daticd->dxutama." - ".$daticd->jepenyakit."</td>
|
||||
<td>".$daticd->mrs."</td>
|
||||
<td>".$billtotmrs."</td>
|
||||
<td>".$daticd->krs."</td>
|
||||
<td>".$billtotkrs."</td>
|
||||
<td>".$daticd->allicd."</td>
|
||||
<td>".$billtotall."</td>
|
||||
</tr>
|
||||
");
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
@@ -0,0 +1,110 @@
|
||||
<section class="content-header">
|
||||
<div class="container-fluid">
|
||||
<div class="row mb-2">
|
||||
<div class="col-sm-6">
|
||||
<h1>
|
||||
</h1>
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<ol class="breadcrumb float-sm-right">
|
||||
<li class="breadcrumb-item"><a href="<?php echo base_url();?>">Dashboard</a></li>
|
||||
<li class="breadcrumb-item"><?php echo $parent;?></li>
|
||||
<li class="breadcrumb-item active"><?php echo $title;?></li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<!-- Main content -->
|
||||
<section class="content">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="card card-default">
|
||||
<div class="card-header">
|
||||
<h3 class="card-title"><?php
|
||||
echo $title;
|
||||
$tglawal = $awal;
|
||||
$tglakhir= $akhir;
|
||||
$tglgabung = date("m/d/Y", strtotime($awal))." - ".date("m/d/Y", strtotime($akhir));
|
||||
?></h3>
|
||||
</div>
|
||||
<form action="<?php echo(base_url()); ?>index.php/lp_simrs_kemenkes/tes" method="post" autocomplete="off">
|
||||
<div class="card-body">
|
||||
<div class="form-group row">
|
||||
<label class="col-sm-1 col-form-label">Tanggal :</label>
|
||||
<div class="col-sm-4">
|
||||
<div class="input-group">
|
||||
<div class="input-group-prepend">
|
||||
<span class="input-group-text">
|
||||
<i class="far fa-calendar-alt"></i>
|
||||
</span>
|
||||
</div>
|
||||
<input type="text" name="tanggal" class="form-control float-right" id="reservation" value="<?php echo $tglgabung;?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-2">
|
||||
<button type="submit" class="btn btn-outline-info">Search </button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<div class="card-body">
|
||||
<?php if($this->session->flashdata('message')){?>
|
||||
<div id="alert" class="alert alert-success alert-dismissable">
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
<i class="icon fa fa-check"></i> Alert!
|
||||
<?php echo $this->session->flashdata('message');?>
|
||||
</div>
|
||||
<?php }?>
|
||||
<script>
|
||||
setTimeout(function() {
|
||||
$('#alert').hide('fast');
|
||||
}, 3000);
|
||||
</script>
|
||||
<table id="example1" class="table table-bordered table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>No</th>
|
||||
<th>Ruang</th>
|
||||
<th>Kelompok</th>
|
||||
<th>SMF</th>
|
||||
<th>Jenis Lab dan Diagnostik</th>
|
||||
<th>JML TES Lanjut Ranap</th>
|
||||
<th>Total Biaya TES Lanjut Ranap</th>
|
||||
<th>JML TES KRS</th>
|
||||
<th>Total Biaya TES KRS</th>
|
||||
<th>JML TES</th>
|
||||
<th>Total Biaya TES</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$no=0;
|
||||
foreach ($pnj as $datpnj) {
|
||||
$no++;
|
||||
echo("
|
||||
<tr>
|
||||
<td>".$no."</td>
|
||||
<td>".$datpnj->kelompok."</td>
|
||||
<td>".$datpnj->kelompoktarif."</td>
|
||||
<td>".$datpnj->kelompoksmf."</td>
|
||||
<td>".$datpnj->kodetarif." - ".$datpnj->tarif."</td>
|
||||
<td>".$datpnj->mrs."</td>
|
||||
<td>Rp. ".number_format($datpnj->trmrs).",-</td>
|
||||
<td>".$datpnj->krs."</td>
|
||||
<td>Rp. ".number_format($datpnj->trkrs).",-</td>
|
||||
<td>".$datpnj->allbill."</td>
|
||||
<td>Rp. ".number_format($datpnj->alltrkrs).",-</td>
|
||||
</tr>
|
||||
");
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
@@ -0,0 +1,106 @@
|
||||
<section class="content-header">
|
||||
<div class="container-fluid">
|
||||
<div class="row mb-2">
|
||||
<div class="col-sm-6">
|
||||
<h1>
|
||||
</h1>
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<ol class="breadcrumb float-sm-right">
|
||||
<li class="breadcrumb-item"><a href="<?php echo base_url();?>">Dashboard</a></li>
|
||||
<li class="breadcrumb-item"><?php echo $parent;?></li>
|
||||
<li class="breadcrumb-item active"><?php echo $title;?></li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<!-- Main content -->
|
||||
<section class="content">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="card card-default">
|
||||
<div class="card-header">
|
||||
<h3 class="card-title"><?php
|
||||
echo $title;
|
||||
$tglawal = $awal;
|
||||
$tglakhir= $akhir;
|
||||
$tglgabung = date("m/d/Y", strtotime($awal))." - ".date("m/d/Y", strtotime($akhir));
|
||||
?></h3>
|
||||
</div>
|
||||
<form action="<?php echo(base_url()); ?>index.php/lp_simrs_kemenkes/tindakan" method="post" autocomplete="off">
|
||||
<div class="card-body">
|
||||
<div class="form-group row">
|
||||
<label class="col-sm-1 col-form-label">Tanggal :</label>
|
||||
<div class="col-sm-4">
|
||||
<div class="input-group">
|
||||
<div class="input-group-prepend">
|
||||
<span class="input-group-text">
|
||||
<i class="far fa-calendar-alt"></i>
|
||||
</span>
|
||||
</div>
|
||||
<input type="text" name="tanggal" class="form-control float-right" id="reservation" value="<?php echo $tglgabung;?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-2">
|
||||
<button type="submit" class="btn btn-outline-info">Search </button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<div class="card-body">
|
||||
<?php if($this->session->flashdata('message')){?>
|
||||
<div id="alert" class="alert alert-success alert-dismissable">
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
<i class="icon fa fa-check"></i> Alert!
|
||||
<?php echo $this->session->flashdata('message');?>
|
||||
</div>
|
||||
<?php }?>
|
||||
<script>
|
||||
setTimeout(function() {
|
||||
$('#alert').hide('fast');
|
||||
}, 3000);
|
||||
</script>
|
||||
<table id="example1" class="table table-bordered table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>No</th>
|
||||
<th>Asal Masuk</th>
|
||||
<th>Jenis Tindakan</th>
|
||||
<th>JML Lanjut Ranap</th>
|
||||
<th>JML Tarif Lanjut Ranap</th>
|
||||
<th>JML KRS</th>
|
||||
<th>JML Tarif KRS</th>
|
||||
<th>Total Tindakan</th>
|
||||
<th>Total Tarif</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$no=0;
|
||||
foreach ($icdcm as $daticdcm) {
|
||||
$no++;
|
||||
echo("
|
||||
<tr>
|
||||
<td>".$no."</td>
|
||||
<td>".$daticdcm->asalmasuk."</td>
|
||||
<td>".$daticdcm->icd9." - ".$daticdcm->icdcmketerangan."</td>
|
||||
<td>".$daticdcm->mrs."</td>
|
||||
<td>Rp. ".number_format($daticdcm->trmrs).",-</td>
|
||||
<td>".$daticdcm->krs."</td>
|
||||
<td>Rp. ".number_format($daticdcm->trkrs).",-</td>
|
||||
<td>".$daticdcm->allicdm."</td>
|
||||
<td>Rp. ".number_format($daticdcm->alltr).",-</td>
|
||||
</tr>
|
||||
");
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
@@ -0,0 +1,191 @@
|
||||
<section class="content-header">
|
||||
<div class="container-fluid">
|
||||
<div class="row mb-2">
|
||||
<div class="col-sm-6">
|
||||
<h1>
|
||||
</h1>
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<ol class="breadcrumb float-sm-right">
|
||||
<li class="breadcrumb-item"><a href="<?php echo base_url();?>">Dashboard</a></li>
|
||||
<li class="breadcrumb-item"><?php echo $parent;?></li>
|
||||
<li class="breadcrumb-item active"><?php echo $title;?></li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<!-- Main content -->
|
||||
<section class="content">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="card card-default">
|
||||
<div class="card-header">
|
||||
<h3 class="card-title"><?php
|
||||
echo $title;
|
||||
$tglawal = $awal;
|
||||
$tglakhir= $akhir;
|
||||
$tglgabung = date("m/d/Y", strtotime($awal))." - ".date("m/d/Y", strtotime($akhir));
|
||||
?></h3>
|
||||
</div>
|
||||
<form action="<?php echo(base_url()); ?>index.php/lp_simrs_kemenkes/variable_klaim" method="post" autocomplete="off">
|
||||
<div class="card-body">
|
||||
<div class="form-group row">
|
||||
<label class="col-sm-1 col-form-label">Tanggal :</label>
|
||||
<div class="col-sm-4">
|
||||
<div class="input-group">
|
||||
<div class="input-group-prepend">
|
||||
<span class="input-group-text">
|
||||
<i class="far fa-calendar-alt"></i>
|
||||
</span>
|
||||
</div>
|
||||
<input type="text" name="tanggal" class="form-control float-right" id="reservation" value="<?php echo $tglgabung;?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-2">
|
||||
<button type="submit" class="btn btn-outline-info">Search </button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<div class="card-body">
|
||||
<?php if($this->session->flashdata('message')){?>
|
||||
<div id="alert" class="alert alert-success alert-dismissable">
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
<i class="icon fa fa-check"></i> Alert!
|
||||
<?php echo $this->session->flashdata('message');?>
|
||||
</div>
|
||||
<?php }?>
|
||||
<script>
|
||||
setTimeout(function() {
|
||||
$('#alert').hide('fast');
|
||||
}, 3000);
|
||||
</script>
|
||||
<table id="example1" class="table table-bordered table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>No</th>
|
||||
<th>NO SEP</th>
|
||||
<th>Tgl Masuk</th>
|
||||
<th>Tgl Keluar</th>
|
||||
<th>Tgl Keluar RS</th>
|
||||
<th>Status Keluar</th>
|
||||
<th>LOS</th>
|
||||
<th>Gender</th>
|
||||
<th>Tgl Lahir</th>
|
||||
<th>Keluhan Utama</th>
|
||||
<th>DX Masuk</th>
|
||||
<!--th>DX</th-->
|
||||
<th>Diaglist</th>
|
||||
<th>Proclist</th>
|
||||
<th>Cara Masuk</th>
|
||||
<!--th>Transport</th-->
|
||||
<th>Triase</th>
|
||||
<th>Trauma</th>
|
||||
<!--th>Obstetri</th-->
|
||||
<th>KLL</th>
|
||||
<th>Cara Bayar</th>
|
||||
<th>Status Ranap</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$no=0;
|
||||
foreach ($pxigd as $datpxigd) {
|
||||
$trauma = "Tidak";
|
||||
if($datpxigd->statuskll!="Bukan Kecelakaan"){
|
||||
$trauma = "Ya";
|
||||
}
|
||||
$rujuk = "Datang Sendiri";
|
||||
if($datpxigd->rujuk!=0){
|
||||
$rujuk = "Rujukan";
|
||||
}
|
||||
$ranap = "Tidak";
|
||||
$keluarrs = $datpxigd->keluarpoly;
|
||||
if($datpxigd->kdstatuskeluar==2){
|
||||
$ranap = "Ya";
|
||||
$keluarrs = $datpxigd->keluarrs;
|
||||
}
|
||||
|
||||
$jeniskelamin = "";
|
||||
if($datpxigd->gender=="P"){
|
||||
$jeniskelamin = "Perempuan";
|
||||
}elseif($datpxigd->gender=="L"){
|
||||
$jeniskelamin = "Laki-laki";
|
||||
}
|
||||
|
||||
//$triage = "TD : $datpxigd->tekanandarah | TB : $datpxigd->tinggibadan | BB : $datpxigd->beratbadan | GD : $datpxigd->golongandarah";
|
||||
$masuk = date_create($datpxigd->masukpoly);
|
||||
$pulang = date_create($keluarrs);
|
||||
$diff = date_diff( $masuk, $pulang );
|
||||
$los = "Hari :".$diff->d." / Jam :".$diff->h." / Menit :".$diff->i;
|
||||
$triage = "";
|
||||
if($datpxigd->kodepoly == 211 || $datpxigd->kodepoly == 214){
|
||||
$triage = "Merah";
|
||||
}elseif($datpxigd->kodepoly == 212 || $datpxigd->kodepoly == 215 || $datpxigd->kodepoly == 390){
|
||||
$triage = "Kuning";
|
||||
}elseif($datpxigd->kodepoly == 213 || $datpxigd->kodepoly == 216 || $datpxigd->kodepoly == 73 || $datpxigd->kodepoly == 204){
|
||||
$triage = "Hijau";
|
||||
}elseif($datpxigd->kodepoly == 257 || $datpxigd->kodepoly == 258){
|
||||
$triage = "Hitam";
|
||||
}
|
||||
|
||||
$icdcm = "";
|
||||
foreach($icdcmigd as $daticdcm){
|
||||
if($daticdcm->idxdaftar == $datpxigd->idxdaftar){
|
||||
$icdcm = $icdcm." ".$daticdcm->icd9." - ".$daticdcm->icdcmketerangan."; </br>";
|
||||
//$icdcm = $icdcm." ".$daticdcm->icd9.";";
|
||||
}
|
||||
}
|
||||
|
||||
$icd10 = ""; $dxawal = "";
|
||||
foreach($icdigd as $daticd){
|
||||
if($daticd->idxdaftar == $datpxigd->idxdaftar){
|
||||
$icd10 = $icd10." ".$daticd->icd10." - ".$daticd->icdketerangan."; </br>";
|
||||
//$icd10 = $icd10." ".$daticd->icdketerangan.";";
|
||||
//$icd10 = $icd10." ".$daticd->icd10.";";
|
||||
if($dxawal === ""){
|
||||
$dxawal = $daticd->icd10." - ".$daticd->icdketerangan;
|
||||
}
|
||||
}
|
||||
}
|
||||
if($datpxigd->statuskeluar!="BATAL"){
|
||||
$no++;
|
||||
echo("
|
||||
<tr>
|
||||
<td>".$no."</td>
|
||||
<td>".$datpxigd->nosep."</td>
|
||||
<td>".$datpxigd->masukpoly."</td>
|
||||
<td>".$datpxigd->keluarpoly."</td>
|
||||
<td>$keluarrs</td>
|
||||
<td>".$datpxigd->statuskeluar."</td>
|
||||
<td>$los</td>
|
||||
<td>".$jeniskelamin."</td>
|
||||
<td>".$datpxigd->tgllahir."</td>
|
||||
<td>".$datpxigd->anamnesa."</td>
|
||||
<td>".$dxawal."</td>
|
||||
<!--td>".$datpxigd->jepenyakit."</td-->
|
||||
<td>$icd10</td>
|
||||
<td>$icdcm</td>
|
||||
<td>$rujuk</td>
|
||||
<!--td></td-->
|
||||
<td>".$datpxigd->namapoly." (".$triage.")</td>
|
||||
<td>$trauma</td>
|
||||
<!--td></td-->
|
||||
<td>$trauma</td>
|
||||
<td>".$datpxigd->carabayar."</td>
|
||||
<td>$ranap</td>
|
||||
</tr>
|
||||
");
|
||||
}
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
@@ -0,0 +1,247 @@
|
||||
<section class="content-header">
|
||||
<div class="container-fluid">
|
||||
<div class="row mb-2">
|
||||
<div class="col-sm-6">
|
||||
<h1>
|
||||
</h1>
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<ol class="breadcrumb float-sm-right">
|
||||
<li class="breadcrumb-item"><a href="<?php echo base_url();?>">Dashboard</a></li>
|
||||
<li class="breadcrumb-item"><?php echo $parent;?></li>
|
||||
<li class="breadcrumb-item active"><?php echo $title;?></li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<!-- Main content -->
|
||||
<section class="content">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="card card-default">
|
||||
<div class="card-header">
|
||||
<h3 class="card-title"><?php
|
||||
echo $title;
|
||||
$tglawal = $awal;
|
||||
$tglakhir= $akhir;
|
||||
$tglgabung = date("m/d/Y", strtotime($awal))." - ".date("m/d/Y", strtotime($akhir));
|
||||
?></h3>
|
||||
</div>
|
||||
<form action="<?php echo(base_url()); ?>index.php/lp_simrs_report/disposedokigd" method="post" autocomplete="off">
|
||||
<div class="card-body">
|
||||
<div class="form-group row">
|
||||
<label class="col-sm-1 col-form-label">Tanggal :</label>
|
||||
<div class="col-sm-4">
|
||||
<div class="input-group">
|
||||
<div class="input-group-prepend">
|
||||
<span class="input-group-text">
|
||||
<i class="far fa-calendar-alt"></i>
|
||||
</span>
|
||||
</div>
|
||||
<input type="text" name="tanggal" class="form-control float-right" id="reservation" value="<?php echo $tglgabung;?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-2">
|
||||
<button type="submit" class="btn btn-outline-info">Search </button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<div class="card-body">
|
||||
<?php if($this->session->flashdata('message')){?>
|
||||
<div id="alert" class="alert alert-success alert-dismissable">
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
<i class="icon fa fa-check"></i> Alert!
|
||||
<?php echo $this->session->flashdata('message');?>
|
||||
</div>
|
||||
<?php }?>
|
||||
<script>
|
||||
setTimeout(function() {
|
||||
$('#alert').hide('fast');
|
||||
}, 3000);
|
||||
</script>
|
||||
<table id="example1" class="table table-bordered table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>No</th>
|
||||
<th>Idxdaftar</th>
|
||||
<th>No MR</th>
|
||||
<th>Tgl Registrasi</th>
|
||||
<th>DPJP Awal</th>
|
||||
<th>UGD Triage</th>
|
||||
<th>Kajian Awal Medis</th>
|
||||
<th>Disposisi</th>
|
||||
<th>Tujuan Disposisi</th>
|
||||
<th>Penerima Disposisi</th>
|
||||
<th>Pelimpahan DPJP</th>
|
||||
<th>Resume Medis</th>
|
||||
<th>DPJP Terakhir</th>
|
||||
<th>Status Keluar</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$no=0;
|
||||
foreach ($datanya as $dat) {
|
||||
$pelimpahandpjp = "";
|
||||
$dpjpterakhir = $dat->dokterawal;
|
||||
|
||||
$rea1 = str_replace('{', '', $dat->tglpelimpah);
|
||||
$reb1 = str_replace('}', '', $rea1);
|
||||
$ex1 = explode(",",$reb1);
|
||||
|
||||
$rea2 = str_replace('{', '', $dat->klinikpelimpah);
|
||||
$reb2 = str_replace('}', '', $rea2);
|
||||
$rec2 = str_replace('"', '', $reb2);
|
||||
$ex2 = explode(",",$rec2);
|
||||
|
||||
$rea3 = str_replace('{', '', $dat->dpjppelimpah);
|
||||
$reb3 = str_replace('}', '', $rea3);
|
||||
$ex3 = explode('","',$reb3);
|
||||
|
||||
$rea4 = str_replace('{', '', $dat->smfpelimpah);
|
||||
$reb4 = str_replace('}', '', $rea4);
|
||||
$ex4 = explode(",",$reb4);
|
||||
|
||||
$rea5 = str_replace('{', '', $dat->dpjppengganti);
|
||||
$reb5 = str_replace('}', '', $rea5);
|
||||
$ex5 = explode('","',$reb5);
|
||||
|
||||
$rea6 = str_replace('{', '', $dat->smfpengganti);
|
||||
$reb6 = str_replace('}', '', $rea6);
|
||||
$ex6 = explode(",",$reb6);
|
||||
|
||||
$count = count($ex1);
|
||||
for ($x = 0; $x <= $count; $x++) {
|
||||
if(isset($ex1[$x])){
|
||||
if($ex1[$x]!=""){
|
||||
$rec4 = str_replace('"', '', $ex4[$x]);
|
||||
$rec3 = str_replace('"', '', $ex3[$x]);
|
||||
$rec5 = str_replace('"', '', $ex5[$x]);
|
||||
$rec6 = str_replace('"', '', $ex6[$x]);
|
||||
$pelimpahandpjp = $pelimpahandpjp.$ex1[$x]." - $ex2[$x] - DPJP Pelimpah : $rec3 ($rec4) || DPJP Pengganti : $rec5 ($rec6)</br>";
|
||||
$dpjpterakhir = "$rec5 ($rec6)";
|
||||
}else{
|
||||
$pelimpahandpjp = "-";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$diagnosaterapi = "";
|
||||
|
||||
$real1 = str_replace('{', '', $dat->diagnosaterapidate);
|
||||
$rebl1 = str_replace('}', '', $real1);
|
||||
$recl1 = str_replace('"', '', $rebl1);
|
||||
$exl1 = explode(",",$recl1);
|
||||
|
||||
$real2 = str_replace('{', '', $dat->diagnosaterapidokter);
|
||||
$rebl2 = str_replace('}', '', $real2);
|
||||
$exl2 = explode('","',$rebl2);
|
||||
|
||||
$real3 = str_replace('{', '', $dat->diagnosaterapismf);
|
||||
$rebl3 = str_replace('}', '', $real3);
|
||||
$recl3 = str_replace('"', '', $rebl3);
|
||||
$exl3 = explode(",",$recl3);
|
||||
|
||||
$count2 = count($exl1);
|
||||
for ($x = 0; $x <= $count2; $x++) {
|
||||
if(isset($exl1[$x])){
|
||||
if($exl1[$x]!=""){
|
||||
$recl2 = str_replace('"', '', $exl2[$x]);
|
||||
$diagnosaterapi = $diagnosaterapi.$exl1[$x]." - $recl2($exl3[$x])</br>";
|
||||
}else{
|
||||
$diagnosaterapi = "-";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$ugdtriage = "";
|
||||
|
||||
$reat1 = str_replace('{', '', $dat->tgltriage);
|
||||
$rebt1 = str_replace('}', '', $reat1);
|
||||
$ext1 = explode(",",$rebt1);
|
||||
|
||||
$reat2 = str_replace('{', '', $dat->jamtriage);
|
||||
$rebt2 = str_replace('}', '', $reat2);
|
||||
$ext2 = explode(",",$rebt2);
|
||||
|
||||
$reat3 = str_replace('{', '', $dat->triagedokter);
|
||||
$rebt3 = str_replace('}', '', $reat3);
|
||||
$ext3 = explode('","',$rebt3);
|
||||
|
||||
$reat4 = str_replace('{', '', $dat->triagesmf);
|
||||
$rebt4 = str_replace('}', '', $reat4);
|
||||
$rect4 = str_replace('"', '', $rebt4);
|
||||
$ext4 = explode(",",$rect4);
|
||||
|
||||
$count3 = count($ext1);
|
||||
for ($x = 0; $x <= $count3; $x++) {
|
||||
if(isset($ext1[$x])){
|
||||
if($ext1[$x]!=""){
|
||||
$rect3 = str_replace('"', '', $ext3[$x]);
|
||||
$ugdtriage = $ugdtriage.$ext1[$x]." $ext2[$x] - $rect3 ($ext4[$x])</br>";
|
||||
}else{
|
||||
$ugdtriage = "-";
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
$resumemedis = "";
|
||||
|
||||
$rear1 = str_replace('{', '', $dat->resumedate);
|
||||
$rebr1 = str_replace('}', '', $rear1);
|
||||
$exr1 = explode(",",$rebr1);
|
||||
|
||||
$rear2 = str_replace('{', '', $dat->resumedokter);
|
||||
$rebr2 = str_replace('}', '', $rear2);
|
||||
$exr2 = explode(",",$rebr2);
|
||||
|
||||
$rear3 = str_replace('{', '', $dat->resumesmf);
|
||||
$rebr3 = str_replace('}', '', $rear3);
|
||||
$exr3 = explode(",",$rebr3);
|
||||
|
||||
$count4 = count($exr1);
|
||||
for ($x = 0; $x <= $count4; $x++) {
|
||||
if(isset($exr1[$x])){
|
||||
if($exr1[$x]!=""){
|
||||
$recr1 = str_replace('"', '', $exr1[$x]);
|
||||
$recr2 = str_replace('"', '', $exr2[$x]);
|
||||
$resumemedis = $resumemedis.$recr1." - $recr2 ($exr3[$x])</br>";
|
||||
}else{
|
||||
$resumemedis = "-";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$no++;
|
||||
echo("
|
||||
<tr>
|
||||
<td>".$no."</td>
|
||||
<td>".$dat->idxdaftar."</td>
|
||||
<td>".$dat->nomr."</td>
|
||||
<td>".$dat->tglreg."</td>
|
||||
<td>".$dat->dokterawal."</td>
|
||||
<td>".$ugdtriage."</td>
|
||||
<td>".$diagnosaterapi."</td>
|
||||
<td>".$dat->disposisismf." - ".$dat->disposisi."</td>
|
||||
<td>".$dat->tujuansmf."</td>
|
||||
<td>".$dat->terimadisposisismf." - ".$dat->terimadisposisi."</td>
|
||||
<td>".$pelimpahandpjp."</td>
|
||||
<td>".$resumemedis."</td>
|
||||
<td>".$dpjpterakhir."</td>
|
||||
<td>".$dat->statuskeluar."</td>
|
||||
</tr>
|
||||
");
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
@@ -0,0 +1,157 @@
|
||||
<section class="content-header">
|
||||
<div class="container-fluid">
|
||||
<div class="row mb-2">
|
||||
<div class="col-sm-6">
|
||||
<h1>
|
||||
</h1>
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<ol class="breadcrumb float-sm-right">
|
||||
<li class="breadcrumb-item"><a href="<?php echo base_url();?>">Dashboard</a></li>
|
||||
<li class="breadcrumb-item"><?php echo $parent;?></li>
|
||||
<li class="breadcrumb-item active"><?php echo $title;?></li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<!-- Main content -->
|
||||
<section class="content">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="card card-default">
|
||||
<div class="card-header">
|
||||
<h3 class="card-title"><?php
|
||||
echo $title;
|
||||
$tglawal = $awal;
|
||||
$tglakhir= $akhir;
|
||||
$tglgabung = date("m/d/Y", strtotime($awal))." - ".date("m/d/Y", strtotime($akhir));
|
||||
?></h3>
|
||||
</div>
|
||||
<form action="<?php echo(base_url()); ?>index.php/lp_simrs_report/klaimlabmikro" method="post" autocomplete="off">
|
||||
<div class="card-body">
|
||||
<div class="form-group row">
|
||||
<label class="col-sm-1 col-form-label">Tanggal :</label>
|
||||
<div class="col-sm-4">
|
||||
<div class="input-group">
|
||||
<div class="input-group-prepend">
|
||||
<span class="input-group-text">
|
||||
<i class="far fa-calendar-alt"></i>
|
||||
</span>
|
||||
</div>
|
||||
<input type="text" name="tanggal" class="form-control float-right" id="reservation" value="<?php echo $tglgabung;?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-2">
|
||||
<button type="submit" class="btn btn-outline-info">Search </button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<div class="card-body">
|
||||
<?php if($this->session->flashdata('message')){?>
|
||||
<div id="alert" class="alert alert-success alert-dismissable">
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
<i class="icon fa fa-check"></i> Alert!
|
||||
<?php echo $this->session->flashdata('message');?>
|
||||
</div>
|
||||
<?php }?>
|
||||
<script>
|
||||
setTimeout(function() {
|
||||
$('#alert').hide('fast');
|
||||
}, 3000);
|
||||
</script>
|
||||
<table id="example1" class="table table-bordered table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Status Pasien</th>
|
||||
<th>APS</th>
|
||||
<th>Tgl Order</th>
|
||||
<th>Tgl Hasil</th>
|
||||
<th>Nota</th>
|
||||
<th>Bill</th>
|
||||
<th>RM</th>
|
||||
<th>KTP</th>
|
||||
<th>Nama</th>
|
||||
<th>Tgl Lahir</th>
|
||||
<th>JK</th>
|
||||
<th>Alamat</th>
|
||||
<th>Penjamin</th>
|
||||
<th>Ruang</th>
|
||||
<th>No Lab</th>
|
||||
<th>Kode Tarif</th>
|
||||
<th>Kelompok</th>
|
||||
<th>Jenis Pemeriksaan</th>
|
||||
<th>StOrder</th>
|
||||
<th>Status</th>
|
||||
<th>Verif</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$no=0;
|
||||
foreach ($klaimmikro as $dat) {
|
||||
if($dat->strajal == "0"){$ststatus = "RANAP";}else{$ststatus = "RAJAL";}
|
||||
if($dat->verstatusrajal == "1"){$stver = "YA";}else{$stver = "TIDAK";}
|
||||
if($dat->statusorder == "1"){$stor = "YA";}else{$stor = "TIDAK";}
|
||||
|
||||
|
||||
$nomr = ""; $ktp = ""; $namapasien = ""; $tgllahir = ""; $jeniskelamin = ""; $alamat = "";
|
||||
$apsrajal = $dat->apsrajal;
|
||||
$apsranap = $dat->apsranap;
|
||||
$aps = (int)$apsrajal+(int)$apsranap;
|
||||
if($aps > 0){
|
||||
$aps = "APS";
|
||||
$ktp = $dat->noktpaps;
|
||||
$namapasien = $dat->namaaps;
|
||||
$tgllahir = $dat->tgllahiraps;
|
||||
$jeniskelamin = $dat->jkaps;
|
||||
$alamat = $dat->alamataps;
|
||||
}else{
|
||||
$aps = "TIDAK";
|
||||
$ktp = $dat->noktpreg;
|
||||
$namapasien = $dat->namareg;
|
||||
$tgllahir = $dat->tgllahirreg;
|
||||
$jeniskelamin = $dat->jkreg;
|
||||
$alamat = $dat->alamatreg;
|
||||
}
|
||||
|
||||
$penjamin = $dat->namabayarrajal;if($penjamin==""){$penjamin = $dat->namabayarranap;}
|
||||
$no++;
|
||||
echo("
|
||||
<tr>
|
||||
<!--td>".$no."</td-->
|
||||
<td>".$ststatus."</td>
|
||||
<td>".$aps."</td>
|
||||
<td>".$dat->tglorder."</td>
|
||||
<td>".$dat->tglhasil."</td>
|
||||
<td>".$dat->nonota."</td>
|
||||
<td>".$dat->billranap."".$dat->billrajal."</td>
|
||||
<td>".$dat->nomrreg."".$dat->nomraps."</td>
|
||||
<td>".$ktp."</td>
|
||||
<td>".$namapasien."</td>
|
||||
<td>".$tgllahir."</td>
|
||||
<td>".$jeniskelamin."</td>
|
||||
<td>".$alamat."</td>
|
||||
<td>".$penjamin."</td>
|
||||
<td>".$dat->namaruang."</td>
|
||||
<td>".$dat->nolokal."</td>
|
||||
<td>".$dat->kodetarifrajal."".$dat->kodetarifranap."</td>
|
||||
<td>".$dat->jenkel."</td>
|
||||
<td>".$dat->jenpemeriksaan."</td>
|
||||
<td>".$stor."</td>
|
||||
<td>".$dat->statusrajal."".$dat->statusranap."</td>
|
||||
<td>".$stver."</td>
|
||||
</tr>
|
||||
");
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
@@ -0,0 +1,161 @@
|
||||
<section class="content-header">
|
||||
<div class="container-fluid">
|
||||
<div class="row mb-2">
|
||||
<div class="col-sm-6">
|
||||
<h1>
|
||||
</h1>
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<ol class="breadcrumb float-sm-right">
|
||||
<li class="breadcrumb-item"><a href="<?php echo base_url();?>">Dashboard</a></li>
|
||||
<li class="breadcrumb-item"><?php echo $parent;?></li>
|
||||
<li class="breadcrumb-item active"><?php echo $title;?></li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<!-- Main content -->
|
||||
<section class="content">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="card card-default">
|
||||
<div class="card-header">
|
||||
<h3 class="card-title"><?php
|
||||
echo $title;
|
||||
$tglawal = $awal;
|
||||
$tglakhir= $akhir;
|
||||
$tglgabung = date("m/d/Y", strtotime($awal))." - ".date("m/d/Y", strtotime($akhir));
|
||||
?></h3>
|
||||
</div>
|
||||
<form action="<?php echo(base_url()); ?>index.php/lp_simrs_report/labmikro" method="post" autocomplete="off">
|
||||
<div class="card-body">
|
||||
<div class="form-group row">
|
||||
<label class="col-sm-1 col-form-label">Tanggal :</label>
|
||||
<div class="col-sm-4">
|
||||
<div class="input-group">
|
||||
<div class="input-group-prepend">
|
||||
<span class="input-group-text">
|
||||
<i class="far fa-calendar-alt"></i>
|
||||
</span>
|
||||
</div>
|
||||
<input type="text" name="tanggal" class="form-control float-right" id="reservation" value="<?php echo $tglgabung;?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-2">
|
||||
<button type="submit" class="btn btn-outline-info">Search </button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<div class="card-body">
|
||||
<?php if($this->session->flashdata('message')){?>
|
||||
<div id="alert" class="alert alert-success alert-dismissable">
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
<i class="icon fa fa-check"></i> Alert!
|
||||
<?php echo $this->session->flashdata('message');?>
|
||||
</div>
|
||||
<?php }?>
|
||||
<script>
|
||||
setTimeout(function() {
|
||||
$('#alert').hide('fast');
|
||||
}, 3000);
|
||||
</script>
|
||||
<table id="example1" class="table table-bordered table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<!--th>No</th-->
|
||||
<th>Status Pasien</th>
|
||||
<th>APS</th>
|
||||
<th>Tgl Order</th>
|
||||
<th>Tgl Hasil</th>
|
||||
<th>Nota</th>
|
||||
<th>Bill</th>
|
||||
<th>RM</th>
|
||||
<th>KTP</th>
|
||||
<!--th>KTP Baru</th-->
|
||||
<th>Nama</th>
|
||||
<th>Tgl Lahir</th>
|
||||
<th>JK</th>
|
||||
<th>Alamat</th>
|
||||
<th>Penjamin</th>
|
||||
<th>Ruang</th>
|
||||
<th>Poliklinik</th>
|
||||
<th>Kode Tarif</th>
|
||||
<th>Kelompok</th>
|
||||
<th>Jenis Pemeriksaan</th>
|
||||
<th>StOrder</th>
|
||||
<th>Status</th>
|
||||
<th>Verif</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$no=0;
|
||||
foreach ($labmikroall as $dat) {
|
||||
if($dat->strajal == "0"){$ststatus = "RANAP";}else{$ststatus = "RAJAL";}
|
||||
if($dat->verstatus == "1"){$stver = "VERIF";}else{$stver = "TIDAK";}
|
||||
if($dat->statusorder == "1"){$stor = "ORDER";}else{$stor = "TIDAK";}
|
||||
|
||||
|
||||
$nomr = ""; $ktp = ""; $namapasien = ""; $tgllahir = ""; $jeniskelamin = ""; $alamat = "";
|
||||
$apsrajal = $dat->tbsrajal;
|
||||
$apsranap = $dat->tbsranap;
|
||||
$aps = (int)$apsrajal+(int)$apsranap;
|
||||
if($aps > 0){
|
||||
$aps = "YA";
|
||||
$ktp = $dat->ktpaps;
|
||||
$namapasien = $dat->namapasienaps;
|
||||
$tgllahir = $dat->tgllahiraps;
|
||||
$jeniskelamin = $dat->jeniskelaminaps;
|
||||
$alamat = $dat->alamataps;
|
||||
}else{
|
||||
$aps = "TIDAK";
|
||||
$ktp = $dat->ktp;
|
||||
$namapasien = $dat->namapasien;
|
||||
$tgllahir = $dat->tgllahir;
|
||||
$jeniskelamin = $dat->jeniskelamin;
|
||||
$alamat = $dat->alamat;
|
||||
}
|
||||
|
||||
$penjamin = $dat->namabayarrajal;if($penjamin==""){$penjamin = $dat->namabayarranap;}
|
||||
$ruang = $dat->namaruangrajal;if($ruang==""){$ruang = $dat->namaruangranap;}
|
||||
$no++;
|
||||
echo("
|
||||
<tr>
|
||||
<!--td>".$no."</td-->
|
||||
<td>".$ststatus."</td>
|
||||
<td>".$aps."</td>
|
||||
<td>".$dat->tglorder."</td>
|
||||
<td>".$dat->tglhasil."</td>
|
||||
<td>".$dat->nota."</td>
|
||||
<td>".$dat->nobillrajal."</td>
|
||||
<td>".$dat->nomr."</td>
|
||||
<td>".$ktp."</td>
|
||||
<!--td>".$dat->ktpbaru."</td-->
|
||||
<td>".$namapasien."</td>
|
||||
<td>".$tgllahir."</td>
|
||||
<td>".$jeniskelamin."</td>
|
||||
<td>".$alamat."</td>
|
||||
<td>".$penjamin."</td>
|
||||
<td>".$ruang."</td>
|
||||
<td>".$dat->poliklinik."</td>
|
||||
<td>".$dat->kodetarif."</td>
|
||||
<td>".$dat->jeniskelompok."</td>
|
||||
<td>".$dat->namafield."</td>
|
||||
<td>".$stor."</td>
|
||||
<td>".$dat->billstatus."</td>
|
||||
<td>".$stver."</td>
|
||||
</tr>
|
||||
");
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
@@ -0,0 +1,113 @@
|
||||
<section class="content-header">
|
||||
<div class="container-fluid">
|
||||
<div class="row mb-2">
|
||||
<div class="col-sm-6">
|
||||
<h1>
|
||||
</h1>
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<ol class="breadcrumb float-sm-right">
|
||||
<li class="breadcrumb-item"><a href="<?php echo base_url();?>">Dashboard</a></li>
|
||||
<li class="breadcrumb-item"><?php echo $parent;?></li>
|
||||
<li class="breadcrumb-item active"><?php echo $title;?></li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<!-- Main content -->
|
||||
<section class="content">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="card card-default">
|
||||
<div class="card-header">
|
||||
<h3 class="card-title"><?php
|
||||
echo $title;
|
||||
$tglawal = $awal;
|
||||
$tglakhir= $akhir;
|
||||
$tglgabung = date("m/d/Y", strtotime($awal))." - ".date("m/d/Y", strtotime($akhir));
|
||||
?></h3>
|
||||
</div>
|
||||
<form action="<?php echo(base_url()); ?>index.php/lp_simrs_report/obatkeluarrajal" method="post" autocomplete="off">
|
||||
<div class="card-body">
|
||||
<div class="form-group row">
|
||||
<label class="col-sm-1 col-form-label">Tanggal :</label>
|
||||
<div class="col-sm-4">
|
||||
<div class="input-group">
|
||||
<div class="input-group-prepend">
|
||||
<span class="input-group-text">
|
||||
<i class="far fa-calendar-alt"></i>
|
||||
</span>
|
||||
</div>
|
||||
<input type="text" name="tanggal" class="form-control float-right" id="reservation" value="<?php echo $tglgabung;?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-2">
|
||||
<button type="submit" class="btn btn-outline-info">Search </button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<div class="card-body">
|
||||
<?php if($this->session->flashdata('message')){?>
|
||||
<div id="alert" class="alert alert-success alert-dismissable">
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
<i class="icon fa fa-check"></i> Alert!
|
||||
<?php echo $this->session->flashdata('message');?>
|
||||
</div>
|
||||
<?php }?>
|
||||
<script>
|
||||
setTimeout(function() {
|
||||
$('#alert').hide('fast');
|
||||
}, 3000);
|
||||
</script>
|
||||
<table id="example1" class="table table-bordered table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>No</th>
|
||||
<th>Status</th>
|
||||
<th>Kode</th>
|
||||
<th>Nama Obat</th>
|
||||
<th>Qty</th>
|
||||
<th>Dokter</th>
|
||||
<th>Harga</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$no=0;
|
||||
foreach ($datarajal as $datrajal) {
|
||||
$namaobat = "";
|
||||
$kode = "";
|
||||
$harga = "";
|
||||
foreach($dataobat as $datobat){
|
||||
if($datobat->mo_kode==$datrajal->kodeobat){
|
||||
$namaobat = $datobat->mo_nama;
|
||||
$kode = $datobat->mo_kode;
|
||||
$harga = $datobat->harga;
|
||||
}
|
||||
}
|
||||
|
||||
$no++;
|
||||
echo("
|
||||
<tr>
|
||||
<td>".$no."</td>
|
||||
<td>RAWAT JALAN</td>
|
||||
<td>".$datrajal->kodeobat."</td>
|
||||
<td>".$namaobat."</td>
|
||||
<td>".(float)$datrajal->jmlqty."</td>
|
||||
<td>".$datrajal->namadokter."</td>
|
||||
<td>".(float)$harga."</td>
|
||||
</tr>
|
||||
");
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
@@ -0,0 +1,113 @@
|
||||
<section class="content-header">
|
||||
<div class="container-fluid">
|
||||
<div class="row mb-2">
|
||||
<div class="col-sm-6">
|
||||
<h1>
|
||||
</h1>
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<ol class="breadcrumb float-sm-right">
|
||||
<li class="breadcrumb-item"><a href="<?php echo base_url();?>">Dashboard</a></li>
|
||||
<li class="breadcrumb-item"><?php echo $parent;?></li>
|
||||
<li class="breadcrumb-item active"><?php echo $title;?></li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<!-- Main content -->
|
||||
<section class="content">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="card card-default">
|
||||
<div class="card-header">
|
||||
<h3 class="card-title"><?php
|
||||
echo $title;
|
||||
$tglawal = $awal;
|
||||
$tglakhir= $akhir;
|
||||
$tglgabung = date("m/d/Y", strtotime($awal))." - ".date("m/d/Y", strtotime($akhir));
|
||||
?></h3>
|
||||
</div>
|
||||
<form action="<?php echo(base_url()); ?>index.php/lp_simrs_report/obatkeluarranap" method="post" autocomplete="off">
|
||||
<div class="card-body">
|
||||
<div class="form-group row">
|
||||
<label class="col-sm-1 col-form-label">Tanggal :</label>
|
||||
<div class="col-sm-4">
|
||||
<div class="input-group">
|
||||
<div class="input-group-prepend">
|
||||
<span class="input-group-text">
|
||||
<i class="far fa-calendar-alt"></i>
|
||||
</span>
|
||||
</div>
|
||||
<input type="text" name="tanggal" class="form-control float-right" id="reservation" value="<?php echo $tglgabung;?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-2">
|
||||
<button type="submit" class="btn btn-outline-info">Search </button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<div class="card-body">
|
||||
<?php if($this->session->flashdata('message')){?>
|
||||
<div id="alert" class="alert alert-success alert-dismissable">
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
<i class="icon fa fa-check"></i> Alert!
|
||||
<?php echo $this->session->flashdata('message');?>
|
||||
</div>
|
||||
<?php }?>
|
||||
<script>
|
||||
setTimeout(function() {
|
||||
$('#alert').hide('fast');
|
||||
}, 3000);
|
||||
</script>
|
||||
<table id="example1" class="table table-bordered table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>No</th>
|
||||
<th>Status</th>
|
||||
<th>Kode</th>
|
||||
<th>Nama Obat</th>
|
||||
<th>Qty</th>
|
||||
<th>Dokter</th>
|
||||
<th>Harga</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$no=0;
|
||||
foreach ($dataranap as $datranap) {
|
||||
$namaobat = "";
|
||||
$kode = "";
|
||||
$harga = "";
|
||||
foreach($dataobat as $datobat){
|
||||
if($datobat->mo_kode==$datranap->kodeobat){
|
||||
$namaobat = $datobat->mo_nama;
|
||||
$kode = $datobat->mo_kode;
|
||||
$harga = $datobat->harga;
|
||||
}
|
||||
}
|
||||
|
||||
$no++;
|
||||
echo("
|
||||
<tr>
|
||||
<td>".$no."</td>
|
||||
<td>RAWAT INAP</td>
|
||||
<td>".$datranap->kodeobat."</td>
|
||||
<td>".$namaobat."</td>
|
||||
<td>".(float)$datranap->jmlqty."</td>
|
||||
<td>".$datranap->namadokter."</td>
|
||||
<td>".(float)$harga."</td>
|
||||
</tr>
|
||||
");
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
@@ -0,0 +1,153 @@
|
||||
<section class="content-header">
|
||||
<div class="container-fluid">
|
||||
<div class="row mb-2">
|
||||
<div class="col-sm-6">
|
||||
<h1>
|
||||
</h1>
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<ol class="breadcrumb float-sm-right">
|
||||
<li class="breadcrumb-item"><a href="<?php echo base_url();?>">Dashboard</a></li>
|
||||
<li class="breadcrumb-item"><?php echo $parent;?></li>
|
||||
<li class="breadcrumb-item active"><?php echo $title;?></li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<!-- Main content -->
|
||||
<section class="content">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="card card-default">
|
||||
<div class="card-header">
|
||||
<h3 class="card-title"><?php
|
||||
echo $title;
|
||||
$tglawal = $awal;
|
||||
$tglakhir= $akhir;
|
||||
$tglgabung = date("m/d/Y", strtotime($awal))." - ".date("m/d/Y", strtotime($akhir));
|
||||
?></h3>
|
||||
</div>
|
||||
<form action="<?php echo(base_url()); ?>index.php/lp_simrs_report/pasienbaru" method="post" autocomplete="off">
|
||||
<div class="card-body">
|
||||
<div class="form-group row">
|
||||
<label class="col-sm-1 col-form-label">Tanggal :</label>
|
||||
<div class="col-sm-4">
|
||||
<div class="input-group">
|
||||
<div class="input-group-prepend">
|
||||
<span class="input-group-text">
|
||||
<i class="far fa-calendar-alt"></i>
|
||||
</span>
|
||||
</div>
|
||||
<input type="text" name="tanggal" class="form-control float-right" id="reservation" value="<?php echo $tglgabung;?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-2">
|
||||
<button type="submit" class="btn btn-outline-info">Search </button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<div class="card-body">
|
||||
<?php if($this->session->flashdata('message')){?>
|
||||
<div id="alert" class="alert alert-success alert-dismissable">
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
<i class="icon fa fa-check"></i> Alert!
|
||||
<?php echo $this->session->flashdata('message');?>
|
||||
</div>
|
||||
<?php }?>
|
||||
<script>
|
||||
setTimeout(function() {
|
||||
$('#alert').hide('fast');
|
||||
}, 3000);
|
||||
</script>
|
||||
<table id="example1" class="table table-bordered table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>No</th>
|
||||
<th>Tanggal</th>
|
||||
<th>Klinik</th>
|
||||
<th>Pasien Baru</th>
|
||||
<th>Pasien Lama</th>
|
||||
<th>All Pasien</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$no = 0;
|
||||
foreach ($pasienbaru as $dat){
|
||||
$no++;
|
||||
echo("
|
||||
<tr>
|
||||
<td>".$no."</td>
|
||||
<td>".$dat->tglregistrasi."</td>
|
||||
<td>".$dat->klinik."</td>
|
||||
<td>".$dat->pasienlama."</td>
|
||||
<td>".$dat->pasienbaru."</td>
|
||||
<td>".$dat->allpasien."</td>
|
||||
</tr>
|
||||
");
|
||||
}
|
||||
|
||||
/* $no=1; $idxdaftar=1; $nomr=""; $paricdver=""; $sekicdver=""; $nonicd="";
|
||||
foreach ($icd9 as $dat) {
|
||||
if($idxdaftar==1){
|
||||
$nomr= $dat->nomr;
|
||||
$idxdaftar= $dat->idxdaftar;
|
||||
|
||||
if($dat->icdorder=="1"){
|
||||
$paricdver=$dat->icdver." - ".$dat->keticdver;
|
||||
}elseif($dat->icdorder!="1" && $dat->icdver !=null && $dat->icdnon=="None"){
|
||||
$sekicdver=$dat->icdver." - ".$dat->keticdver." | ";
|
||||
}elseif($dat->icdnon!="None"){
|
||||
$nonicd=$dat->icdnon." - ".$dat->keticdnon." | ";
|
||||
}
|
||||
|
||||
}elseif($idxdaftar==$dat->idxdaftar){
|
||||
if($dat->icdorder=="1"){
|
||||
$paricdver=$dat->icdver." - ".$dat->keticdver;
|
||||
}elseif($dat->icdorder!="1" && $dat->icdver !=null && $dat->icdnon=="None"){
|
||||
$sekicdver=$sekicdver.$dat->icdver." - ".$dat->keticdver." | ";
|
||||
}elseif($dat->icdnon!="None"){
|
||||
$nonicd=$nonicd.$dat->icdnon." - ".$dat->keticdnon." | ";
|
||||
}
|
||||
|
||||
}elseif($idxdaftar!=$dat->idxdaftar ){
|
||||
echo("
|
||||
<tr>
|
||||
<td>".$no."</td>
|
||||
<td>".$nomr."</td>
|
||||
<td>".$dat->namapasien."</td>
|
||||
<td>".$dat->tglreg."</td>
|
||||
<td>".$dat->klinik."</td>
|
||||
<td>".$paricdver."</td>
|
||||
<td>".$sekicdver."</td>
|
||||
<td>".$nonicd."</td>
|
||||
</tr>
|
||||
");
|
||||
|
||||
$nomr= $dat->nomr;
|
||||
$idxdaftar= $dat->idxdaftar;
|
||||
$paricdver=""; $sekicdver=""; $nonicd="";
|
||||
|
||||
if($dat->icdorder=="1"){
|
||||
$paricdver=$dat->icdver." - ".$dat->keticdver;
|
||||
}elseif($dat->icdorder!="1" && $dat->icdver !=null && $dat->icdnon=="None"){
|
||||
$sekicdver=$dat->icdver." - ".$dat->keticdver." | ";
|
||||
}elseif($dat->icdnon!="None"){
|
||||
$nonicd=$dat->icdnon." - ".$dat->keticdnon." | ";
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
*/
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
@@ -0,0 +1,180 @@
|
||||
<section class="content-header">
|
||||
<div class="container-fluid">
|
||||
<div class="row mb-2">
|
||||
<div class="col-sm-6">
|
||||
<h1>
|
||||
</h1>
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<ol class="breadcrumb float-sm-right">
|
||||
<li class="breadcrumb-item"><a href="<?php echo base_url();?>">Dashboard</a></li>
|
||||
<li class="breadcrumb-item"><?php echo $parent;?></li>
|
||||
<li class="breadcrumb-item active"><?php echo $title;?></li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<!-- Main content -->
|
||||
<section class="content">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="card card-default">
|
||||
<div class="card-header">
|
||||
<h3 class="card-title"><?php
|
||||
echo $title;
|
||||
$tglawal = $awal;
|
||||
$tglakhir= $akhir;
|
||||
$tglgabung = date("m/d/Y", strtotime($awal))." - ".date("m/d/Y", strtotime($akhir));
|
||||
?></h3>
|
||||
</div>
|
||||
<form action="<?php echo(base_url()); ?>index.php/lp_simrs_report/pasiendetail" method="post" autocomplete="off">
|
||||
<div class="card-body">
|
||||
<div class="form-group row">
|
||||
<label class="col-sm-1 col-form-label">Tanggal :</label>
|
||||
<div class="col-sm-4">
|
||||
<div class="input-group">
|
||||
<div class="input-group-prepend">
|
||||
<span class="input-group-text">
|
||||
<i class="far fa-calendar-alt"></i>
|
||||
</span>
|
||||
</div>
|
||||
<input type="text" name="tanggal" class="form-control float-right" id="reservation" value="<?php echo $tglgabung;?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-2">
|
||||
<button type="submit" class="btn btn-outline-info">Search </button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<div class="card-body">
|
||||
<?php if($this->session->flashdata('message')){?>
|
||||
<div id="alert" class="alert alert-success alert-dismissable">
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
<i class="icon fa fa-check"></i> Alert!
|
||||
<?php echo $this->session->flashdata('message');?>
|
||||
</div>
|
||||
<?php }?>
|
||||
<script>
|
||||
setTimeout(function() {
|
||||
$('#alert').hide('fast');
|
||||
}, 3000);
|
||||
</script>
|
||||
<table id="example1" class="table table-bordered table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>No</th>
|
||||
<th>Tanggal</th>
|
||||
<th>IDX</th>
|
||||
<th>No RM</th>
|
||||
<th>No Bill</th>
|
||||
<th>Nama</th>
|
||||
<th>JK</th>
|
||||
<th>No SEP</th>
|
||||
<th>Penjamin</th>
|
||||
<th>Klinik</th>
|
||||
<th>KD Dokter</th>
|
||||
<th>DPJP</th>
|
||||
<th>Status Pasien</th>
|
||||
<th>Status Keluar</th>
|
||||
<th>ICD Resume</th>
|
||||
<th>ICD</th>
|
||||
<th>ICD Verif</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$no = 0;
|
||||
foreach ($pasiendetail as $dat){
|
||||
$no++;
|
||||
$statuspasien = "";
|
||||
if($dat->statuspasien=="0"){
|
||||
$statuspasien = "Pasien Lama";
|
||||
}else{
|
||||
$statuspasien = "Pasien Baru";
|
||||
}
|
||||
$statuskeluar="";
|
||||
if($dat->statuskeluar==""){
|
||||
$statuskeluar="Belum Pulang";
|
||||
}else{
|
||||
$statuskeluar=$dat->statuskeluar;
|
||||
}
|
||||
|
||||
$re1 = str_replace('{', '', $dat->icd);
|
||||
$re2 = str_replace('}', '', $re1);
|
||||
$ex = explode(",",$re2);
|
||||
|
||||
$datcount = 0; $icdutama = ""; $icdprimer = "";
|
||||
foreach ($ex as $data) {
|
||||
if($datcount==0){
|
||||
$icdutama = $data;
|
||||
}else{
|
||||
$icdprimer=$icdprimer.$data.",";
|
||||
}
|
||||
$datcount++;
|
||||
}
|
||||
|
||||
$re11 = str_replace('{', '', $dat->icd_verif);
|
||||
$re12 = str_replace('}', '', $re11);
|
||||
$ex2 = explode(",",$re12);
|
||||
|
||||
$datcount2 = 0; $icdutama2 = ""; $icdprimer2 = "";
|
||||
foreach ($ex2 as $data) {
|
||||
if($datcount2==0){
|
||||
$icdutama2 = $data;
|
||||
}else{
|
||||
$icdprimer2=$icdprimer2.$data.",";
|
||||
}
|
||||
$datcount2++;
|
||||
}
|
||||
|
||||
$re21 = str_replace('{', '', $dat->icd_resume);
|
||||
$re22 = str_replace('}', '', $re21);
|
||||
$ex3 = explode(",",$re22);
|
||||
$icdresume = "";
|
||||
foreach ($ex3 as $data) {
|
||||
$icdresume=$icdresume.$data.",";
|
||||
$datcount2++;
|
||||
}
|
||||
|
||||
if($icdresume==","){
|
||||
$icdresume=$icdutama;
|
||||
}elseif($icdresume=='","'){
|
||||
$icdresume="ICD Tidak Terisi";
|
||||
}
|
||||
|
||||
|
||||
|
||||
echo("
|
||||
<tr>
|
||||
<td>".$no."</td>
|
||||
<td>".$dat->tglregistrasi."</td>
|
||||
<td>".$dat->idxdaftar."</td>
|
||||
<td>".$dat->nomr."</td>
|
||||
<td>".$dat->nobill."</td>
|
||||
<td>".$dat->namapasien."</td>
|
||||
<td>".$dat->jkelamin."</td>
|
||||
<td>".$dat->nosep."</td>
|
||||
<td>".$dat->penjamin."</td>
|
||||
<td>".$dat->klinik."</td>
|
||||
<td>".$dat->kddokter."</td>
|
||||
<td>".$dat->dpjp."</td>
|
||||
<td>".$statuspasien."</td>
|
||||
<td>".$statuskeluar."</td>
|
||||
<td>ICD Utama : ".$icdresume."</td>
|
||||
<td>ICD Utama : ".$icdutama." </br> ICD Secunder : ".$icdprimer." </td>
|
||||
<td>ICD Utama : ".$icdutama2." </br> ICD Secunder : ".$icdprimer2." </td>
|
||||
</tr>
|
||||
");
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
@@ -0,0 +1,132 @@
|
||||
<section class="content-header">
|
||||
<div class="container-fluid">
|
||||
<div class="row mb-2">
|
||||
<div class="col-sm-6">
|
||||
<h1>
|
||||
</h1>
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<ol class="breadcrumb float-sm-right">
|
||||
<li class="breadcrumb-item"><a href="<?php echo base_url();?>">Dashboard</a></li>
|
||||
<li class="breadcrumb-item"><?php echo $parent;?></li>
|
||||
<li class="breadcrumb-item active"><?php echo $title;?></li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<!-- Main content -->
|
||||
<section class="content">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="card card-default">
|
||||
<div class="card-header">
|
||||
<h3 class="card-title"><?php
|
||||
echo $title;
|
||||
$tglawal = $awal;
|
||||
$tglakhir= $akhir;
|
||||
$tglgabung = date("m/d/Y", strtotime($awal))." - ".date("m/d/Y", strtotime($akhir));
|
||||
?></h3>
|
||||
</div>
|
||||
<form action="<?php echo(base_url()); ?>index.php/lp_simrs_report/pasiendetailranap" method="post" autocomplete="off">
|
||||
<div class="card-body">
|
||||
<div class="form-group row">
|
||||
<label class="col-sm-1 col-form-label">Tanggal :</label>
|
||||
<div class="col-sm-4">
|
||||
<div class="input-group">
|
||||
<div class="input-group-prepend">
|
||||
<span class="input-group-text">
|
||||
<i class="far fa-calendar-alt"></i>
|
||||
</span>
|
||||
</div>
|
||||
<input type="text" name="tanggal" class="form-control float-right" id="reservation" value="<?php echo $tglgabung;?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-2">
|
||||
<button type="submit" class="btn btn-outline-info">Search </button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<div class="card-body">
|
||||
<?php if($this->session->flashdata('message')){?>
|
||||
<div id="alert" class="alert alert-success alert-dismissable">
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
<i class="icon fa fa-check"></i> Alert!
|
||||
<?php echo $this->session->flashdata('message');?>
|
||||
</div>
|
||||
<?php }?>
|
||||
<script>
|
||||
setTimeout(function() {
|
||||
$('#alert').hide('fast');
|
||||
}, 3000);
|
||||
</script>
|
||||
<table id="example1" class="table table-bordered table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>No</th>
|
||||
<th>No RM</th>
|
||||
<th>Nama</th>
|
||||
<th>JK</th>
|
||||
<th>Bill Rajal</th>
|
||||
<th>Tgl Masuk Rajal</th>
|
||||
<th>Tgl Keluar Rajal</th>
|
||||
<th>Klinik Rajal</th>
|
||||
<th>Bill Ranap</th>
|
||||
<th>Tgl Masuk Ranap</th>
|
||||
<th>Tgl Keluar Ranap</th>
|
||||
<th>Ruang</th>
|
||||
<th>Cara Bayar</th>
|
||||
<th>Cara Pulang</th>
|
||||
<th>Keadaan Pulang</th>
|
||||
<th>DPJP</th>
|
||||
<th>Total Biaya</th>
|
||||
<th>Tgl Pulang</th>
|
||||
<th>Icd Dokter</th>
|
||||
<th>Icd Mati Dokter</th>
|
||||
<th>ICD Verif</th>
|
||||
<th>ICD Mati Verif</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$no = 0;
|
||||
foreach ($pasiendetailranap as $dat){
|
||||
$no++;
|
||||
echo("
|
||||
<tr>
|
||||
<td>".$no."</td>
|
||||
<td>".$dat->nomr."</td>
|
||||
<td>".$dat->namapasien."</td>
|
||||
<td>".$dat->jeniskelamin."</td>
|
||||
<td>".$dat->nobilrajal."</td>
|
||||
<td>".$dat->masukklinik."</td>
|
||||
<td>".$dat->keluarklinik."</td>
|
||||
<td>".$dat->asalmasuk." - ".$dat->namapoly."</td>
|
||||
<td>".$dat->nobilranap."</td>
|
||||
<td>".$dat->masukrs."</td>
|
||||
<td>".$dat->keluarrs."</td>
|
||||
<td>".$dat->namaruang."</td>
|
||||
<td>".$dat->penjamin."</td>
|
||||
<td>".$dat->statuspulang."</td>
|
||||
<td>".$dat->keadaanpulang."</td>
|
||||
<td>".$dat->dpjp."</td>
|
||||
<td>".$dat->total_biaya."</td>
|
||||
<td></td>
|
||||
<td>".$dat->icd."</td>
|
||||
<td>".$dat->icdmati."</td>
|
||||
<td>".$dat->icdverif."</td>
|
||||
<td>".$dat->icdverifmati."</td>
|
||||
</tr>
|
||||
");
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
@@ -0,0 +1,122 @@
|
||||
<section class="content-header">
|
||||
<div class="container-fluid">
|
||||
<div class="row mb-2">
|
||||
<div class="col-sm-6">
|
||||
<h1>
|
||||
</h1>
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<ol class="breadcrumb float-sm-right">
|
||||
<li class="breadcrumb-item"><a href="<?php echo base_url();?>">Dashboard</a></li>
|
||||
<li class="breadcrumb-item"><?php echo $parent;?></li>
|
||||
<li class="breadcrumb-item active"><?php echo $title;?></li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<!-- Main content -->
|
||||
<section class="content">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="card card-default">
|
||||
<div class="card-header">
|
||||
<h3 class="card-title"><?php
|
||||
echo $title;
|
||||
$tglawal = $awal;
|
||||
$tglakhir= $akhir;
|
||||
$tglgabung = date("m/d/Y", strtotime($awal))." - ".date("m/d/Y", strtotime($akhir));
|
||||
?></h3>
|
||||
</div>
|
||||
<form action="<?php echo(base_url()); ?>index.php/lp_simrs_report/pasienikpk" method="post" autocomplete="off">
|
||||
<div class="card-body">
|
||||
<div class="form-group row">
|
||||
<label class="col-sm-1 col-form-label">Tanggal :</label>
|
||||
<div class="col-sm-4">
|
||||
<div class="input-group">
|
||||
<div class="input-group-prepend">
|
||||
<span class="input-group-text">
|
||||
<i class="far fa-calendar-alt"></i>
|
||||
</span>
|
||||
</div>
|
||||
<input type="text" name="tanggal" class="form-control float-right" id="reservation" value="<?php echo $tglgabung;?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-2">
|
||||
<button type="submit" class="btn btn-outline-info">Search </button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<div class="card-body">
|
||||
<?php if($this->session->flashdata('message')){?>
|
||||
<div id="alert" class="alert alert-success alert-dismissable">
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
<i class="icon fa fa-check"></i> Alert!
|
||||
<?php echo $this->session->flashdata('message');?>
|
||||
</div>
|
||||
<?php }?>
|
||||
<script>
|
||||
setTimeout(function() {
|
||||
$('#alert').hide('fast');
|
||||
}, 3000);
|
||||
</script>
|
||||
<table id="example1" class="table table-bordered table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>No</th>
|
||||
<th>Tanggal</th>
|
||||
<th>No RM</th>
|
||||
<th>No Bill</th>
|
||||
<th>Cara Bayar</th>
|
||||
<th>Nama</th>
|
||||
<th>JK</th>
|
||||
<th>No SEP</th>
|
||||
<th>Klinik</th>
|
||||
<th>Status Pasien</th>
|
||||
<th>Status Keluar</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$no = 0;
|
||||
foreach ($pasiendetail as $dat){
|
||||
$no++;
|
||||
$statuspasien = "";
|
||||
if($dat->statuspasien=="0"){
|
||||
$statuspasien = "Pasien Lama";
|
||||
}else{
|
||||
$statuspasien = "Pasien Baru";
|
||||
}
|
||||
$statuskeluar="";
|
||||
if($dat->statuskeluar==""){
|
||||
$statuskeluar="Belum Pulang";
|
||||
}else{
|
||||
$statuskeluar=$dat->statuskeluar;
|
||||
}
|
||||
echo("
|
||||
<tr>
|
||||
<td>".$no."</td>
|
||||
<td>".$dat->tglregistrasi."</td>
|
||||
<td>".$dat->nomr."</td>
|
||||
<td>".$dat->nobill."</td>
|
||||
<td>".$dat->carabayar."</td>
|
||||
<td>".$dat->namapasien."</td>
|
||||
<td>".$dat->jkelamin."</td>
|
||||
<td>".$dat->nosep."</td>
|
||||
<td>".$dat->klinik."</td>
|
||||
<td>".$statuspasien."</td>
|
||||
<td>".$statuskeluar."</td>
|
||||
</tr>
|
||||
");
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
@@ -0,0 +1,142 @@
|
||||
<section class="content-header">
|
||||
<div class="container-fluid">
|
||||
<div class="row mb-2">
|
||||
<div class="col-sm-6">
|
||||
<h1>
|
||||
</h1>
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<ol class="breadcrumb float-sm-right">
|
||||
<li class="breadcrumb-item"><a href="<?php echo base_url();?>">Dashboard</a></li>
|
||||
<li class="breadcrumb-item"><?php echo $parent;?></li>
|
||||
<li class="breadcrumb-item active"><?php echo $title;?></li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<!-- Main content -->
|
||||
<section class="content">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="card card-default">
|
||||
<div class="card-header">
|
||||
<h3 class="card-title"><?php
|
||||
echo $title;
|
||||
$tglawal = $awal;
|
||||
$tglakhir= $akhir;
|
||||
$tglgabung = date("m/d/Y", strtotime($awal))." - ".date("m/d/Y", strtotime($akhir));
|
||||
?></h3>
|
||||
</div>
|
||||
<form action="<?php echo(base_url()); ?>index.php/lp_simrs_report/pasieniurbearanap" method="post" autocomplete="off">
|
||||
<div class="card-body">
|
||||
<div class="form-group row">
|
||||
<label class="col-sm-1 col-form-label">Tanggal :</label>
|
||||
<div class="col-sm-4">
|
||||
<div class="input-group">
|
||||
<div class="input-group-prepend">
|
||||
<span class="input-group-text">
|
||||
<i class="far fa-calendar-alt"></i>
|
||||
</span>
|
||||
</div>
|
||||
<input type="text" name="tanggal" class="form-control float-right" id="reservation" value="<?php echo $tglgabung;?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-2">
|
||||
<button type="submit" class="btn btn-outline-info">Search </button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<div class="card-body">
|
||||
<?php if($this->session->flashdata('message')){?>
|
||||
<div id="alert" class="alert alert-success alert-dismissable">
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
<i class="icon fa fa-check"></i> Alert!
|
||||
<?php echo $this->session->flashdata('message');?>
|
||||
</div>
|
||||
<?php }?>
|
||||
<script>
|
||||
setTimeout(function() {
|
||||
$('#alert').hide('fast');
|
||||
}, 3000);
|
||||
</script>
|
||||
<table id="example1" class="table table-bordered table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>No</th>
|
||||
<th>IDX</th>
|
||||
<th>No RM</th>
|
||||
<th>NoBill Ranap</th>
|
||||
<th>Tgl Reg </th>
|
||||
<th>Nama</th>
|
||||
<th>DPJP</th>
|
||||
<th>SMF</th>
|
||||
<th>Tgl Tarif</th>
|
||||
<th>Status</th>
|
||||
<th>Tempat Layanan</th>
|
||||
<th>Kelompok Tarif</th>
|
||||
<th>Sub Sistem</th>
|
||||
<th>Penjamin</th>
|
||||
<th>Hak Kelas</th>
|
||||
<th>Naik Kelas</th>
|
||||
<th>Nominal Naik</th>
|
||||
<th>Selisih biaya</th>
|
||||
<th>Jumlah bayar</th>
|
||||
<th>Tgl bayar</th>
|
||||
<th>Status Pembayaran</th>
|
||||
<th>Petugas Bayar</th>
|
||||
<th>Verif</th>
|
||||
<th>Tgl Verif</th>
|
||||
<th>Petugas Verif</th>
|
||||
<th>Kode Tarif</th>
|
||||
|
||||
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$no = 0;
|
||||
foreach ($pasiendetail as $dat){
|
||||
$no++;
|
||||
echo("
|
||||
<tr>
|
||||
<td>".$no."</td>
|
||||
<td>".$dat->idxdaftar."</td>
|
||||
<td>".$dat->nomr."</td>
|
||||
<td>".$dat->nobillranap."</td>
|
||||
<td>".$dat->tglregistrasi."</td>
|
||||
<td>".$dat->namapasien."</td>
|
||||
<td>".$dat->dpjp."</td>
|
||||
<td>".$dat->smf."</td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td>".$dat->namaruang."</td>
|
||||
<td></td>
|
||||
<td>".$dat->subsistem."</td>
|
||||
<td>".$dat->penjamin."</td>
|
||||
<td>".$dat->hakkelas."</td>
|
||||
<td>".$dat->naikkelas."</td>
|
||||
<td>".$dat->nominalnaik."</td>
|
||||
<td>".$dat->selisih."</td>
|
||||
<td>".$dat->jumlahbayar."</td>
|
||||
<td>".$dat->tglbayar."</td>
|
||||
<td>".$dat->statusbayar."</td>
|
||||
<td>".$dat->petugasbayar."</td>
|
||||
<td>".$dat->verif."</td>
|
||||
<td>".$dat->tglverif."</td>
|
||||
<td>".$dat->userverif."</td>
|
||||
<td>".$dat->kodetarif."</td>
|
||||
</tr>
|
||||
");
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
@@ -0,0 +1,149 @@
|
||||
<section class="content-header">
|
||||
<div class="container-fluid">
|
||||
<div class="row mb-2">
|
||||
<div class="col-sm-6">
|
||||
<h1>
|
||||
</h1>
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<ol class="breadcrumb float-sm-right">
|
||||
<li class="breadcrumb-item"><a href="<?php echo base_url();?>">Dashboard</a></li>
|
||||
<li class="breadcrumb-item"><?php echo $parent;?></li>
|
||||
<li class="breadcrumb-item active"><?php echo $title;?></li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<!-- Main content -->
|
||||
<section class="content">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="card card-default">
|
||||
<div class="card-header">
|
||||
<h3 class="card-title"><?php
|
||||
echo $title;
|
||||
$tglawal = $awal;
|
||||
$tglakhir= $akhir;
|
||||
$tglgabung = date("m/d/Y", strtotime($awal))." - ".date("m/d/Y", strtotime($akhir));
|
||||
?></h3>
|
||||
</div>
|
||||
<form action="<?php echo(base_url()); ?>index.php/lp_simrs_report/pasienkeuanganrajal" method="post" autocomplete="off">
|
||||
<div class="card-body">
|
||||
<div class="form-group row">
|
||||
<label class="col-sm-1 col-form-label">Tanggal :</label>
|
||||
<div class="col-sm-4">
|
||||
<div class="input-group">
|
||||
<div class="input-group-prepend">
|
||||
<span class="input-group-text">
|
||||
<i class="far fa-calendar-alt"></i>
|
||||
</span>
|
||||
</div>
|
||||
<input type="text" name="tanggal" class="form-control float-right" id="reservation" value="<?php echo $tglgabung;?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-2">
|
||||
<button type="submit" class="btn btn-outline-info">Search </button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<div class="card-body">
|
||||
<?php if($this->session->flashdata('message')){?>
|
||||
<div id="alert" class="alert alert-success alert-dismissable">
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
<i class="icon fa fa-check"></i> Alert!
|
||||
<?php echo $this->session->flashdata('message');?>
|
||||
</div>
|
||||
<?php }?>
|
||||
<script>
|
||||
setTimeout(function() {
|
||||
$('#alert').hide('fast');
|
||||
}, 3000);
|
||||
</script>
|
||||
<table id="example1" class="table table-bordered table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>No</th>
|
||||
<th>IDX</th>
|
||||
<th>No RM</th>
|
||||
<th>NoBill Rajal</th>
|
||||
<th>Tgl Reg </th>
|
||||
<th>Nama</th>
|
||||
<th>DPJP</th>
|
||||
<th>SMF</th>
|
||||
<th>Tgl Tarif</th>
|
||||
<th>Status</th>
|
||||
<th>Tempat Layanan</th>
|
||||
<th>Kelompok Tarif</th>
|
||||
<th>Nama Tarif</th>
|
||||
<th>Uraian Tarif</th>
|
||||
<th>Jumlah</th>
|
||||
<th>Tgl Verif</th>
|
||||
<th>User Verif</th>
|
||||
<th>Sub Sistem</th>
|
||||
<th>Status Pembayaran</th>
|
||||
<th>Penjamin</th>
|
||||
<th>Tanggal Bayar</th>
|
||||
<th>Jumlah Terbayar</th>
|
||||
<th>Kasir</th>
|
||||
<th>Payment</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$no = 0;
|
||||
foreach ($pasiendetail as $dat){
|
||||
$no++;
|
||||
$billrajal = $dat->nobillrajal;
|
||||
$status = "RAJAL";
|
||||
if($dat->lunasbayarrajal=="0" || $dat->lunasbayarrajal=="" || $dat->lunasbayarrajal==null){
|
||||
$stbayar = $dat->stbayarrajal." - Belum | ".$dat->carabayar;
|
||||
$tglbayar = "";
|
||||
$jmbayar = "";
|
||||
$kasir = "";
|
||||
}else{
|
||||
$stbayar = $dat->stbayarrajal." - Lunas ".$dat->carabayar;
|
||||
$tglbayar = $dat->tglbayarrajal." ".$dat->jambayarrajal;
|
||||
$jmbayar = $dat->jmlbayarrajal;
|
||||
$kasir = $dat->kasirrajal;
|
||||
}
|
||||
echo("
|
||||
<tr>
|
||||
<td>".$no."</td>
|
||||
<td>".$dat->idxdaftar."</td>
|
||||
<td>".$dat->nomr."</td>
|
||||
<td>".$dat->nobillrajal."</td>
|
||||
<td>".$dat->tglregistrasi."</td>
|
||||
<td>".$dat->namapasien."</td>
|
||||
<td>".$dat->dokterrajal."</td>
|
||||
<td>".$dat->smfrajal."</td>
|
||||
<td>".$dat->tglbillrajal."</td>
|
||||
<td>".$status."</td>
|
||||
<td>".$dat->ruangrajal."</td>
|
||||
<td>".$dat->keltarifrajal."</td>
|
||||
<td>".$dat->kodetarifrajal."</td>
|
||||
<td>".$dat->uraiantarifrajal."</td>
|
||||
<td>".$dat->tarifrsrajal."</td>
|
||||
<td>".$dat->tglverif."</td>
|
||||
<td>".$dat->userverif."</td>
|
||||
<td>".$dat->subsistem."</td>
|
||||
<td>".$stbayar."</td>
|
||||
<td>".$dat->penjamin." - ".$dat->namapenjamin."</td>
|
||||
<td>".$tglbayar."</td>
|
||||
<td>".$jmbayar."</td>
|
||||
<td>".$kasir."</td>
|
||||
<td>".$dat->payment."</td>
|
||||
</tr>
|
||||
");
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
@@ -0,0 +1,148 @@
|
||||
<section class="content-header">
|
||||
<div class="container-fluid">
|
||||
<div class="row mb-2">
|
||||
<div class="col-sm-6">
|
||||
<h1>
|
||||
</h1>
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<ol class="breadcrumb float-sm-right">
|
||||
<li class="breadcrumb-item"><a href="<?php echo base_url();?>">Dashboard</a></li>
|
||||
<li class="breadcrumb-item"><?php echo $parent;?></li>
|
||||
<li class="breadcrumb-item active"><?php echo $title;?></li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<!-- Main content -->
|
||||
<section class="content">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="card card-default">
|
||||
<div class="card-header">
|
||||
<h3 class="card-title"><?php
|
||||
echo $title;
|
||||
$tglawal = $awal;
|
||||
$tglakhir= $akhir;
|
||||
$tglgabung = date("m/d/Y", strtotime($awal))." - ".date("m/d/Y", strtotime($akhir));
|
||||
?></h3>
|
||||
</div>
|
||||
<form action="<?php echo(base_url()); ?>index.php/lp_simrs_report/pasienkeuanganranap" method="post" autocomplete="off">
|
||||
<div class="card-body">
|
||||
<div class="form-group row">
|
||||
<label class="col-sm-1 col-form-label">Tanggal :</label>
|
||||
<div class="col-sm-4">
|
||||
<div class="input-group">
|
||||
<div class="input-group-prepend">
|
||||
<span class="input-group-text">
|
||||
<i class="far fa-calendar-alt"></i>
|
||||
</span>
|
||||
</div>
|
||||
<input type="text" name="tanggal" class="form-control float-right" id="reservation" value="<?php echo $tglgabung;?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-2">
|
||||
<button type="submit" class="btn btn-outline-info">Search </button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<div class="card-body">
|
||||
<?php if($this->session->flashdata('message')){?>
|
||||
<div id="alert" class="alert alert-success alert-dismissable">
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
<i class="icon fa fa-check"></i> Alert!
|
||||
<?php echo $this->session->flashdata('message');?>
|
||||
</div>
|
||||
<?php }?>
|
||||
<script>
|
||||
setTimeout(function() {
|
||||
$('#alert').hide('fast');
|
||||
}, 3000);
|
||||
</script>
|
||||
<table id="example1" class="table table-bordered table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>No</th>
|
||||
<th>IDX</th>
|
||||
<th>No RM</th>
|
||||
<th>NoBill Ranap</th>
|
||||
<th>Tgl Ranap </th>
|
||||
<th>Nama</th>
|
||||
<th>DPJP</th>
|
||||
<th>SMF</th>
|
||||
<th>Tgl Tarif</th>
|
||||
<th>Status</th>
|
||||
<th>Tempat Layanan</th>
|
||||
<th>Kelompok Tarif</th>
|
||||
<th>Nama Tarif</th>
|
||||
<th>Uraian Tarif</th>
|
||||
<th>Jumlah</th>
|
||||
<th>Tgl Verif</th>
|
||||
<th>User Verif</th>
|
||||
<th>Sub Sistem</th>
|
||||
<th>Status Pembayaran</th>
|
||||
<th>Penjamin</th>
|
||||
<th>Tanggal Bayar</th>
|
||||
<th>Jumlah Terbayar</th>
|
||||
<th>Kasir</th>
|
||||
<th>Payment</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$no = 0;
|
||||
foreach ($pasiendetail as $dat){
|
||||
$no++;
|
||||
$status = "RANAP";
|
||||
if($dat->lunasbayarranap=="0" || $dat->lunasbayarranap=="" || $dat->lunasbayarranap==null){
|
||||
$stbayar = $dat->stbayarranap." - Belum ".$dat->carabayar;
|
||||
$tglbayar = "";
|
||||
$jmbayar = "";
|
||||
$kasir = "";
|
||||
}else{
|
||||
$stbayar = $dat->stbayarranap." - Lunas ".$dat->carabayar;
|
||||
$tglbayar = $dat->tglbayarranap." ".$dat->jambayarranap;
|
||||
$jmbayar = $dat->jmlbayarranap;
|
||||
$kasir = $dat->kasirranap;
|
||||
}
|
||||
echo("
|
||||
<tr>
|
||||
<td>".$no."</td>
|
||||
<td>".$dat->idxdaftar."</td>
|
||||
<td>".$dat->nomr."</td>
|
||||
<td>".$dat->nobillranap."</td>
|
||||
<td>".$dat->masukrs."</td>
|
||||
<td>".$dat->namapasien."</td>
|
||||
<td>".$dat->dokterranap."</td>
|
||||
<td>".$dat->smfranap."</td>
|
||||
<td>".$dat->tglbillranap."</td>
|
||||
<td>".$status."</td>
|
||||
<td>".$dat->ruangranap."</td>
|
||||
<td>".$dat->keltarifranap."</td>
|
||||
<td>".$dat->kodetarifranap."</td>
|
||||
<td>".$dat->uraiantarifranap."</td>
|
||||
<td>".$dat->tarifrsranap."</td>
|
||||
<td>".$dat->tglverif."</td>
|
||||
<td>".$dat->userverif."</td>
|
||||
<td>".$dat->subsistem."</td>
|
||||
<td>".$stbayar."</td>
|
||||
<td>".$dat->penjamin." - ".$dat->namapenjamin."</td>
|
||||
<td>".$tglbayar."</td>
|
||||
<td>".$jmbayar."</td>
|
||||
<td>".$kasir."</td>
|
||||
<td>".$dat->payment."</td>
|
||||
</tr>
|
||||
");
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
@@ -0,0 +1,141 @@
|
||||
<section class="content-header">
|
||||
<div class="container-fluid">
|
||||
<div class="row mb-2">
|
||||
<div class="col-sm-6">
|
||||
<h1>
|
||||
</h1>
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<ol class="breadcrumb float-sm-right">
|
||||
<li class="breadcrumb-item"><a href="<?php echo base_url();?>">Dashboard</a></li>
|
||||
<li class="breadcrumb-item"><?php echo $parent;?></li>
|
||||
<li class="breadcrumb-item active"><?php echo $title;?></li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<!-- Main content -->
|
||||
<section class="content">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="card card-default">
|
||||
<div class="card-header">
|
||||
<h3 class="card-title"><?php
|
||||
echo $title;
|
||||
$tglawal = $awal;
|
||||
$tglakhir= $akhir;
|
||||
$tglgabung = date("m/d/Y", strtotime($awal))." - ".date("m/d/Y", strtotime($akhir));
|
||||
?></h3>
|
||||
</div>
|
||||
<form action="<?php echo(base_url()); ?>index.php/lp_simrs_report/penggunareseprajal" method="post" autocomplete="off">
|
||||
<div class="card-body">
|
||||
<div class="form-group row">
|
||||
<label class="col-sm-1 col-form-label">Tanggal :</label>
|
||||
<div class="col-sm-4">
|
||||
<div class="input-group">
|
||||
<div class="input-group-prepend">
|
||||
<span class="input-group-text">
|
||||
<i class="far fa-calendar-alt"></i>
|
||||
</span>
|
||||
</div>
|
||||
<input type="text" name="tanggal" class="form-control float-right" id="reservation" value="<?php echo $tglgabung;?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-2">
|
||||
<button type="submit" class="btn btn-outline-info">Search </button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<div class="card-body">
|
||||
<?php if($this->session->flashdata('message')){?>
|
||||
<div id="alert" class="alert alert-success alert-dismissable">
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
<i class="icon fa fa-check"></i> Alert!
|
||||
<?php echo $this->session->flashdata('message');?>
|
||||
</div>
|
||||
<?php }?>
|
||||
<script>
|
||||
setTimeout(function() {
|
||||
$('#alert').hide('fast');
|
||||
}, 3000);
|
||||
</script>
|
||||
<table id="example1" class="table table-bordered table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>No</th>
|
||||
<th>Klinik</th>
|
||||
<th>Jumlah Pengguna</th>
|
||||
<th>Tidak Menggunakan</th>
|
||||
<th>Jumlah Total</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$no=0;
|
||||
foreach ($dataklinik as $datkli) {
|
||||
$pakai = 0; $tdkpakai = 0; $all = 0;
|
||||
foreach ($datanya as $datpengguna){
|
||||
if($datpengguna->kdpoli == $datkli->kdpoli){
|
||||
$all++;
|
||||
if($datpengguna->namadokter!=null){
|
||||
$pakai++;
|
||||
}else{
|
||||
$tdkpakai++;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$no++;
|
||||
echo("
|
||||
<tr>
|
||||
<td>".$no."</td>
|
||||
<td>".$datkli->nama."</td>
|
||||
<td>".$pakai."</td>
|
||||
<td>".$tdkpakai."</td>
|
||||
<td>".$all."</td>
|
||||
</tr>
|
||||
");
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<table id="example2" class="table table-bordered table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>No</th>
|
||||
<th>Klinik</th>
|
||||
<th>Tanggal Pesan</th>
|
||||
<th>No MR</th>
|
||||
<th>No Resep</th>
|
||||
<th>Dokter</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$no=0;
|
||||
foreach ($datanya as $dat) {
|
||||
$no++;
|
||||
echo("
|
||||
<tr>
|
||||
<td>".$no."</td>
|
||||
<td>".$dat->namaklinik."</td>
|
||||
<td>".$dat->tgl."</td>
|
||||
<td>".$dat->nomr."</td>
|
||||
<td>".$dat->noresep."</td>
|
||||
<td>".$dat->namadokter."</td>
|
||||
</tr>
|
||||
");
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
@@ -0,0 +1,227 @@
|
||||
<section class="content-header">
|
||||
<div class="container-fluid">
|
||||
<div class="row mb-2">
|
||||
<div class="col-sm-6">
|
||||
<h1>
|
||||
</h1>
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<ol class="breadcrumb float-sm-right">
|
||||
<li class="breadcrumb-item"><a href="<?php echo base_url();?>">Dashboard</a></li>
|
||||
<li class="breadcrumb-item"><?php echo $parent;?></li>
|
||||
<li class="breadcrumb-item active"><?php echo $title;?></li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<!-- Main content -->
|
||||
<section class="content">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="card card-default">
|
||||
<div class="card-header">
|
||||
<h3 class="card-title"><?php
|
||||
echo $title;
|
||||
$tglawal = $awal;
|
||||
$tglakhir= $akhir;
|
||||
$tglgabung = date("m/d/Y", strtotime($awal))." - ".date("m/d/Y", strtotime($akhir));
|
||||
?></h3>
|
||||
</div>
|
||||
<form action="<?php echo(base_url()); ?>index.php/lp_simrs_report/rekamedikrl32" method="post" autocomplete="off">
|
||||
<div class="card-body">
|
||||
<div class="form-group row">
|
||||
<label class="col-sm-1 col-form-label">Tanggal :</label>
|
||||
<div class="col-sm-4">
|
||||
<div class="input-group">
|
||||
<div class="input-group-prepend">
|
||||
<span class="input-group-text">
|
||||
<i class="far fa-calendar-alt"></i>
|
||||
</span>
|
||||
</div>
|
||||
<input type="text" name="tanggal" class="form-control float-right" id="reservation" value="<?php echo $tglgabung;?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-2">
|
||||
<button type="submit" class="btn btn-outline-info">Search </button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<div class="card-body">
|
||||
<?php if($this->session->flashdata('message')){?>
|
||||
<div id="alert" class="alert alert-success alert-dismissable">
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
<i class="icon fa fa-check"></i> Alert!
|
||||
<?php echo $this->session->flashdata('message');?>
|
||||
</div>
|
||||
<?php }?>
|
||||
<script>
|
||||
setTimeout(function() {
|
||||
$('#alert').hide('fast');
|
||||
}, 3000);
|
||||
</script>
|
||||
<table id="example1" class="table table-bordered table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>No</th>
|
||||
<th>SMF</th>
|
||||
<th>Jenis Pelayanan</th>
|
||||
<th>PX Awal</th>
|
||||
<th>PX Masuk</th>
|
||||
<th>PX Pindahan</th>
|
||||
<th>PX Dipindahkan</th>
|
||||
<th>PX Keluar Hidup</th>
|
||||
<th>PX L MT < 48</th>
|
||||
<th>PX L MT >= 48</th>
|
||||
<th>PX P MT < 48</th>
|
||||
<th>PX P MT >= 48</th>
|
||||
<th>Jumlah Lama Dirawat</th>
|
||||
<th>Pasien akhir bulan</th>
|
||||
<th>Jumlah Hari Perawatan</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$no = 0;
|
||||
foreach ($datanya as $dat){
|
||||
$no++;
|
||||
|
||||
$re11 = str_replace('{', '', $dat->jenispelayanan);
|
||||
$re12 = str_replace('}', '', $re11);
|
||||
$ex13 = explode(",",$re12);
|
||||
$jenispelayanan = "";
|
||||
foreach ($ex13 as $data) {
|
||||
$jenispelayanan = $data;
|
||||
}
|
||||
|
||||
$re21 = str_replace('{', '', $dat->pasienmasuk);
|
||||
$re22 = str_replace('}', '', $re21);
|
||||
$ex23 = explode(",",$re22);
|
||||
$pasienmasuk = "";
|
||||
foreach ($ex23 as $data) {
|
||||
$pasienmasuk = $data;
|
||||
}
|
||||
|
||||
$re31 = str_replace('{', '', $dat->pindahan);
|
||||
$re32 = str_replace('}', '', $re31);
|
||||
$ex33 = explode(",",$re32);
|
||||
$pindahan = "";
|
||||
foreach ($ex33 as $data) {
|
||||
$pindahan = $data;
|
||||
}
|
||||
|
||||
$re41 = str_replace('{', '', $dat->pindahan);
|
||||
$re42 = str_replace('}', '', $re41);
|
||||
$ex43 = explode(",",$re42);
|
||||
$pindahan = "";
|
||||
foreach ($ex43 as $data) {
|
||||
$pindahan = $data;
|
||||
}
|
||||
|
||||
$re51 = str_replace('{', '', $dat->dipindahkan);
|
||||
$re52 = str_replace('}', '', $re51);
|
||||
$ex53 = explode(",",$re52);
|
||||
$dipindahkan = "";
|
||||
foreach ($ex53 as $data) {
|
||||
$dipindahkan = $data;
|
||||
}
|
||||
|
||||
$datlakimeninggal = "";
|
||||
$datperempuanmeninggal = "";
|
||||
|
||||
$lamakur48 = 0;
|
||||
$lamaleb48 = 0;
|
||||
|
||||
$pemakur48 = 0;
|
||||
$pemaleb48 = 0;
|
||||
|
||||
$re61 = str_replace('{', '', $dat->keluarhidup);
|
||||
$re62 = str_replace('}', '', $re61);
|
||||
$ex63 = explode(",",$re62);
|
||||
$keluarhidup = "";
|
||||
foreach ($ex63 as $data) {
|
||||
$keluarhidup = $data;
|
||||
}
|
||||
|
||||
$re71 = str_replace('{', '', $dat->lakimeningal);
|
||||
$re72 = str_replace('}', '', $re71);
|
||||
$ex73 = explode(",",$re72);
|
||||
$lakimeningal = "";
|
||||
foreach ($ex73 as $data) {
|
||||
$datint = (int)$data;
|
||||
if($datint>=48){
|
||||
$lamaleb48 ++;
|
||||
}else{
|
||||
$lamakur48 ++;
|
||||
}
|
||||
}
|
||||
|
||||
$re81 = str_replace('{', '', $dat->perempuanmeningal);
|
||||
$re82 = str_replace('}', '', $re81);
|
||||
$ex83 = explode(",",$re82);
|
||||
$perempuanmeningal = "";
|
||||
foreach ($ex83 as $data) {
|
||||
$datint = (int)$data;
|
||||
if($datint>=48){
|
||||
$pemaleb48 ++;
|
||||
}else{
|
||||
$pemakur48 ++;
|
||||
}
|
||||
}
|
||||
|
||||
$re91 = str_replace('{', '', $dat->pasienawal);
|
||||
$re92 = str_replace('}', '', $re91);
|
||||
$ex93 = explode(",",$re92);
|
||||
$pasienawal = "";
|
||||
foreach ($ex93 as $data) {
|
||||
$pasienawal = $data;
|
||||
}
|
||||
|
||||
$pasienakhirbulan = ($pasienawal+$pasienmasuk+$pindahan) - $dipindahkan - $keluarhidup - $lamakur48 - $lamaleb48 - $pemakur48 - $pemaleb48;
|
||||
|
||||
$re101 = str_replace('{', '', $dat->jumlahlamadirawat);
|
||||
$re102 = str_replace('}', '', $re101);
|
||||
$ex103 = explode(",",$re102);
|
||||
$jumlahlamadirawat = "";
|
||||
foreach ($ex103 as $data) {
|
||||
$jumlahlamadirawat = $data;
|
||||
}
|
||||
|
||||
$datsmf='';
|
||||
// foreach($datjum as $datajumlah){
|
||||
// if($datajumlah->msf==$dat->smf){
|
||||
// $datsmf = $datsmf.$datajumlah->tglmasuk." - ".$datajumlah->keluarrs."</br>";
|
||||
// }
|
||||
// }
|
||||
|
||||
echo("
|
||||
<tr>
|
||||
<td>".$no."</td>
|
||||
<td>".$dat->smf."</td>
|
||||
<td>".$jenispelayanan."</td>
|
||||
<td>".$pasienawal."</td>
|
||||
<td>".$pasienmasuk."</td>
|
||||
<td>".$pindahan."</td>
|
||||
<td>".$dipindahkan."</td>
|
||||
<td>".$keluarhidup."</td>
|
||||
<td>".$lamakur48."</td>
|
||||
<td>".$lamaleb48."</td>
|
||||
<td>".$pemakur48."</td>
|
||||
<td>".$pemaleb48."</td>
|
||||
<td>".$jumlahlamadirawat."</td>
|
||||
<td>".$pasienakhirbulan."</td>
|
||||
<td>".$datsmf."</td>
|
||||
</tr>
|
||||
");
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
@@ -0,0 +1,139 @@
|
||||
<section class="content-header">
|
||||
<div class="container-fluid">
|
||||
<div class="row mb-2">
|
||||
<div class="col-sm-6">
|
||||
<h1>
|
||||
</h1>
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<ol class="breadcrumb float-sm-right">
|
||||
<li class="breadcrumb-item"><a href="<?php echo base_url();?>">Dashboard</a></li>
|
||||
<li class="breadcrumb-item"><?php echo $parent;?></li>
|
||||
<li class="breadcrumb-item active"><?php echo $title;?></li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<!-- Main content -->
|
||||
<section class="content">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="card card-default">
|
||||
<div class="card-header">
|
||||
<h3 class="card-title"><?php
|
||||
echo $title;
|
||||
$tglawal = $awal;
|
||||
$tglakhir= $akhir;
|
||||
$tglgabung = date("m/d/Y", strtotime($awal))." - ".date("m/d/Y", strtotime($akhir));
|
||||
?></h3>
|
||||
</div>
|
||||
<form action="<?php echo(base_url()); ?>index.php/lp_simrs_report/icd9" method="post" autocomplete="off">
|
||||
<div class="card-body">
|
||||
<div class="form-group row">
|
||||
<label class="col-sm-1 col-form-label">Tanggal :</label>
|
||||
<div class="col-sm-4">
|
||||
<div class="input-group">
|
||||
<div class="input-group-prepend">
|
||||
<span class="input-group-text">
|
||||
<i class="far fa-calendar-alt"></i>
|
||||
</span>
|
||||
</div>
|
||||
<input type="text" name="tanggal" class="form-control float-right" id="reservation" value="<?php echo $tglgabung;?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-2">
|
||||
<button type="submit" class="btn btn-outline-info">Search </button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<div class="card-body">
|
||||
<?php if($this->session->flashdata('message')){?>
|
||||
<div id="alert" class="alert alert-success alert-dismissable">
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
<i class="icon fa fa-check"></i> Alert!
|
||||
<?php echo $this->session->flashdata('message');?>
|
||||
</div>
|
||||
<?php }?>
|
||||
<script>
|
||||
setTimeout(function() {
|
||||
$('#alert').hide('fast');
|
||||
}, 3000);
|
||||
</script>
|
||||
<table id="example1" class="table table-bordered table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>No</th>
|
||||
<th>No MR</th>
|
||||
<th>Nama</th>
|
||||
<th>Tanggal Datang</th>
|
||||
<th>Ruang</th>
|
||||
<th>Primary ICD 9 - Verif</th>
|
||||
<th>Sekunder ICD 9 - Verif</th>
|
||||
<th>ICD 9 - Non Verif</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$no=1; $idxdaftar=1; $nomr=""; $paricdver=""; $sekicdver=""; $nonicd="";
|
||||
foreach ($icd9 as $dat) {
|
||||
if($idxdaftar==1){
|
||||
$nomr= $dat->nomr;
|
||||
$idxdaftar= $dat->idxdaftar;
|
||||
|
||||
if($dat->icdorder=="1"){
|
||||
$paricdver=$dat->icdver." - ".$dat->keticdver;
|
||||
}elseif($dat->icdorder!="1" && $dat->icdver !=null && $dat->icdnon=="None"){
|
||||
$sekicdver=$dat->icdver." - ".$dat->keticdver." | ";
|
||||
}elseif($dat->icdnon!="None"){
|
||||
$nonicd=$dat->icdnon." - ".$dat->keticdnon." | ";
|
||||
}
|
||||
|
||||
}elseif($idxdaftar==$dat->idxdaftar){
|
||||
if($dat->icdorder=="1"){
|
||||
$paricdver=$dat->icdver." - ".$dat->keticdver;
|
||||
}elseif($dat->icdorder!="1" && $dat->icdver !=null && $dat->icdnon=="None"){
|
||||
$sekicdver=$sekicdver.$dat->icdver." - ".$dat->keticdver." | ";
|
||||
}elseif($dat->icdnon!="None"){
|
||||
$nonicd=$nonicd.$dat->icdnon." - ".$dat->keticdnon." | ";
|
||||
}
|
||||
|
||||
}elseif($idxdaftar!=$dat->idxdaftar ){
|
||||
echo("
|
||||
<tr>
|
||||
<td>".$no."</td>
|
||||
<td>".$nomr."</td>
|
||||
<td>".$dat->namapasien."</td>
|
||||
<td>".$dat->tglreg."</td>
|
||||
<td>".$dat->klinik."</td>
|
||||
<td>".$paricdver."</td>
|
||||
<td>".$sekicdver."</td>
|
||||
<td>".$nonicd."</td>
|
||||
</tr>
|
||||
");
|
||||
|
||||
$nomr= $dat->nomr;
|
||||
$idxdaftar= $dat->idxdaftar;
|
||||
$paricdver=""; $sekicdver=""; $nonicd="";
|
||||
|
||||
if($dat->icdorder=="1"){
|
||||
$paricdver=$dat->icdver." - ".$dat->keticdver;
|
||||
}elseif($dat->icdorder!="1" && $dat->icdver !=null && $dat->icdnon=="None"){
|
||||
$sekicdver=$dat->icdver." - ".$dat->keticdver." | ";
|
||||
}elseif($dat->icdnon!="None"){
|
||||
$nonicd=$dat->icdnon." - ".$dat->keticdnon." | ";
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
@@ -0,0 +1,100 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
?><!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Welcome to CodeIgniter</title>
|
||||
|
||||
<style type="text/css">
|
||||
|
||||
::selection { background-color: #E13300; color: white; }
|
||||
::-moz-selection { background-color: #E13300; color: white; }
|
||||
|
||||
body {
|
||||
background-color: #fff;
|
||||
margin: 40px;
|
||||
font: 13px/20px normal Helvetica, Arial, sans-serif;
|
||||
color: #4F5155;
|
||||
}
|
||||
|
||||
a {
|
||||
color: #003399;
|
||||
background-color: transparent;
|
||||
font-weight: normal;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
a:hover {
|
||||
color: #97310e;
|
||||
}
|
||||
|
||||
h1 {
|
||||
color: #444;
|
||||
background-color: transparent;
|
||||
border-bottom: 1px solid #D0D0D0;
|
||||
font-size: 19px;
|
||||
font-weight: normal;
|
||||
margin: 0 0 14px 0;
|
||||
padding: 14px 15px 10px 15px;
|
||||
}
|
||||
|
||||
code {
|
||||
font-family: Consolas, Monaco, Courier New, Courier, monospace;
|
||||
font-size: 12px;
|
||||
background-color: #f9f9f9;
|
||||
border: 1px solid #D0D0D0;
|
||||
color: #002166;
|
||||
display: block;
|
||||
margin: 14px 0 14px 0;
|
||||
padding: 12px 10px 12px 10px;
|
||||
}
|
||||
|
||||
#body {
|
||||
margin: 0 15px 0 15px;
|
||||
min-height: 96px;
|
||||
}
|
||||
|
||||
p {
|
||||
margin: 0 0 10px;
|
||||
padding:0;
|
||||
}
|
||||
|
||||
p.footer {
|
||||
text-align: right;
|
||||
font-size: 11px;
|
||||
border-top: 1px solid #D0D0D0;
|
||||
line-height: 32px;
|
||||
padding: 0 10px 0 10px;
|
||||
margin: 20px 0 0 0;
|
||||
}
|
||||
|
||||
#container {
|
||||
margin: 10px;
|
||||
border: 1px solid #D0D0D0;
|
||||
box-shadow: 0 0 8px #D0D0D0;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div id="container">
|
||||
<h1>Welcome to CodeIgniter!</h1>
|
||||
|
||||
<div id="body">
|
||||
<p>The page you are looking at is being generated dynamically by CodeIgniter.</p>
|
||||
|
||||
<p>If you would like to edit this page you'll find it located at:</p>
|
||||
<code>application/views/welcome_message.php</code>
|
||||
|
||||
<p>The corresponding controller for this page is found at:</p>
|
||||
<code>application/controllers/Welcome.php</code>
|
||||
|
||||
<p>If you are exploring CodeIgniter for the very first time, you should start by reading the <a href="userguide3/">User Guide</a>.</p>
|
||||
</div>
|
||||
|
||||
<p class="footer">Page rendered in <strong>{elapsed_time}</strong> seconds. <?php echo (ENVIRONMENT === 'development') ? 'CodeIgniter Version <strong>' . CI_VERSION . '</strong>' : '' ?></p>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user