本文整理汇总了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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}