$this->WriteAt($this->leftX + 5, $curY, $fam_Country); $curY += $this->incrementY; } $curX = 100; $curY = 215; $this->WriteAt($curX, $curY, gettext("Gift Amount:")); $this->WriteAt($curX + 25, $curY, "_______________________________"); $curY += 2 * $this->incrementY; $this->WriteAt($curX, $curY, gettext("Gift Designation:")); $this->WriteAt($curX + 25, $curY, "_______________________________"); $curY = 200 + 11 * $this->incrementY; } } } // 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; } } // Loop through result array $currentFamilyID = 0; while ($row = mysql_fetch_array($rsReport)) { extract($row); // Check for minimum amount if ($iMinimum > 0) { $temp = "SELECT SUM(plg_amount) AS total_gifts FROM pledge_plg\n\t\t\t\tWHERE plg_FamID={$fam_ID} AND {$aSQLCriteria['1']}"; $rsMinimum = RunQuery($temp);
$this->WriteAt(80, $curY, "Fund"); $this->WriteAt(135, $curY, "Memo"); $this->WriteAt(181, $curY, "Amount"); $curY += 2 * $summaryIntervalY; } return $curY; } function FinishPage($page) { $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;