From 32e34a6d77a140dc2df5f32c042a28d63fc89497 Mon Sep 17 00:00:00 2001 From: mikael-zakaria Date: Mon, 13 Jan 2025 22:41:37 +0700 Subject: [PATCH] Update Color Value Nilai Tidak Normal2 --- app/Controllers/PrintResult.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/Controllers/PrintResult.php b/app/Controllers/PrintResult.php index bdb40be..4c5ea8b 100644 --- a/app/Controllers/PrintResult.php +++ b/app/Controllers/PrintResult.php @@ -277,17 +277,19 @@ class PrintResult extends BaseController { $unittext = $item['UNITTEXT']; if($unittext !='') {$unit = $unittext;} + // Untuk mewarnai value yang tidak beda dengan nilai normal $color = ""; if ($resflag == 'L' || $resflag == 'H') { $color = "red_font"; } + // Untuk mewarnai value yang tidak sama dengan nilai normal if ($item['RESULT'] != $item['REFFTEXT'] && $item['code_type'] == 6 && $item['REFFTEXT'] != null) { $color = "red_font"; } $test = ""; - // Untuk Nama Test Apakah lebih dari 24 karakter + // Untuk Nama Test Apakah lebih dari 24 karaktera if ( strlen($item['test_eng']) > 24 || strlen($item['test_ind']) > 24) { $test = "
" . $space . $item["test_eng"]."
$space".$item["test_ind"]."
"; } else {