Example #1
0
    if ($numlines > 0) {
        if (strtoupper($sLastLetter) != strtoupper(substr($pdf->sRecordName, 0, 1))) {
            $pdf->Check_Lines($numlines + 2, 0, 0);
            $sLastLetter = strtoupper(substr($pdf->sRecordName, 0, 1));
            $pdf->Add_Header($sLastLetter);
        }
        // if photo include pass the id, otherwise 0 equates to no family/pers
        $fid = 0;
        $pid = 0;
        if ($bDirPhoto) {
            if ($isFamily) {
                $fid = $fam_ID;
            } else {
                $pid = $per_ID;
            }
        }
        $pdf->Add_Record($pdf->sRecordName, $OutStr, $numlines, $fid, $pid);
        // another hack: added +1
    }
}
if ($mysqlversion == 3 && $mysqlsubversion >= 22) {
    $sSQL = "DROP TABLE IF EXISTS tmp;";
    mysql_query($sSQL, $cnInfoCentral);
}
header('Pragma: public');
// Needed for IE when using a shared SSL certificate
if ($iPDFOutputType == 1) {
    $pdf->Output("Directory-" . date("Ymd-Gis") . ".pdf", true);
} else {
    $pdf->Output();
}
Example #2
0
                $currentData = trim($aRow[$aPropRow['prop_Field']]);
                $OutStr .= $aPropRow['prop_Name'] . ": " . displayCustomField($aPropRow['type_ID'], $currentData, $aPropRow['prop_Special']) . "\n";
            }
        }
        mysql_data_seek($rsProps, 0);
    }
    // Count the number of lines in the output string
    $numlines = 1;
    $offset = 0;
    while ($result = strpos($OutStr, "\n", $offset)) {
        $offset = $result + 1;
        $numlines++;
    }
    //if ($numlines > 1)
    //{
    /* if (strtoupper($sLastLetter) != strtoupper(substr($pdf->sFamily,0,1)))
    			{
    				$pdf->Check_Lines($numlines+2);
    				$sLastLetter = strtoupper(substr($pdf->sFamily,0,1));
    				$pdf->Add_Header($sLastLetter);
    			} */
    $pdf->Add_Record($pdf->sFamily, $OutStr, $numlines);
    // }
}
header('Pragma: public');
// Needed for IE when using a shared SSL certificate
if ($iPDFOutputType == 1) {
    $pdf->Output("GroupDirectory-" . date("Ymd-Gis") . ".pdf", "D");
} else {
    $pdf->Output();
}
Example #3
0
    $sTitle = "Pengalaman Gerejawi";
    if (is_null($c20)) {
        $sValue = "________________________________________________ \n________________________________________________\n________________________________________________\n________________________________________________\n________________________________________________ ";
    } else {
        $sValue = $c20;
    }
    $pdf->Add_Record($sTitle, $sValue, 5);
    $sTitle = "Pengalaman Non-Gerejawi";
    if (is_null($c28)) {
        $sValue = "________________________________________________ \n________________________________________________\n________________________________________________\n________________________________________________\n________________________________________________ ";
    } else {
        $sValue = $c28;
    }
    $pdf->Add_Record($sTitle, $sValue, 5);
    $sTitle = "Program Pembinaan yang pernah diikuti";
    if (is_null($c27)) {
        $sValue = "________________________________________________ \n________________________________________________\n________________________________________________\n________________________________________________\n________________________________________________ ";
    } else {
        $sValue = $c27;
    }
    $pdf->Add_Record($sTitle, $sValue, 6);
}
$pdf->Pengesahan($aName, $aNoInd, $aFamilyRole);
if ($iPDFOutputType == 1) {
    $pdf->Output("KK-" . $fam_Name . "-" . date("Ymd") . ".pdf", true);
} else {
    $pdf->Output();
}
?>