} else { if (!APEAuthZ::employee_clearance()) { $pdf->setTextColor(0, 0, 0); $pdf->Cell(190, 5, 'Please contribute any information you may have regarding the following item(s).'); } foreach ($checklist_items as $key => $checklist_item) { if ($key != 'id' && $key != 'type' && $key != 'pidm') { if ($key == 'Campus Police' && $AUTHZ . permission . ape_checklist_employee_exit_police || $key == 'Travel Office/Accounts Payable' && $AUTHZ . permission . ape_checklist_employee_exit_payable || $key == 'Residential Life' && $AUTHZ . permission . ape_checklist_employee_exit_reslife || $key == 'Library' && $AUTHZ . permission . ape_checklist_employee_exit_library || $key == "Student Account Services Office" && $AUTHZ . permission . ape_checklist_employee_exit_bursar || $key == 'Physical Plant' && $AUTHZ . permission . ape_checklist_employee_exit_physicalplant || $key == 'Finance' && $AUTHZ . permission . ape_checklist_employee_exit_finance || $key == 'Supervisor of Student Employees Attribute' && $AUTHZ . permission . ape_checklist_employee_exit_student_supervisor || $AUTHZ . permission . ape_checklist_employee_exit_hr || $key == 'Information Technology' && $AUTHZ . permission . ape_checklist_employee_exit_infotech || $key == 'Department' && $myuser->department == $person->department) { $pdf->SetFont('Arial', 'BU', 12); $pdf->setTextColor(5, 66, 6); $pdf->Cell(190, 5, $key, 0, 1, 'L'); foreach ($checklist_item as $entry) { $pdf->SetFont('Arial', '', 10); $pdf->setTextColor(0, 0, 0); $pdf->Cell(190, 5, $entry['name'] . ': ' . $entry['description'], 0, 1, 'L'); $response = HRChecklist::item_responses($person->pidm, $entry['id'], '*'); if ($response) { $no_answer = 't'; foreach ($response as $record) { $pdf->setTextColor(120, 7, 41); $prev_response = $record['response']; $pdf->Cell(25, 5, ' Marked as', 0, 0, 'L'); if ($record['response'] == 'incomplete') { $pdf->Cell(20, 5, 'incomplete', 0, 0, 'L'); $no_answer = 'f'; } elseif ($record['response'] == 'complete') { $pdf->Cell(20, 5, 'complete', 0, 0, 'L'); $no_answer = 'f'; } elseif ($record['response'] == 'n/a') { $pdf->Cell(20, 5, 'n/a', 0, 0, 'L'); $no_answer = 'f';