$attributes = new stdClass(); $attributes->lTableWidth = 1200; $attributes->bStartOpen = false; foreach ($cprogs as $cp) { $lCPID = $cp->lKeyID; if ($cp->bHidden) { $strLabel = '<font style="color: #aaa;">' . htmlspecialchars($cp->strProgramName) . '</font>'; } else { $strLabel = htmlspecialchars($cp->strProgramName); } $attributes->divID = 'clientServices' . $lCPID; $attributes->divImageID = 'clientServicesDivImg' . $lCPID; $attributes->bCloseDiv = false; openBlock($strLabel, '', $attributes); echoT($clsRpt->openReport()); echoT($clsRpt->openRow() . $clsRpt->writeLabel('Client Program ID:', '', 'vertical-align: bottom;') . $clsRpt->writeCell(str_pad($cp->lKeyID, 5, '0', STR_PAD_LEFT)) . $clsRpt->closeRow()); echoT($clsRpt->openRow() . $clsRpt->writeLabel('lEnrollmentTableID:', '', 'vertical-align: bottom;') . $clsRpt->writeCell($cp->lEnrollmentTableID) . $clsRpt->closeRow()); echoT($clsRpt->openRow() . $clsRpt->writeLabel('lAttendanceTableID:', '', 'vertical-align: bottom;') . $clsRpt->writeCell($cp->lAttendanceTableID) . $clsRpt->closeRow()); echoT($clsRpt->openRow() . $clsRpt->writeLabel('strEnrollmentTable:', '', 'vertical-align: bottom;') . $clsRpt->writeCell($cp->strEnrollmentTable) . $clsRpt->closeRow()); echoT($clsRpt->openRow() . $clsRpt->writeLabel('strETableFNPrefix:', '', 'vertical-align: bottom;') . $clsRpt->writeCell($cp->strETableFNPrefix) . $clsRpt->closeRow()); echoT($clsRpt->openRow() . $clsRpt->writeLabel('strAttendanceTable:', '', 'vertical-align: bottom;') . $clsRpt->writeCell($cp->strAttendanceTable) . $clsRpt->closeRow()); echoT($clsRpt->openRow() . $clsRpt->writeLabel('strATableFNPrefix:', '', 'vertical-align: bottom;') . $clsRpt->writeCell($cp->strATableFNPrefix) . $clsRpt->closeRow()); echoT($clsRpt->openRow() . $clsRpt->writeLabel('lActivityFieldID:', '', 'vertical-align: bottom;') . $clsRpt->writeCell($cp->lActivityFieldID) . $clsRpt->closeRow()); echoT($clsRpt->openRow() . $clsRpt->writeLabel('strActivityFN:', '', 'vertical-align: bottom;') . $clsRpt->writeCell($cp->strActivityFN) . $clsRpt->closeRow()); echoT($clsRpt->closeReport()); // Fields $attFields->divID = 'cpFields' . $lCPID; $attFields->divImageID = 'cpFieldsDivImg' . $lCPID; $attFields->lTableWidth = 800; $attFields->bCloseDiv = false; openBlock('Fields', '', $attFields);
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 . ' (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) . ' ' . 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; }
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) . ' ' . 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; }
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) . ' '; } 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 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) . ' ' . $biz->strSafeName . ' (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; }
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 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) . ' ' . $clsC->strSafeName . ' (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 .= ' ' . $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; }
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) . ' ' . 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 . ' ' . 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 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) . ' ' . 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>'); }
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 = ' ' . 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 $gbVolMgr; $params = array('enumStyle' => 'terse', 'clsRpt'); $clsRpt = new generic_rpt($params); $clsRpt->strWidthLabel = '130pt'; $strLinkRem = ' ' . strLinkRem_PCon($lPConID, 'Remove', true, true) . ' ' . strLinkRem_PCon($lPConID, 'Remove', false, true); $strLinkEdit = strLinkEdit_PCon($lPConID, $lPatientID, 'Edit record', true, ' id="editPCon" ') . ' ' . strLinkEdit_PCon($lPConID, $lPatientID, 'Edit record', false, ' id="editPCon1" '); openBlock('Patient Contact', $strLinkEdit . $strLinkRem); echoT($clsRpt->openReport()); // name echoT($clsRpt->openRow() . $clsRpt->writeLabel('Name:') . $clsRpt->writeCell(htmlspecialchars($pCon->strPConLName . ', ' . $pCon->strPConFName . ' ' . $pCon->strPConMName)) . $clsRpt->closeRow()); // relationship echoT($clsRpt->openRow() . $clsRpt->writeLabel('Relationship:') . $clsRpt->writeCell(htmlspecialchars($pCon->strRelationship)) . $clsRpt->closeRow()); // address 1 echoT($clsRpt->openRow() . $clsRpt->writeLabel('Address 1:') . $clsRpt->writeCell(htmlspecialchars($pCon->strAddr1)) . $clsRpt->closeRow()); // address 2 echoT($clsRpt->openRow() . $clsRpt->writeLabel('Address 2:') . $clsRpt->writeCell(htmlspecialchars($pCon->strAddr2)) . $clsRpt->closeRow()); // city/state/zip/country echoT($clsRpt->openRow() . $clsRpt->writeLabel('City/State/Zip/Country:') . $clsRpt->writeCell(htmlspecialchars($pCon->strCity . ', ' . $pCon->strState . ' ' . $pCon->strZip . ' ' . $pCon->strCountry)) . $clsRpt->closeRow()); // phone echoT($clsRpt->openRow() . $clsRpt->writeLabel('Phone:') . $clsRpt->writeCell(htmlspecialchars($pCon->strPhone)) . $clsRpt->closeRow()); // cell echoT($clsRpt->openRow() . $clsRpt->writeLabel('Cell:') . $clsRpt->writeCell(htmlspecialchars($pCon->strCell)) . $clsRpt->closeRow()); // email if ($pCon->strEmail == '') { $strEMail = ''; } else { $strEMail = '<a href="mailto:' . $pCon->strEmail . '">' . $pCon->strEmail . '</a>'; } echoT($clsRpt->openRow() . $clsRpt->writeLabel('EMail:') . $clsRpt->writeCell($strEMail) . $clsRpt->closeRow());
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 . ' ' . $deposit->strFlagImg) . $clsRpt->closeRow() . "\n"; $strOut .= $clsRpt->closeReport("<br>\n"); return $strOut; }
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) . ' ' . 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) . ' ' . 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 . ' ' . $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());
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 . ' ' . $sponRec->strSponSafeNameFL . ' ' . $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) . ' ' . htmlspecialchars($sponRec->strSponProgram) . ' (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) . ' ' . $sponRec->strClientSafeNameFL . ' (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; }
$attributes->divID = 'cprog' . $lCProgID . 'Div'; $attributes->divImageID = 'cprog' . $lCProgID . 'DivImg'; $attributes->bCloseDiv = false; $attributes->bStartOpen = false; openBlock(htmlspecialchars($cprog->strProgramName), '', $attributes); if ($cprog->lNumEnrolledCurrent > 0) { $strLinkViewCurrentEnrolled = ' ' . strLinkView_CProgEnrollDir($lCProgID, true, 'View currently active', true); } else { $strLinkViewCurrentEnrolled = ''; } if ($cprog->lNumEnrolledTot > 0) { $strLinkViewTotEnrolled = ' ' . strLinkView_CProgEnrollDir($lCProgID, false, 'View all enrolled clients', true); } else { $strLinkViewTotEnrolled = ''; } echoT($crpt->openReport() . $crpt->openRow() . $crpt->writeLabel('Description:') . $crpt->writeCell(nl2br(htmlspecialchars($cprog->strDescription))) . $crpt->closeRow()); echoT($crpt->openRow() . $crpt->writeLabel('Time Frame:') . $crpt->writeCell(date($genumDateFormat, $cprog->dteStart) . ' - ' . date($genumDateFormat, $cprog->dteEnd)) . $crpt->closeRow()); echoT($crpt->openRow() . $crpt->writeLabel('# Active ' . $cprog->strSafeEnrollLabel . ':') . $crpt->writeCell(number_format($cprog->lNumEnrolledCurrent) . $strLinkViewCurrentEnrolled) . $crpt->closeRow()); echoT($crpt->openRow() . $crpt->writeLabel('Total ' . $cprog->strSafeEnrollLabel . ':') . $crpt->writeCell(number_format($cprog->lNumEnrolledTot) . $strLinkViewTotEnrolled) . $crpt->closeRow()); echoT($crpt->openRow() . $crpt->writeLabel('# Client ' . $cprog->strSafeEnrollLabel . ':') . $crpt->writeCell(number_format($cprog->lNumClientsCurrent) . $strLinkViewCurrentEnrolled) . $crpt->closeRow()); 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) . ' ' . 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">
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); }
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) . ' ' . $clsC->strSafeName . ' (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; }
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) . ' ' . 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; }
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(' ', ''); $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'); }
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) . ' ' . str_pad($lProviderID, 5, '0', STR_PAD_LEFT)) . $clsRpt->closeRow(); $strOut .= $clsRpt->closeReport('<br>'); return $strOut; }
if ($bReadOnly) { $strLinkEdit = ''; } else { $strLinkEdit = strLinkEdit_UFMultiRecEntry($utable->enumTType, $lTableID, $lFID, $lRID, true, 'Edit record', ' id="editURec_' . $lTableID . '_' . $lRID . '" ', $lEnrollRecID) . ' ' . strLinkEdit_UFMultiRecEntry($utable->enumTType, $lTableID, $lFID, $lRID, false, 'Edit record', ' id="editURec1_' . $lTableID . '_' . $lRID . '" ', $lEnrollRecID); } if ($bCProg && !$bEnrollment) { $strCloneAttendance = ' ' . strLinkClone_CPAttendance($cprog->lKeyID, $lRID, 'Clone ' . $cprog->strSafeAttendLabel, true) . ' ' . strLinkClone_CPAttendance($cprog->lKeyID, $lRID, 'Clone ' . $cprog->strSafeAttendLabel, false) . ' '; } else { $strCloneAttendance = ''; } openBlock($strTableLabel, $strLinkEdit . $strCloneAttendance . $strLinkRem); echoT($clsRpt->openReport(800)); if ($utable->lNumFields == 0 && !$bCProg) { echoT('<i>There is no data associated with this record!</i><br>'); } else { echoT($clsRpt->openRow() . $clsRpt->writeLabel('tableID:') . $clsRpt->writeCell(str_pad($lTableID, 5, '0', STR_PAD_LEFT)) . $clsRpt->closeRow()); echoT($clsRpt->openRow() . $clsRpt->writeLabel('recordID:') . $clsRpt->writeCell(str_pad($lRID, 5, '0', STR_PAD_LEFT)) . $clsRpt->closeRow()); // add default fields if client program if ($bCProg) { if ($bEnrollment) { showCProgERecFields($clsRpt, $cprog, $erecs[0]); } else { showCProgARecFields($clsRpt, $cprog, $arecs[0]); } } if ($mRec->bRecordEntered) { echoT($clsRpt->openRow() . $clsRpt->writeLabel('Created:') . $clsRpt->writeCell(date($genumDateFormat . ' H:i:s', $mRec->dteOrigin) . ' by ' . htmlspecialchars($mRec->strUCFName . ' ' . $mRec->strUCLName)) . $clsRpt->closeRow()); echoT($clsRpt->openRow() . $clsRpt->writeLabel('Last Updated:') . $clsRpt->writeCell(date($genumDateFormat . ' H:i:s', $mRec->dteLastUpdate) . ' by ' . htmlspecialchars($mRec->strULFName . ' ' . $mRec->strULLName)) . $clsRpt->closeRow()); } else { echoT($clsRpt->openRow() . $clsRpt->writeLabel('Created:') . $clsRpt->writeCell('(has not been written)') . $clsRpt->closeRow()); }
<?php global $genumDateFormat; $strImportType = $logEntry->enumImportType; if ($strImportType == CENUM_CONTEXT_SPONSORPAY) { $strImportType = 'Sponsor Payment'; } $strImportType = strtoupper(substr($strImportType, 0, 1)) . substr($strImportType, 1); $params = array('enumStyle' => 'terse', 'clsRpt'); $clsRpt = new generic_rpt($params); $clsRpt->strWidthLabel = '100pt'; openBlock('Import Log', ''); echoT($clsRpt->openReport()); echoT($clsRpt->openRow() . $clsRpt->writeLabel('Import ID:') . $clsRpt->writeCell(str_pad($logEntry->lKeyID, 5, '0', STR_PAD_LEFT)) . $clsRpt->closeRow()); echoT($clsRpt->openRow() . $clsRpt->writeLabel('Import Type:') . $clsRpt->writeCell($strImportType) . $clsRpt->closeRow()); if ($bPTable) { echoT($clsRpt->openRow() . $clsRpt->writeLabel('Table:') . $clsRpt->writeCell('[' . strXlateContext($logEntry->enumAttachType, true, false) . '] ' . htmlspecialchars($logEntry->strUserTableName)) . $clsRpt->closeRow()); } echoT($clsRpt->openRow() . $clsRpt->writeLabel('Date of Import:') . $clsRpt->writeCell(date($genumDateFormat . ' H:i:s', $logEntry->dteOrigin)) . $clsRpt->closeRow()); echoT($clsRpt->openRow() . $clsRpt->writeLabel('Imported By:') . $clsRpt->writeCell($logEntry->strUserCSafeName) . $clsRpt->closeRow()); echoT($clsRpt->closeReport()); closeBlock();
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; }
<?php echoT(strLinkAdd_GiftAcct('Add new donation account', true) . ' ' . strLinkAdd_GiftAcct('Add new account', false) . '<br><br>'); if ($lNumAccts == 0) { echoT('<i>There are currently no accounts defined in your database!</i><br><br>'); } else { $params = array('enumStyle' => 'enpRptC'); $clsRpt = new generic_rpt($params); echoT($clsRpt->openReport(400) . $clsRpt->writeTitle('Donation Accounts', 500, '', 4) . $clsRpt->openRow(false) . $clsRpt->writeLabel('Acct ID', '65', 'text-align: center; vertical-align: bottom;') . $clsRpt->writeLabel('Account Name', '', 'text-align: center; vertical-align: bottom;') . $clsRpt->writeLabel('# Campaigns', '30', 'text-align: center; vertical-align: bottom;') . $clsRpt->writeLabel('Total Donations', '130', 'text-align: center; vertical-align: bottom;') . $clsRpt->closeRow()); $idx = 0; foreach ($accts as $clsAcct) { $lAID = $clsAcct->lKeyID; $clsRpt->openRow(true); if ($clsAcct->bProtected) { $strLinkEdit = ' '; } else { $strLinkEdit = strLinkEdit_GiftAcct($lAID, 'Edit account', true); } echoT($clsRpt->writeCell($strLinkEdit . ' ' . str_pad($lAID, 5, '0', STR_PAD_LEFT), '', $strStyleExtra = 'text-align: center;') . $clsRpt->writeCell(htmlspecialchars($clsAcct->strAccount)) . $clsRpt->writeCell($clsAC->lNumCampsViaAcctID($lAID, false) . ' ' . strLinkView_GiftCampaigns($lAID, 'View campaigns', true) . ' ', '', 'text-align: right;') . $clsRpt->writeCell($strCumGiftsNonSoft[$idx] . $strLinkGifts[$idx], '', 'text-align: left;') . $clsRpt->closeRow()); ++$idx; } echoT($clsRpt->closeReport()); }
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) . ' ' . 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) . ' ' . 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; }
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) . ' ' . 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 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) . ' ' . $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; }
//--------------------------- // 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) . ' ' . 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 . '" ') . ' ' . 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());
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; }