cvs: pear /Structures_DataGrid/DataGrid/Renderer HTMLTable.php

From: Date: Fri, 24 Feb 2006 09:58:34 +0000
Subject: cvs: pear /Structures_DataGrid/DataGrid/Renderer HTMLTable.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-38555@lists.php.net to get a copy of this message
wiesemann Fri Feb 24 09:58:34 2006 UTC Modified files: /pear/Structures_DataGrid/DataGrid/Renderer HTMLTable.php Log: don't overwrite existing cells in <tbody> http://cvs.php.net/viewcvs.cgi/pear/Structures_DataGrid/DataGrid/Renderer/HTMLTable.php?r1=1.77&r2=1.78&diff_format=u Index: pear/Structures_DataGrid/DataGrid/Renderer/HTMLTable.php diff -u pear/Structures_DataGrid/DataGrid/Renderer/HTMLTable.php:1.77 pear/Structures_DataGrid/DataGrid/Renderer/HTMLTable.php:1.78 --- pear/Structures_DataGrid/DataGrid/Renderer/HTMLTable.php:1.77 Thu Feb 23 14:09:37 2006 +++ pear/Structures_DataGrid/DataGrid/Renderer/HTMLTable.php Fri Feb 24 09:58:34 2006 @@ -18,7 +18,7 @@ // | Mark Wiesemann <wiesemann@php.net> | // +----------------------------------------------------------------------+ // -// $Id: HTMLTable.php,v 1.77 2006/02/23 14:09:37 olivierg Exp $ +// $Id: HTMLTable.php,v 1.78 2006/02/24 09:58:34 wiesemann Exp $ require_once 'Structures/DataGrid/Renderer/Common.php'; require_once 'HTML/Table.php'; @@ -54,7 +54,7 @@ * - encoding : the content encoding. Default: ISO-8859-1 * * - * @version $Revision: 1.77 $ + * @version $Revision: 1.78 $ * @author Andrew S. Nagy <asnagy@webitecture.org> * @author Olivier Guilyardi <olivier@samalyse.com> * @author Mark Wiesemann <wiesemann@php.net> @@ -380,7 +380,8 @@ */ function buildBody() { - for ($row = 0; $row < $this->_recordsNum; $row++) { + $startRow = $this->_tableBody->getRowCount(); + for ($row = $startRow; $row < $this->_recordsNum; $row++) { for ($col = 0; $col < $this->_columnsNum; $col++) { $value = $this->_records[$row][$col]; $field = $this->_columns[$col]['field']; @@ -406,7 +407,7 @@ // output empty rows if ($this->_options['fillWithEmptyRows'] && !is_null($this->_pageLimit)) { - for ($row = $this->_recordsNum; $row < $this->_pageLimit; $row++) { + for ($row = $startRow + $this->_recordsNum; $row < $this->_pageLimit; $row++) { for ($col = 0; $col < $this->_columnsNum; $col++) { $this->_tableBody->setCellAttributes($row, $col, $this->_options['emptyRowAttributes']); $this->_tableBody->setCellContents($row, $col, '&nbsp;');

« previous php.pear.cvs (#38555) next »