예제 #1
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;
 }
예제 #2
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;
 }
예제 #3
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;
 }
예제 #4
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;
 }
예제 #5
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 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;
 }
예제 #7
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) . '&nbsp;&nbsp;(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;
 }
예제 #8
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;
 }
 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;
 }
<?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());
예제 #11
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;
 }
예제 #12
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;
 }
function showStatusHistory($bCenterTable, $bShowLinks, &$clientStatus, $lNumClientStatus, $lClientID, $strWidth)
{
    //------------------------------------------------------------------------
    //
    //------------------------------------------------------------------------
    global $genumDateFormat;
    $params = array('enumStyle' => 'enpRpt' . ($bCenterTable ? 'C' : ''));
    $clsRpt = new generic_rpt($params);
    echoT($clsRpt->openReport($strWidth));
    echoT($clsRpt->openRow(true) . $clsRpt->writeLabel('StatusID'));
    if ($bShowLinks) {
        echoT($clsRpt->writeLabel('&nbsp;', 10));
    }
    echoT($clsRpt->writeLabel('Status', 150) . $clsRpt->writeLabel('Date', 100) . $clsRpt->writeLabel('Flags', 200) . $clsRpt->writeLabel('Notes') . $clsRpt->closeRow());
    $idx = 1;
    foreach ($clientStatus as $clsCStat) {
        $lStatRecID = $clsCStat->lKeyID;
        $strFlags = '';
        if ($clsCStat->bAllowSponsorship) {
            $strFlags .= '* sponsorship allowed<br>';
        } else {
            $strFlags .= '* sponsorship <i>not</i> allowed<br>';
        }
        if ($clsCStat->bShowInDir) {
            $strFlags .= '* shown in directory<br>';
        } else {
            $strFlags .= '* <i>not</i> shown in directory<br>';
        }
        if ($clsCStat->bIncludeNotesInPacket) {
            $strFlags .= '<b>* Packet Notes</b><br>';
        }
        if ($lNumClientStatus == $idx) {
            $strLinkRem = '&nbsp;';
        } else {
            $strLinkRem = strLinkRem_ClientStat($lClientID, $lStatRecID, 'Remove this status record', true, true);
        }
        if ($bShowLinks) {
            $strLinkEdit = strLinkEdit_ClientStat($lClientID, $lStatRecID, 'Edit status record', true) . ' ';
        } else {
            $strLinkEdit = '';
        }
        echoT($clsRpt->openRow(true) . $clsRpt->writeCell($strLinkEdit . str_pad($lStatRecID, 5, '0', STR_PAD_LEFT), 30, $strStyleExtra = 'text-align: center;'));
        if ($bShowLinks) {
            echoT($clsRpt->writeCell($strLinkRem, 10));
        }
        echoT($clsRpt->writeCell(htmlspecialchars($clsCStat->strStatus) . '<br><i>' . htmlspecialchars($clsCStat->strCatName) . '</i>') . $clsRpt->writeCell(date($genumDateFormat, $clsCStat->dteStatus)) . $clsRpt->writeCell($strFlags) . $clsRpt->writeCell(nl2br(htmlspecialchars($clsCStat->strStatusTxt)), 350) . $clsRpt->closeRow());
        ++$idx;
    }
    echoT($clsRpt->closeReport('<br>'));
}
예제 #14
0
 private function strAttribRptSponsor(&$sRpt, $strLimit, $strAttrib, $strLabel)
 {
     //---------------------------------------------------------------------
     //
     //---------------------------------------------------------------------
     global $genumDateFormat;
     $this->load->model('sponsorship/msponsorship', 'clsSpon');
     $params = array('enumStyle' => 'enpRptC');
     $clsRpt = new generic_rpt($params);
     //      $this->load->helper('dl_util/email_web');
     $this->clsSpon->sponsorInfoGenericViaWhere(" AND sp_lAttributedTo {$strAttrib} ", $strLimit);
     $strOut = '<br>' . $clsRpt->openReport();
     $strOut .= $clsRpt->writeTitle('Sponsorships ' . $strLabel, '', '', 7);
     $strOut .= $clsRpt->openRow(true);
     $strOut .= $clsRpt->writeLabel('SponsorID', 60) . $clsRpt->writeLabel('Active', 90) . $clsRpt->writeLabel('Sponsor', 150) . $clsRpt->writeLabel('Address') . $clsRpt->writeLabel('Client') . $clsRpt->writeLabel('Commitment') . $clsRpt->closeRow();
     foreach ($this->clsSpon->sponInfo as $sponRec) {
         $lSponID = $sponRec->lKeyID;
         $lFID = $sponRec->lForeignID;
         if ($sponRec->bInactive) {
             $strIStyle = 'color: #999;';
             $strActiveDates = 'sponsor dates: ' . date($genumDateFormat, $sponRec->dteStart) . ' - ' . date($genumDateFormat, $sponRec->dteInactive);
         } else {
             $strIStyle = '';
             $strActiveDates = 'sponsor since: ' . date($genumDateFormat, $sponRec->dteStart);
         }
         $strOut .= $clsRpt->openRow(true);
         $strOut .= $clsRpt->writeCell(strLinkView_Sponsorship($lSponID, 'View sponsorship record', true) . '&nbsp;' . str_pad($lSponID, 5, '0', STR_PAD_LEFT), 60, $strIStyle);
         //---------------------------
         // active state
         //---------------------------
         $strOut .= $clsRpt->writeCell($strActiveDates, '', $strIStyle);
         if ($sponRec->bSponBiz) {
             $strLinkFID = 'business ID: ' . strLinkView_BizRecord($lFID, 'View business record', true);
         } else {
             $strLinkFID = 'people ID: ' . strLinkView_PeopleRecord($lFID, 'View people record', true);
         }
         $strLinkFID .= str_pad($lFID, 5, '0', STR_PAD_LEFT);
         //---------------------------
         // sponsor name
         //---------------------------
         $strHonoree = '';
         if ($sponRec->bHonoree) {
             $lHFID = $sponRec->lHonoreeID;
             if ($sponRec->bHonBiz) {
                 $strLinkHFID = 'business ID: ' . strLinkView_BizRecord($lHFID, 'View business record', true);
             } else {
                 $strLinkHFID = 'people ID: ' . strLinkView_PeopleRecord($lHFID, 'View people record', true);
             }
             $strLinkHFID .= str_pad($lHFID, 5, '0', STR_PAD_LEFT);
             $strHonoree = '<br><br>Honoree: ' . $sponRec->strHonSafeNameLF . '<br>' . $strLinkHFID;
         }
         $strContact = '<b>' . $sponRec->strSponSafeNameLF . '</b>' . '<br>' . $strLinkFID . $strHonoree . '<br>
             program: ' . htmlspecialchars($sponRec->strSponProgram);
         $strOut .= $clsRpt->writeCell($strContact, '', $strIStyle);
         //---------------------------
         // address / contact
         //---------------------------
         $strAddr = strBuildAddress($sponRec->strSponAddr1, $sponRec->strSponAddr2, $sponRec->strSponCity, $sponRec->strSponState, $sponRec->strSponCountry, $sponRec->strSponZip, true);
         if ($sponRec->strSponEmail . '' != '') {
             $strAddr .= strBuildEmailLink($sponRec->strSponEmail, '<br>', false, ' style="' . $strIStyle . '"');
         }
         $strPhone = strPhoneCell($sponRec->strSponPhone, $sponRec->strSponPhone, true, true);
         if ($strPhone != '') {
             $strAddr .= '<br>' . $strPhone;
         }
         $strOut .= $clsRpt->writeCell($strAddr, '', $strIStyle);
         //---------------------------
         // client
         //---------------------------
         $lClientID = $sponRec->lClientID;
         if (is_null($lClientID)) {
             if ($sponRec->bInactive) {
                 $strClientInfo = '<i>Client not set</i>';
             } else {
                 $strClientInfo = '<i>Client not set</i><br>' . strLinkAdd_ClientToSpon($lSponID, 'Add client to sponsorship', false);
             }
         } else {
             $strClientInfo = '<b>' . $sponRec->strClientSafeNameLF . '</b><br>' . 'client ID: ' . strLinkView_ClientRecord($lClientID, 'View client record', true) . str_pad($lClientID, 5, '0', STR_PAD_LEFT) . '<br>' . htmlspecialchars($sponRec->strLocation) . '<br>' . 'birth/age: ' . $sponRec->strClientAgeBDay;
             $strClientInfo .= '<br>' . htmlspecialchars($sponRec->strLocation);
         }
         $strOut .= $clsRpt->writeCell($strClientInfo, '', $strIStyle);
         //---------------------------
         // financial commitment
         //---------------------------
         $strOut .= $clsRpt->writeCell($sponRec->strCommitACOCurSym . ' ' . number_format($sponRec->curCommitment, 2) . ' ' . $sponRec->strCommitACOFlagImg . '<br>' . strLinkView_SponsorFinancials($lSponID, 'View sponsorship financials', true) . strLinkView_SponsorFinancials($lSponID, 'View financials', false), '', $strIStyle);
         $strOut .= $clsRpt->closeRow();
     }
     $strOut .= $clsRpt->closeReport();
     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;
 }
