Exemplo n.º 1
0
 public function strIItemHTMLSummary($item)
 {
     //---------------------------------------------------------------------
     //
     //---------------------------------------------------------------------
     $strOut = '';
     $params = array('enumStyle' => 'terse');
     $clsRpt = new generic_rpt($params);
     $clsRpt->setEntrySummary();
     $lIItemID = $item->lKeyID;
     $strOut .= $clsRpt->openReport('', '');
     $strOut .= $clsRpt->openRow(false) . $clsRpt->writeLabel('Item Name:') . $clsRpt->writeCell(strLinkView_InventoryItem($lIItemID, 'View item', true) . htmlspecialchars($item->strItemName) . '  (item ID: ' . str_pad($lIItemID, 5, '0', STR_PAD_LEFT) . ')') . $clsRpt->closeRow();
     $strOut .= $clsRpt->openRow(false) . $clsRpt->writeLabel('Category:') . $clsRpt->writeCell(htmlspecialchars($item->strCatBreadCrumb)) . $clsRpt->closeRow();
     $strOut .= $clsRpt->openRow(false) . $clsRpt->writeLabel('Responsible Party:') . $clsRpt->writeCell(htmlspecialchars($item->strRParty)) . $clsRpt->closeRow();
     $strOut .= $clsRpt->closeReport('<br>');
     return $strOut;
 }
 public function sponsorshipHTMLSummary()
 {
     //-----------------------------------------------------------------------
     // assumes user has called $clsSpon->sponsorInfoViaID($lSID);
     //-----------------------------------------------------------------------
     global $gdteNow, $genumDateFormat;
     $params = array('enumStyle' => 'terse');
     $clsRpt = new generic_rpt($params);
     $clsRpt->setEntrySummary();
     $sponRec = $this->sponInfo[0];
     $bBiz = $sponRec->bSponBiz;
     if ($bBiz) {
         $strLinkPeopleBiz = strLinkView_BizRecord($sponRec->lForeignID, 'View business record', true);
         $strLabel = '(business ID: ';
     } else {
         $strLinkPeopleBiz = strLinkView_PeopleRecord($sponRec->lForeignID, 'View people record', true);
         $strLabel = '(people ID: ';
     }
     $lSponID = $sponRec->lKeyID;
     $strOut = $clsRpt->openReport('', '') . $clsRpt->openRow(false) . $clsRpt->writeLabel(' Sponsor:') . $clsRpt->writeCell($strLinkPeopleBiz . '&nbsp;' . $sponRec->strSponSafeNameFL . '&nbsp;&nbsp;' . $strLabel . str_pad($sponRec->lForeignID, 5, '0', STR_PAD_LEFT) . ')') . $clsRpt->closeRow() . $clsRpt->openRow(false) . $clsRpt->writeLabel('Sponsorship:') . $clsRpt->writeCell(strLinkView_Sponsorship($lSponID, 'View sponsorship', true) . '&nbsp;' . htmlspecialchars($sponRec->strSponProgram) . '&nbsp;&nbsp;(sponsor ID: ' . str_pad($lSponID, 5, '0', STR_PAD_LEFT) . ')') . $clsRpt->closeRow();
     if (is_null($sponRec->lClientID)) {
         $strClient = '<i>not set</i>';
     } else {
         $strClient = strLinkView_ClientRecord($sponRec->lClientID, 'View client record', true) . '&nbsp;' . $sponRec->strClientSafeNameFL . '&nbsp;(client ID: ' . str_pad($sponRec->lClientID, 5, '0', STR_PAD_LEFT) . ')';
     }
     $strOut .= $clsRpt->openRow(false) . $clsRpt->writeLabel('Client:') . $clsRpt->writeCell($strClient) . $clsRpt->closeRow() . $clsRpt->openRow(false) . $clsRpt->writeLabel('Status:') . $clsRpt->writeCell($sponRec->bInactive ? 'Inactive since ' . date($genumDateFormat, $sponRec->dteInactive) : 'Active') . $clsRpt->closeRow() . $clsRpt->closeReport('<br>');
     return $strOut;
 }
 public function autoChargeHTMLSummary($clsACEntry)
 {
     //-----------------------------------------------------------------------
     // assumes user has called $clsSCP->loadAutoChargeViaACID($lACID, $clsACEntry);
     //-----------------------------------------------------------------------
     global $gdteNow, $genumDateFormat;
     $params = array('enumStyle' => 'terse');
     $clsRpt = new generic_rpt($params);
     $clsRpt->setEntrySummary();
     $lACID = $clsACEntry->lKeyID;
     $strOut = $clsRpt->openReport('', '') . $clsRpt->openRow(false) . $clsRpt->writeLabel('AutoCharge ID:') . $clsRpt->writeCell(str_pad($lACID, 5, '0', STR_PAD_LEFT)) . $clsRpt->closeRow() . $clsRpt->openRow(false) . $clsRpt->writeLabel('Month of Charge:') . $clsRpt->writeCell($clsACEntry->lMonth . '/' . $clsACEntry->lYear) . $clsRpt->closeRow() . $clsRpt->openRow(false) . $clsRpt->writeLabel('Charges Created:') . $clsRpt->writeCell(date($genumDateFormat . ' H:i:s', $clsACEntry->dteOrigin) . ' by ' . $clsACEntry->strUserSafe) . $clsRpt->closeRow() . $clsRpt->closeReport('');
     return $strOut;
 }
