public function displayFooter($startRow, $outputType) { echo "<tfoot>"; if (!$this->numRows) { echo "<tr class='data'><td colspan=" . $this->nfields() . "><i>" . _("Sorry, no rows were returned.") . "</i></td></tr>"; } else { if ($this->performSubtotalFlag) { $rowParms = array(); $total = null; foreach ($this->fields() as $field) { if (isset($this->columnData['sum'][$field], $this->totalSumArray[$field])) { $total = $this->sumColumn($field, $this->totalSumArray, $this->numRows); } $rowParms[] = $total === null || $total === '' ? ' ' : $total; $total = null; } $rowParms[0] = "Total for Report"; echo ReportTable::formatTotalsRow($rowParms); } if (!$this->report->onlySummary || $outputType !== 'web') { echo "<tr><td colspan=" . $this->nfields() . " align='right'><i>Showing rows ", $startRow, " to "; if (ReportTable::$maxRows > 0 && $this->numRows > ReportTable::$maxRows) { echo ReportTable::$maxRows . " of " . ReportTable::$maxRows; } else { echo "{$this->numRows} of {$this->numRows}"; } echo '</i></td></tr>'; } } echo '</tfoot>'; }