Esempio n. 1
0
        $pdf->Row(array($recordCount, $report_date, $report_location, $machine, $serial_no, $program, $problem, $diagnosis, $remarks, $system_engineer));
    }
    $counter++;
}
$pdf->Ln(4);
$pdf->Cell(0, 10, "Total number of record:  " . $recordCount . " reports", 0, 1, "R");
//LINE GRAPH
$max = max($value);
$pdf->AddPage('L');
$pdf->Ln(4);
$pdf->SetFont("Arial", "B", "14");
$pdf->Cell(0, 10, 'Reported Incidents Flow', 0, 1, "C");
$data = array('Reports' => $array_list);
$pdf->Ln(10);
$colors = array('Reports' => array(0, 128, 255));
$pdf->LineGraph(270, 100, $data, 'VHkBvBgBdB', $colors, $max + 3, 10);
$pdf->SetXY(228, 35);
$pdf->SetFont('Arial', 'B', 12);
$pdf->SetWidths(array(25, 25));
$pdf->Row(array('Days', 'Incident #'));
$pdf->SetFont('Arial', '', 12);
$yAxis = 40;
for ($loop_count = 0; $loop_count < 7; $loop_count++) {
    $pdf->SetXY(228, $yAxis);
    $pdf->SetWidths(array(25, 25));
    $pdf->Row(array($days[$loop_count], $value[$loop_count]));
    $yAxis += 5;
}
$pdf->SetXY(228, $yAxis);
$pdf->SetWidths(array(25, 25));
$pdf->Row(array('Total : ', $recordCount));