79 lines
3.1 KiB
Plaintext
79 lines
3.1 KiB
Plaintext
@*
|
|
For more information on enabling MVC for empty projects, visit https://go.microsoft.com/fwlink/?LinkID=397860
|
|
*@
|
|
@{
|
|
ViewBag.Title = "Dashboard Front Office";
|
|
}
|
|
<div class="card">
|
|
<div class="card-header pb-0 ">
|
|
<ul class="nav nav-tabs d-flex" id="myTabjustified" role="tablist">
|
|
<li class="nav-item flex-fill" role="presentation">
|
|
<button class="nav-link w-100 active" id="rj-tab" data-bs-toggle="tab" data-bs-target="#rjtab" type="button" role="tab" aria-controls="home" aria-selected="true">Rawat Jalan</button>
|
|
</li>
|
|
<li class="nav-item flex-fill" role="presentation">
|
|
<button class="nav-link w-100" id="ri-tab" data-bs-toggle="tab" data-bs-target="#ritab" type="button" role="tab" aria-controls="profile" aria-selected="false">Rawat Inap</button>
|
|
</li>
|
|
|
|
</ul>
|
|
</div>
|
|
<div class="card-body">
|
|
<div class="tab-content pt-2" id="myTabjustifiedContent">
|
|
<div class="tab-pane fade show active" id="rjtab" role="tabpanel" aria-labelledby="rj-tab">
|
|
<p class="placeholder-glow" name="placeholderlistrj">
|
|
<span class="placeholder col-6"></span>
|
|
<span class="placeholder w-75"></span>
|
|
<span class="placeholder" style="width: 25%;"></span>
|
|
</p>
|
|
<div id="loadlistrj">
|
|
</div>
|
|
</div>
|
|
<div class="tab-pane fade" id="ritab" role="tabpanel" aria-labelledby="ri-tab">
|
|
<p class="placeholder-glow" name="placeholderlistri">
|
|
<span class="placeholder col-6"></span>
|
|
<span class="placeholder w-75"></span>
|
|
<span class="placeholder" style="width: 25%;"></span>
|
|
</p>
|
|
<div id="loadlistri">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<script>
|
|
loadlistrj();
|
|
loadlistri();
|
|
function loadlistrj() {
|
|
$("#loadlistrj").html("");
|
|
$("[name='placeholderlistrj']").show();
|
|
$("#loadlistrj").load("/bil_pendaftaran_rj", function (result, val, t) {
|
|
try {
|
|
$("[name='placeholderlistrj']").hide();
|
|
if (t.status != 200) {
|
|
$(this).html(val + " " + t.status);
|
|
}
|
|
}
|
|
catch (e) {
|
|
console.log(e);
|
|
$("[name='placeholderlistrj']").hide();
|
|
$(this).html(e);
|
|
}
|
|
});
|
|
}
|
|
function loadlistri() {
|
|
$("#loadlistri").html("");
|
|
$("[name='placeholderlistrj']").show();
|
|
$("#loadlistri").load("/bil_pendaftaran_ri", function (result, val, t) {
|
|
try {
|
|
$("[name='placeholderlistri']").hide();
|
|
if (t.status != 200) {
|
|
$(this).html(val + " " + t.status);
|
|
}
|
|
}
|
|
catch (e) {
|
|
console.log(e);
|
|
$("[name='placeholderlistri']").hide();
|
|
$(this).html(e);
|
|
}
|
|
});
|
|
}
|
|
</script> |