Update Color Value Nilai Tidak Normal2

This commit is contained in:
mikael-zakaria 2025-01-13 22:41:37 +07:00
parent e91137f1ea
commit 32e34a6d77

View File

@ -277,17 +277,19 @@ class PrintResult extends BaseController {
$unittext = $item['UNITTEXT']; $unittext = $item['UNITTEXT'];
if($unittext !='') {$unit = $unittext;} if($unittext !='') {$unit = $unittext;}
// Untuk mewarnai value yang tidak beda dengan nilai normal
$color = ""; $color = "";
if ($resflag == 'L' || $resflag == 'H') { if ($resflag == 'L' || $resflag == 'H') {
$color = "red_font"; $color = "red_font";
} }
// Untuk mewarnai value yang tidak sama dengan nilai normal
if ($item['RESULT'] != $item['REFFTEXT'] && $item['code_type'] == 6 && $item['REFFTEXT'] != null) { if ($item['RESULT'] != $item['REFFTEXT'] && $item['code_type'] == 6 && $item['REFFTEXT'] != null) {
$color = "red_font"; $color = "red_font";
} }
$test = ""; $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) { if ( strlen($item['test_eng']) > 24 || strlen($item['test_ind']) > 24) {
$test = "<pre>" . $space . $item["test_eng"]."<br>$space<small><i>".$item["test_ind"]."</i></small></pre>"; $test = "<pre>" . $space . $item["test_eng"]."<br>$space<small><i>".$item["test_ind"]."</i></small></pre>";
} else { } else {