cvs: pear /Structures_DataGrid/DataGrid/Renderer HTMLTable.php
| From: | Andrew Nagy | Date: | Tue, 18 Jan 2005 17:42:14 +0000 |
| Subject: | cvs: pear /Structures_DataGrid/DataGrid/Renderer HTMLTable.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-28664@lists.php.net to get a copy of this message | ||
asnagy Tue Jan 18 12:42:14 2005 EDT
Modified files:
/pear/Structures_DataGrid/DataGrid/Renderer HTMLTable.php
Log:
Fixed bug #3156 which deals with displaying the last page
Fixed a bug with using the autofill option
http://cvs.php.net/diff.php/pear/Structures_DataGrid/DataGrid/Renderer/HTMLTable.php?r1=1.37&r2=1.38&ty=u
Index: pear/Structures_DataGrid/DataGrid/Renderer/HTMLTable.php
diff -u pear/Structures_DataGrid/DataGrid/Renderer/HTMLTable.php:1.37
pear/Structures_DataGrid/DataGrid/Renderer/HTMLTable.php:1.38
--- pear/Structures_DataGrid/DataGrid/Renderer/HTMLTable.php:1.37 Mon Jan 10 10:15:49 2005
+++ pear/Structures_DataGrid/DataGrid/Renderer/HTMLTable.php Tue Jan 18 12:42:13 2005
@@ -16,14 +16,14 @@
// | Author: Andrew Nagy <asnagy@webitecture.org> |
// +----------------------------------------------------------------------+
//
-// $Id: HTMLTable.php,v 1.37 2005/01/10 15:15:49 asnagy Exp $
+// $Id: HTMLTable.php,v 1.38 2005/01/18 17:42:13 asnagy Exp $
require_once 'HTML/Table.php';
/**
* Structures_DataGrid_Renderer_HTMLTable Class
*
- * @version $Revision: 1.37 $
+ * @version $Revision: 1.38 $
* @author Andrew S. Nagy <asnagy@webitecture.org>
* @access public
* @package Structures_DataGrid
@@ -415,7 +415,7 @@
}
// Determine looping values
- if ($this->_dg->rowLimit == count($this->_dg->recordSet)) {
+ if ($this->_dg->rowLimit >= count($this->_dg->recordSet)) {
$begin = 0;
$end = $this->_dg->rowLimit;
} else {
@@ -454,6 +454,12 @@
} else {
// Use Record Data
$content = $row[$column->fieldName];
+
+ if (($content == '') &&
+ ($column->autoFillValue != '')) {
+ // Use AutoFill
+ $content = $column->autoFillValue;
+ }
}
// Set Content in HTML_Table