add semakin imut
This commit is contained in:
@@ -0,0 +1,82 @@
|
||||
<?php include "header.php"; ?>
|
||||
<p id="mymodal"></p>
|
||||
<div class="modal-body scroll-auto">
|
||||
<table class="table table-stripped table-hover datatab">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>No</th>
|
||||
<th id="coltriage">Triage</th>
|
||||
<th>Lihat Rencana</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id='demo'>
|
||||
</tbody>
|
||||
<tfoot>
|
||||
</tfoot>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
load_modal();
|
||||
|
||||
function load_modal() {
|
||||
$.ajax({
|
||||
url: "modal.php",
|
||||
method: "GET",
|
||||
success: function(data) {
|
||||
$('#mymodal').html(data);
|
||||
}
|
||||
})
|
||||
}
|
||||
})
|
||||
var akses = document.getElementById('akses').innerHTML;
|
||||
if (akses == "Kamar Operasi") {
|
||||
$(document).ready(function() {
|
||||
document.getElementById('nama_login').innerHTML = "Daftar Pasien Kamar Operasi";
|
||||
document.getElementById('coltriage').innerHTML = "Detail";
|
||||
|
||||
load_data_ok();
|
||||
|
||||
function load_data_ok() {
|
||||
$.ajax({
|
||||
|
||||
url: "userdata_ok.php",
|
||||
method: "GET",
|
||||
success: function(data) {
|
||||
$('#demo').html(data);
|
||||
}
|
||||
})
|
||||
|
||||
}
|
||||
|
||||
});
|
||||
} else {
|
||||
$(document).ready(function() {
|
||||
document.getElementById('nama_login').innerHTML = "Daftar Pasien UGD " + akses;
|
||||
load_data();
|
||||
|
||||
function load_data() {
|
||||
$.ajax({
|
||||
|
||||
url: "userdata.php",
|
||||
method: "GET",
|
||||
success: function(data) {
|
||||
$('#demo').html(data);
|
||||
}
|
||||
})
|
||||
|
||||
}
|
||||
|
||||
});
|
||||
}
|
||||
</script>
|
||||
<!-- Button to trigger modal -->
|
||||
<!-- Modal -->
|
||||
</div>
|
||||
<?php include "footer.php"; ?>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
Reference in New Issue
Block a user