public function bTestNoLocations($strExtraMessage, &$strOutMsg)
 {
     //---------------------------------------------------------------------
     // caller should first call $clsLocation->loadAllLocations();
     //---------------------------------------------------------------------
     global $gbAdmin;
     $strOutMsg = '';
     $bNoLocs = $this->lNumLocations == 0;
     if ($bNoLocs) {
         $strOutMsg .= '<i>There are no client locations defined in your database.<br>' . $strExtraMessage . '</i><br><br>';
         if ($gbAdmin) {
             $strOutMsg .= 'You can add client locations ' . strLinkAdd_ClientLocation('here', false) . '.<br><br>';
         } else {
             $strOutMsg .= 'Please contact your ' . CS_PROGNAME . ' administrator to add one or more client locations.<br><br>';
         }
     }
     return $bNoLocs;
 }
<?php

global $gbAdmin;
echoT('There are no client locations. Please define locations before adding clients.');
if ($gbAdmin) {
    echoT('<br><br>You can add client locations ' . strLinkAdd_ClientLocation('here', false) . '.');
} else {
    echoT('<br><br>Please contact your ' . CS_PROGNAME . ' administrator to configure the client locations.');
}
<?php

echoT(strLinkAdd_ClientLocation('Add new client location', true) . ' ' . strLinkAdd_ClientLocation('Add new client location', false) . '<br><br>');
if ($lNumLocs == 0) {
    echoT('<br><i>There are no client locations defined in your database.</i>');
    return;
}
?>
 <table class="enpRptC" id="myLittleTable">
     <tr>
         <td class="enpRptTitle" colspan="8">
            Client Location Directory
         </td>
      </tr>
      <tr>
         <td class="enpRptLabel">
           Location ID
         </td>
         <td class="enpRptLabel">
           &nbsp;
         </td>
         <td class="enpRptLabel">
           Name
         </td>
         <td class="enpRptLabel">
           Address
         </td>
         <td class="enpRptLabel">
           Country
         </td>
         <td class="enpRptLabel">