Exemplo n.º 4
0
 public function strAuctionHTMLSummary()
 {
     //-----------------------------------------------------------------------
     // assumes user has called $cAuction->loadAuctionByAucID($lAuctionID);
     //-----------------------------------------------------------------------
     global $genumDateFormat;
     $params = array('enumStyle' => 'terse');
     $clsRpt = new generic_rpt($params);
     $clsRpt->setEntrySummary();
     $auction =& $this->auctions[0];
     $lAuctionID = $auction->lKeyID;
     $strOut = $clsRpt->openReport('', '') . $clsRpt->openRow(false) . $clsRpt->writeLabel('Auction Name:') . $clsRpt->writeCell($auction->strSafeName) . $clsRpt->closeRow() . $clsRpt->openRow(false) . $clsRpt->writeLabel('Auction ID:') . $clsRpt->writeCell(str_pad($lAuctionID, 5, '0', STR_PAD_LEFT) . '&nbsp;' . strLinkView_AuctionRecord($lAuctionID, 'View auction record', true)) . $clsRpt->closeRow() . $clsRpt->writeLabel('Overview:') . $clsRpt->writeCell(strLinkView_AuctionOverview($lAuctionID, 'Overview', true)) . $clsRpt->closeRow() . $clsRpt->writeLabel('Packages:') . $clsRpt->writeCell(strLinkView_AuctionPackages($lAuctionID, 'View packages for this auction', true)) . $clsRpt->closeRow() . $clsRpt->openRow(false) . $clsRpt->writeLabel('Date:') . $clsRpt->writeCell(date($genumDateFormat, $auction->dteAuction)) . $clsRpt->closeRow() . $clsRpt->closeReport('<br>');
     return $strOut;
 }
Exemplo n.º 5
0
 public function strItemHTMLSummary()
 {
     //-----------------------------------------------------------------------
     // assumes user has called $cItems->loadItemViaItemID($lItemID);
     //-----------------------------------------------------------------------
     global $genumDateFormat;
     $params = array('enumStyle' => 'terse');
     $clsRpt = new generic_rpt($params);
     $clsRpt->setEntrySummary();
     $item =& $this->items[0];
     $lAuctionID = $item->lAuctionID;
     $lPackageID = $item->lPackageID;
     $lItemID = $item->lKeyID;
     $strOut = $clsRpt->openReport('', '') . $clsRpt->openRow(false) . $clsRpt->writeLabel('Auction Name:') . $clsRpt->writeCell(htmlspecialchars($item->strAuctionName)) . $clsRpt->closeRow() . $clsRpt->openRow(false) . $clsRpt->writeLabel('Auction ID:') . $clsRpt->writeCell(str_pad($lAuctionID, 5, '0', STR_PAD_LEFT) . '&nbsp;' . strLinkView_AuctionRecord($lAuctionID, 'View auction record', true)) . $clsRpt->closeRow() . $clsRpt->openRow(false) . $clsRpt->writeLabel('Package Name:') . $clsRpt->writeCell(htmlspecialchars($item->strPackageName)) . $clsRpt->closeRow() . $clsRpt->openRow(false) . $clsRpt->writeLabel('Package ID:') . $clsRpt->writeCell(str_pad($lPackageID, 5, '0', STR_PAD_LEFT) . '&nbsp;' . strLinkView_AuctionPackageRecord($lPackageID, 'View auction package record', true)) . $clsRpt->closeRow() . $clsRpt->closeReport('<br>');
     return $strOut;
 }
Exemplo n.º 6
0
 public function providerHTMLSummary($provider)
 {
     //---------------------------------------------------------------------
     //
     //---------------------------------------------------------------------
     $lProviderID = $provider->lKeyID;
     $strOut = '';
     $params = array('enumStyle' => 'terse');
     $clsRpt = new generic_rpt($params);
     $clsRpt->setEntrySummary();
     $strOut .= $clsRpt->openReport('', '');
     $strOut .= $clsRpt->openRow(false) . $clsRpt->writeLabel('Funder/Provider Name:') . $clsRpt->writeCell(htmlspecialchars($provider->strGrantOrg)) . $clsRpt->closeRow();
     $strOut .= $clsRpt->openRow(false) . $clsRpt->writeLabel('Provider ID:') . $clsRpt->writeCell(strLinkView_GrantProvider($lProviderID, 'View Funder/Provider Record', true) . '&nbsp;' . str_pad($lProviderID, 5, '0', STR_PAD_LEFT)) . $clsRpt->closeRow();
     $strOut .= $clsRpt->closeReport('<br>');
     return $strOut;
 }
