From 42d5abc25a388b95e66caa362228ad18f05fa65a Mon Sep 17 00:00:00 2001 From: mahdahar <89adham@gmail.com> Date: Thu, 26 Feb 2026 12:42:49 +0700 Subject: [PATCH] Update printer configuration, label controller, and shared views --- app/Config/Printers.php | 34 ++++++----- app/Controllers/LabelController.php | 2 + app/Views/shared/content_requests.php | 10 ++-- app/Views/shared/dialog_sample.php | 28 ++++----- app/Views/shared/script_requests.php | 11 +++- public/file.txt | 82 +++------------------------ 6 files changed, 57 insertions(+), 110 deletions(-) diff --git a/app/Config/Printers.php b/app/Config/Printers.php index 12d0cdb..1ab9a2d 100644 --- a/app/Config/Printers.php +++ b/app/Config/Printers.php @@ -7,29 +7,33 @@ use CodeIgniter\Config\BaseConfig; class Printers extends BaseConfig { public array $printers = [ - "lab" => [ + "zebracs1" => [ + "name" => "CS 2 Printer", + "command" => "copy /B file.txt \\\\glenlis\\zebracs1", + ], + "zebracs2" => [ + "name" => "CS 4 Printer", + "command" => "copy /B file.txt \\\\glenlis\\zebracs2", + ], + "zebracs3" => [ + "name" => "CS Lab Printer", + "command" => "copy /B file.txt \\\\glenlis\\zebracs3", + ], + "zebralab" => [ "name" => "Lab Printer", "command" => "copy /B file.txt \\\\glenlis\\zebralab", ], - "phlebo" => [ - "name" => "Phlebo Printer", - "command" => "copy /B file.txt \\\\print-server\\phlebo-printer", - ], - "reception" => [ - "name" => "Reception Printer", - "command" => 'copy /B file.txt \\\\print-server\\reception-printer', - ], ]; public array $roleDefaults = [ - 0 => "lab", - 1 => "lab", - 2 => "lab", - 3 => "phlebo", - 4 => "reception", + 0 => "zebracs2", + 1 => "zebralab", + 2 => "zebralab", + 3 => "zebracs2", + 4 => "zebracs2", ]; - public string $defaultPrinter = "lab"; + public string $defaultPrinter = "zebracs2"; public function getPrinter(string $printerKey): ?array { diff --git a/app/Controllers/LabelController.php b/app/Controllers/LabelController.php index 537dd6b..f5035cf 100644 --- a/app/Controllers/LabelController.php +++ b/app/Controllers/LabelController.php @@ -1,6 +1,8 @@ Ready -