Ejemplo n.º 1
0
 }
 while ($aRow = mysql_fetch_array($rsReport)) {
     extract($aRow);
     if (!$fun_ID) {
         $fun_ID = -1;
         $fun_Name = "Undesignated";
     }
     if (!$fam_ID) {
         $fam_ID = -1;
         $fam_Name = "Unassigned";
     }
     // First Deposit Heading
     if (!$currentDepositID && $detail_level != "summary") {
         $sDepositTitle = "Deposit #{$plg_depID} ({$dep_Date})";
         $pdf->SetFont("Times", 'B', 10);
         $pdf->WriteAt(20, $curY, $sDepositTitle);
         $curY += 1.5 * $summaryIntervalY;
     }
     // Check for new fund
     if (($currentFundID != $fun_ID || $currentDepositID != $plg_depID) && $currentFundID && $detail_level != "summary") {
         // New Fund. Print Previous Fund Summary
         if ($countFund > 1) {
             $item = gettext("items");
         } else {
             $item = gettext("item");
         }
         $sFundSummary = "{$currentFundName} Total - {$countFund} {$item}:   \$" . number_format($currentFundAmount, 2, '.', ',');
         $curY += 2;
         $pdf->SetXY(20, $curY);
         $pdf->SetFont("Times", 'I', 10);
         $pdf->Cell(176, $summaryIntervalY, $sFundSummary, 0, 0, "R");