Exemplo n.º 7
0
 public function strBizHTMLSummary()
 {
     //-----------------------------------------------------------------------
     // assumes user has called $clsBiz->loadBizRecsViaBID($lBID)
     //-----------------------------------------------------------------------
     $params = array('enumStyle' => 'terse');
     $clsRpt = new generic_rpt($params);
     $clsRpt->setEntrySummary();
     $lBID = $this->lBID;
     $biz =& $this->bizRecs[0];
     $strOut = $clsRpt->openReport('', '') . $clsRpt->openRow(false) . $clsRpt->writeLabel('Business Name:') . $clsRpt->writeCell(strLinkView_BizRecord($lBID, 'View business record', true) . '&nbsp;' . $biz->strSafeName . '&nbsp;&nbsp;(business ID: ' . str_pad($lBID, 5, '0', STR_PAD_LEFT) . ')') . $clsRpt->closeRow() . $clsRpt->openRow(false) . $clsRpt->writeLabel('Address:') . $clsRpt->writeCell($biz->strAddress) . $clsRpt->closeRow() . $clsRpt->openRow(false) . $clsRpt->writeLabel('Industry:') . $clsRpt->writeCell(htmlspecialchars($biz->strIndustry)) . $clsRpt->closeRow() . $clsRpt->closeReport('<br>');
     return $strOut;
 }
 function strHTMLPPTestSummaryDisplay()
 {
     //---------------------------------------------------------------------
     //  caller must first load the test
     //---------------------------------------------------------------------
     $params = array('enumStyle' => 'terse');
     $clsRpt = new generic_rpt($params);
     $strOut = '';
     $pptest =& $this->pptests[0];
     $lPPTestID = $pptest->lKeyID;
     $clsRpt->setEntrySummary();
     $strOut .= $clsRpt->openReport();
     $strOut .= $clsRpt->openRow() . $clsRpt->writeLabel('Pre/Post Test:', '115pt') . $clsRpt->writeCell(htmlspecialchars($pptest->strTestName) . '&nbsp;' . strLinkView_CPPTestView($lPPTestID, 'View pre/post test', true)) . $clsRpt->closeRow();
     $strOut .= $clsRpt->openRow() . $clsRpt->writeLabel('Category:') . $clsRpt->writeCell(htmlspecialchars($pptest->strPPTestCat), '350pt;') . $clsRpt->closeRow();
     $strOut .= $clsRpt->openRow() . $clsRpt->writeLabel('Pre/Post Test ID:', '115pt') . $clsRpt->writeCell(str_pad($lPPTestID, 5, '0', STR_PAD_LEFT)) . $clsRpt->closeRow();
     $strOut .= $clsRpt->openRow() . $clsRpt->writeLabel('Description:') . $clsRpt->writeCell(nl2br(htmlspecialchars($pptest->strDescription)), '350pt;') . $clsRpt->closeRow();
     $strOut .= $clsRpt->openRow() . $clsRpt->writeLabel('Questions:') . $clsRpt->writeCell($pptest->lNumQuest . '&nbsp;' . strLinkView_CPPQuestions($lPPTestID, 'View questions', true), '') . $clsRpt->closeRow();
     $strOut .= $clsRpt->openRow() . $clsRpt->writeLabel('Status:') . $clsRpt->writeCell(($pptest->bHidden ? 'Hidden' : 'Visible') . ' / ' . ($pptest->bPublished ? 'Published' : 'Not published'), '350pt;') . $clsRpt->closeRow();
     $strOut .= $clsRpt->closeReport();
     return $strOut;
 }
Exemplo n.º 9
0
 public function volEventHTMLSummary($idx)
 {
     //-----------------------------------------------------------------------
     // assumes user has called $clsEvent->loadEventsViaEID($lEventID);
     //-----------------------------------------------------------------------
     global $gdteNow, $genumDateFormat;
     $clsVE = $this->events[$idx];
     $lEventID = $clsVE->lKeyID;
     $params = array('enumStyle' => 'terse');
     $clsRpt = new generic_rpt($params);
     $clsRpt->setEntrySummary();
     return $clsRpt->openReport('', '') . $clsRpt->openRow(false) . $clsRpt->writeLabel('Event ID:') . $clsRpt->writeCell(strLinkView_VolEvent($lEventID, 'View event', true) . '&nbsp;' . str_pad($lEventID, 5, '0', STR_PAD_LEFT)) . $clsRpt->closeRow() . $clsRpt->openRow(false) . $clsRpt->writeLabel('Volunteer Event:') . $clsRpt->writeCell($clsVE->strEventName) . $clsRpt->closeRow() . $clsRpt->openRow() . $clsRpt->writeLabel('Start Date:') . $clsRpt->writeCell(date($genumDateFormat . ' (D)', $clsVE->dteEventStart)) . $clsRpt->closeRow() . $clsRpt->openRow() . $clsRpt->writeLabel('End Date:') . $clsRpt->writeCell(date($genumDateFormat . ' (D)', $clsVE->dteEventEnd)) . $clsRpt->closeRow() . $clsRpt->closeReport('<br>');
 }
Exemplo n.º 10
0
 public function depositHTMLSummary()
 {
     //-----------------------------------------------------------------------
     // assumes user has called $this->clsDeposits->loadDepositReports();
     //-----------------------------------------------------------------------
     global $genumDateFormat;
     $strOut = '';
     $params = array('enumStyle' => 'terse');
     $clsRpt = new generic_rpt($params);
     $clsRpt->setEntrySummary();
     $deposit =& $this->deposits[0];
     $lDepositID = $deposit->lKeyID;
     $strOut .= $clsRpt->openReport('', '') . $clsRpt->openRow(false) . $clsRpt->writeLabel('Deposit ID:') . $clsRpt->writeCell(strLinkView_DepositEntry($lDepositID, 'View Deposit', true) . ' ' . str_pad($lDepositID, 5, '0', STR_PAD_LEFT)) . $clsRpt->closeRow() . "\n" . $clsRpt->openRow(false) . $clsRpt->writeLabel('Deposit Range:') . $clsRpt->writeCell(date($genumDateFormat, $deposit->dteStart) . ' - ' . date($genumDateFormat, $deposit->dteEnd)) . $clsRpt->closeRow() . "\n" . $clsRpt->openRow(false) . $clsRpt->writeLabel('Created:') . $clsRpt->writeCell(date($genumDateFormat, $deposit->dteOrigin) . ' by ' . htmlspecialchars($deposit->strCFName . ' ' . $deposit->strCLName)) . $clsRpt->closeRow() . "\n" . $clsRpt->openRow(false) . $clsRpt->writeLabel('# Entries:') . $clsRpt->writeCell(number_format($this->lNumGiftsViaDeposit($lDepositID, $curTot)) . ' (' . $deposit->strCurrencySymbol . ' ' . $curTot . ')') . $clsRpt->closeRow() . "\n" . $clsRpt->openRow(false) . $clsRpt->writeLabel('ACO:') . $clsRpt->writeCell($deposit->strCountryName . '&nbsp;' . $deposit->strFlagImg) . $clsRpt->closeRow() . "\n";
     $strOut .= $clsRpt->closeReport("<br>\n");
     return $strOut;
 }