$clsRpt->strWidthLabel = '120pt';
openBlock('Sponsor Past Due Report', '');
$clsRpt->openReport();
echoT($clsRpt->openRow(false));
echoT($clsRpt->writeLabel('Accounting Country:'));
echoT($clsRpt->writeCell($cACO->strName . ' ' . $cACO->strFlagImg . ' ' . $cACO->strCurrencySymbol, '', $strStyleExtra = 'text-align: left;'));
echoT($clsRpt->closeRow());
echoT($clsRpt->openRow(false));
echoT($clsRpt->writeLabel('Months Past Due:'));
echoT($clsRpt->writeCell('At least ' . $lMonthsPastDue . ' month' . ($lMonthsPastDue == 1 ? '' : 's'), '', $strStyleExtra = 'text-align: left;'));
echoT($clsRpt->closeRow());
echoT($clsRpt->openRow(false));
echoT($clsRpt->writeLabel('Include Inactive?:'));
echoT($clsRpt->writeCell($bIncludeInactive ? 'Yes' : 'No', $strStyleExtra = 'text-align: left;'));
echoT($clsRpt->closeRow());
$clsRpt->closeReport();
closeBlock();
if ($lNumPastDue == 0) {
    echoT('<br /><br /><i>There are no sponsors that meet your search criteria.</i><br>');
} else {
    echoT('<br /><br />
         <table class="enpRptC">
            <tr>
               <td class="enpRptLabel">
                  Sponsor ID
               </td>
               <td class="enpRptLabel">
                  Sponsor
               </td>
               <td class="enpRptLabel">
                  Client
예제 #17
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;
 }
 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;
 }
 public function sponsorChargeHTMLSummary()
 {
     //-----------------------------------------------------------------------
     // assumes user has called $clsSCP->loadChargeRecord()
     //-----------------------------------------------------------------------
     global $gdteNow, $genumDateFormat;
     $params = array('enumStyle' => 'terse');
     $clsRpt = new generic_rpt($params);
     $clsRpt->setBreadCrumbs();
     $cRec = $this->chargeRec;
     $bBiz = $cRec->bBiz;
     if ($bBiz) {
         $strLinkPeopleBiz = strLinkView_Biz($cRec->lForeignID, 'View business record', true);
     } else {
         $strLinkPeopleBiz = strLinkView_People($cRec->lForeignID, 'View people record', true);
     }
     $lSponID = $cRec->lSponsorshipID;
     $clsRpt->openReport('', '');
     $clsRpt->openRow(false);
     $clsRpt->writeLabel(' Sponsor:');
     $clsRpt->writeCell($strLinkPeopleBiz . ' ' . str_pad($cRec->lForeignID, 5, '0', STR_PAD_LEFT) . ' ' . $cRec->strSponSafeNameFL);
     $clsRpt->closeRow();
     $clsRpt->openRow(false);
     $clsRpt->writeLabel('Sponsor ID:');
     $clsRpt->writeCell(strLinkView_Sponsorship($lSponID, 'View sponsorship', true) . ' ' . str_pad($lSponID, 5, '0', STR_PAD_LEFT));
     $clsRpt->closeRow();
     if (is_null($cRec->lClientID)) {
         $strClient = '<i>not set</i>';
     } else {
         $strClient = strLinkView_Client($cRec->lClientID, 'View client record', true) . ' ' . str_pad($cRec->lClientID, 5, '0', STR_PAD_LEFT) . ' ' . $cRec->strClientSafeNameFL;
     }
     $clsRpt->openRow(false);
     $clsRpt->writeLabel('Client:');
     $clsRpt->writeCell($strClient);
     $clsRpt->closeRow();
     $clsRpt->openRow(false);
     $clsRpt->writeLabel('Status:');
     $clsRpt->writeCell($cRec->bInactive ? 'Inactive' : 'Active');
     $clsRpt->closeRow();
     $clsRpt->openRow(false);
     $clsRpt->writeLabel('Charge ID:');
     $clsRpt->writeCell(str_pad($cRec->lKeyID, 5, '0', STR_PAD_LEFT));
     $clsRpt->closeRow();
     $clsRpt->openRow(false);
     $clsRpt->writeLabel('Amount:');
     $clsRpt->writeCell($cRec->strCurSymbol . ' ' . number_format($cRec->curChargeAmnt, 2) . ' ' . $cRec->strFlagImage);
     $clsRpt->closeRow();
     $clsRpt->openRow(false);
     $clsRpt->writeLabel('Date of Charge:');
     $clsRpt->writeCell(date($genumDateFormat, $cRec->dteCharge));
     $clsRpt->closeRow();
     $clsRpt->closeReport(true);
 }
