コード例 #1
0
 }
 // Instanciation of inherited class
 $pdf = new PDF();
 $pdf->AliasNbPages();
 $pdf->SetLeftMargin(10);
 $pdf->SetFont('Arial', 'B', 12);
 $pdf->SetTextColor(0);
 $pdf->SetFillColor(255);
 foreach ($_GET['personnel_id'] as $id) {
     if ($ATC->user_has_permission(ATC_PERMISSION_PERSONNEL_VIEW, $id)) {
         $obj = $ATC->get_personnel($id);
     } else {
         continue;
     }
     $obj->nok = $ATC->get_nok($id);
     $obj->promotions = $ATC->get_promotion_history($id);
     if ($ATC->user_has_permission(ATC_PERMISSION_FINANCE_VIEW, $id)) {
         $obj->payments = $ATC_Finance->get_account_history($id, '1970-01-01', date('c'));
     } else {
         $obj->payments = null;
     }
     //var_dump($obj);
     $pdf->AddPage();
     $footerstring = $obj->rank . ' ' . $obj->display_name;
     $pdf->SetFont('Arial', 'B', 14);
     $pdf->Cell(190, 10, 'Personal Details', 0, 1, 'C', true);
     $pdf->SetFont('Arial', 'B', 8);
     $pdf->SetFillColor(200);
     $pdf->Cell(40, 8, 'Section', 1, 0, 'R', true);
     $pdf->Cell(60, 8, 'On record', 1, 0, 'C', true);
     $pdf->Cell(90, 8, 'Update to', 1, 1, 'C', true);