public function bTestNoStatCats($strExtraMessage, &$strOutMsg) { //--------------------------------------------------------------------- // caller should first call $clsClientStat->loadClientStatCats(true, false, null); //--------------------------------------------------------------------- global $gbAdmin; $strOutMsg = ''; $bNoStatCat = $this->lNumStatCats <= 0; if ($bNoStatCat) { $strOutMsg .= '<i>There are no client status categories defined in your database. <br>' . $strExtraMessage . '</i><br><br>'; if ($gbAdmin) { $strOutMsg .= 'You can add client status categories ' . strLinkAdd_ClientStatCat('here', false) . '.<br><br>'; } else { $strOutMsg .= 'Please contact your ' . CS_PROGNAME . ' administrator to add one or more client status categories.<br><br>'; } } return $bNoStatCat; }
<?php echoT(strLinkAdd_ClientStatCat('Add new client status category', true) . ' ' . strLinkAdd_ClientStatCat('Add new client status category', false) . '<br><br>'); if ($numStatCat <= 0) { echoT('<i>There are currently no client status records defined for this sponsorship category.</i><br><br>'); } else { echoT(strClientStatusCatTable($statCats, $statCatsEntries, true, true)); }