function strCViaStatIDReport(&$sRpt, $lStatusID, $lStartRec, $lRecsPerPage) { //--------------------------------------------------------------------- // //--------------------------------------------------------------------- $cClient = new mclients(); $cStatus = new mclient_status(); $statInfo = $cStatus->statusInfoViaStatID($lStatusID); $strOut = ''; $cClient->strClientLimit = " LIMIT {$lStartRec}, {$lRecsPerPage} "; $cClient->strExtraClientWhere = " AND (cst_lKeyID = {$lStatusID}) "; $cClient->loadClientsGeneric(); if ($cClient->lNumClients == 0) { return '<i><br>There are no clients who meet your search criteria.</i>'; } else { return $this->strBasicClientRpt($cClient, 'Client with status: [' . htmlspecialchars($statInfo->strCatName) . '] ' . htmlspecialchars($statInfo->strStatus) . '<br> <span style="font-weight: normal; font-size: 9pt;">Status properties: ' . ($statInfo->bShowInDir ? 'Show' : 'Do Not Show') . ' in Directory / ' . ($statInfo->bAllowSponsorship ? '' : 'NOT ') . ' Sponsorable </span>'); } }