diff --git a/app/Controllers/PrinterController.php b/app/Controllers/PrinterController.php index df0183a..3c9eb51 100644 --- a/app/Controllers/PrinterController.php +++ b/app/Controllers/PrinterController.php @@ -23,11 +23,10 @@ class PrinterController extends BaseController { $filename = "sample_".$logTime; $role = session()->get('userrole'); - // $role = "admin"; $networkPath = ""; // Ruang Analis Printer POSTEK C168/200s - if ($role == 'admin' || $role == 'user') { + if ($role === 'admin' || $role === 'user') { // Buka Mapping Drive PC Laboratorium exec('net use L: \\\\10.148.5.20\\Labelshare /user:Administrator 2>&1', $output, $return_var); @@ -55,7 +54,7 @@ P1 "; // Ruang Analis Printer Zebra - } else if ($role == 'sampling') { + } else if ($role === 'sampling') { // Buka Mapping Drive PC Sampling exec('net use S: \\\\10.148.3.169\\Labelshare /user:Administrator 2>&1', $output, $return_var); @@ -124,7 +123,7 @@ P1 $networkPath = ""; // Ruang Analis Printer POSTEK - if ($role == 'admin' || $role == 'user') { + if ($role === 'admin' || $role === 'user') { // Buka Mapping Drive PC Laboratorium exec('net use L: \\\\10.148.5.20\\Labelshare /user:Administrator 2>&1', $output, $return_var); @@ -172,7 +171,7 @@ P1 } // Ruang Analis Printer Zebra - } else if ($role == 'sampling') { + } else if ($role === 'sampling') { // Buka Mapping Drive PC Sampling exec('net use S: \\\\10.148.3.169\\Labelshare /user:Administrator 2>&1', $output, $return_var); @@ -240,158 +239,6 @@ P1 } - public function testsUrineOrFeces($request){ - $fullPage=""; - $headPage = " -
-
- - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
CLINICAL LABORATORY
UHID:1BCJJAJSDKSample ID:LAB2420076951
Name:Ni Luh Putu Eka Putri Saraswati Specimen:Serum
Age/Gender:22 year(s) / MaleCollection Date/Time:26-10-2024 / 11:55:04
Speciality:Result Date/Time:26-10-2024 / 11:52:04
- -
- -
-
- - - - - - - - - - - "; - - $resultTest =""; - $footerPage = " -
ParameterResultUnitNormal RangeNotes
- - - - - - - - - - - - - - - - - - - - - -
- "; - $lastDiv="
"; - - $i=0; - foreach ($request as $chapter) { - - $i++; - // Untuk Chapter - $resultTest .= " - - -
".$chapter['chapter_eng']."
-
 ".$chapter['chapter_ind']."
- - - "; - - // Melebihi batas Kertas - if($i % 25 == 0) { - $resultTest .= ""; - $fullPage .= $headPage.$resultTest.$footerPage.$lastDiv; - $i=0; - $resultTest = ""; - } - - foreach($chapter["tests"] as $test) { - $i++; - $resultTest .= " - - -
 ".$test["test_eng"]."
-
  ".$test["test_ind"]."
- - " . $test["result"] . " - " . $test["unit"] . " - " . $test["range"] . " - " . $test["notes"] . " - - "; - - // Melebihi batas Kertas - if($i % 25 == 0) { - $resultTest .= ""; - $fullPage .= $headPage.$resultTest.$footerPage.$lastDiv; - $i=0; - $resultTest = ""; - } - } - - } - $resultTest .= " - - "; - - $fullPage .= $headPage.$resultTest.$footerPage.$lastDiv; - - return $fullPage; - } - public function otherTests($request){ $fullPage=""; $headPage = " @@ -498,14 +345,10 @@ P1 Lab Technician - - - - Mrs. Gst Ayu Riska Mastari dr. I Komang Parwata Sp.PK - + Mrs. Gst Ayu Riska Mastari Reg. No: 570/SIPDS/0001/I/DPMPTSP/2023 @@ -1493,10 +1336,10 @@ P1 $fullPage = ""; if ($data_urine !== null) { - $fullPage .= $this->testsUrineOrFeces($data_urine); + $fullPage .= $this->otherTests($data_urine); } if ($data_feces !== null) { - $fullPage .= $this->testsUrineOrFeces($data_feces); + $fullPage .= $this->otherTests($data_feces); } if ($data_others !== null) { $fullPage .= $this->otherTests($data_others); diff --git a/app/Views/fo/dashboard_viewAccess.php b/app/Views/fo/dashboard_viewAccess.php index f670f74..7cf65d5 100644 --- a/app/Views/fo/dashboard_viewAccess.php +++ b/app/Views/fo/dashboard_viewAccess.php @@ -54,12 +54,12 @@ $name = $row['NAME']; ?> Collection - + All - + diff --git a/public/assets/css/pdf.css b/public/assets/css/pdf.css index 9ede395..914773b 100644 --- a/public/assets/css/pdf.css +++ b/public/assets/css/pdf.css @@ -30,7 +30,7 @@ body { #dresult { margin: 0; padding: 0; - height: 20.4cm; + height: 19.5cm; } .result { table-layout:fixed; @@ -108,7 +108,7 @@ tr.chapter td { /* float:left; */ margin:0; padding: 0; - height:2.85cm; + height:3.75cm; } .table_footer { @@ -116,6 +116,10 @@ tr.chapter td { /* border:solid 1px black; */ border-collapse:collapse; } +.table_footer tr td { + padding: 4px; + /* border:solid 1px black; */ +} .img { width:200mm; margin-left:0.5cm }