<?php global $genumDateFormat, $glUserID; echoT(strLinkAdd_Biz('Add new business', true) . ' ' . strLinkAdd_Biz('Add new business', false) . '<br>'); echoT('<div class="directoryLetters">' . $strDirTitle . '</div><br>'); if ($lNumRecsTot > 0) { openUserDirectory($strDirLetter, $strLinkBase, $strImgBase, $lNumRecsTot, $directoryRecsPerPage, $directoryStartRec, $lNumDisplayRows, $strRecNavTitle); } function openUserDirectory($strDirLetter, &$strLinkBase, &$strImgBase, &$lTotRecs, $lRecsPerPage, $lStartRec, $lNumThisPage, $strRecNavTitle) { //--------------------------------------------------------------------- // //--------------------------------------------------------------------- if ($strDirLetter . '' == '') { $strUsers = 'All Users'; } else { $strUsers = '"' . $strDirLetter . '"'; } echoT('<br> <table class="enpRpt" id="myLittleTable"> <tr> <td class="enpRptLabel">' . $strRecNavTitle . ' <b>' . $strUsers . '</b> </td> </tr> <tr> <td class="recSel">'); $strLinkBase = $strLinkBase . (is_null($strDirLetter) ? 'showAll' : $strDirLetter) . '/'; $strImgBase = base_url() . 'images/dbNavigate/rs_page_'; $opts = new stdClass(); $opts->strLinkBase = $strLinkBase; $opts->strImgBase = $strImgBase;
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(); }
<?php if (isset($enumContext)) { switch ($enumContext) { case CENUM_CONTEXT_BIZ: echoT(strLinkAdd_Biz('Add new person', true) . ' ' . strLinkAdd_Biz('Add new business/organization', false) . '<br><br>'); break; case CENUM_CONTEXT_VOLUNTEER: case CENUM_CONTEXT_PEOPLE: echoT(strLinkAdd_PeopleRec('Add new person', true) . ' ' . strLinkAdd_PeopleRec('Add new person', false) . '<br><br>'); break; default: break; } } echoT($strSearchLabel); echoT($strHTMLSearchResults);