*** /usr/share/zabbix/include/classes/class.cwidget.php.orig 2013-10-06 16:49:50.000000000 +0200 --- /usr/share/zabbix/include/classes/class.cwidget.php 2013-10-06 19:38:17.000000000 +0200 *************** *** 85,93 **** } ! public function addFlicker($items = null, $state = 0) { if (!is_null($items)) { $this->flicker[] = $items; } $this->flicker_state = $state; } --- 85,94 ---- } ! public function addFlicker($items = null, $state = 0, $indicator = null) { if (!is_null($items)) { $this->flicker[] = $items; } $this->flicker_state = $state; + $this->flicker_indicator = $indicator; } *************** *** 128,132 **** $icons_row = new CTable(null, 'textwhite'); ! $icons_row->addRow(array($icon_l, new CSpan(SPACE._('Filter').SPACE), $icon_r)); $thin_tab = $this->createFlicker($icons_row); --- 129,140 ---- $icons_row = new CTable(null, 'textwhite'); ! ! if($this->flicker_indicator == 0) { ! $icons_row->addRow(array($icon_l, new CSpan(SPACE._('Filter').SPACE), $icon_r)); ! } else if ($this->flicker_indicator == 1){ ! $icons_row->addRow(array($icon_l, new CSpan(SPACE._('Filter').SPACE), '(', new CSpan(_('empty'), "filter_empty"), ')'.SPACE, $icon_r)); ! } else if ($this->flicker_indicator == 2){ ! $icons_row->addRow(array($icon_l, new CSpan(SPACE._('Filter').SPACE), '(', new CSpan(_('active'), "filter_active"), ')'.SPACE, $icon_r)); ! } $thin_tab = $this->createFlicker($icons_row);