public function strCReportHTMLSummary() { //----------------------------------------------------------------------- // assumes user has called $this->clsCReports->loadReportViaID($lReportID, ... //----------------------------------------------------------------------- $params = array('enumStyle' => 'terse'); $clsRpt = new generic_rpt($params); $clsRpt->setEntrySummary(); $report =& $this->reports[0]; $lReportID = $report->lKeyID; $strOut = $clsRpt->openReport('', '') . $clsRpt->openRow(false) . $clsRpt->writeLabel('Report Name:') . $clsRpt->writeCell(strLinkView_CReportRec($lReportID, 'View report record', true) . ' ' . $report->strSafeName) . $clsRpt->closeRow() . $clsRpt->openRow(false) . $clsRpt->writeLabel('Report ID:') . $clsRpt->writeCell(str_pad($lReportID, 5, '0', STR_PAD_LEFT)) . $clsRpt->closeRow() . $clsRpt->openRow(false) . $clsRpt->writeLabel('Type:') . $clsRpt->writeCell($report->strXlatedRptType) . $clsRpt->closeRow() . $clsRpt->openRow(false) . $clsRpt->writeLabel('Owner:') . $clsRpt->writeCell($report->strSafeRptOwner) . $clsRpt->closeRow() . $clsRpt->closeReport('<br>'); return $strOut; }
Notes </td> <td class="enpRptLabel" > Created On </td> </tr>'); foreach ($cRpts as $report) { $lReportID = $report->lKeyID; if ($report->bUserHasWriteAccess) { $strRem = strLinkRem_CReport($lReportID, 'Remove report', true, true); } else { $strRem = ' '; } echoT(' <tr class="makeStripe"> <td class="enpRpt" nowrap>' . str_pad($lReportID, 5, '0', STR_PAD_LEFT) . ' ' . strLinkView_CReportRec($lReportID, 'View report record', true) . ' </td> <td class="enpRpt" style="text-align: center;">' . $strRem . ' </td> <td class="enpRpt" >' . htmlspecialchars($report->strName) . ' </td> <td class="enpRpt" >' . $cRptTypes[$report->enumRptType]->strLabel . ' </td> <td class="enpRpt" >' . ($report->bPrivate ? 'Private' : 'Public') . ' </td> <td class="enpRpt" style="text-align: center;">' . $report->lNumFields . ' ' . strLinkView_CReportFields($lReportID, 'View report fields', true) . ' </td> <td class="enpRpt" >' . nl2br(htmlspecialchars($report->strNotes)) . ' </td> <td class="enpRpt" >' . date($genumDateFormat, $report->dteOrigin) . ' </td>