Exemplo n.º 11
0
 function strUFTableSummaryDisplay($bLite)
 {
     //---------------------------------------------------------------------
     //
     //---------------------------------------------------------------------
     $params = array('enumStyle' => 'terse');
     $clsRpt = new generic_rpt($params);
     $strOut = '';
     $utable =& $this->userTables[0];
     $clsRpt->setEntrySummary();
     $strOut .= $clsRpt->openReport();
     if ($bLite) {
         $strLink = '&nbsp;' . strLinkView_UFFields($this->lTableID, 'View table fields', true, '');
     } else {
         $strLink = '';
     }
     $strOut .= $clsRpt->openRow() . $clsRpt->writeLabel('Table:', '75pt') . $clsRpt->writeCell($strLink . ' ' . htmlspecialchars($utable->strUserTableName)) . $clsRpt->closeRow();
     $strOut .= $clsRpt->openRow() . $clsRpt->writeLabel('Table ID:', '75pt') . $clsRpt->writeCell(str_pad($utable->lKeyID, 5, '0', STR_PAD_LEFT), '', '', 1, 1, ' id="pTabSummaryID" ') . $clsRpt->closeRow();
     $strOut .= $clsRpt->openRow() . $clsRpt->writeLabel('Parent:') . $clsRpt->writeCell($utable->enumTType) . $clsRpt->closeRow();
     $strOut .= $clsRpt->openRow() . $clsRpt->writeLabel('Type:') . $clsRpt->writeCell($utable->bMultiEntry ? 'Multi-record' : 'Single-entry') . $clsRpt->closeRow();
     if (!$bLite) {
         $strOut .= $clsRpt->openRow() . $clsRpt->writeLabel('Description:') . $clsRpt->writeCell(nl2br(htmlspecialchars($this->strTableDescription))) . $clsRpt->closeRow();
     }
     $strOut .= $clsRpt->closeReport();
     return $strOut;
 }
Exemplo n.º 12
0
 public function packageHTMLSummary()
 {
     //-----------------------------------------------------------------------
     // assumes user has called $cPackages->loadPackageByPacID($lPackageID);
     //-----------------------------------------------------------------------
     global $genumDateFormat;
     $params = array('enumStyle' => 'terse');
     $clsRpt = new generic_rpt($params);
     $clsRpt->setEntrySummary();
     $package =& $this->packages[0];
     $lAuctionID = $package->lAuctionID;
     $lPackageID = $package->lKeyID;
     $strOut = $clsRpt->openReport('', '') . $clsRpt->openRow(false) . $clsRpt->writeLabel('Auction Name:') . $clsRpt->writeCell(htmlspecialchars($package->strAuctionName)) . $clsRpt->closeRow() . $clsRpt->openRow(false) . $clsRpt->writeLabel('Overview:') . $clsRpt->writeCell(strLinkView_AuctionOverview($lAuctionID, 'Auction overview', true)) . $clsRpt->closeRow() . $clsRpt->openRow(false) . $clsRpt->writeLabel('Auction ID:') . $clsRpt->writeCell(str_pad($lAuctionID, 5, '0', STR_PAD_LEFT) . '&nbsp;' . strLinkView_AuctionRecord($lAuctionID, 'View auction record', true)) . $clsRpt->closeRow() . $clsRpt->openRow(false) . $clsRpt->writeLabel('Package Name:') . $clsRpt->writeCell($package->strPackageSafeName) . $clsRpt->closeRow() . $clsRpt->openRow(false) . $clsRpt->writeLabel('Package ID:') . $clsRpt->writeCell(str_pad($lPackageID, 5, '0', STR_PAD_LEFT) . '&nbsp;' . strLinkView_AuctionPackageRecord($lPackageID, 'View auction package record', true)) . $clsRpt->closeRow();
     if (is_null($package->lBidWinnerID)) {
         $strOut .= $clsRpt->openRow(false) . $clsRpt->writeLabel('Bid Winner:') . $clsRpt->writeCell('<i>Not set</i>') . $clsRpt->closeRow();
     } else {
         if ($package->bw_bBiz) {
             $strLink = strLinkView_BizRecord($package->lBidWinnerID, 'View business record', true);
         } else {
             $strLink = strLinkView_PeopleRecord($package->lBidWinnerID, 'View people record', true);
         }
         $strOut .= $clsRpt->openRow(false) . $clsRpt->writeLabel('Bid Winner:') . $clsRpt->writeCell($package->bw_strSafeName . '&nbsp;' . $strLink) . $clsRpt->closeRow();
     }
     $strOut .= $clsRpt->closeReport('<br>');
     return $strOut;
 }
<?php

