Exemple #1
0
        }
        if ($this->sConfirm6 != "") {
            $curY += 2 * $this->incrementY;
            $this->WriteAt($this->leftX, $curY, $this->sConfirm6);
        }
        //If the Reports Settings Menu's sConfirmSigner is set, then display the closing statement.  Hide it otherwise.
        if ($this->sConfirmSigner) {
            $curY += 4 * $this->incrementY;
            $this->WriteAt($this->leftX, $curY, "Sincerely,");
            $curY += 4 * $this->incrementY;
            $this->WriteAt($this->leftX, $curY, $this->sConfirmSigner);
        }
    }
}
// Instantiate the directory class and build the report.
$pdf = new PDF_ConfirmReport();
$filename = "ConfirmReport" . date("Ymd") . ".pdf";
// 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;
    }
}
// Get the list of custom person fields
$sSQL = "SELECT person_custom_master.* FROM person_custom_master ORDER BY custom_Order";
$rsCustomFields = RunQuery($sSQL);
$numCustomFields = mysql_num_rows($rsCustomFields);
if ($numCustomFields > 0) {
    $iFieldNum = 0;
    while ($rowCustomField = mysql_fetch_array($rsCustomFields, MYSQL_ASSOC)) {