From 9cbbf9bef9ef53eb09cb88df7b75290ae0803838 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Mon, 25 Sep 2006 13:11:00 +0000 Subject: [PATCH] classes for filterheaders and fixed the way the *active_sortcolum class is applied --- etemplate/inc/class.nextmatch_widget.inc.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/etemplate/inc/class.nextmatch_widget.inc.php b/etemplate/inc/class.nextmatch_widget.inc.php index 7ea8e20f03..55bb513d8a 100644 --- a/etemplate/inc/class.nextmatch_widget.inc.php +++ b/etemplate/inc/class.nextmatch_widget.inc.php @@ -127,17 +127,20 @@ if ($this->last_part($name) == $nm_global['order']) // we're the active column { $cell[1] = $cell; - $cell[1]['span'] .= ',activ_sortcolumn'; unset($cell[1]['align']); $cell[2] = $tmpl->empty_cell('image',$nm_global['sort'] != 'DESC' ? 'down' : 'up'); $cell['type'] = 'hbox'; $cell['size'] = '2,0,0'; + $class = 'activ_sortcolumn'; $cell['name'] = $cell['label'] = ''; } else { - $cell['span'] .= ',inactiv_sortcolumn'; + $class = 'inactiv_sortcolumn'; } + $parts = explode(',',$cell['span']); + $parts[1] .= ($parts[1] ? ' ' : '').$class; + $cell['span'] = implode(',',$parts); return True; case 'nextmatch-accountfilter': // Option: as for selectbox: [extra-label(default ALL)[,#lines(default 1)]] @@ -158,6 +161,9 @@ $cell['help'] = 'select which values to show'; } $cell['onchange'] = $cell['noprint'] = True; + $parts = explode(',',$cell['span']); + $parts[1] .= ($parts[1] ? ' ' : '').'filterheader'; + $cell['span'] = implode(',',$parts); $extension_data['old_value'] = $value = $nm_global['col_filter'][$this->last_part($name)]; return True; }