fix latest

This commit is contained in:
hafifierahman
2021-03-24 10:59:16 +08:00
parent a9602d49be
commit 347aa430d8
11 changed files with 387 additions and 350 deletions
+35 -3
View File
@@ -20,6 +20,30 @@
</div>
</div>
<div class="row">
<div class="col-4">
<div class="input-group mb-3">
<div class="input-group-prepend">
<span class="input-group-text" id="basic-addon1">Tarikh Mula</span>
</div>
<input type="text" class="form-control" placeholder="Pilih Tarikh" aria-label="Tarikh" id="tarikhmula" name="tarikhmula" aria-describedby="basic-addon1">
</div>
</div>
<div class="col-4">
<div class="input-group mb-3">
<div class="input-group-prepend">
<span class="input-group-text" id="basic-addon1">Tarikh Hingga</span>
</div>
<input type="text" class="form-control" placeholder="Pilih Tarikh" aria-label="Tarikh" id="tarikhhingga" name="tarikhhingga" aria-describedby="basic-addon1">
</div>
</div>
<div class="col-4">
<input type="submit" class="btn btn-primary ml-md-5" id="submit_button" name="submit_button" value="Hantar">
</div>
</div>
<table class='table mt-4' id='table-pendahuluan' style="width:100%;">
<thead>
@@ -30,6 +54,7 @@
<th>Modal</th>
<th>Serahan</th>
<th>Tarikh</th>
<th>Masa</th>
<th>Action</th>
</thead>
@@ -103,6 +128,12 @@
var kodcaw = "{{ Auth::user()->cawangan }}";
$(document).ready(function(){
$('#tarikhmula').datepicker({
format: 'dd-mm-yyyy'
});
$('#tarikhhingga').datepicker({
format: 'dd-mm-yyyy'
});
function getData(){
$.ajax({
type: 'get',
@@ -113,9 +144,9 @@
});
}
getData();
setInterval(function () {
getData();
}, 10000);
// setInterval(function () {
// getData();
// }, 10000);
});
@@ -147,6 +178,7 @@
'RM ' + formatter.format(arr['modal']),
'RM ' + formatter.format(arr['serahan']),
arr['tarikh'],
arr['tarikh'],
'<a href='+ urlroute + ' class="btn btn-info"><span class="fas fa-plus"></span></a>'
]).draw();
counter = counter + 1;