[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] phpgwapi/inc class.nextmatchs.inc.php
From: |
Dave Hall |
Subject: |
[Phpgroupware-cvs] phpgwapi/inc class.nextmatchs.inc.php |
Date: |
Tue, 19 Sep 2006 13:27:13 +0000 |
CVSROOT: /cvsroot/phpgwapi
Module name: phpgwapi
Changes by: Dave Hall <skwashd> 06/09/19 13:27:13
Modified files:
inc : class.nextmatchs.inc.php
Log message:
add handling of row_on/row_off handling
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/phpgwapi/inc/class.nextmatchs.inc.php?cvsroot=phpgwapi&r1=1.79&r2=1.80
Patches:
Index: class.nextmatchs.inc.php
===================================================================
RCS file: /cvsroot/phpgwapi/phpgwapi/inc/class.nextmatchs.inc.php,v
retrieving revision 1.79
retrieving revision 1.80
diff -u -b -r1.79 -r1.80
--- class.nextmatchs.inc.php 14 Sep 2006 06:51:42 -0000 1.79
+++ class.nextmatchs.inc.php 19 Sep 2006 13:27:13 -0000 1.80
@@ -8,7 +8,7 @@
* @license http://www.fsf.org/licenses/lgpl.html GNU Lesser General
Public License
* @package phpgwapi
* @subpackage gui
- * @version $Id: class.nextmatchs.inc.php,v 1.79 2006/09/14 06:51:42
sigurdne Exp $
+ * @version $Id: class.nextmatchs.inc.php,v 1.80 2006/09/19 13:27:13
skwashd Exp $
*/
/**
@@ -47,6 +47,11 @@
var $extra_filters = array();
/**
+ * @var the current row class
+ */
+ var $row_class = '';
+
+ /**
* Constructor
*
* @param bool $website ???
@@ -714,7 +719,7 @@
*/
function alternate_row_color($currentcolor = '')
{
- echo "call to deprecate method
nextmatchs::alternate_row_color() use nextmatchs::alternate_row_class()
instead<br>\n";
+ trigger_error( lang('Call to deleted method
nextmatchs::alternate_row_color() use nextmatchs::alternate_row_class()
instead'), E_USER_WARNING);
if (! $currentcolor)
{
$currentcolor = $GLOBALS['tr_color'];
@@ -740,7 +745,17 @@
*/
function template_alternate_row_color(&$tpl)
{
- $tpl->set_var('tr_color',$this->alternate_row_color());
+ $tpl->set_var('tr_color', $this->alternate_row_color()
);
+ }
+
+ /**
+ *
+ *
+ * @param object $tpl reference to template class
+ */
+ function template_alternate_row_class(&$tpl)
+ {
+ $tpl->set_var('tr_class', $this->row_class =
$this->alternate_row_class($this->row_class) );
}
/**