{ $footer = "Page {$page} Generated on " . date("Y-m-d H:i:s"); $this->SetFont("Times", 'I', 9); $this->WriteAt(80, 258, $footer); } } // Instantiate the directory class and build the report. $pdf = new PDF_TaxReport(); // Read in report settings from database $rsConfig = mysql_query("SELECT cfg_name, IFNULL(cfg_value, cfg_default) AS value FROM config_cfg WHERE cfg_section='ChurchInfoReport'"); if ($rsConfig) { while (list($cfg_name, $cfg_value) = mysql_fetch_row($rsConfig)) { $pdf->{$cfg_name} = $cfg_value; } } $curY = $pdf->StartFirstPage(); $curX = 0; $currentDepositID = 0; $currentFundID = 0; $totalAmount = 0; $totalFund = array(); $countFund = 0; $countDeposit = 0; $countReport = 0; $currentFundAmount = 0; $currentDepositAmount = 0; $currentReportAmount = 0; // ********************** // Sort by Deposit Report // ********************** if ($sort == "deposit") {