global $genumDateFormat;
$params = array('enumStyle' => 'entrySummary');
$clsRpt = new generic_rpt($params);
$clsRpt->setEntrySummary();
echoT($clsRpt->openReport() . $clsRpt->openRow() . $clsRpt->writeLabel('Group:', 70, '', 1, 1, '') . $clsRpt->writeCell(htmlspecialchars($strGroupName), 120, '', 1, 1, '') . $clsRpt->closeRow() . $clsRpt->openRow() . $clsRpt->writeLabel('Group type:') . $clsRpt->writeCell(htmlspecialchars($enumGroupType)) . $clsRpt->closeRow() . $clsRpt->openRow() . $clsRpt->writeLabel('Notes:') . $clsRpt->writeCell(nl2br(htmlspecialchars($strGroupNotes))) . $clsRpt->closeRow() . $clsRpt->openRow() . $clsRpt->writeLabel('Group expiration:') . $clsRpt->writeCell(date($genumDateFormat, $dteExpire)) . $clsRpt->closeRow() . $clsRpt->closeReport());
Exemplo n.º 14
0
 public function giftHTMLSummary()
 {
     //-----------------------------------------------------------------------
     // assumes user has called $clsGift->loadGift($lGID);
     //-----------------------------------------------------------------------
     global $genumDateFormat;
     $strOut = '';
     $params = array('enumStyle' => 'terse');
     $clsRpt = new generic_rpt($params);
     $clsRpt->setEntrySummary();
     $gift =& $this->gifts[0];
     $lGID = $gift->gi_lKeyID;
     $lFID = $gift->gi_lForeignID;
     $lSponID = $gift->gi_lSponsorID;
     if ($gift->pe_bBiz) {
         $strLinkDonor = strLinkView_BizRecord($lFID, 'View business/organization record', true);
     } else {
         $strLinkDonor = strLinkView_PeopleRecord($lFID, 'View business/organization record', true);
     }
     $strOut .= $clsRpt->openReport('', '') . $clsRpt->openRow(false) . $clsRpt->writeLabel('Gift ID:') . $clsRpt->writeCell(strLinkView_GiftsRecord($lGID, 'View Gift Record', true) . ' ' . str_pad($lGID, 5, '0', STR_PAD_LEFT)) . $clsRpt->closeRow() . "\n" . $clsRpt->openRow(false) . $clsRpt->writeLabel('Donor:') . $clsRpt->writeCell($strLinkDonor . ' ' . $gift->strSafeName) . $clsRpt->closeRow() . "\n" . $clsRpt->openRow(false) . $clsRpt->writeLabel('Amount:') . $clsRpt->writeCell($gift->strFormattedAmnt) . $clsRpt->closeRow() . "\n" . $clsRpt->openRow(false) . $clsRpt->writeLabel('Date:') . $clsRpt->writeCell(date($genumDateFormat, $gift->gi_dteDonation)) . $clsRpt->closeRow() . "\n" . $clsRpt->openRow(false) . $clsRpt->writeLabel('Account/Campaign:') . $clsRpt->writeCell(htmlspecialchars($gift->ga_strAccount . ' / ' . $gift->gc_strCampaign)) . $clsRpt->closeRow() . "\n";
     if (!is_null($lSponID)) {
         $strOut .= $clsRpt->openRow(false) . $clsRpt->writeLabel('Sponsor ID:') . $clsRpt->writeCell(strLinkView_Sponsorship($lSponID, 'View sponsorship record', true) . ' ' . str_pad($lSponID, 5, '0', STR_PAD_LEFT)) . $clsRpt->closeRow() . "\n";
     }
     $strOut .= $clsRpt->closeReport("<br>\n");
     return $strOut;
 }
Exemplo n.º 15
0
 function strHTMLProgramSummaryDisplay($enumTType)
 {
     //---------------------------------------------------------------------
     //  caller must first load the client program record
     //---------------------------------------------------------------------
     $params = array('enumStyle' => 'terse');
     $clsRpt = new generic_rpt($params);
     $strOut = '';
     $cprog =& $this->cprogs[0];
     $lCProgID = $cprog->lKeyID;
     $bEnrollment = $enumTType == CENUM_CONTEXT_CPROGENROLL;
     $clsRpt->setEntrySummary();
     $strOut .= $clsRpt->openReport();
     $strOut .= $clsRpt->openRow() . $clsRpt->writeLabel('Client Program:', '115pt') . $clsRpt->writeCell(htmlspecialchars($cprog->strProgramName) . '&nbsp;' . strLinkView_CProgram($lCProgID, 'View program record', true)) . $clsRpt->closeRow();
     $strOut .= $clsRpt->openRow() . $clsRpt->writeLabel('Table Type:', '115pt') . $clsRpt->writeCell($bEnrollment ? $cprog->strSafeEnrollLabel : $cprog->strSafeAttendLabel) . $clsRpt->closeRow();
     $strOut .= $clsRpt->openRow() . $clsRpt->writeLabel('Client Program ID:', '115pt') . $clsRpt->writeCell(str_pad($lCProgID, 5, '0', STR_PAD_LEFT)) . $clsRpt->closeRow();
     $strOut .= $clsRpt->openRow() . $clsRpt->writeLabel('Description:') . $clsRpt->writeCell(nl2br(htmlspecialchars($cprog->strDescription)), '350pt;') . $clsRpt->closeRow();
     $strOut .= $clsRpt->closeReport();
     return $strOut;
 }
Exemplo n.º 16
0
 public function strPatientHTMLSummary($idx)
 {
     /*-----------------------------------------------------------------------
           assumes user has called $clsClient->loadClientsVia...()
     
           caller must include
                 $this->load->helper ('img_docs/image_doc');
        -----------------------------------------------------------------------*/
     $strOut = '';
     $params = array('enumStyle' => 'terse');
     $clsRpt = new generic_rpt($params);
     $clsRpt->setEntrySummary();
     $clsC = $this->patients[$idx];
     $lCID = $clsC->lKeyID;
     $strOut .= $clsRpt->openReport('', '');
     $strOut .= $clsRpt->openRow(false) . $clsRpt->writeLabel('Patient Name:') . $clsRpt->writeCell(strLinkView_PatientRecord($lCID, 'View Client Record', true) . '&nbsp;' . $clsC->strSafeName . '&nbsp;&nbsp;(client ID: ' . str_pad($lCID, 5, '0', STR_PAD_LEFT) . ')') . $clsRpt->closeRow();
     $strOut .= $clsRpt->openRow(false) . $clsRpt->writeLabel('Date of Birth:') . $clsRpt->writeCell($clsC->dteBirth) . $clsRpt->closeRow();
     /*
           $strOut .=
                $clsRpt->openRow   (false)
               .$clsRpt->writeLabel('Gender:')
               .$clsRpt->writeCell ($clsC->enumGender)
               .$clsRpt->closeRow  ();
     */
     $strOut .= $clsRpt->closeReport('<br>');
     return $strOut;
 }
