add semakin imut
This commit is contained in:
@@ -0,0 +1,166 @@
|
||||
<?php include "header.php"; ?>
|
||||
|
||||
<head>
|
||||
<style type="text/css">
|
||||
#viewpasien {
|
||||
display: block;
|
||||
}
|
||||
|
||||
#page-nav {
|
||||
display: block;
|
||||
}
|
||||
|
||||
@media print {
|
||||
|
||||
#viewpasien {
|
||||
display: block;
|
||||
}
|
||||
|
||||
#timemarquee {
|
||||
display: none;
|
||||
}
|
||||
|
||||
#page-nav {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
window.print()
|
||||
});
|
||||
</script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id="viewpasien">
|
||||
<form id="view_implementasi" class="jquery">
|
||||
|
||||
<?php
|
||||
include "model/koneksi.php";
|
||||
if (isset($_POST['cetak_ruang'])) {
|
||||
$ruang = $_POST['ruang'];
|
||||
$awal = date('Y-m-d H:i:s', strtotime($_POST['awal']));
|
||||
$akhir = date('Y-m-d H:i:s', strtotime($_POST['akhir']));
|
||||
$clause = "WHERE jam_daftar BETWEEN '$awal' AND '$akhir'AND ruang = '$ruang' AND NOT status_tunggu= 'delete'";
|
||||
} else {
|
||||
$ruang = 'kamar operasi';
|
||||
$awal = "-";
|
||||
$akhir = "-";
|
||||
$clause = "WHERE ruang = '$ruang' AND status_tunggu= 'menunggu' AND NOT status_tunggu= 'delete'";
|
||||
}
|
||||
|
||||
$lihat = "SELECT * FROM datapasien_ok $clause";
|
||||
$tampil = mysqli_query($open, $lihat);
|
||||
$selected = mysqli_num_rows(mysqli_query($open, "$lihat"));
|
||||
|
||||
?>
|
||||
<h3 align="center">Laporan Keperawatan</h3>
|
||||
<h5 align="center"><?= strtoupper($ruang); ?></h5>
|
||||
<h6 align="center">Tanggal <?php echo DATE('d-m-Y H:i'); ?></h6>
|
||||
<h6 align="center" style="margin-top: 10px;">Terhitung mulai <?= $awal; ?> s/d <?= $akhir; ?></h6>
|
||||
|
||||
|
||||
<div class="container-fluid" style="margin-top: 1px;">
|
||||
<table class="table table-striped table-bordered" width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
|
||||
<tr class="" align="center" height="10px" bgcolor="DFE6EF">
|
||||
<th style="width:1%">No</th>
|
||||
<th style="width:15%">Nama Pasien</th>
|
||||
<th style="width:2%">Register</th>
|
||||
<th style="width:20%">Diagnosa & Tindakan</th>
|
||||
<th style="width:5%">SMF</th>
|
||||
<th style="width:25%">Keterangan</th>
|
||||
|
||||
</tr>
|
||||
<?php
|
||||
$nomer = 0;
|
||||
while ($lihat_pasien = mysqli_fetch_array($tampil)) {
|
||||
$nama = stripslashes($lihat_pasien['nama']);
|
||||
$id_pasien = stripslashes($lihat_pasien['id_pasien']);
|
||||
$register = stripslashes($lihat_pasien['register']);
|
||||
$tanggal = stripslashes($lihat_pasien['jam_daftar']);
|
||||
$smf = stripslashes($lihat_pasien['smf']);
|
||||
$rencana_tindakan = stripslashes($lihat_pasien['rencana_tindakan']);
|
||||
$diagnosa = stripslashes($lihat_pasien['diagnosa_medis']);
|
||||
$prolong = stripslashes($lihat_pasien['prolong']);
|
||||
$jam_keluar = stripslashes($lihat_pasien['jam_keluar']);
|
||||
$perawat_ppa = stripslashes($lihat_pasien['perawat_ppa']);
|
||||
$waiting = stripslashes($lihat_pasien['waiting']); {
|
||||
|
||||
|
||||
|
||||
// waktu sekarang
|
||||
$end = date_create();
|
||||
$start = date_create($tanggal);
|
||||
$diff = date_diff($start, $end);
|
||||
$waktu = DATE('d-m-Y H:i:s', strtotime($tanggal));
|
||||
$waktu_keluar = DATE('d-m-Y H:i:s', strtotime($jam_keluar));
|
||||
$nomer++;
|
||||
|
||||
?>
|
||||
|
||||
<tr class="table table-striped" style="font-size: 12px;">
|
||||
<td><?= $nomer ?><div align="center"></div>
|
||||
</td>
|
||||
<td><?= $nama ?><div align="center"></div>
|
||||
</td>
|
||||
<td><?= $register ?><div align="center"></div>
|
||||
</td>
|
||||
<td><?= $diagnosa;
|
||||
$rencana_tindakan; ?>
|
||||
|
||||
</td>
|
||||
<td> <?= $smf; ?></td>
|
||||
<td>
|
||||
<div class="btn-sm alert-info">Perawat PPA:</div>
|
||||
<?php
|
||||
$cetak = (explode(" _ ", $perawat_ppa));
|
||||
for ($start = 0; $start < count($cetak); $start++) {
|
||||
$start < count($cetak);
|
||||
print $cetak[$start] . "<BR>";
|
||||
}
|
||||
?>
|
||||
<br>
|
||||
<li class="label label-primary">Waktu tunggu:
|
||||
jam Daftar<?= DATE('d-m-Y H:i', strtotime($tanggal)); ?>
|
||||
<?php
|
||||
if (strlen($jam_keluar) == 0) {
|
||||
|
||||
echo $diff->d . ' hari-' . $diff->h . ' jam-' . $diff->i . 'menit';
|
||||
} else {
|
||||
echo $waiting;
|
||||
}
|
||||
?> </li>
|
||||
|
||||
<li>Keterangan: </li>
|
||||
<?php
|
||||
$cetak = (explode(" _ ", $prolong));
|
||||
for ($start = 0; $start < count($cetak); $start++) {
|
||||
$start < count($cetak);
|
||||
print $cetak[$start] . "<BR>";
|
||||
}
|
||||
?>
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
<?php
|
||||
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
</table>
|
||||
</div>
|
||||
<div class="container-fluid" style="margin-top: 20px;" style="font-weight:bold;" align="left">
|
||||
TOTAL : <?= $selected; ?>
|
||||
</div>
|
||||
<?php
|
||||
|
||||
|
||||
//Tutup koneksi engine MySQL
|
||||
mysqli_close($open);
|
||||
include "footer.php";
|
||||
?>
|
||||
</form>
|
||||
</div>
|
||||
</body>
|
||||
Reference in New Issue
Block a user