예제 #20
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>');
 }
예제 #21
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;
 }
        echoT($crpt->openRow() . $crpt->writeLabel('# Total Clients:') . $crpt->writeCell(number_format($cprog->lNumClientsTot) . $strLinkViewTotEnrolled) . $crpt->closeRow());
        echoT($crpt->openRow() . $crpt->writeLabel('Total Hours:') . $crpt->writeCell(number_format($cprog->hourInfo->dTot, 2)) . $crpt->closeRow());
        echoT($crpt->openRow() . $crpt->writeLabel('Monthly View:') . $crpt->writeCell(strLinkView_CProgDirAttendance($lCProgID, true, $cprog->strSafeAttendLabel, true) . '&nbsp;' . strLinkView_CProgDirAttendance($lCProgID, true, $cprog->strSafeAttendLabel, false)) . $crpt->closeRow());
        if ($cprog->hourInfo->dTot > 0) {
            $strEnumActivity = '
                  <table class="enpRpt">
                     <tr>
                        <td class="enpRptLabel">
                           Activity
                        </td>
                        <td class="enpRptLabel">
                           Duration
                        </td>
                     </tr>';
            foreach ($cprog->hourInfo->activities as $hInfo) {
                $strEnumActivity .= '
                        <tr>
                           <td class="enpRpt">' . htmlspecialchars($hInfo->strActivity) . '
                           </td>
                           <td class="enpRpt" style="text-align: right;">' . number_format($hInfo->dDuration, 2) . '
                           </td>
                        </tr>';
            }
            $strEnumActivity .= '</table>';
            echoT($crpt->openRow() . $crpt->writeLabel('Activities:') . $crpt->writeCell($strEnumActivity) . $crpt->closeRow());
        }
        echoT($crpt->closeReport());
        $attributes->bCloseDiv = true;
        closeBlock($attributes);
    }
}
예제 #23
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;
 }