Exemplo n.º 17
0
 public function strClientHTMLSummary($idx)
 {
     /*-----------------------------------------------------------------------
           assumes user has called $clsClient->loadClientsVia...()
     
           caller must include
                 $this->load->model  ('img_docs/mimage_doc',   'clsImgDoc');
                 $this->load->helper ('img_docs/image_doc');
        -----------------------------------------------------------------------*/
     $strOut = '';
     $params = array('enumStyle' => 'terse');
     $clsRpt = new generic_rpt($params);
     $clsRpt->setEntrySummary();
     $clsC = $this->clients[$idx];
     $lCID = $clsC->lKeyID;
     $cImg = new mimage_doc();
     $cImg->bLoadContext = false;
     $cImg->loadProfileImage(CENUM_CONTEXT_CLIENT, $lCID);
     $bProfileImgAvail = $cImg->lNumImageDocs > 0;
     if ($bProfileImgAvail) {
         $imgDoc =& $cImg->imageDocs[0];
         $strTNImg = strLinkHTMLTag(CENUM_CONTEXT_CLIENT, CENUM_IMGDOC_ENTRY_IMAGE, $lCID, $imgDoc->strSystemFN, 'View in new window', true, '') . strImageHTMLTag(CENUM_CONTEXT_CLIENT, CENUM_IMGDOC_ENTRY_IMAGE, $lCID, $imgDoc->strSystemThumbFN, '', false, ' style="border: 1px solid black; height: 80px;" ') . '</a>';
         $strOut .= '<table border="0"><tr><td style="vertical-align: top;">';
     } else {
     }
     $strOut .= $clsRpt->openReport('', '');
     $strOut .= $clsRpt->openRow(false) . $clsRpt->writeLabel($clsC->cv_strVocClientS . ' Name:') . $clsRpt->writeCell(strLinkView_ClientRecord($lCID, 'View Client Record', true) . '&nbsp;' . $clsC->strSafeName . '&nbsp;&nbsp;(client ID: ' . str_pad($lCID, 5, '0', STR_PAD_LEFT) . ')') . $clsRpt->closeRow();
     $strOut .= $clsRpt->openRow(false) . $clsRpt->writeLabel('Birthday/Age:') . $clsRpt->writeCell($clsC->strClientAgeBDay) . $clsRpt->closeRow();
     $strOut .= $clsRpt->openRow(false) . $clsRpt->writeLabel('Gender:') . $clsRpt->writeCell($clsC->enumGender) . $clsRpt->closeRow();
     $strOut .= $clsRpt->openRow(false) . $clsRpt->writeLabel($clsC->cv_strVocLocS . ':') . $clsRpt->writeCell(htmlspecialchars($clsC->strLocation)) . $clsRpt->closeRow();
     $strStatus = htmlspecialchars($clsC->strStatusCatName);
     if (isset($clsC->strFlagsTable)) {
         $strStatus .= '&nbsp;' . $clsC->strFlagsTable;
     }
     $strOut .= $clsRpt->openRow(false) . $clsRpt->writeLabel('Status Category:') . $clsRpt->writeCell($strStatus) . $clsRpt->closeRow();
     $strOut .= $clsRpt->closeReport('<br>');
     if ($bProfileImgAvail) {
         $strOut .= '</td><td style="vertical-align: top;">' . $strTNImg . '</td></tr></table>';
     }
     return $strOut;
 }
 public function strClientLocationHTMLSummary()
 {
     //-----------------------------------------------------------------------
     // assumes user has called $this->loadLocationRec($id)
     //-----------------------------------------------------------------------
     $strOut = '';
     $params = array('enumStyle' => 'terse');
     $clsRpt = new generic_rpt($params);
     $clsRpt->setEntrySummary();
     $lLocID = $this->lKeyID;
     $strOut .= $clsRpt->openReport('', '');
     $strOut .= $clsRpt->openRow(false) . $clsRpt->writeLabel('Location ID:') . $clsRpt->writeCell(strLinkView_ClientLocation($lLocID, 'View Client Location Record', true) . ' ' . str_pad($lLocID, 5, '0', STR_PAD_LEFT)) . $clsRpt->closeRow() . $clsRpt->openRow(false) . $clsRpt->writeLabel('Location:') . $clsRpt->writeCell(htmlspecialchars($this->strLocation)) . $clsRpt->closeRow();
     $strOut .= $clsRpt->openRow(false) . $clsRpt->writeLabel('Country:') . $clsRpt->writeCell(htmlspecialchars($this->strCountry)) . $clsRpt->closeRow();
     $strOut .= $clsRpt->openRow(false) . $clsRpt->writeLabel('Allow Medical Recs:') . $clsRpt->writeCell($this->bEnableEMR ? 'Yes' : 'No') . $clsRpt->closeRow();
     $strOut .= $clsRpt->closeReport('<br>');
     return $strOut;
 }
