</td> <td> <?php if ($aut_EnableBankDraft) { echo "Bank ACH"; } elseif ($aut_EnableCreditCard) { echo "Credit Card"; } else { echo "Disabled"; } ?> </td> <td><?php echo MakeFYString($aut_FYID); ?> </td> <td><?php echo $aut_NextPayDate; ?> </td> <td><?php echo $aut_Amount; ?> </td> <td><?php echo $aut_Interval; ?> </td> <td><?php
function PrintFYIDSelect($iFYID, $selectName) { echo "<select name=\"" . $selectName . "\">"; echo "<option value=\"0\">" . gettext("Select Fiscal Year") . "</option>"; for ($fy = 1; $fy < CurrentFY() + 2; $fy++) { echo "<option value=\"" . $fy . "\""; if ($iFYID == $fy) { echo " selected"; } echo ">"; echo MakeFYString($fy); } echo "</select>"; }
function StartNewPage($fam_ID, $fam_Name, $fam_Address1, $fam_Address2, $fam_City, $fam_State, $fam_Zip, $fam_Country, $fundOnlyString, $iFYID) { $curY = $this->StartLetterPage($fam_ID, $fam_Name, $fam_Address1, $fam_Address2, $fam_City, $fam_State, $fam_Zip, $fam_Country); $curY += 2 * $this->incrementY; $blurb = $this->sReminder1 . MakeFYString($iFYID) . $fundOnlyString . "."; $this->WriteAt($this->leftX, $curY, $blurb); $curY += 2 * $this->incrementY; return $curY; }
} ?> <tr class="<?php echo $sRowClass; ?> "> <td><?php echo $plg_PledgeOrPayment; ?> </td> <td><?php echo $fundName; ?> </td> <td><?php echo MakeFYString($plg_FYID); ?> </td> <td><?php echo $plg_date; ?> </td> <td><?php echo $plg_amount; ?> </td> <td><?php echo $plg_schedule; ?> </td> <td><?php
<?php if ($_SESSION['bCanvasser']) { ?> <p align="center"> <a class="SmallText" href="CanvassEditor.php?FamilyID=<?php echo $fam_ID; ?> &FYID=<?php echo $_SESSION['idefaultFY']; ?> &linkBack=FamilyView.php?FamilyID=<?php echo $iFamilyID; ?> "><?php echo MakeFYString($_SESSION['idefaultFY']) . gettext(" Canvass Entry"); ?> </a> </p> <?php } ?> <br> <?php if ($_SESSION['bNotes']) { ?> <p> <b><?php
} //Get the data on this group $sSQL = "SELECT * FROM group_grp WHERE grp_ID = " . $iGroupID; $aGroupData = mysql_fetch_array(RunQuery($sSQL)); extract($aGroupData); $nameX = 20; $birthdayX = 70; $parentsX = 95; $phoneX = 170; $yTitle = 20; $yTeachers = 26; $yOffsetStartStudents = 6; $yIncrement = 4; $pdf->SetFont("Times", 'B', 16); $pdf->WriteAt($nameX, $yTitle, $grp_Name . " - " . $grp_Description); $FYString = MakeFYString($iFYID); $pdf->WriteAt($phoneX, $yTitle, $FYString); $pdf->SetLineWidth(0.5); $pdf->Line($nameX, $yTeachers - 0.75, 195, $yTeachers - 0.75); $ga = GetGroupArray($iGroupID); $numMembers = count($ga); $teacherString1 = ""; $teacherString2 = ""; $teacherCount = 0; $teachersThatFit = 4; $bFirstTeacher1 = true; $bFirstTeacher2 = true; for ($row = 0; $row < $numMembers; $row++) { extract($ga[$row]); if ($lst_OptionName == gettext("Teacher")) { $phone = $pdf->StripPhone($fam_HomePhone);
$this->Open(); $this->SetAutoPageBreak(false); $this->AddPage(); } } $pdf = new PDF_VotingMembers(); // 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; } } $topY = 10; $curY = $topY; $pdf->WriteAt($pdf->leftX, $curY, gettext("Voting members ") . MakeFYString($iFYID)); $curY += 10; $votingMemberCount = 0; // Get all the families $sSQL = "SELECT fam_ID, fam_Name FROM family_fam WHERE 1 ORDER BY fam_Name"; $rsFamilies = RunQuery($sSQL); // Loop through families while ($aFam = mysql_fetch_array($rsFamilies)) { extract($aFam); // Get pledge date ranges $donation = "no"; if ($iRequireDonationYears > 0) { $startdate = $iFYID + 1995 - $iRequireDonationYears; $startdate .= "-" . $iFYMonth . "-" . "01"; $enddate = $iFYID + 1995 + 1; $enddate .= "-" . $iFYMonth . "-" . "01";
$paymentX = 80; $pledgeCountX = 100; $paymentCountX = 120; $underpaidX = 145; $overpaidX = 170; $curY = 20; $pdf->WriteAt($pdf->leftX, $curY, $pdf->sChurchName); $curY += $pdf->incrementY; $pdf->WriteAt($pdf->leftX, $curY, $pdf->sChurchAddress); $curY += $pdf->incrementY; $pdf->WriteAt($pdf->leftX, $curY, $pdf->sChurchCity . ", " . $pdf->sChurchState . " " . $pdf->sChurchZip); $curY += $pdf->incrementY; $pdf->WriteAt($pdf->leftX, $curY, $pdf->sChurchPhone . " " . $pdf->sChurchEmail); $curY += 2 * $pdf->incrementY; $blurb = $pdf->sPledgeSummary1; $blurb .= MakeFYString($iFYID); $blurb .= $pdf->sPledgeSummary2 . date("Y-m-d") . "."; $pdf->WriteAt($nameX, $curY, $blurb); $curY += 3 * $pdf->incrementY; $pdf->SetFont('Times', 'B', 10); $pdf->WriteAt($nameX, $curY, "Fund"); $pdf->PrintRightJustified($pledgeX, $curY, "Pledges"); $pdf->PrintRightJustified($paymentX, $curY, "Payments"); $pdf->PrintRightJustified($pledgeCountX, $curY, "# Pledges"); $pdf->PrintRightJustified($paymentCountX, $curY, "# Payments"); $pdf->PrintRightJustified($underpaidX, $curY, "Overpaid"); $pdf->PrintRightJustified($overpaidX, $curY, "Underpaid"); $pdf->SetFont('Times', '', 10); $curY += $pdf->incrementY; mysql_data_seek($rsFunds, 0); // Change this to print out funds in active / alpha order.
require "Include/Functions.php"; // Security: User must have canvasser permission to use this form if (!$_SESSION['bCanvasser']) { Redirect("Menu.php"); exit; } require "Include/CanvassUtilities.php"; $iCanvassID = FilterInput($_GET["CanvassID"], 'int'); $linkBack = FilterInput($_GET["linkBack"]); $iFamily = FilterInput($_GET["FamilyID"]); $iFYID = FilterInput($_GET["FYID"]); //Get Family name $sSQL = "SELECT fam_Name FROM family_fam where fam_ID = " . $iFamily; $rsFamily = RunQuery($sSQL); extract(mysql_fetch_array($rsFamily)); $fyStr = MakeFYString($iFYID); $sPageTitle = gettext($fyStr . " Canvass Input for the " . $fam_Name . " family"); //Is this the second pass? if (isset($_POST["Submit"])) { $iCanvasser = FilterInput($_POST["Canvasser"]); if (!$iCanvasser) { $iCanvasser = 0; } $dDate = FilterInput($_POST["Date"]); $tPositive = FilterInput($_POST["Positive"]); $tCritical = FilterInput($_POST["Critical"]); $tInsightful = FilterInput($_POST["Insightful"]); $tFinancial = FilterInput($_POST["Financial"]); $tSuggestion = FilterInput($_POST["Suggestion"]); $bNotInterested = isset($_POST["NotInterested"]); if ($bNotInterested == "") {