diff --git a/app/Controllers/Opd.php b/app/Controllers/Opd.php index 8282395..8acc0aa 100644 --- a/app/Controllers/Opd.php +++ b/app/Controllers/Opd.php @@ -3880,32 +3880,31 @@ class Opd extends BaseController if ($painImageHtml === '' && $painIndex !== null) { $labels = ['No Pain', 'Mild', 'Moderate', 'Intense', 'Worst']; - $emojis = ['😊', '😐', '😣', '😖', '😭']; // Visual indicators for black & white printing // Add debug info at top showing which pain level is selected $painImageHtml = '
Pain Level: ' . $painIndex . ' - ' . esc($labels[$painIndex]) . '
'; $painImageHtml .= ''; - // Row 1: Emoji indicators (visible in black & white printing) + // Row 1: Arrow/checkmark indicators (PDF-safe symbols, visible in black & white) $painImageHtml .= ''; for ($i = 0; $i <= 4; $i++) { $active = ($painIndex === $i); - $emoji = $active ? $emojis[$i] : ' '; - $fontSize = $active ? '24px' : '16px'; - $painImageHtml .= ''; + $indicator = $active ? '▼' : ''; // Down-pointing triangle (▼) + $fontSize = $active ? '18px' : '12px'; + $painImageHtml .= ''; } $painImageHtml .= ''; - // Row 2: Number boxes with bold border for selected (visible in B&W) + // Row 2: Number boxes with bold border and shading for selected (visible in B&W) $painImageHtml .= ''; for ($i = 0; $i <= 4; $i++) { $active = ($painIndex === $i); - $bg = $active ? '#e5e5e5' : '#ffffff'; // Light gray for selected (visible in B&W) + $bg = $active ? '#cccccc' : '#ffffff'; // Medium gray for selected (visible in B&W) $borderColor = '#000000'; $borderWidth = $active ? '3px' : '1px'; $color = '#000000'; - $painImageHtml .= ''; + $painImageHtml .= ''; } $painImageHtml .= '';
' . $emoji . '' . $indicator . '
' . $i . '' . $i . '