예제 #24
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;
 }
예제 #25
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 viewViaObject($enumRemType, $lFID)
 {
     //---------------------------------------------------------------------
     //
     //---------------------------------------------------------------------
     global $gbDateFormatUS, $gdteNow, $glUserID, $genumDateFormat;
     if (!bTestForURLHack('notVolunteer')) {
         return;
     }
     $this->load->helper('dl_util/verify_id');
     verifyIDsViaType($this, $enumRemType, $lFID, false);
     $displayData = array();
     $displayData['enumRemType'] = $enumRemType;
     $displayData['lFID'] = $lFID = (int) $lFID;
     //--------------------------
     // models & helpers
     //--------------------------
     $this->load->model('admin/madmin_aco', 'clsACO');
     $this->load->model('admin/muser_accts');
     $this->load->model('clients/mclients');
     $this->load->model('people/mpeople');
     $this->load->model('donations/mdonations');
     $this->load->library('util/dl_date_time', '', 'clsDateTime');
     $this->load->model('sponsorship/msponsorship', 'clsSpon');
     $this->load->model('biz/mbiz', 'clsBiz');
     //      $this->load->helper('dl_util/email_web');
     $this->load->helper('dl_util/web_layout');
     $this->load->helper('dl_util/time_date');
     $this->load->helper('dl_util/page_title');
     $this->load->helper('dl_util/reminder');
     $params = array('enumStyle' => 'enpRptC');
     $this->load->library('generic_rpt', $params);
     $clsRpt = new generic_rpt($params);
     $this->load->model('reminders/mreminders', 'clsRem');
     $this->clsRem->enumSort = 'currentFirst';
     configRemRecViewViaType($enumRemType, $lFID, $displayData);
     $bUserReminder = $enumRemType == CENUM_CONTEXT_USER;
     if ($bUserReminder) {
         $this->clsRem->enumLookupType = 'CurrentViaEnumRemTypeUserID';
     } else {
         $this->clsRem->enumLookupType = 'ViaEnumRemTypeFID';
     }
     $this->clsRem->loadEnumTypeList($enumRemType);
     $strRemRpt = '';
     $lTotRems = 0;
     $this->clsRem->lFID = $lFID;
     foreach ($this->clsRem->enumRemTypeList as $enumRT) {
         $this->clsRem->enumRemType = $enumRT;
         $strRT = strtoupper(substr($enumRT, 0, 1)) . substr($enumRT, 1);
         $this->clsRem->loadReminders();
         $lTotRems += $this->clsRem->lNumReminders;
         if ($this->clsRem->lNumReminders > 0) {
             $strRemRpt .= $clsRpt->openReport(550);
             if ($bUserReminder) {
                 $strRemRpt .= $clsRpt->openRow(false);
                 $strRemRpt .= $clsRpt->writeTitle($strRT . ' Reminders', '', '', 8);
                 $strRemRpt .= $clsRpt->closeRow();
             }
             $strRemRpt .= $clsRpt->openRow(false);
             $strRemRpt .= $clsRpt->writeLabel('Reminder Dates', '160pt');
             $strRemRpt .= $clsRpt->writeLabel('Reminder', '');
             //            $strRemRpt .= $clsRpt->writeLabel('&nbsp;', '');
             $strRemRpt .= $clsRpt->closeRow();
             foreach ($this->clsRem->reminders as $clsSingleRem) {
                 if ($this->clsRem->bOKToView($clsSingleRem, $glUserID)) {
                     $lRemID = $clsSingleRem->lKeyID;
                     $strRemRpt .= $clsRpt->openRow(true);
                     $strRemLogLabel = '';
                     $lNumPast = $this->clsRem->lNumPast($clsSingleRem, $gdteNow, $lIdxLastPast);
                     $lNumFuture = $this->clsRem->lNumFuture($clsSingleRem, $gdteNow, $lIdxFirstFuture);
                     $lCurDateIdx = $this->clsRem->lCurrentRemIdx($clsSingleRem, $gdteNow);
                     //-------------------------------------------------------
                     // it's the little things that make a house a home....
                     //-------------------------------------------------------
                     if ($lNumPast > 0) {
                         $strRemLogLabel .= ' / ' . $lNumPast . ' past reminder' . ($lNumPast == 1 ? '' : 's');
                     }
                     if ($lNumFuture > 0) {
                         $strRemLogLabel .= ' / ' . $lNumFuture . ' future reminder' . ($lNumFuture == 1 ? '' : 's');
                     }
                     if ($strRemLogLabel != '') {
                         $strRemLogLabel = '<br><small>' . substr($strRemLogLabel, 3) . '</small>';
                     }
                     if ($bUserReminder) {
                         $strRemLink = '<br><i>' . $this->clsRem->strHTMLOneLineLink($clsSingleRem) . '</i>';
                     } else {
                         $strRemLink = '';
                     }
                     //---------------------------------------------------------------------------
                     // if reminder is not current, indicate next reminder; if no next reminder,
                     // indicate most recent reminder
                     //---------------------------------------------------------------------------
                     $bCurrent = !is_null($lCurDateIdx);
                     if (!$bCurrent) {
                         $strRemStyle = 'color: #999999;';
                         if ($lNumFuture > 0) {
                             $strRemDate = '<i>next reminder: ' . date($genumDateFormat, $clsSingleRem->dates[$lIdxFirstFuture]->dteDisplayStart) . '</i>';
                         } else {
                             $strRemDate = '<i>reminded on: ' . date($genumDateFormat, $clsSingleRem->dates[$lIdxLastPast]->dteDisplayStart) . '</i>';
                         }
                     } else {
                         $strRemStyle = '';
                         $strRemDate = date($genumDateFormat, $clsSingleRem->dates[$lCurDateIdx]->dteDisplayStart);
                     }
                     //--------------------------
                     // reminder title/note
                     //--------------------------
                     $strReminder = '<b>' . htmlspecialchars($clsSingleRem->strTitle) . '</b>' . $strRemLink;
                     if ($clsSingleRem->strTitle != '') {
                         $strReminder .= '<br>' . nl2br(htmlspecialchars($clsSingleRem->strReminderNote));
                     }
                     //--------------------------
                     // follow-up notes
                     //--------------------------
                     if ($clsSingleRem->lNumFollowUps > 0) {
                         $strReminder .= '<small><br><br><b>Follow-up notes:</b><br>';
                         foreach ($clsSingleRem->followUpNotes as $clsFollow) {
                             $strReminder .= '<i>' . date($genumDateFormat, $clsFollow->dteOfNote) . ' by ' . $clsFollow->strSafeName . '</i><br>' . nl2br(htmlspecialchars($clsFollow->strFollowUpNote)) . '<br><br>';
                         }
                         $strReminder .= '</small>';
                     }
                     //--------------------------
                     // follow-up note form
                     //--------------------------
                     $clsNav = new stdClass();
                     $clsNav->strKey02 = 'RID';
                     $clsNav->lKey02 = $lRemID;
                     $attributes = array('name' => 'frmFollowUp' . $lRemID);
                     $strReminder .= form_open('reminders/rem_add_edit/addReminderFollup/' . $enumRemType . '/' . $lFID . '/' . $lRemID, $attributes) . '<br>
                   <i>add follow-up note:</i>
                     <input type="submit" name="cmdSubmit" value="Save"
                          style="font-size: 7pt; height: 13pt; vertical-align: center;"
                          onclick="this.disabled=1; this.form.submit();"
                          class="btn"
                             onmouseover="this.className=\'btn btnhov\'"
                             onmouseout="this.className=\'btn\'"><br>
                     <textarea name="txtFollowUp" rows="1" cols="45"></textarea><br>
                     </form>';
                     $strRemRpt .= $clsRpt->writeCell($strRemDate . $strRemLogLabel . '<br><br>' . strLinkRem_Reminder($lRemID, $lFID, $enumRemType, 'Remove reminder', true, true));
                     $strRemRpt .= $clsRpt->writeCell($strReminder, '', $strRemStyle);
                     /*
                                    $strRemRpt .= $clsRpt->writeCell(strLinkRem_Reminder($lRemID, $lFID, $enumRemType,
                                                        'Remove reminder', true, true), '', $strRemStyle);
                     */
                     $strRemRpt .= $clsRpt->closeRow();
                 }
             }
             $strRemRpt .= $clsRpt->closeReport('<br>');
         }
     }
     if ($lTotRems == 0) {
         $strRemRpt = '<br><i>There are no reminders for this user.</i><br><br>';
     }
     $displayData['strRemRpt'] = $strRemRpt;
     //--------------------------
     // breadcrumbs
     //--------------------------
     $displayData['title'] = CS_PROGNAME . ' | People';
     $displayData['nav'] = $this->mnav_brain_jar->navData();
     $displayData['mainTemplate'] = 'reminders/view_reminder_record_view';
     $this->load->vars($displayData);
     $this->load->view('template');
 }
