function showBizInfo($clsRpt, $lBID, &$clsBiz) { //--------------------------------------------------------------------- // //--------------------------------------------------------------------- global $gbDateFormatUS, $glclsDTDateFormat; $clsDateTime = new dl_date_time(); echoT(strLinkAdd_Biz('Add new business/organization', true) . ' ' . strLinkAdd_Biz('Add new business/organization', false) . '<br>'); openBlock('Business', strLinkEdit_Biz($lBID, 'Edit business/organization information', true) . ' ' . strLinkRem_Biz($lBID, 'Remove this business record', true, true)); echoT($clsRpt->openReport() . $clsRpt->openRow() . $clsRpt->writeLabel('Business ID:') . $clsRpt->writeCell(str_pad($lBID, 5, '0', STR_PAD_LEFT), '', '', 1, 1, ' id="bID" ') . $clsRpt->closeRow() . $clsRpt->openRow() . $clsRpt->writeLabel('Name:') . $clsRpt->writeCell($clsBiz->strSafeName, '', '', 1, 1, ' id="safeBizName" ') . $clsRpt->closeRow() . $clsRpt->openRow() . $clsRpt->writeLabel('Category:') . $clsRpt->writeCell($clsBiz->strIndustry) . $clsRpt->closeRow() . $clsRpt->openRow() . $clsRpt->writeLabel('Address:') . $clsRpt->writeCell(strBuildAddress($clsBiz->strAddr1, $clsBiz->strAddr2, $clsBiz->strCity, $clsBiz->strState, $clsBiz->strCountry, $clsBiz->strZip, true, true)) . $clsRpt->closeRow()); echoT($clsRpt->openRow() . $clsRpt->writeLabel('Phone:') . $clsRpt->writeCell(htmlspecialchars(strPhoneCell($clsBiz->strPhone, $clsBiz->strCell)), '', '', 1, 1, ' id="phone" ') . $clsRpt->closeRow()); echoT($clsRpt->openRow() . $clsRpt->writeLabel('Fax:') . $clsRpt->writeCell(htmlspecialchars($clsBiz->strFax), '', '', 1, 1, ' id="fax" ') . $clsRpt->closeRow()); echoT($clsRpt->openRow() . $clsRpt->writeLabel('Web Site:') . $clsRpt->writeCell(htmlspecialchars($clsBiz->strWebSite)) . $clsRpt->closeRow()); echoT($clsRpt->openRow() . $clsRpt->writeLabel('Email:') . $clsRpt->writeCell($clsBiz->strEmailFormatted) . $clsRpt->closeRow() . $clsRpt->openRow() . $clsRpt->writeLabel('ACO:') . $clsRpt->writeCell($clsBiz->strFlagImage . ' ' . $clsBiz->strCurSymbol) . $clsRpt->closeRow()); //------------------ // Notes //------------------ echoT($clsRpt->openRow() . $clsRpt->writeLabel('Notes:') . $clsRpt->writeCell(nl2br(htmlspecialchars($clsBiz->strNotes))) . $clsRpt->closeRow()); //------------------ // Attributed To //------------------ echoT($clsRpt->openRow() . $clsRpt->writeLabel('Attributed To:') . $clsRpt->writeCell(htmlspecialchars($clsBiz->strAttrib)) . $clsRpt->closeRow()); echoT($clsRpt->closeReport()); closeBlock(); }
echoT($clsRpt->writeCell('<i>No businesses/organizations match your search criteria</i>', '', '', $lNumCols)); } else { $idx = 1; foreach ($bizRecs as $biz) { $lBID = $biz->lKeyID; echoT($clsRpt->openRow(true)); echoT('<td class="enpRpt" style="text-align: center;">' . $idx . '</td>'); ++$idx; if ($showFields->bBizID) { echoT($clsRpt->writeCell(strLinkView_BizRecord($lBID, 'View business record', true) . ' ' . str_pad($lBID, 5, '0', STR_PAD_LEFT), 10)); } //-------------------- // Remove link //-------------------- if ($showFields->bRemBiz) { echoT($clsRpt->writeCell(strLinkRem_Biz($lBID, 'Remove this business record', true, true, '', $showFields->deleteReturnPath, $showFields->lReturnPathID))); } //-------------------- // Import ID //-------------------- if ($showFields->bImportID) { echoT($clsRpt->writeCell(htmlspecialchars($biz->strImportRecID) . ' ')); } //-------------------- // Biz Name //-------------------- if ($showFields->bName) { echoT($clsRpt->writeCell($biz->strSafeName, 160)); } if ($showFields->bAddress) { echoT($clsRpt->writeCell($biz->strAddress, 140));