Files
semakin-imut/perawat_roe/dataex/admin_ori.php
2025-10-09 11:03:05 +07:00

72 lines
2.2 KiB
PHP

<nav class="navbar navbar-expand-md" style="background: #e6ffec;">
<ul class="navbar-nav me-auto mb-1 mb-sm-0">
<div class="container-fluid">
<li class="nav-item" style="background: #e6ffec;">
<a class="nav-link h6 mb-1 text-gray-800" href="" data-bs-toggle="modal" data-bs-target="#input" title="input pasien baru">Input data</a>
</li>
</div>
</ul>
</nav>
<!-- ================================= -->
<body>
<div class="jquery" style="margin-inline: 3pt;">
<table class="table table-stripped table-hover datatab">
<thead>
<tr>
<th>Nomer</th>
<th>Triage | Kode</th>
<th>Nama</th>
<th>Register</th>
<th>SMF</th>
<th>Pengkajian</th>
<th>Rencana</th>
<th>Keluar</th>
<th>Waktu Tunggu</th>
</tr>
</thead>
<tbody id='datatab'>
</tbody>
</table>
</div>
<script>
$(document).ready(function() {
load_data();
function load_data() {
$.ajax({
type: "GET",
url: "datapasien.php",
method: "post",
success: function(data) {
$('#datatab').html(data);
$('.datatab').DataTable();
}
})
}
});
</script>
</body>
<p id="mymodal"></p>
<script>
$(document).ready(function() {
load_modal();
function load_modal() {
$.ajax({
type: "GET",
url: "modal.php",
method: "post",
success: function(data) {
$('#mymodal').html(data);
}
})
}
});
</script>
<script src="../perawat/js/jquery-1.12.0.min.js"></script>
<script src="../perawat/js/jquery.dataTables.min.js"></script>
<script src="../perawat/js/input.js"></script>