$current_y = $pdf->GetY() + 1; if ($checklist_required == "2" and $checklist_date == "0000-00-00") { $pdf->SetFillColor(245, 72, 72); } elseif ($checklist_required == "2" and $checklist_date == NULL) { $pdf->SetFillColor(245, 72, 72); } elseif ($checklist_required == "0") { $pdf->SetFillColor(245, 190, 72); } elseif ($checklist_required == NULL) { $pdf->SetFillColor(245, 190, 72); } elseif ($checklist_required == "1") { $pdf->SetFillColor(220, 220, 220); } else { $pdf->SetFillColor(173, 233, 28); } // Green $pdf->Rect($current_x, $current_y, 3, 3, F); $pdf->Cell(5, 5, "", $border, 0, L, $fill); $pdf->Cell(60, 5, $item_name, $border, 0, L, $fill, $checklist_link); $pdf->Cell(15, 5, $checklist_required_print, $border, 0, L, $fill); $pdf->Cell(30, 5, $checklist_date_print, $border, 0, L, $fill); $pdf->Cell(0, 1, '', $border, 2); $pdf->MultiCell(80, 3, $checklist_comment, 0, L, $fill); $pdf->Cell(0, 1, '', 0, 1); $y = $pdf->GetY(); $group = $item_group; } $pdf->SetLineWidth(0.3); $pdf->Cell(0, 5, '', T, 1, L, 0); $pdf->SetFont($format_font, '', 8); $pdf->Cell(0, 5, 'Key:', 0, 1); $pdf->SetLineWidth(1.5);