update
This commit is contained in:
@@ -30,7 +30,7 @@
|
||||
<div class="row">
|
||||
<div class="col-1">
|
||||
<div class="form-group">
|
||||
<label>Tahun Anggaran</label>
|
||||
<label>Tahun</label>
|
||||
<input class="form-control form-control-sm" id="srcTA" name="ta" value="{{ getTA() }}" readonly>
|
||||
</div>
|
||||
</div>
|
||||
@@ -117,7 +117,12 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<table id="dtTableJadwalBelanja" class="table table-bordered table-striped jambo_table tblClickRow" style="width:150%">
|
||||
<div id="search-dt">
|
||||
<?php if (getRole()!="skpd"){ ?>
|
||||
<label class="src-skpd">SKPD: </label>
|
||||
<?php } ?>
|
||||
</div>
|
||||
<table id="dtTableJadwalBelanja" class="table table-bordered table-striped">
|
||||
<thead>
|
||||
<tr class="headings">
|
||||
<th rowspan=2>No</th>
|
||||
@@ -166,14 +171,46 @@
|
||||
<td>AKB</td>
|
||||
<td>Realisasi</td>
|
||||
</tr>
|
||||
<!--<tr class="drop-search">
|
||||
<th></th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
</tr>-->
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
foreach ($dataAkbRealisasi as $key => $value) {
|
||||
echo "<tr>
|
||||
<td>".($key+1)."</td>
|
||||
<td>".$value["nama_skpd"]."</td>
|
||||
<td>".$value["nama_rsk"]."</td>
|
||||
<td><div style='width:200px;'>".$value["nama_skpd"]."</div></td>
|
||||
<td><div style='width:200px;'>".$value["nama_rsk"]."</div></td>
|
||||
<td class='text-right'>".number_format($value["jumlah_anggaran"])."</td>";
|
||||
|
||||
$flag = "bku";
|
||||
@@ -253,7 +290,7 @@
|
||||
"language": {
|
||||
"lengthMenu": "Tampilkan _MENU_ Data per Halaman",
|
||||
"zeroRecords": "Data tidak ditemukan!",
|
||||
"info": "Halaman _PAGE_ dari _PAGES_ Halaman",
|
||||
"info": "Halaman _PAGE_ dari _PAGES_ Halaman ( _MAX_ Data )",
|
||||
"infoEmpty": "Data tidak tersedia",
|
||||
"infoFiltered": "(Disaring dari _MAX_ Data)",
|
||||
"paginate": {
|
||||
@@ -267,6 +304,50 @@
|
||||
},
|
||||
scrollX: true,
|
||||
scrollY: "350px",
|
||||
// initComplete: function () {
|
||||
// this.api().columns([1]).every( function () {
|
||||
// var column = this;
|
||||
// // console.log(this.index())
|
||||
// var select = $('<select><option value=""></option></select>')
|
||||
// .appendTo( $('.drop-search th:eq(' + this.index() + ')') )
|
||||
// .on( 'change', function () {
|
||||
// var val = $.fn.dataTable.util.escapeRegex(
|
||||
// $(this).val()
|
||||
// );
|
||||
|
||||
// column
|
||||
// .search( val ? '^'+val+'$' : '', true, false )
|
||||
// .draw();
|
||||
// } );
|
||||
|
||||
// column.data().unique().sort().each( function ( d, j ) {
|
||||
// select.append( '<option value="'+d+'">'+d+'</option>' )
|
||||
// } );
|
||||
// });
|
||||
// }
|
||||
initComplete: function () {
|
||||
this.api().columns([1]).every( function () {
|
||||
var column = this;
|
||||
// console.log(this.index())
|
||||
var select = $('<select class="form-control form-control-sm"><option value=""></option></select>')
|
||||
.appendTo( $('.src-skpd') )
|
||||
.on( 'change', function () {
|
||||
var val = $.fn.dataTable.util.escapeRegex(
|
||||
$(this).val()
|
||||
);
|
||||
|
||||
column
|
||||
.search( val ? '^'+val+'$' : '', true, false )
|
||||
.draw();
|
||||
} );
|
||||
|
||||
column.data().unique().sort().each( function ( d, j ) {
|
||||
let teks = d.replace(/<\/?[^>]+(>|$)/g, "");
|
||||
select.append( '<option value="'+teks+'">'+teks+'</option>' )
|
||||
} );
|
||||
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
var dtTableSalur = $('#dtTableJadwalPendapatan').DataTable( {
|
||||
@@ -356,7 +437,7 @@
|
||||
"language": {
|
||||
"lengthMenu": "Tampilkan _MENU_ Data per Halaman",
|
||||
"zeroRecords": "Data tidak ditemukan!",
|
||||
"info": "Halaman _PAGE_ dari _PAGES_ Halaman",
|
||||
"info": "Halaman _PAGE_ dari _PAGES_ Halaman ( _MAX_ Data )",
|
||||
"infoEmpty": "Data tidak tersedia",
|
||||
"infoFiltered": "",
|
||||
"paginate": {
|
||||
|
||||
Reference in New Issue
Block a user