add semakin imut
This commit is contained in:
@@ -0,0 +1,173 @@
|
||||
<!DOCTYPE html>
|
||||
<?php
|
||||
date_default_timezone_set('Asia/Jakarta'); //Menyesuaikan waktu dengan tempat kita tinggal
|
||||
$tanggal = DATE('d-M-Y');
|
||||
$jam = Date('H:i');
|
||||
|
||||
header("Content-Type: application/vnd-html");
|
||||
header("Content-Disposition: attachment; filename=Update_Tanggal_$tanggal-jam_$jam.html");
|
||||
header("Pragma: no-cache");
|
||||
header("Expires: 0");
|
||||
session_start();
|
||||
$nama_login = $_SESSION['nama'];
|
||||
|
||||
?>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<title></title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div align="center" class="Content-Disposition">
|
||||
|
||||
<div>
|
||||
<th>
|
||||
<h2>Update Laporan Perawat UGD <?php echo "$nama_login" ?>
|
||||
<p>Daftar Pasien Tinggal <?PHP echo DATE('d-m-Y H:i') ?></p>
|
||||
</h2>
|
||||
</th>
|
||||
</div>
|
||||
|
||||
<table class="modal" width="100%" border="1px" align="center" cellpadding="0px" cellspacing="0px">
|
||||
<tr bgcolor="#D5DBDB">
|
||||
<h7>
|
||||
<th style="width: 3%;">No</th>
|
||||
<th style="width: 25%;">Nama</th>
|
||||
<!-- <th>NIK</th> -->
|
||||
|
||||
<!-- <th>Umur</th> -->
|
||||
<!-- <th>Jenis Kelamin</th> -->
|
||||
|
||||
<!-- <th>Alamat</th> -->
|
||||
<!-- <th>Telp</th> -->
|
||||
<!-- <th>Tanggal Masuk</th> -->
|
||||
<th style="width: 7%;">SMF</th>
|
||||
<!-- <th>Skrining</th> -->
|
||||
<!-- <th>kedatangan</th> -->
|
||||
<th style="width: 20%;">Status Keluar</th>
|
||||
<!-- <th>Jam Keluar</th> -->
|
||||
|
||||
<th style="width: 60%;">Keterangan</th>
|
||||
</h7>
|
||||
</tr>
|
||||
|
||||
<?php
|
||||
|
||||
include "model/koneksi.php";
|
||||
//view data datapasien di dalam database
|
||||
|
||||
|
||||
|
||||
$Lihat = "SELECT * FROM datapasien WHERE ruang= '$nama_login' AND status_tunggu='menunggu' ORDER BY 'triage' ASC";
|
||||
|
||||
$Tampil = mysqli_query($open, $Lihat);
|
||||
|
||||
$nomer = 0;
|
||||
while ($hasil = mysqli_fetch_array($Tampil)) {
|
||||
$id_pasien = stripcslashes($hasil['id_pasien']);
|
||||
$nama = stripslashes($hasil['nama']);
|
||||
$nik = stripslashes($hasil['nik']);
|
||||
$register = stripslashes($hasil['register']);
|
||||
$umur = stripslashes($hasil['umur']);
|
||||
$jenis_kelamin = stripslashes($hasil['jenis_kelamin']);
|
||||
$triage = stripslashes($hasil['triage']);
|
||||
$alamat = stripslashes($hasil['alamat']);
|
||||
$telp = stripslashes($hasil['telp']);
|
||||
$tanggal = stripcslashes($hasil['tanggal']);
|
||||
$skrining = stripslashes($hasil['skrining']);
|
||||
$kedatangan = stripslashes($hasil['kedatangan']);
|
||||
$keterangan = stripslashes($hasil['keterangan']);
|
||||
$status_keluar = stripslashes($hasil['status_keluar']);
|
||||
$jam_keluar = stripslashes($hasil['jam_keluar']);
|
||||
$waiting = stripslashes($hasil['waiting']);
|
||||
$smf = stripslashes($hasil['smf']);
|
||||
$status_tunggu = stripslashes($hasil['status_tunggu']);
|
||||
$prolong = stripslashes($hasil['prolong']);
|
||||
|
||||
$awal = date_create($tanggal);
|
||||
$akhir = date_create(); // waktu sekarang
|
||||
$diff = date_diff($awal, $akhir);
|
||||
$waktu = DATE('d-m-Y H:i:s', strtotime($hasil['tanggal']));
|
||||
$waktu_keluar = DATE('d-m-Y H:i:s', strtotime($hasil['jam_keluar']));
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// call the function
|
||||
|
||||
{
|
||||
|
||||
$nomer++;
|
||||
|
||||
?>
|
||||
<tr>
|
||||
<td><?= $nomer ?></td>
|
||||
<td>
|
||||
<ul>
|
||||
<li>
|
||||
<?= $nama ?>
|
||||
</li>
|
||||
<li>
|
||||
Register : <?= $register ?>
|
||||
</li>
|
||||
<li>
|
||||
Triage : <?= $triage ?> /No bed <?= $nik ?>
|
||||
|
||||
</li>
|
||||
</ul>
|
||||
</td>
|
||||
<td><?= $smf ?></td>
|
||||
<td>
|
||||
<li>
|
||||
|
||||
<?php
|
||||
if (strlen($status_keluar) == 0) {
|
||||
echo "OBSERVASI";
|
||||
} else {
|
||||
echo $status_keluar;
|
||||
}
|
||||
?>
|
||||
</li>
|
||||
<li>
|
||||
|
||||
<?php
|
||||
if (strlen($jam_keluar) == 0) {
|
||||
|
||||
echo "lama tunggu :" . $diff->d . ' hari-' . $diff->h . ' jam-' . $diff->i . 'menit';
|
||||
} else {
|
||||
echo "lama tunggu :" . $waiting;
|
||||
}
|
||||
?>
|
||||
</li>
|
||||
</td>
|
||||
<td>
|
||||
<li>
|
||||
<?= $keterangan ?>
|
||||
</li>
|
||||
<?php
|
||||
$cetak = (explode(" _ ", $prolong));
|
||||
for ($start = 0; $start < count($cetak); $start++) {
|
||||
$start < count($cetak);
|
||||
print $cetak[$start] . "<BR>";
|
||||
}
|
||||
?>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
<?php
|
||||
}
|
||||
}
|
||||
|
||||
//Tutup koneksi engine MySQL
|
||||
mysqli_close($open);
|
||||
|
||||
?>
|
||||
</table>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
Reference in New Issue
Block a user