} $lClientID = $client->lKeyID; echoT($clsRpt->openRow(true)); echoT($clsRpt->writeCell($lRowIDX, '', 'text-align: center;')); if ($showFields->bClientID) { echoT($clsRpt->writeCell(strLinkView_ClientRecord($lClientID, 'View client record', true, ' id="dirCID_' . $lClientID . '" ') . ' ' . str_pad($lClientID, 5, '0', STR_PAD_LEFT), 60, $strStyleActive)); } if ($showFields->bRemClient) { echoT($clsRpt->writeCell(strLinkRem_Client($lClientID, 'Remove this client\'s record', true, true))); } if ($showFields->bName) { echoT($clsRpt->writeCell($client->strSafeNameLF, 150, $strStyleActive)); } if ($showFields->bAgeGender) { echoT($clsRpt->writeCell($client->strClientAgeBDay . '<br>' . $client->enumGender, 200, $strStyleActive)); } if ($showFields->bLocation) { echoT($clsRpt->writeCell(htmlspecialchars($client->strLocation) . '<br>' . $client->strAddress, 170, $strStyleActive)); } if ($showFields->bStatus) { echoT($clsRpt->writeCell(htmlspecialchars($client->curStat_strStatus), '', $strStyleActive)); } if ($showFields->bSponsors) { echoT($clsRpt->writeCell(strSponsorSummaryViaCID(true, $client), '', $strStyleActive)); } echoT($clsRpt->closeRow()); ++$lRowIDX; } } echoT($clsRpt->closeReport()); }
private function strAttribRptClient(&$sRpt, $strLimit, $strAttrib, $strLabel) { //--------------------------------------------------------------------- // //--------------------------------------------------------------------- $this->load->helper('clients/client_sponsor'); $this->load->model('clients/mclients', 'clsClients'); $params = array('enumStyle' => 'enpRptC'); $clsRpt = new generic_rpt($params); $this->clsClients->loadClientsViaAttribID($strAttrib, true, $strLimit); $strOut = '<br>' . $clsRpt->openReport(); $strOut .= $clsRpt->writeTitle('Clients ' . $strLabel, '', '', 7); $strOut .= $clsRpt->openRow(true); $strOut .= $clsRpt->writeLabel('ClientID', 60) . $clsRpt->writeLabel(' ', 20) . $clsRpt->writeLabel('Name', 150) . $clsRpt->writeLabel('Birthday/Gender') . $clsRpt->writeLabel('Location') . $clsRpt->writeLabel('Status') . $clsRpt->writeLabel('Sponsors') . $clsRpt->closeRow(); foreach ($this->clsClients->clients as $client) { $lClientID = $client->lKeyID; $strOut .= $clsRpt->openRow(true); $strOut .= $clsRpt->writeCell(strLinkView_ClientRecord($lClientID, 'View client record', true) . ' ' . str_pad($lClientID, 5, '0', STR_PAD_LEFT), 60); $strOut .= $clsRpt->writeCell(strLinkRem_Client($lClientID, 'Remove this client\'s record', true, true)); $strOut .= $clsRpt->writeCell($client->strSafeNameLF, 150); $strOut .= $clsRpt->writeCell($client->strClientAgeBDay . '<br>' . $client->enumGender, 200); $strOut .= $clsRpt->writeCell(htmlspecialchars($client->strLocation) . '<br>' . htmlspecialchars($client->strLocCountry), 130); $strOut .= $clsRpt->writeCell(htmlspecialchars($client->curStat_strStatus), ''); $strOut .= $clsRpt->writeCell(strSponsorSummaryViaCID(true, $client)); $strOut .= $clsRpt->closeRow(); } $strOut .= $clsRpt->closeReport(); return $strOut; }