//Instanciation of inherited class $pdf = new IPP(); $pdf->AliasNbPages(); $pdf->AddPage(); //set the pdf information $pdf->SetAuthor(username_to_common($_SESSION['egps_username'])); $pdf->SetCreator('MyIEP Special Education Program Management'); $pdf->SetTitle('Individual Program Plan - ' . $student_row['first_name'] . ' ' . $student_row['last_name']); //begin pdf... $pdf->SetFont('Times', '', 20); $pdf->SetTextColor(220, 50, 50); //set the colour a loverly redish $pdf->Cell(30); $pdf->Cell(130, 5, ' Program Plan ', 0, 0, 'C'); //$pdf->Image(IPP_PATH . 'images/bounding_box.png',$pdf->GetX()-1,$pdf->GetY()-4); $mark = $pdf->GetY(); /* if(isset($code) && is_numeric($code)) { $pdf->SetFont('Times','B',50); if($code > 99) $pdf->SetFont('Times','B',30); if($code >999) $pdf->SetFont('Times','B',25); if($code >9999) $pdf->SetFont('Times','B',20); }else { */ $pdf->SetFont('Times', 'B', 10); //$code=$code; // $code = "Not Coded"; // } $pdf->SetTextColor(0, 51, 0); //grey $pdf->SetFillColor(240, 240, 240); // white $pdf->SetDrawColor(0, 0, 0);
//Instanciation of inherited class $pdf = new IPP(); $pdf->AliasNbPages(); $pdf->AddPage(); //set the pdf information $pdf->SetAuthor(username_to_common($_SESSION['egps_username'])); $pdf->SetCreator('Grasslands IPP System- Michael Nielsen Developer'); //todo strip the vanity of the dev $pdf->SetTitle('Individual Program Plan - ' . $student_row['first_name'] . ' ' . $student_row['last_name']); //begin pdf... $pdf->SetFont('Times', '', 20); $pdf->SetTextColor(220, 50, 50); //set the colour a loverly redish $pdf->Cell(30); $pdf->Cell(130, 5, 'Anecdotal Report ', 0, 0, 'C'); $pdf->Image(IPP_PATH . 'images/bounding_box.png', $pdf->GetX() - 1, $pdf->GetY() - 4); $mark = $pdf->GetY(); if ($code != "") { if ($code > 99) { $pdf->SetFont('Times', 'B', 30); } else { $pdf->SetFont('Times', 'B', 50); } } else { $pdf->SetFont('Times', 'B', 10); $code = " Not\nCoded"; } $pdf->SetTextColor(0, 51, 0); //grey $pdf->SetFillColor(240, 240, 240); // white