xheadertext = 'YOUR ORGANIZATION'; * set the fill color in the view using * $fpdf->xheadercolor = array(0,0,100); (r, g, b) * set the font in the view using * $fpdf->setHeaderFont(array('YourFont','',fontsize)); */ function Header() { list($r, $b, $g) = $this->xheadercolor; //$this->setY(10); // shouldn't be needed due to page margin, but helas, otherwise it's at the page top $this->SetFillColor(255, 255, 255); $this->SetTextColor(0 , 0, 152); //Set the Text Color to Blue $this->Image(K_PATH_IMAGES.'cmclogosmall.jpg', 2, 0, 30, 0, null, 'http://www.cmctechnologies.com.au', null, false, null, 'L'); $this->Cell(30); $this->SetFont('times', 'B'); $this->Cell(0,0, $this->xheadertext, 0,1,'C', 1); $this->SetFontSize(10); $this->Cell(30); $this->Cell(0,0, "PTY LIMITED ACN: 47 085 991 224, ABN 47 085 991 224", 0, 1, 'C', 1); /* Start the contact details */ $this->SetTextColor(0); //Set the Text Color to Black $this->MultiCell(18, 0, "Phone:\nFax:\nEmail:\nWeb Site:\n", 0, 'L', 0, 0, 45, 23); $this->MultiCell(50, 0, "+61 2 9669 4000
+61 2 9669 4111
sales@cmctechnologies.com.au
www.cmctechnologies.com.au
", 0, 'L', 0, 0, 65, null, true, 0, true); $this->MultiCell(50, 0, "Unit 19, 77 Bourke Rd\nAlexandria\nNSW 2015\nAUSTRALIA\n", 0, 'L', 0, 0, 150, null); $this->SetTextColor(0 , 0, 152); //Set the Text Color to Blue $this->SetFont('times', 'B'); $this->MultiCell(30, 20, "Engineering &\nIndustrial\nInstrumentation", 0, 'L', 0, 1, 2,28); } /** * Overwrites the default footer * set the text in the view using * $fpdf->xfootertext = 'Copyright © %d YOUR ORGANIZATION. All rights reserved.'; */ function Footer() { $year = date('Y'); $footertext = sprintf($this->xfootertext, $year); $this->SetY(-20); $this->SetTextColor(0, 0, 0); $this->SetFont($this->xfooterfont,'',$this->xfooterfontsize); $this->Cell(0,8, $footertext,'T',1,'C'); } /** * For Quotes and (hopefully) Invoices. Identifies who the document is for, date, reference number, etc. */ function DetailsBox($companyName, $emailTo, $attention, $fromName, $fromEmail, $enquiryNumber) { } } ?>