faktor pendukung support pdf
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
Desc. : JS - Kelola Faktor Pendukung OPD
|
||||
Created By : Siau Pheng ([email protected]).
|
||||
Created Date : December 7th, 2011.
|
||||
Last Modified : September 7th, 2026.
|
||||
Last Modified : September 16th, 2026.
|
||||
|
||||
(c) 2011 - 2026, 3FONIA Software; WWW.3FONIA.COM.
|
||||
|
||||
@@ -104,7 +104,7 @@ var FaktorOPDJS = {
|
||||
.find('#butSimpanFaktor').click((e) => this.faktor_save()).end()
|
||||
.find('#butMatrikDown').click((e) => this.matrik_download()).end()
|
||||
.find('#FileMatrik1').off('change').change(() => {
|
||||
const allow_ext = ['xls', 'xlsx'];
|
||||
const allow_ext = ['xls', 'xlsx', 'pdf'];
|
||||
var fd = new FormData(), files = $('#FileMatrik1')[0].files[0];
|
||||
var filext = files.name.split('.').pop().toLowerCase();
|
||||
if ($.inArray(filext, allow_ext) === -1) {
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
Desc. : JS - Validasi Faktor Pendukung OPD
|
||||
Created By : Siau Pheng ([email protected]).
|
||||
Created Date : December 7th, 2011.
|
||||
Last Modified : September 15th, 2026.
|
||||
Last Modified : September 16th, 2026.
|
||||
|
||||
(c) 2011 - 2026, 3FONIA Software; WWW.3FONIA.COM.
|
||||
|
||||
@@ -91,6 +91,12 @@ var ValidFaktorOPDJS = {
|
||||
dload.download();
|
||||
},
|
||||
|
||||
matrik_open_pdf: function(nfile){
|
||||
var dpdf = new cPDF(nfile);
|
||||
dpdf.set_zoom(100);
|
||||
dpdf.showPDF();
|
||||
},
|
||||
|
||||
data_query: function(tipe, mode){
|
||||
if (tipe=="tabel-opd"){
|
||||
new Request.JSONF({
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
Desc. : PHP - Kelola Faktor Pendukung OPD
|
||||
Created By : Siau Pheng ([email protected]).
|
||||
Created Date : December 7th, 2011.
|
||||
Last Modified : September 7th, 2026.
|
||||
Last Modified : September 16th, 2026.
|
||||
|
||||
(c) 2011 - 2026, 3FONIA Software; WWW.3FONIA.COM.
|
||||
|
||||
@@ -120,7 +120,7 @@ if ( $data == "tabel-opd" ) {
|
||||
</div>
|
||||
<div class="col-sm-7 col-lg-5">
|
||||
<div class="input-group">
|
||||
<label class="btn '.((int) $arec['Matrik_TW']===0?'btn-outline-danger':'btn-outline-success').'" id="LabelMatrik1" for="FileMatrik1"><i class="bi-cloud-upload me-1"></i>Upload<input type="file" name="FileMatrik1" id="FileMatrik1" class="d-none" accept=".xls, .xlsx"></label>
|
||||
<label class="btn '.((int) $arec['Matrik_TW']===0?'btn-outline-danger':'btn-outline-success').'" id="LabelMatrik1" for="FileMatrik1"><i class="bi-cloud-upload me-1"></i>Upload<input type="file" name="FileMatrik1" id="FileMatrik1" class="d-none" accept=".xls, .xlsx, .pdf"></label>
|
||||
<label class="form-control" id="Matrik_Name" for="FileMatrik1">'.$arec['Matrik_Name'].'</label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
Desc. : PHP - Validasi Faktor Pendukung OPD
|
||||
Created By : Siau Pheng ([email protected]).
|
||||
Created Date : December 7th, 2011.
|
||||
Last Modified : September 15th, 2026.
|
||||
Last Modified : September 16th, 2026.
|
||||
|
||||
(c) 2011 - 2026, 3FONIA Software; WWW.3FONIA.COM.
|
||||
|
||||
@@ -84,7 +84,12 @@ if ( $data == "tabel-opd" ) {
|
||||
$tbl_mat = '<table id="tabelMatrik" class="table table-striped table-bordered table-hover" data-order=\'[[0,"asc"]]\'><thead><tr><th class="hid">ID</th><th>TW</td><th>Dokumen Matrik</th><th>Ukuran</th><th class="sorting_disabled">Aksi</th></tr></thead><tbody>';
|
||||
$db->Query("SELECT * FROM dpa_dalev_renja_matrik WHERE ".$qsql." AND Aktif=1");
|
||||
while ($db->Next()){
|
||||
$afile = explode(".", $db->Row("Matrik_File"));
|
||||
if ($afile[1] === "pdf") {
|
||||
$mat_link = '<a class="table-icon" title="Dokumen" onclick="ValidFaktorOPDJS.matrik_open_pdf(\''.$_SESSION['__WEB_APP']['WEB_PATH'].'dokumen/'.$db->Row("Matrik_File").'\');"><i class="bi-file-pdf"></i></a>';
|
||||
} else {
|
||||
$mat_link = '<a class="table-icon" title="Dokumen" onclick="ValidFaktorOPDJS.matrik_download(\''.$db->Row("DalevMatrikID").'\');"><i class="bi-filetype-xlsx"></i></a>';
|
||||
}
|
||||
$mat_link .= '<a class="table-icon fon-tabel-dt" title="Validasi"><i class="bi-check2"></i></a>';
|
||||
$tbl_mat .= sprintf('<tr><td class="hid">%s</td><td class="c">%s</td><td class="l" title="%s">%s</td><td class="c">%s</td><td class="c">%s</td></tr>', $db->Row("DalevMatrikID"), $db->Row("TW"), $db->Row("Matrik_Name"), $db->Row("Matrik_Name"), $db->Row("Matrik_Size"), $mat_link);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user