add semakin imut
This commit is contained in:
@@ -0,0 +1,86 @@
|
||||
<?php include "header.php"; ?>
|
||||
|
||||
<body>
|
||||
<form id="view_implementasi" class="jquery">
|
||||
<h3 align="center">Implementasi Keperawatan</h3>
|
||||
<h4 align="center">Tanggal <?php echo DATE('d-m-Y H:i'); ?></h4>
|
||||
<h4 align="center">terhitung mulai <?php $awal = date('Y-m-d H:i', strtotime($_POST['awal']));
|
||||
echo $awal ?> s/d <?php $akhir = date('Y-m-d H:i', strtotime($_POST['akhir']));
|
||||
echo $akhir; ?></h4>
|
||||
<div class="container-fluid">
|
||||
<table class="table-striped" width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
|
||||
<tr class="table-bordered" align="center" height="10px" bgcolor="DFE6EF">
|
||||
<th style="width:1%">No</th>
|
||||
<th style="width:1%">Ruang</th>
|
||||
<th style="width:8%">Tanggal</th>
|
||||
<th style="width:20%">Nama Pasien</th>
|
||||
<th style="width:5%">Register</th>
|
||||
<th style="width:30%">Uraian Tindakan</th>
|
||||
<th style="width:2%">Status</th>
|
||||
|
||||
</tr>
|
||||
<?php
|
||||
|
||||
include "model/koneksi.php";
|
||||
if (isset($_POST['cetak_uraian'])) {
|
||||
$uraian = $_POST['uraian'];
|
||||
$awal = date('Y-m-d H:i:s', strtotime($_POST['awal']));
|
||||
$akhir = date('Y-m-d H:i:s', strtotime($_POST['akhir']));
|
||||
// $awal = $_POST['awal'];
|
||||
// $akhir = $_POST['akhir'];
|
||||
|
||||
// $jenis_kelamin = $_POST['jenis_kelamin'];
|
||||
// $triage = $_POST['triage'];
|
||||
// $ruang = $_SESSION['nama'];
|
||||
// $perawat_ppa = $_POST['perawat_ppa'];
|
||||
// $smf = $_POST['smf'];
|
||||
// $status_tunggu = 'menunggu';
|
||||
|
||||
$lihat = "SELECT * FROM datapasien RIGHT JOIN tb_tindakan ON datapasien.id_pasien=tb_tindakan.id_pasien WHERE tanggal BETWEEN '$awal' AND '$akhir'AND NOT status_tunggu='delete' AND tindakan LIKE '%$uraian%'";
|
||||
$tampil = mysqli_query($open, $lihat);
|
||||
$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']);
|
||||
$ruang = stripslashes($lihat_pasien['ruang']);
|
||||
$timestamp = stripslashes($lihat_pasien['timestamp']);
|
||||
$masalah = stripslashes($lihat_pasien['masalah']);
|
||||
$tindakan = stripslashes($lihat_pasien['tindakan']); {
|
||||
|
||||
$nomer++;
|
||||
?>
|
||||
|
||||
<tr class="table">
|
||||
<td><?= $nomer ?><div align="center"></div>
|
||||
</td>
|
||||
<td><?= $ruang ?><div align="center"></div>
|
||||
</td>
|
||||
<td><?= DATE('d-m-Y H:i', strtotime($lihat_pasien['timestamp'])); ?></td>
|
||||
<td><?= $nama ?><div align="center"></div>
|
||||
</td>
|
||||
<td><?= $register ?><div align="center"></div>
|
||||
</td>
|
||||
<td><?= $tindakan ?><div align="center"></div>
|
||||
<td>
|
||||
<?php
|
||||
if ($masalah == 'belum') { ?>
|
||||
<div align="center" class=" label-warning"><?= $masalah ?></div>
|
||||
<?php } else { ?>
|
||||
<div align="center" class=" label-primary"><?= $masalah ?></div>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//Tutup koneksi engine MySQL
|
||||
mysqli_close($open);
|
||||
|
||||
?>
|
||||
</table>
|
||||
</div>
|
||||
</form>
|
||||
<?php include "footer.php"; ?>
|
||||
</body>
|
||||
Reference in New Issue
Block a user