function Header() { global $cityName; $this->SetFont('Arial', '', 12); $this->SetX(-35); $this->Cell(0, 6, date("M d, Y"), 0, 0, 'R'); $this->Ln(0); $this->printTitle(); $this->SetFont('Arial', '', 12); $t = ""; $v = ""; if (isset($_GET['region']) && strlen($_GET['region']) > 0) { $t = "Region"; $v = $_GET['region']; } else { if (isset($_GET['city']) && strlen($_GET['city']) > 0) { $t = "City"; $v = $_GET['city']; } } if (strlen($t) > 0) { $this->Cell(30, 6, $t, 0, 0, 'L'); $this->Cell(63, 6, $v, 'B', 0, 'L'); if (strlen($cityName) > 0) { $this->Cell(30, 6, "City", 0, 0, 'L'); $this->Cell(63, 6, $cityName, 'B', 0, 'L'); } $this->Ln(10); } //Ensure table header is output parent::Header(); }
function Header() { global $ret, $_title; $this->SetFont('Arial', '', 6); $this->SetX(-35); $this->Cell(0, 6, date("M d, Y"), 0, 0, 'R'); $this->Ln(0); $this->SetFont('Arial', 'I', 6); $this->SetX($this->lMargin); $this->Cell(0, 6, 'Report generated by nexexcel.com', 0, 0, 'L'); $this->Ln(0); $t = $_title; if (isset($_GET['account_class']) && strlen($_GET['account_class']) > 0) { $t .= " - " . $_GET['account_class']; } $this->SetFont('Arial', 'B', 8); $this->Cell(0, 6, $t, 0, 1, 'C'); $this->Ln(2); $this->SetFont('Arial', '', 8); $this->Cell(30, 6, "Account Name", 0, 0, 'L'); $this->Cell(63, 6, $ret['account_name'], 'B', 0, 'L'); $this->SetX($this->GetX() + 25); $this->Cell(35, 6, "Opening Balance", 0, 0, 'L'); $this->Cell(37, 6, number_format($ret['aob']), 1, 1, 'R'); if (strlen($ret['party_address']) > 0) { $this->Cell(30, 6, "Party Address", 0, 0, 'L'); $this->Cell(63, 6, $ret['party_address'], 'B', 1, 'L'); } $this->Ln(5); //Ensure table header is output parent::Header(); }
function Header() { global $title, $vehicle, $vendor; $this->SetFont('Arial', '', 12); $this->SetX(-35); $this->Cell(0, 6, date("M d, Y"), 0, 0, 'R'); $this->Ln(0); $this->SetFont('Arial', 'B', 14); $this->Cell(0, 6, $title, 0, 1, 'C'); $this->Ln(2); $this->SetFont('Arial', 'B', 10); $this->Cell(50, 6, $vendor, 'B', 0, 'L'); $this->SetX($this->GetX() + 90); $this->Cell(50, 6, $vehicle, 'B', 1, 'L'); $this->Ln(2); $w = $this->w - $this->lMargin - $this->rMargin; $this->SetFont('Arial', 'B', 10); $this->Cell(5 / 100 * $w, 6, "C-No", 1, 0, 'C'); if ($vendor == 'TIK') { $this->Cell(25 / 100 * $w, 6, "Description", 1, 0, 'C'); $this->Cell(15 / 100 * $w, 6, "Fix Rate", 1, 0, 'C'); } else { $this->Cell(40 / 100 * $w, 6, "Description", 1, 0, 'C'); } $this->Cell(15 / 100 * $w, 6, "Model", 1, 0, 'C'); $this->Cell(15 / 100 * $w, 6, "OEM Num", 1, 0, 'C'); $this->Cell(25 / 100 * $w, 6, "Circular Rate", 1, 0, 'C'); $this->Ln(); //Ensure table header is output parent::Header(); }
function Header() { global $title, $partyName; $this->SetFont('Arial', 'B', 18); // $this->Cell(0, 6, $_SESSION['companyname'], 0, 0, 'C'); $this->SetFont('Arial', '', 12); $this->SetX(-35); $this->Cell(0, 6, date("M d, Y"), 0, 0, 'R'); $this->Ln(0); $this->SetFont('Arial', 'B', 14); $this->Cell(0, 6, $title, 0, 1, 'C'); $this->Ln(2); if (strlen($_GET['date_start']) > 0) { $this->SetFont('Arial', 'B', 12); $this->Cell(30, 6, "Start Date:", 0, 0, 'L'); $this->SetFont('Arial', '', 12); $this->Cell(30, 6, $_GET['date_start'], 'B', 0, 'L'); $this->SetX(-70); } if (strlen($_GET['date_end']) > 0) { $this->SetFont('Arial', 'B', 12); $this->Cell(30, 6, "End Date:", 0, 0, 'L'); $this->SetFont('Arial', '', 12); $this->Cell(30, 6, $_GET['date_end'], 'B', 0, 'R'); } $this->Ln(); $this->SetFont('Arial', 'B', 12); $this->Cell(30, 6, "Party:", 0, 0, 'L'); $this->SetFont('Arial', '', 12); $this->Cell(150, 6, $partyName, 'B', 1, 'L'); $this->Ln(2); //Ensure table header is output parent::Header(); }
function Header() { global $title; $this->SetFont('Arial', '', 12); $this->SetX(-35); $this->Cell(0, 6, date("M d, Y"), 0, 0, 'R'); $this->Ln(0); $this->SetFont('Arial', 'B', 14); $this->Cell(0, 6, $title, 0, 1, 'C'); $this->Ln(2); $this->SetFont('Arial', 'B', 10); //$this->Cell(50, 6, $vendor, 'B', 0, 'L'); $this->SetX($this->GetX() + 90); //$this->Cell(50, 6, $vehicle, 'B', 1, 'L'); $this->Ln(2); $w = $this->w - $this->lMargin - $this->rMargin; $this->SetFont('Arial', 'B', 10); $this->Cell(20 / 100 * $w, 6, "Name", 1, 0, 'C'); $this->Cell(25 / 100 * $w, 6, "Address", 1, 0, 'C'); $this->Cell(10 / 100 * $w, 6, "Phone1", 1, 0, 'C'); $this->Cell(10 / 100 * $w, 6, "Phone2", 1, 0, 'C'); $this->Cell(10 / 100 * $w, 6, "Phone3", 1, 0, 'C'); $this->Cell(12 / 100 * $w, 6, "Person", 1, 0, 'C'); $this->Cell(13 / 100 * $w, 6, "Vehicle", 1, 0, 'C'); $this->Ln(); //Ensure table header is output parent::Header(); }
function Header() { global $title, $vendor; $this->SetFont('Arial', '', 12); $this->SetX(-35); $this->Cell(0, 6, date("M d, Y"), 0, 0, 'R'); $this->Ln(0); $this->SetFont('Arial', 'B', 14); $this->Cell(0, 6, $title, 0, 1, 'C'); $this->Ln(1); $this->SetFont('Arial', 'B', 10); $this->Cell(50, 6, $vendor, 'B', 0, 'L'); $this->SetX($this->GetX() + 90); $this->Cell(50, 6, "", 'B', 1, 'L'); $this->Ln(1); $w = $this->w - $this->lMargin - $this->rMargin; $this->SetFont('Arial', 'B', 10); $this->Cell(5 / 100 * $w, 6, "C-No", 1, 0, 'C'); $this->Cell(40 / 100 * $w, 6, "Description", 1, 0, 'C'); $this->Cell(25 / 100 * $w, 6, "Manufacturer No", 1, 0, 'C'); $this->Cell(5 / 100 * $w, 6, "Cost", 1, 0, 'C'); $this->Cell(5 / 100 * $w, 6, "Sale", 1, 0, 'C'); $this->Cell(5 / 100 * $w, 6, "Diff", 1, 0, 'C'); $this->Cell(5 / 100 * $w, 6, "Qty", 1, 0, 'C'); $this->Cell(10 / 100 * $w, 6, "Amount", 1, 0, 'C'); $this->Ln(); //Ensure table header is output parent::Header(); }
function Header() { $this->SetFont('Arial', '', 8); $this->SetX(-35); $this->Cell(0, 6, date("M d, Y"), 0, 0, 'R'); $this->Ln(0); $this->printTitle(); //Ensure table header is output parent::Header(); }
function Header() { $this->SetFont('Arial', 'B', 18); // $this->Cell(0, 6, $_SESSION['companyname'], 0, 0, 'C'); $this->SetFont('Arial', '', 12); $this->SetX(-35); $this->Cell(0, 6, date("M d, Y"), 0, 0, 'R'); $this->Ln(0); $this->printTitle(); //Ensure table header is output parent::Header(); }
function Header() { $this->SetFont('Arial', '', 12); $this->SetX(-35); $this->Cell(0, 6, date("M d, Y"), 0, 0, 'R'); $this->Ln(0); $this->printTitle(); $this->Cell(94.999527777778, 6, 'Karachi', 1, 0, 'C', false); $this->Cell(94.999527777778, 6, 'Lahore', 1, 0, 'C', false); $this->Ln(); //Ensure table header is output parent::Header(); }
function Header() { global $title, $city; $this->SetFont('Arial', '', 12); $this->SetX(-35); $this->Cell(0, 6, date("M d, Y"), 0, 0, 'R'); $this->Ln(0); $this->SetFont('Arial', 'B', 14); $this->Cell(0, 6, $title, 0, 1, 'C'); $this->SetFont('Arial', 'B', 12); $this->Cell(0, 6, $city, 1, 1, 'C'); //Ensure table header is output parent::Header(); }
function Header() { global $title; $strDate = $_GET['date_start']; if (strlen($_GET['date_end']) > 0) { $strDate .= " ~ " . $_GET['date_end']; } $this->SetFont('Arial', 'B', 18); $this->Cell(0, 6, $title . " - " . $strDate, 0, 0, 'C'); $this->SetFont('Arial', '', 12); $this->SetX(-35); $this->Cell(0, 6, date("M d, Y"), 0, 1, 'R'); $this->Ln(); //Ensure table header is output parent::Header(); }
function Header() { global $title; $this->SetFont('Arial', '', 6); $this->SetX(-35); $this->Cell(0, 6, date("M d, Y"), 0, 0, 'R'); $this->Ln(0); $this->SetFont('Arial', 'I', 6); $this->SetX($this->lMargin); $this->Cell(0, 6, 'Report generated by nexexcel.com', 0, 0, 'L'); $this->Ln(0); $this->SetFont('Arial', 'B', 8); $this->Cell(0, 6, $title, 0, 1, 'C'); $this->Ln(0); //Ensure table header is output parent::Header(); }
function Header() { global $ret; $this->SetFont('Arial', '', 12); $this->SetX(-35); $this->Cell(0, 6, date("M d, Y"), 0, 0, 'R'); $this->Ln(0); $this->printTitle(); $this->SetFont('Arial', '', 12); $this->Cell(30, 6, "Account Name", 0, 0, 'L'); $this->Cell(63, 6, $ret['account_name'], 'B', 0, 'L'); $this->SetX($this->GetX() + 25); $this->Cell(35, 6, "Opening Balance", 0, 0, 'L'); $this->Cell(37, 6, number_format($ret['aob']), 1, 1, 'R'); $this->Ln(5); //Ensure table header is output parent::Header(); }
function Header() { $this->SetFont('Arial', 'B', 18); // $this->Cell(0, 6, $_SESSION['companyname'], 0, 0, 'C'); $this->SetFont('Arial', '', 12); $this->SetX(-35); $this->Cell(0, 6, date("M d, Y"), 0, 1, 'R'); $this->Ln(10); $this->printTitle(); $this->SetFont('Arial', 'B', 8); $this->SetX(10); $this->Cell(55.5, 6, "Customer", 1, 0, 'C', false); $this->Cell(55.25, 6, "1st Visit", 1, 0, 'C', false); $this->Cell(55.5, 6, "2nd Visit", 1, 0, 'C', false); $this->Cell(55.25, 6, "3rd Visit", 1, 0, 'C', false); $this->Cell(55.5, 6, "4th Visit", 1, 0, 'C', false); $this->Ln(6); //Ensure table header is output parent::Header(); }
function Header() { global $aob, $account, $account_hidden; $this->SetFont('Arial', 'B', 18); // $this->Cell(0, 6, $_SESSION['companyname'], 0, 0, 'C'); $this->SetFont('Arial', '', 12); $this->SetX(-35); $this->Cell(0, 6, "Print Date: " . date("M d, Y"), 0, 0, 'R'); $this->Ln(0); $this->printTitle(); $this->SetFont('Arial', '', 12); $this->Cell(42, 6, "Account Title", 0, 0, 'L'); $this->Cell(40, 6, $account, 'B', 0, 'L'); $this->SetX($this->GetX() + 43); $this->Cell(35, 6, "Opening Balance", 0, 0, 'L'); $this->SetX($this->GetX() + 1); $this->Cell(30, 6, number_format($aob), 1, 1, 'R'); $this->Cell(42, 6, "Account Code", 0, 0, 'L'); $this->Cell(40, 6, $account_hidden, 'B', 1, 'L'); if (strlen($_GET['date_start']) > 0 && strlen($_GET['date_end']) > 0) { $this->Cell(42, 6, "Date From", 0, 0, 'L'); $this->Cell(40, 6, $_GET['date_start'], 'B', 0, 'L'); $this->SetX($this->GetX() + 43); $this->Cell(35, 6, "Date To", 0, 0, 'L'); $this->SetX($this->GetX() + 1); $this->Cell(30, 6, $_GET['date_end'], 'B', 1, 'R'); } else { if (strlen($_GET['date_start']) > 0) { $this->Cell(42, 6, "Date From", 0, 0, 'L'); $this->Cell(40, 6, $_GET['date_start'], 'B', 1, 'L'); } else { if (strlen($_GET['date_end']) > 0) { $this->Cell(42, 6, "Date To", 0, 0, 'L'); $this->Cell(40, 6, $_GET['date_end'], 'B', 1, 'L'); } } } $this->Ln(5); //Ensure table header is output parent::Header(); }
function Header() { global $city; $this->SetFont('Arial', 'B', 18); // $this->Cell(0, 6, $_SESSION['companyname'], 0, 0, 'C'); $this->SetFont('Arial', '', 12); $this->SetX(-35); $this->Cell(0, 6, date("M d, Y"), 0, 0, 'R'); $this->Ln(0); $this->printTitle(); $this->SetFont('Arial', '', 12); $_city = $city; if ($_city == '#ALL#') { $_city = "All Pakistan"; } $this->Cell(42, 6, "City", 0, 0, 'L'); $this->Cell(40, 6, $_city, 'B', 1, 'L'); $this->Ln(5); //Ensure table header is output parent::Header(); }
function Header() { global $aob, $account, $account_hidden; $this->SetFont('Arial', 'B', 18); // $this->Cell(0, 6, $_SESSION['companyname'], 0, 0, 'C'); $this->SetFont('Arial', '', 12); $this->SetX(-35); $this->Cell(0, 6, date("M d, Y"), 0, 1, 'R'); $this->Ln(10); $this->Cell(42, 6, "Customer/Distributor", 0, 0, 'L'); $this->Cell(40, 6, $account, 'B', 0, 'L'); $this->SetX($this->GetX() + 43); $this->Cell(35, 6, "Opening Balance", 0, 0, 'L'); $this->SetX($this->GetX() + 1); $this->Cell(30, 6, number_format($aob), 1, 1, 'R'); $this->Cell(42, 6, "Code", 0, 0, 'L'); $this->Cell(40, 6, $account_hidden, 'B', 1, 'L'); $this->Ln(5); $this->printTitle(); //Ensure table header is output parent::Header(); }
function Header() { global $distributor, $d_net; $this->SetFont('Arial', 'B', 18); // $this->Cell(0, 6, $_SESSION['companyname'], 0, 0, 'C'); $this->SetFont('Arial', '', 12); $this->SetX(-35); $this->Cell(0, 6, date("M d, Y"), 0, 1, 'R'); $this->Ln(10); $this->SetFont('Arial', 'B', 14); $this->Cell(0, 6, 'Distributor Party Outstanding', 0, 1, 'C'); $this->Ln(2); $this->SetFont('Arial', 'B', 12); $this->Cell(30, 6, 'Distributor', 0, 0, 'L'); $this->Cell(50, 6, $distributor, 'B', 0, 'L'); $this->SetX($this->GetX() + 29); $this->Cell(30, 6, 'Outstanding', 0, 0, 'L'); $this->Cell(50, 6, $d_net, 'B', 0, 'L'); $this->Ln(); $this->Ln(5); //Ensure table header is output parent::Header(); }
function Header() { global $invoice, $partyName, $partyCode, $partyCity, $date, $billteNo1, $transporter1, $billteNo2, $transporter2, $billteNo3, $transporter3, $dueDate; $this->SetFont('Arial', '', 8); $this->SetX(-35); $this->Cell(0, 6, date("M d, Y"), 0, 0, 'R'); $this->Ln(0); $this->SetFont('Arial', 'B', 8); $this->Cell(0, 6, 'Estimates', 0, 1, 'C'); $this->Ln(2); $this->SetFont('Arial', 'B', 8); $col1 = 30; $col2 = 50; $col3 = 30; $col4 = 50; $xspace = 80 - $col2; $pdata = array("Date", $date, "Inv#", $invoice, "Customer", $partyName, "Code", $partyCode, "Payment Due", $dueDate, "City", $partyCity, "Bilty #", $billteNo1, "Transport", $transporter1, "Bilty #", $billteNo2, "Transport", $transporter2, "Bilty #", $billteNo3, "Transport", $transporter3); for ($i = 0; $i < count($pdata); $i += 4) { $border = "0"; if (strlen($pdata[$i + 0]) > 0) { $border = 'B'; } $this->Cell($col1, 6, $pdata[$i + 0], 0, 0, 'L'); $this->Cell($col2, 6, $pdata[$i + 1], $border, 0, 'L'); $this->SetX($this->GetX() + $xspace); $border = "0"; if (strlen($pdata[$i + 2]) > 0) { $border = 'B'; } $this->Cell($col3, 6, $pdata[$i + 2], 0, 0, 'L'); $this->Cell($col4, 6, $pdata[$i + 3], $border, 0, 'L'); $this->Ln(); } $this->Ln(5); //Ensure table header is output parent::Header(); }
function Header() { global $vendor; $this->SetFont('Arial', '', 12); $this->SetX(-35); $this->Cell(0, 6, date("M d, Y"), 0, 0, 'R'); $this->Ln(0); $this->printTitle(); $this->SetFont('Arial', '', 12); $this->Cell(35, 6, "Vendor: ", '', 0, 'L'); $this->Cell(70, 6, $vendor, 'B', 0, 'L'); $this->Ln(); $this->Ln(5); //Ensure table header is output parent::Header(); }
function Header() { global $title; $this->SetFont('Arial', 'B', 18); // $this->Cell(0, 6, $_SESSION['companyname'], 0, 0, 'C'); $this->SetFont('Arial', '', 12); $this->SetX(-35); $this->Cell(0, 6, date("M d, Y"), 0, 0, 'R'); $this->Ln(0); $this->SetFont('Arial', 'B', 14); $this->Cell(0, 6, $title, 0, 1, 'C'); $this->Ln(2); $this->SetFont('Arial', 'B', 10); $this->Cell(27.699758333333, 6, "Region", 1, 0, 'C'); $this->Cell(124.6489125, 6, "Lahore", 1, 0, 'C'); $this->Cell(124.6489125, 6, "Karachi", 1, 1, 'C'); //Ensure table header is output parent::Header(); }
function Header() { global $godowns, $category; $this->SetFont('Arial', '', 12); $this->SetX(-35); $this->Cell(0, 6, date("M d, Y"), 0, 0, 'R'); $this->Ln(0); $this->printTitle(); $this->SetFont('Arial', '', 12); $this->Cell(35, 6, "Item Category: ", '', 0, 'L'); $this->Cell(70, 6, $category, 'B', 0, 'L'); $this->SetX($this->w - $this->rMargin - 80); $this->Cell(30, 6, "Warehouse: ", '', 0, 'L'); $this->Cell(50, 6, $godowns, 'B', 0, 'L'); $this->Ln(); $this->Ln(5); //Ensure table header is output parent::Header(); }
function Header() { global $title, $invoice; if (isset($_GET['printaddress']) && $_GET['printaddress'] == 'Y') { } else { $this->SetFont('Arial', '', 6); $this->SetX(-35); $this->Cell(0, 6, date("M d, Y"), 0, 0, 'R'); $this->Ln(0); $this->SetFont('Arial', 'I', 6); $this->SetX($this->lMargin); $this->Cell(0, 6, 'Report generated by nexexcel.com', 0, 0, 'L'); $this->Ln(0); $this->SetFont('Arial', 'B', 8); $this->Cell(0, 6, $title . " - #" . $invoice, 0, 1, 'C'); $this->Ln(0); } //Ensure table header is output parent::Header(); }
function Header() { global $title, $startDate, $endDate; $this->SetFont('Arial', 'B', 18); $this->Cell(0, 6, "{$title} ({$startDate} to {$endDate})", 0, 0, 'C'); $this->SetFont('Arial', '', 12); $this->SetX(-35); $this->Cell(0, 6, date("M d, Y"), 0, 1, 'R'); $this->Ln(); //Ensure table header is output parent::Header(); }
function Header() { global $title, $months, $accounts_classes, $prop; $this->SetFont('Arial', 'B', 18); // $this->Cell(0, 6, $_SESSION['companyname'], 0, 0, 'C'); $this->SetFont('Arial', '', 12); $this->SetX(-35); $this->Cell(0, 6, date("M d, Y"), 0, 0, 'R'); $this->Ln(0); $this->SetFont('Arial', 'B', 14); $m = '(' . $_GET['date_start'] . " - " . $_GET['date_end'] . ')'; $this->Cell(0, 6, $title . " " . $m, 0, 1, 'C'); $this->Ln(2); $w = $this->w - $this->lMargin - $this->rMargin; $p = count($accounts_classes); $this->SetFillColor($prop['HeaderColor'][0], $prop['HeaderColor'][1], $prop['HeaderColor'][2]); $this->SetTextColor($prop['HeaderTextColor'][0], $prop['HeaderTextColor'][1], $prop['HeaderTextColor'][2]); foreach ($accounts_classes as $accounts_class => $accounts_class_name) { $this->Cell(1 / $p * $w, 6, $accounts_class_name, 1, 0, 'C', true); } $this->Ln(); //Ensure table header is output parent::Header(); }
function Header() { global $party, $days_limit; $this->SetFont('Arial', '', 6); $this->SetX(-35); $this->Cell(0, 6, date("M d, Y"), 0, 0, 'R'); $this->Ln(0); $this->SetFont('Arial', 'I', 6); $this->SetX($this->lMargin); $this->Cell(0, 6, 'Report generated by nexexcel.com', 0, 0, 'L'); $this->Ln(0); $this->printTitle(); if ($_GET['format'] != 'compact') { $this->SetFont('Arial', '', 8); $this->Cell(30, 4, "Party", 0, 0, 'L'); $this->Cell(63, 4, $party, 'B', 0, 'L'); $this->Cell(30, 4, "Limit", 0, 0, 'L'); $this->Cell(63, 4, $days_limit, 'B', 1, 'L'); $this->Ln(1); } //Ensure table header is output parent::Header(); }
function Header() { global $title, $gfrom, $gto, $transDate, $id, $billNo; $this->SetFont('Arial', '', 6); $this->SetX(-35); $this->Cell(0, 6, date("M d, Y"), 0, 0, 'R'); $this->Ln(0); $this->SetFont('Arial', 'I', 6); $this->SetX($this->lMargin); $this->Cell(0, 6, 'Report generated by nexexcel.com', 0, 0, 'L'); $this->Ln(0); if (strlen($title) > 0) { $this->SetFont('Arial', 'B', 8); $this->Cell(0, 4, $title, 0, 1, 'C'); $this->Ln(1); } $col1 = 30; $col2 = 50; $col3 = 30; $col4 = 50; $xspace = 80 - $col2; $pdata = array("Date", $transDate, "Invoice #", $id, "Challan #", $billNo, "", "", "To Warehouse", $gto, "From Warehouse", $gfrom); $this->SetFont('Arial', 'B', 8); for ($i = 0; $i < count($pdata); $i += 4) { $border = "0"; if (strlen($pdata[$i + 0]) > 0) { $border = 'B'; } $this->Cell($col1, 4, $pdata[$i + 0], 0, 0, 'L'); $this->Cell($col2, 4, $pdata[$i + 1], $border, 0, 'L'); $this->SetX($this->GetX() + $xspace); $border = "0"; if (strlen($pdata[$i + 2]) > 0) { $border = 'B'; } $this->Cell($col3, 4, $pdata[$i + 2], 0, 0, 'L'); $this->Cell($col4, 4, $pdata[$i + 3], $border, 0, 'L'); $this->Ln(); } $this->Ln(1); //Ensure table header is output parent::Header(); }
function Header() { global $title, $months, $start, $end; $this->SetFont('Arial', 'B', 18); // $this->Cell(0, 6, $_SESSION['companyname'], 0, 0, 'C'); $this->SetFont('Arial', '', 12); $this->SetX(-35); $this->Cell(0, 6, date("M d, Y"), 0, 0, 'R'); $this->Ln(0); $this->SetFont('Arial', 'B', 14); $m = "Monthly"; if (strlen($_GET['month']) > 1) { $m = date('F', strtotime("1 {$_GET['month']}")); } $this->Cell(0, 6, $title . " - " . $m, 0, 1, 'C'); $this->Ln(2); $this->SetFont('Arial', 'B', 12); if (strlen($_GET['region']) > 0) { $this->Cell(0, 6, $_GET['region'], 0, 1, 'C'); } else { if (strlen($_GET['city']) > 0) { $this->Cell(0, 6, $_GET['city'], 0, 1, 'C'); } } $this->Ln(2); $w = $this->w - $this->lMargin - $this->rMargin; $this->SetFont('Arial', 'B', 10); if (strlen($_GET['month']) > 1) { $this->Cell(20 / 100 * $w, 6, "", 1, 0, 'C'); $this->Cell(5 / 100 * $w, 6, "Pay", 1, 0, 'C'); for ($i = 1; $i <= 5; $i++) { $this->Cell(15 / 100 * $w, 6, "Week {$i}", 1, 0, 'C'); } } else { $this->Cell(20 / 100 * $w, 6, "", 1, 0, 'C'); $this->Cell(5 / 100 * $w, 6, "Pay", 1, 0, 'C'); foreach ($months as $c => $m) { if ($c >= $start && $c < $end) { $this->Cell(12.5 / 100 * $w, 6, "{$m}", 1, 0, 'C'); } } } $this->Ln(); //Ensure table header is output parent::Header(); }
function Header() { global $_title, $voucher_id, $voucher_date, $voucher_type, $voucher_by, $voucher_remarks; $this->SetFont('Arial', '', 6); $this->SetX(-35); $this->Cell(0, 6, date("M d, Y"), 0, 0, 'R'); $this->Ln(0); $this->SetFont('Arial', 'I', 6); $this->SetX($this->lMargin); $this->Cell(0, 6, 'Report generated by nexexcel.com', 0, 0, 'L'); $this->Ln(0); $this->SetFont('Arial', 'B', 8); $this->Cell(0, 6, $_title, 0, 1, 'C'); $this->Ln(2); $this->SetFillColor(255, 255, 255); $col1 = 20; $col2 = 60; $xspace = 29; $pdata = array("Voucher #", $voucher_id, "Date", $voucher_date, "Voucher Type", $voucher_type, "Voucher By", $voucher_by); for ($i = 0; $i < count($pdata); $i += 4) { $border = "0"; if (strlen($pdata[$i + 0]) > 0) { $border = 'B'; } $this->SetFont('Arial', 'B', 8); $this->Cell($col1, 6, $pdata[$i + 0], 0, 0, 'L', true); $this->SetFont('Arial', '', 8); $this->Cell($col2, 6, $pdata[$i + 1], $border, 0, 'L'); $this->SetX($this->GetX() + $xspace); $border = "0"; if (strlen($pdata[$i + 2]) > 0) { $border = 'B'; } $this->SetFont('Arial', 'B', 8); $this->Cell($col1, 6, $pdata[$i + 2], 0, 0, 'L', true); $this->SetFont('Arial', '', 8); $this->Cell($col2, 6, $pdata[$i + 3], $border, 0, 'L'); $this->Ln(); } $this->SetFont('Arial', 'B', 8); $this->Cell($col1, 6, "Remarks", 0, 0, 'L', true); $this->SetFont('Arial', '', 8); $this->Cell($col2 + $col1 + $col2 + $xspace, 6, $voucher_remarks, 'B', 1, 'L'); $this->Ln(2); parent::Header(); }
function Header() { global $title, $cat_perc, $cv; $this->SetFont('Arial', '', 12); $this->SetX(-35); $this->Cell(0, 6, date("M d, Y"), 0, 0, 'R'); $this->Ln(0); $this->SetFont('Arial', 'B', 14); $this->Cell(0, 6, $title, 0, 0, 'C'); $this->Ln(0); $this->SetFont('Arial', '', 12); $this->Cell(0, 6, "Code: {$cat_perc} - {$cv}", 0, 1, 'L'); $this->Ln(2); //Ensure table header is output parent::Header(); }