diff --git a/app/Controllers/Certificates.php b/app/Controllers/Certificates.php index 5bdc05f..a389dba 100644 --- a/app/Controllers/Certificates.php +++ b/app/Controllers/Certificates.php @@ -454,7 +454,7 @@ class Certificates extends BaseController { $html = view($template, [ 'certificate' => $certificate]); $dompdf->loadHtml($html); - // $dompdf->set_option('isRemoteEnabled', true); + $dompdf->set_option('isRemoteEnabled', true); $dompdf->setPaper('A4', $orientation); $dompdf->render(); diff --git a/app/Views/activities_editor.php b/app/Views/activities_editor.php index 3b8e32a..2227a64 100644 --- a/app/Views/activities_editor.php +++ b/app/Views/activities_editor.php @@ -216,7 +216,7 @@ if(isset($data)) {
-
+
@@ -243,7 +243,7 @@ if(isset($data)) {
-
+
@@ -801,25 +801,25 @@ $(document).ready(function() { $('#acttypeid').change(function() { if (this.value == '5') { $("#maintenance").prop('disabled', false); - $("#calibration").prop('disabled', true); - $("#installation").prop('disabled', true); - $("#offreport").prop('disabled', true); - $("#training").prop('disabled', true); + // $("#calibration").prop('disabled', true); + // $("#installation").prop('disabled', true); + // $("#offreport").prop('disabled', true); + // $("#training").prop('disabled', true); } else if (this.value == '3') { $("#maintenance").prop('disabled', true); - $("#calibration").prop('disabled', false); - $("#installation").prop('disabled', false); - $("#offreport").prop('disabled', false); - $("#training").prop('disabled', false); + // $("#calibration").prop('disabled', false); + // $("#installation").prop('disabled', false); + // $("#offreport").prop('disabled', false); + // $("#training").prop('disabled', false); } else { // Ini akan menjadi default jika #acttypeid kosong atau bukan 5 dan 3 $("#maintenance").prop('disabled', true); - $("#calibration").prop('disabled', true); - $("#installation").prop('disabled', true); - $("#offreport").prop('disabled', true); - $("#training").prop('disabled', true); + // $("#calibration").prop('disabled', true); + // $("#installation").prop('disabled', true); + // $("#offreport").prop('disabled', true); + // $("#training").prop('disabled', true); } }).trigger('change'); }); @@ -982,12 +982,18 @@ $('#status').change(function() { else { $(".closedate").prop('disabled', false); $("#opendate").prop('disabled', false);} }) +// $('#acttypeid').change(function() { +// if (this.value=='5'){ $("#maintenance").prop('disabled', false); $("#calibration").prop('disabled', true); $("#installation").prop('disabled', true); $("#offreport").prop('disabled', true); $("#training").prop('disabled', true);} +// else if (this.value=='3'){ $("#maintenance").prop('disabled', true); $("#calibration").prop('disabled', false); $("#installation").prop('disabled', false); $("#offreport").prop('disabled', false); $("#training").prop('disabled', false); } +// else { $("#maintenance").prop('disabled', true); $("#calibration").prop('disabled', true); $("#installation").prop('disabled', true); $("#offreport").prop('disabled', true); $("#training").prop('disabled', true);} +// }) $('#acttypeid').change(function() { - if (this.value=='5'){ $("#maintenance").prop('disabled', false); $("#calibration").prop('disabled', true); $("#installation").prop('disabled', true); $("#offreport").prop('disabled', true); $("#training").prop('disabled', true);} - else if (this.value=='3'){ $("#maintenance").prop('disabled', true); $("#calibration").prop('disabled', false); $("#installation").prop('disabled', false); $("#offreport").prop('disabled', false); $("#training").prop('disabled', false); } - else { $("#maintenance").prop('disabled', true); $("#calibration").prop('disabled', true); $("#installation").prop('disabled', true); $("#offreport").prop('disabled', true); $("#training").prop('disabled', true);} + if (this.value=='5'){ $("#maintenance").prop('disabled', false); } + else if (this.value=='3'){ $("#maintenance").prop('disabled', true);} + else { $("#maintenance").prop('disabled', true);} }) + // reportdate change => opendate.value = reportdate.value $('#reportdate').change(function() { $('#opendate').val(this.value);