function reportDupBizInfo($clsDateTime, $clsRpt, $dupBiz) { //--------------------------------------------------------------------- // //--------------------------------------------------------------------- foreach ($dupBiz as $biz) { echoT('<table class="enpView" style="margin-bottom: 16pt;">'); showBizInfo($clsDateTime, $clsRpt, $biz); echoT('</table>'); } }
<?php // $clsDateTime = new dl_date_time; $params = array('enumStyle' => 'terse', 'clsRpt'); $clsRpt = new generic_rpt($params); $clsRpt->strWidthLabel = '90pt'; $clsRpt->bValueEscapeHTML = false; $lBID = $biz->lKeyID; $lIndentWidth = 20; showBizInfo($clsRpt, $lBID, $biz); showSponsorshipInfo($clsRpt, $sponInfo, $lNumSponsors, $lBID, $biz); showBizContactInfo($clsRpt, $lBID, $biz, $lNumContacts, $contacts); showGroupInfo($lBID, $biz->strSafeName, $lNumGroups, $groupList, $inGroups, $lCntGroupMembership, CENUM_CONTEXT_BIZ, 'bRecView'); showCustomBizTableInfo($strPT, $lNumPTablesAvail); if (bAllowAccess('showFinancials')) { showGifts($lBID, true, $strCumGiftsNonSoftMon, $strCumGiftsNonSoftInKind, $strCumGiftsSoft, $strCumSpon, $lNumPledges, $lTotHard, $lTotSoft, $lTotInKind, $lNumSponPay); } showImageInfo(CENUM_CONTEXT_BIZ, $lBID, ' Images', $images, $lNumImages, $lNumImagesTot); // showReminderBlock ($clsRem, $lBID, CENUM_CONTEXT_BIZ); showDocumentInfo(CENUM_CONTEXT_BIZ, $lBID, ' Documents', $docs, $lNumDocs, $lNumDocsTot); showBizENPStats($clsRpt, $biz); function showBizENPStats($clsRpt, $biz) { //--------------------------------------------------------------------- // //--------------------------------------------------------------------- $attributes = new stdClass(); $attributes->lTableWidth = 900; $attributes->divID = 'bizENPStats'; $attributes->divImageID = 'bizENPStatsDivImg'; openBlock('Record Information', '', $attributes);
<?php $clsDateTime = new dl_date_time(); $params = array('enumStyle' => 'terse', 'clsRpt'); $clsRpt = new generic_rpt($params); $clsRpt->strWidthLabel = '130pt'; $clsRpt->openReport(); openBlock('Consolidated Business Record', ''); echoT('<table class="enpView" border="0">'); showBizInfo($clsDateTime, $clsRpt, $biz, $dupIDs); echoT('</table>'); closeBlock(); function showBizInfo($clsDateTime, $clsRpt, $biz, $dupIDs) { //--------------------------------------------------------------------- // //--------------------------------------------------------------------- global $gbDateFormatUS, $genumDateFormat, $glclsDTDateFormat; // Biz ID $lBizID = $biz->lKeyID; echoT($clsRpt->openRow() . $clsRpt->writeLabel('Business ID:') . $clsRpt->writeCell(strLinkView_BizRecord($lBizID, 'View business record', true) . ' ' . str_pad($lBizID, 5, '0', STR_PAD_LEFT)) . $clsRpt->closeRow()); // Name echoT($clsRpt->openRow() . $clsRpt->writeLabel('Name:') . $clsRpt->writeCell($biz->strSafeName) . $clsRpt->closeRow()); // Address echoT($clsRpt->openRow() . $clsRpt->writeLabel('Address:') . $clsRpt->writeCell($biz->strAddress) . $clsRpt->closeRow()); // Phone echoT($clsRpt->openRow() . $clsRpt->writeLabel('Phone:') . $clsRpt->writeCell(htmlspecialchars(strPhoneCell($biz->strPhone, $biz->strCell))) . $clsRpt->closeRow()); echoT($clsRpt->openRow() . $clsRpt->writeLabel('Consolidated With:') . $clsRpt->writeCell('Business IDs: ' . implode(', ', $dupIDs)) . $clsRpt->closeRow()); }