From 0d3724395a758d00bcf4db7895b179f26e69b85d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9CVeLiTi=E2=80=9D?= <“info@veliti.nl”> Date: Tue, 13 Jan 2026 09:55:31 +0100 Subject: [PATCH] feat: Enhance print functionality and add success modal for mass updates --- assets/admin.js | 24 ++++-- cartest.php | 55 ++++++------- cartest_manage.php | 11 --- equipments_mass_update.php | 155 +++++++++++++++++++++++-------------- rma.php | 37 +++++---- rma_manage.php | 16 +--- 6 files changed, 160 insertions(+), 138 deletions(-) diff --git a/assets/admin.js b/assets/admin.js index b3869a2..27f2927 100644 --- a/assets/admin.js +++ b/assets/admin.js @@ -1158,14 +1158,22 @@ function sortTextVal(a, b) { // Print DIV //------------------------------------------ function printDiv(div) { -var divContents = document.getElementById(div).innerHTML; -var a = window.open('', '', ''); -a.document.write(''); -a.document.write('
'); -a.document.write(divContents); -a.document.write(''); -a.document.close(); -a.print(); + var divContents = document.getElementById(div).innerHTML; + var printWindow = window.open('', '', 'height=600,width=800'); + printWindow.document.write('| '.$key.' | -'.((!empty($value)|| $value !='')?$value:$not_specified).' | -
| '.$key.' | +'.((!empty($value)|| $value !='')?$value:$not_specified).' | +