當前位置: 首頁>>代碼示例>>PHP>>正文


PHP PDFReport::Header方法代碼示例

本文整理匯總了PHP中PDFReport::Header方法的典型用法代碼示例。如果您正苦於以下問題:PHP PDFReport::Header方法的具體用法?PHP PDFReport::Header怎麽用?PHP PDFReport::Header使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在PDFReport的用法示例。


在下文中一共展示了PDFReport::Header方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: Header

 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();
 }
開發者ID:kashifnasim,項目名稱:nexexcel,代碼行數:32,代碼來源:outstanding.pdf.php

示例2: 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();
 }
開發者ID:kashifnasim,項目名稱:nexexcel,代碼行數:32,代碼來源:ledger.pdf.php

示例3: 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();
 }
開發者ID:kashifnasim,項目名稱:nexexcel,代碼行數:31,代碼來源:circular.php

示例4: 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();
 }
開發者ID:kashifnasim,項目名稱:nexexcel,代碼行數:34,代碼來源:sales_item_rate_compare.php

示例5: 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();
 }
開發者ID:kashifnasim,項目名稱:nexexcel,代碼行數:28,代碼來源:party_contact.php

示例6: 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();
 }
開發者ID:kashifnasim,項目名稱:nexexcel,代碼行數:29,代碼來源:item_profit.php

示例7: 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();
 }
開發者ID:kashifnasim,項目名稱:nexexcel,代碼行數:10,代碼來源:purchase_return.php

示例8: 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();
 }
開發者ID:kashifnasim,項目名稱:nexexcel,代碼行數:12,代碼來源:order_invoice.php

示例9: 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();
 }
開發者ID:kashifnasim,項目名稱:nexexcel,代碼行數:13,代碼來源:missing_challan.php

示例10: 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();
 }
開發者ID:kashifnasim,項目名稱:nexexcel,代碼行數:14,代碼來源:rpt_sales_comparision.php

示例11: 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();
 }
開發者ID:kashifnasim,項目名稱:nexexcel,代碼行數:16,代碼來源:daily_sales.php

示例12: 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();
 }
開發者ID:kashifnasim,項目名稱:nexexcel,代碼行數:17,代碼來源:sales_invoice.php

示例13: 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();
 }
開發者ID:kashifnasim,項目名稱:nexexcel,代碼行數:18,代碼來源:ledger.pdf.php

示例14: 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();
 }
開發者ID:kashifnasim,項目名稱:nexexcel,代碼行數:20,代碼來源:route_wise_sales.php

示例15: 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();
 }
開發者ID:kashifnasim,項目名稱:nexexcel,代碼行數:41,代碼來源:account_ledger.php


注:本文中的PDFReport::Header方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。