From 6d049dfa2c6ae9908af19c182cc700a2aa1c87fa Mon Sep 17 00:00:00 2001 From: ceb Date: Fri, 27 Sep 2002 23:49:59 +0000 Subject: [PATCH] update css --- phpgwapi/inc/class.nextmatchs.inc.php | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/phpgwapi/inc/class.nextmatchs.inc.php b/phpgwapi/inc/class.nextmatchs.inc.php index e479092b92..85ff6310e3 100644 --- a/phpgwapi/inc/class.nextmatchs.inc.php +++ b/phpgwapi/inc/class.nextmatchs.inc.php @@ -651,7 +651,7 @@ @abstract alternate row colour @param $currentcolor default '' */ - function alternate_row_color($currentcolor = '') + /*function alternate_row_color($currentcolor = '') { if(!$currentcolor) { @@ -667,6 +667,24 @@ $GLOBALS['tr_color'] = $GLOBALS['phpgw_info']['theme']['row_on']; } + return $GLOBALS['tr_color']; + }*/ + + function alternate_row_color($currentcolor = '') + { + if(!$currentcolor) + { + $currentcolor = $GLOBALS['tr_color']; + } + + if($currentcolor == 'row_on') + { + $GLOBALS['tr_color'] = 'row_off'; + } + else + { + $GLOBALS['tr_color'] = 'row_on'; + } return $GLOBALS['tr_color']; }