Download Jadwal Salur

This commit is contained in:
Pusdatin BPKD Jkt
2022-08-05 11:31:57 +07:00
parent d981418604
commit 1e877fa951
3 changed files with 95 additions and 54 deletions
@@ -25,33 +25,31 @@
</div>
</div>
<div class="card-body">
<div class="row">
<div class="col-1">
<div class="form-group">
<label>Periode</label>
<select class="form-control form-control-sm" id="srcTA">
@php
$listTA = Session::get('listTA');
foreach($listTA as $rowTA){
echo "<option>$rowTA</option>";
}
@endphp
</select>
<form id="frmJadwalSalur" action="{{ url("/jadwal-salurdana") }}" method="post">
@csrf
<div class="row">
<div class="col-1">
<div class="form-group">
<label>Periode</label>
<select class="form-control form-control-sm" id="srcTA" name="ta">
@php
$listTA = Session::get('listTA');
foreach($listTA as $rowTA){
echo "<option>$rowTA</option>";
}
@endphp
</select>
</div>
</div>
<div class="col-11">
<div class="form-group">
<label for="txt_simtrad4_kotor">DBH/DAK</label>
<input type="hidden" name="type_dana" value="dak">
<select id="txt_id_sps" name="id_sps" class="form-control sps_search" required></select>
</div>
</div>
</div>
{{-- <div class="col-11">
<div class="form-group">
<label>Berdasarkan Kata</label>
<input class="form-control form-control-sm" type="text" id="src">
</div>
</div> --}}
<div class="col-11">
<div class="form-group">
<label for="txt_simtrad4_kotor">DBH/DAK</label>
<select id="txt_id_sps" name="txt_id_sps" class="form-control sps_search" required></select>
</div>
</div>
</div>
</form>
<table id="dtTableJadwalPendapatan" class="table table-bordered table-striped jambo_table tblClickRow" style="width:150%">
<thead>
<tr class="headings">
@@ -242,10 +240,10 @@
"columnDefs": [
//{ className: "td-nowrap", "targets": [ 1 ] }
],
"dom": "<\"top\" <\"row\"<\"col-md-6\"><\"col-md-6 text-right\">>>rt<\"bottom\" <\"row\"<\"col-md-6\"i><\"col-md-6\"p>> ><\"clear\">",
"dom": "<\"top\" <\"row\"<\"col-md-6\"l><\"col-md-6 text-right\"B>>>rt<\"bottom\" <\"row\"<\"col-md-6\"i><\"col-md-6\"p>> ><\"clear\">",
"lengthMenu": [
[ 10, 20, 50 ],
[ "20", "20", "50" ]
[ "10", "20", "50" ]
],
"paging": true, // Table pagination
"columns": [
@@ -310,7 +308,7 @@
"zeroRecords": "Data tidak ditemukan!",
"info": "Halaman _PAGE_ dari _PAGES_ Halaman",
"infoEmpty": "Data tidak tersedia",
"infoFiltered": "(Disaring dari _MAX_ Data)",
"infoFiltered": "",
"paginate": {
"previous": "<i class='fas fa-angle-double-left'></i>",
"next": "<i class='fas fa-angle-double-right'></i>",
@@ -386,6 +384,30 @@
dataSrc: ["groupall"]
},
scrollX:true,
buttons: [
{
extend: "collection",
text: "Export",
buttons: [
{
text: "<i class=\'fas fa-file-excel\'></i> Excel",
className: "export-data link-excel",
attr: {
formid: "frmJadwalSalur",
extype: "excel"
}
},
// {
// text: "<i class=\'fas fa-file-pdf\'></i> Pdf",
// className: "export-data link-pdf",
// attr: {
// formid: "frm_proses_spm_sp2d",
// extype: "pdf"
// }
// }
],
}
],
});
$('#txt_id_sps').select2({