コード例 #1
0
        if ($array_conditions['condition_submitted_ref']) {
            $condition_submitted_ref = "Ref: " . $array_conditions['condition_submitted_ref'];
        } else {
            unset($condition_submitted_ref);
        }
        $pdf->Cell(0, 5, $condition_submitted_ref, B, 1, '', true);
        StyleBody(10);
        $pdf->ln(2.5);
        $pdf->SetX(25);
        $pdf->MultiCell(150, 5, $array_conditions['condition_text'], 0, L);
        if ($array_conditions['condition_note'] != NULL) {
            $pdf->ln(2.5);
            $pdf->SetX(25);
            $pdf->SetFont('Helvetica', B, 10);
            $pdf->Cell(0, 7.5, "Notes:", T, 1);
            $pdf->SetX(25);
            StyleBody(10);
            $pdf->MultiCell(150, 5, $array_conditions['condition_note'], 0, L);
        }
        $pdf->SetX(15);
        $pdf->SetX(10);
        $pdf->ln(5);
        $current_ref = $array_conditions['condition_ref'];
    }
}
// and send to output
$file_date = time();
$file_name = $proj_num . "_" . Date("Y", $file_date) . "-" . Date("m", $file_date) . "-" . Date("d", $file_date) . "_Planning_Tracker.pdf";
$pdf_title = $pref_practice . " Planning Tracker: " . $proj_num . " " . $proj_name . "_" . Date("Y", $file_date) . "-" . Date("m", $file_date) . "-" . Date("d", $file_date);
$pdf->SetTitle($pdf_title);
$pdf->Output($file_name, I);