X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;ds=sidebyside;f=reporting%2Fincludes%2Fpdf_report.inc;h=fde0b441cdd8957286bfef2d9ad59c9dfdd30e81;hb=a5242af68e65661edb7175412444dce536a7f311;hp=115fa929d24ab9a34469ed9bffab0707fba42b7d;hpb=83640bde88f0114e162c509ed0b04cef9b4da64c;p=fa-stable.git diff --git a/reporting/includes/pdf_report.inc b/reporting/includes/pdf_report.inc index 115fa929..fde0b441 100644 --- a/reporting/includes/pdf_report.inc +++ b/reporting/includes/pdf_report.inc @@ -1,12 +1,22 @@ . +***********************************************************************/ /* $Revision$ */ $page_security = 8; //include_once($path_to_root . "reporting/includes/class.pdf.inc"); include_once(dirname(__FILE__)."/class.pdf.inc"); include_once(dirname(__FILE__)."/printer_class.inc"); -include_once($path_to_root . "admin/db/company_db.inc"); -include_once($path_to_root . "admin/db/printers_db.inc"); -include_once($path_to_root . "config.php"); +include_once($path_to_root . "/admin/db/company_db.inc"); +include_once($path_to_root . "/admin/db/printers_db.inc"); +include_once($path_to_root . "/config.php"); class FrontReport extends Cpdf { var $size; @@ -140,7 +150,7 @@ class FrontReport extends Cpdf function Info($params, $cols, $headers, $aligns, $cols2 = null, $headers2 = null, $aligns2 = null) { - global $app_title, $version, $power_by, $power_url, $path_to_root, $db_connections; + global $app_title, $version, $power_by, $power_url; $this->addinfo('Title', $this->title); $this->addinfo('Subject', $this->title); @@ -154,7 +164,6 @@ class FrontReport extends Cpdf $this->fiscal_year = sql2date($year['begin']) . " - " . sql2date($year['end']) . " " . "(" . $how . ")"; $this->company = get_company_prefs(); $this->user = $_SESSION["wa_current_user"]->name; - //$this->host = $db_connections[$_SESSION["wa_current_user"]->company]["host"]; $this->host = $_SERVER['SERVER_NAME']; $this->params = $params; $this->cols = $cols; @@ -258,14 +267,14 @@ class FrontReport extends Cpdf $header2type = true; if ($this->currency != $myrow['curr_code']) { - include($path_to_root . "reporting/includes/doctext2.inc"); + include($path_to_root . "/reporting/includes/doctext2.inc"); } else { - include($path_to_root . "reporting/includes/doctext.inc"); + include($path_to_root . "/reporting/includes/doctext.inc"); } - include($path_to_root . "reporting/includes/header2.inc"); + include($path_to_root . "/reporting/includes/header2.inc"); $this->row = $temp; } @@ -351,7 +360,7 @@ class FrontReport extends Cpdf function NewLine($l=1, $np=0) { $this->row -= ($l * $this->lineHeight); - if ($np > 0 && $this->row < $this->bottomMargin + ($np * $this->lineHeight)) + if ($this->row < $this->bottomMargin + ($np * $this->lineHeight)) $this->Header(); }