table_attr = 'align="center" class="dataListPrinted" cellpadding="3" cellspacing="1"'; $this->table_header_attr = 'class="dataListHeaderPrinted"'; } /** * Modified method to make HTML output more friendly to printer * * @param object $obj_db * @param integer $int_num2show * @return string */ protected function makeOutput($int_num2show = 30) { // remove invisible field parent::removeInvisibleField(); // disable row highlight $this->highlight_row = false; // get fields array and set the table header $this->setHeader($this->grid_result_fields); $_record_row = 1; // data loop foreach ($this->grid_result_rows as $_data) { // alternate the row color $_row_class = ($_record_row%2 == 0)?'alterCellPrinted':'alterCellPrinted2'; // append array to table $this->appendTableRow($_data); // field style modification foreach ($this->grid_result_fields as $_idx => $_fld) { // checking for special field width value set by column_width property array $_row_attr = 'valign="top"'; $_classes = $_row_class; if (isset($this->column_width[$_idx])) { $_row_attr .= ' style="width: '.$this->column_width[$_idx].';"'; } $this->setCellAttr($_record_row, $_idx, $_row_attr.' class="'.$_classes.'"'); } $_record_row++; } // init buffer return var $_buffer = ''; // create paging if ($this->num_rows > $int_num2show) { $this->paging_set = simbio_paging::paging($this->num_rows, $int_num2show, 10, '', 'reportView'); } else { $this->paging_set = ' '; } $_buffer .= '