Exemplo n.º 19
0
 public function userHTMLSummary($idx)
 {
     //-----------------------------------------------------------------------
     // assumes user has called $this->loadSingleUserRecord($lUserID)
     //-----------------------------------------------------------------------
     global $gdteNow, $genumDateFormat, $gbAdmin;
     $strOut = '';
     $params = array('enumStyle' => 'terse');
     $clsRpt = new generic_rpt($params);
     $clsRpt->setEntrySummary();
     $userRec =& $this->userRec[$idx];
     $lUID = $userRec->us_lKeyID;
     $strAcctType = '';
     if ($userRec->us_bAdmin) {
         $strAcctType = 'Admin';
     } elseif ($userRec->bVolAccount) {
         $strAcctType = 'Volunteer';
     } else {
         $strAcctType = 'User';
     }
     if ($userRec->us_bDebugger) {
         $strAcctType .= ' / Debugger';
     }
     if ($gbAdmin) {
         $strAcctLink = strLinkView_User($lUID, 'View User Record', true) . '&nbsp;';
     } else {
         $strAcctLink = '';
     }
     $strOut .= $clsRpt->openReport('', '') . $clsRpt->openRow(false) . $clsRpt->writeLabel('user ID:') . $clsRpt->writeCell($strAcctLink . str_pad($lUID, 5, '0', STR_PAD_LEFT)) . $clsRpt->closeRow() . $clsRpt->openRow(false) . $clsRpt->writeLabel('Name:') . $clsRpt->writeCell($userRec->strSafeName) . $clsRpt->closeRow() . $clsRpt->openRow(false) . $clsRpt->writeLabel('User Name:') . $clsRpt->writeCell($userRec->us_strUserName) . $clsRpt->closeRow() . $clsRpt->openRow(false) . $clsRpt->writeLabel('Account Type:') . $clsRpt->writeCell($strAcctType) . $clsRpt->closeRow();
     $strOut .= $clsRpt->closeReport('<br>');
     return $strOut;
 }
 public function volEventDateShiftHTMLSummary()
 {
     //-----------------------------------------------------------------------
     // assumes user has called $clsShifts->loadShiftsViaEventShiftID($lEventShiftID)
     //-----------------------------------------------------------------------
     global $gdteNow, $genumDateFormat;
     $strOut = '';
     $clsS = $this->shifts[0];
     $lEventID = $clsS->lVolEventID;
     $lShiftID = $clsS->lKeyID;
     $lDateID = $clsS->lEventDateID;
     $clsEvent = new mvol_events();
     $clsRpt = new generic_rpt(array('enumStyle' => 'terse'));
     $clsRpt->setEntrySummary();
     $clsEvent->loadEventsViaEID($lEventID);
     $clsVE = $clsEvent->events[0];
     $lEventID = $clsVE->lKeyID;
     $strOut = $clsRpt->openReport('', '') . $clsRpt->openRow(false) . $clsRpt->writeLabel('Event ID:') . $clsRpt->writeCell(strLinkView_VolEvent($lEventID, 'View event', true) . '&nbsp;' . str_pad($lEventID, 5, '0', STR_PAD_LEFT)) . $clsRpt->closeRow() . $clsRpt->openRow(false) . $clsRpt->writeLabel('Date:') . $clsRpt->writeCell(strLinkView_VolEventDate($lDateID, 'View event date', true) . '&nbsp;' . date($genumDateFormat . ' (D)', $clsS->dteEvent)) . $clsRpt->closeRow() . $clsRpt->openRow(false) . $clsRpt->writeLabel('Volunteer Event:') . $clsRpt->writeCell(htmlspecialchars($clsVE->strEventName)) . $clsRpt->closeRow() . $clsRpt->openRow(false) . $clsRpt->writeLabel('Shift:') . $clsRpt->writeCell(htmlspecialchars($clsS->strShiftName)) . $clsRpt->closeRow() . $clsRpt->openRow(false) . $clsRpt->writeLabel('Start/Duration:') . $clsRpt->writeCell(date('g:i a', $clsS->dteEventStartTime) . ' / ' . $clsS->enumDuration) . $clsRpt->closeRow() . $clsRpt->openRow(false) . $clsRpt->writeLabel('# Vols Needed:') . $clsRpt->writeCell($clsS->lNumVolsNeeded) . $clsRpt->closeRow() . $clsRpt->closeReport('<br>');
     return $strOut;
 }
Exemplo n.º 21
0
 public function volHTMLSummary($idx)
 {
     //-----------------------------------------------------------------------
     // assumes user has called $clsVol->loadVolRecs(...
     //-----------------------------------------------------------------------
     global $gdteNow, $genumDateFormat;
     $strOut = '';
     $params = array('enumStyle' => 'terse');
     $clsRpt = new generic_rpt($params);
     $clsRpt->setEntrySummary();
     $lVolID = $this->volRecs[$idx]->lKeyID;
     $volRec =& $this->volRecs[$idx];
     $lPID = $volRec->lPeopleID;
     $strOut .= $clsRpt->openReport('', '') . $clsRpt->openRow(false) . $clsRpt->writeLabel('Name:') . $clsRpt->writeCell($volRec->strSafeName . '&nbsp;&nbsp;&nbsp;(people ID ' . str_pad($lPID, 5, '0', STR_PAD_LEFT) . strLinkView_PeopleRecord($lPID, 'View People Record', true) . ')') . $clsRpt->closeRow() . $clsRpt->openRow(false) . $clsRpt->writeLabel('Volunteer ID:') . $clsRpt->writeCell(str_pad($lVolID, 5, '0', STR_PAD_LEFT) . '&nbsp;' . strLinkView_Volunteer($lVolID, 'View Volunteer Record', true)) . $clsRpt->closeRow();
     if ($volRec->bInactive) {
         $strVol = '<i>Inactive since ' . date($genumDateFormat, $volRec->dteInactive);
     } else {
         $strVol = 'Active';
     }
     $strOut .= $clsRpt->openRow(false) . $clsRpt->writeLabel('Volunteer Status:') . $clsRpt->writeCell($strVol) . $clsRpt->closeRow() . $clsRpt->openRow(false) . $clsRpt->writeLabel('Address:') . $clsRpt->writeCell($volRec->strAddress) . $clsRpt->closeRow() . $clsRpt->closeReport('');
     return $strOut;
 }
