add semakin imut
This commit is contained in:
@@ -0,0 +1,72 @@
|
||||
<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>
|
||||
Reference in New Issue
Block a user