コード例 #1
0
ファイル: ElectronicPaymentList.php プロジェクト: dschwen/CRM
		</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 
コード例 #2
0
ファイル: Functions.php プロジェクト: jwigal/churchinfo
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>";
}
コード例 #3
0
ファイル: ReminderReport.php プロジェクト: dschwen/CRM
 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;
 }
コード例 #4
0
ファイル: SelectDelete.php プロジェクト: dschwen/CRM
            }
            ?>
			<tr class="<?php 
            echo $sRowClass;
            ?>
">
				<td><?php 
            echo $plg_PledgeOrPayment;
            ?>
&nbsp;</td>
				<td><?php 
            echo $fundName;
            ?>
&nbsp;</td>
				<td><?php 
            echo MakeFYString($plg_FYID);
            ?>
&nbsp;</td>
				<td><?php 
            echo $plg_date;
            ?>
&nbsp;</td>
				<td><?php 
            echo $plg_amount;
            ?>
&nbsp;</td>
				<td><?php 
            echo $plg_schedule;
            ?>
&nbsp;</td>
				<td><?php 
コード例 #5
0
ファイル: FamilyView.php プロジェクト: jwigal/churchinfo
<?php 
if ($_SESSION['bCanvasser']) {
    ?>

<p align="center">
	<a class="SmallText" href="CanvassEditor.php?FamilyID=<?php 
    echo $fam_ID;
    ?>
&amp;FYID=<?php 
    echo $_SESSION['idefaultFY'];
    ?>
&amp;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 
コード例 #6
0
ファイル: ClassList.php プロジェクト: jwigal/churchinfo
}
//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);
コード例 #7
0
ファイル: VotingMembers.php プロジェクト: jwigal/churchinfo
        $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";
コード例 #8
0
ファイル: PledgeSummary.php プロジェクト: jwigal/churchinfo
 $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.
コード例 #9
0
ファイル: CanvassEditor.php プロジェクト: jwigal/emcommdb
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 == "") {