Exemplo n.º 22
0
 public function strCReportHTMLSummary()
 {
     //-----------------------------------------------------------------------
     // assumes user has called $this->clsCReports->loadReportViaID($lReportID, ...
     //-----------------------------------------------------------------------
     $params = array('enumStyle' => 'terse');
     $clsRpt = new generic_rpt($params);
     $clsRpt->setEntrySummary();
     $report =& $this->reports[0];
     $lReportID = $report->lKeyID;
     $strOut = $clsRpt->openReport('', '') . $clsRpt->openRow(false) . $clsRpt->writeLabel('Report Name:') . $clsRpt->writeCell(strLinkView_CReportRec($lReportID, 'View report record', true) . '&nbsp;' . $report->strSafeName) . $clsRpt->closeRow() . $clsRpt->openRow(false) . $clsRpt->writeLabel('Report ID:') . $clsRpt->writeCell(str_pad($lReportID, 5, '0', STR_PAD_LEFT)) . $clsRpt->closeRow() . $clsRpt->openRow(false) . $clsRpt->writeLabel('Type:') . $clsRpt->writeCell($report->strXlatedRptType) . $clsRpt->closeRow() . $clsRpt->openRow(false) . $clsRpt->writeLabel('Owner:') . $clsRpt->writeCell($report->strSafeRptOwner) . $clsRpt->closeRow() . $clsRpt->closeReport('<br>');
     return $strOut;
 }
Exemplo n.º 23
0
 public function strLocationHTMLSummary()
 {
     //-----------------------------------------------------------------------
     // assumes user has called $this->loadLocationInfo();
     //-----------------------------------------------------------------------
     global $genumDateFormat;
     $params = array('enumStyle' => 'terse');
     $clsRpt = new generic_rpt($params);
     $clsRpt->setEntrySummary();
     $chapter =& $this->locRec;
     $lLocationID = $chapter->lKeyID;
     $strOut = $clsRpt->openReport('', '') . $clsRpt->openRow(false) . $clsRpt->writeLabel('Organization:') . $clsRpt->writeCell($chapter->strSafeLocationName) . $clsRpt->closeRow() . $clsRpt->openRow(false) . $clsRpt->writeLabel('Organization ID:') . $clsRpt->writeCell(str_pad($lLocationID, 5, '0', STR_PAD_LEFT) . '&nbsp;' . strLinkView_OrganizationRecord($lLocationID, 'View organization record', true)) . $clsRpt->closeRow() . $clsRpt->openRow(false) . $clsRpt->writeLabel('Address:') . $clsRpt->writeCell($chapter->strAddress) . $clsRpt->closeRow() . $clsRpt->closeReport('<br>');
     return $strOut;
 }
Exemplo n.º 24
0
 public function peopleHTMLSummary($idx)
 {
     //-----------------------------------------------------------------------
     // assumes user has called $clsPeople->loadPeople($bIncludeSpon, $bIncludeGiftSum,
     //-----------------------------------------------------------------------
     global $gdteNow, $genumDateFormat;
     $strOut = '';
     $params = array('enumStyle' => 'terse');
     $clsRpt = new generic_rpt($params);
     $clsRpt->setEntrySummary();
     $lPID = $this->people[$idx]->lKeyID;
     $strOut .= $clsRpt->openReport('', '') . $clsRpt->openRow(false) . $clsRpt->writeLabel('Name:') . $clsRpt->writeCell($this->people[$idx]->strSafeName . '&nbsp;&nbsp;&nbsp;(people ID ' . str_pad($lPID, 5, '0', STR_PAD_LEFT) . strLinkView_PeopleRecord($lPID, 'View People Record', true) . ')') . $clsRpt->closeRow() . $clsRpt->openRow(false) . $clsRpt->writeLabel('Address:') . $clsRpt->writeCell($this->people[$idx]->strAddress) . $clsRpt->closeRow() . $clsRpt->openRow(false) . $clsRpt->writeLabel('Household:') . $clsRpt->writeCell(htmlspecialchars($this->people[$idx]->strHouseholdName) . strLinkView_Household($this->people[$idx]->lHouseholdID, $lPID, 'View household', true)) . $clsRpt->closeRow();
     if (!is_null($this->people[$idx]->dteExpire)) {
         $dteExpire = $this->people[$idx]->dteExpire;
         $strDateExpire = date($genumDateFormat, $dteExpire);
         $strOut .= $clsRpt->openRow(false) . $clsRpt->writeLabel('Expiration:');
         if ($dteExpire > $gdteNow) {
             $strOut .= $clsRpt->writeCell('THIS PEOPLE RECORD WILL EXPIRE ON ' . $strDateExpire);
         } else {
             $strOut .= $clsRpt->writeCell('<font color="red"><b>EXPIRED ON ' . $strDateExpire . '</b></font>');
         }
         $strOut .= $clsRpt->closeRow();
     }
     $strOut .= $clsRpt->closeReport('<br>');
     return $strOut;
 }