예제 #27
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;
 }
 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;
 }
예제 #29
0
    // volunteer associations
    //---------------------------
    if (count($patient->volClient) == 0) {
        echoT($clsRpt->writeCell('- none -', $lVolWidth, 'text-align: center;'));
    } else {
        $strVols = '<ul style="list-style-position: inside; list-style-type: square; display:inline;
                              margin-left: 0pt; padding-left: 0pt;">';
        foreach ($patient->volClient as $vc) {
            $strVols .= '<li>' . htmlspecialchars($vc->vol->strLName . ', ' . $vc->vol->strFName) . '&nbsp;' . strLinkAdd_HospicePVist($vc->lVolID, $vc->lPatientID, 'Add visit', false, ' id="apv_' . $vc->lVolID . '_' . $vc->lPatientID . ' " ') . '</li>';
        }
        echoT($clsRpt->writeCell($strVols . '</ul>', $lVolWidth, ''));
    }
    //---------------------------
    // patient contacts
    //---------------------------
    $strLinkAddNewPC = strLinkAdd_PatientContact($lPatientID, 'Add patient contact', true, ' id="newPCon_' . $lPatientID . '" ') . '&nbsp;' . strLinkAdd_PatientContact($lPatientID, 'Add patient contact', false);
    if (count($patient->pContacts) == 0) {
        echoT($clsRpt->writeCell('<span style="text-align: center; margin-left: 40pt;">- none -</span><br>' . $strLinkAddNewPC, '200pt;', ''));
    } else {
        $strPC = '';
        foreach ($patient->pContacts[0]->contacts as $pc) {
            $lPConID = $pc->lContactID;
            $strPC .= trim(htmlspecialchars($pc->strPConTitle . ' ' . $pc->strFName . ' ' . $pc->strLName . ' (' . $pc->strRelationship . ')')) . strLinkView_PContact($lPConID, 'View patient contact record', true, ' id="viewPCon_' . $lPConID . '" ') . '<br>';
        }
        echoT($clsRpt->writeCell($strPC . '<br>' . $strLinkAddNewPC, '200', ''));
    }
    echoT($clsRpt->closeRow());
    ++$lRowIDX;
}
echoT($clsRpt->closeReport());
예제 #30
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;
 }