if ($this->data['sysmap']['label_type_trigger'] != MAP_LABEL_TYPE_CUSTOM) { $customLabelTriggerTextArea->addClass('hidden'); } $sysmapList->addRow(_('Trigger label type'), array($labelTypeTriggerComboBox, BR(), $customLabelTriggerTextArea)); // append map to form list $labelTypeMapComboBox = new CComboBox('label_type_map', $this->data['sysmap']['label_type_map'], null, $this->data['labelTypesLimited']); $customLabelMapTextArea = new CTextArea('label_string_map', $this->data['sysmap']['label_string_map']); if ($this->data['sysmap']['label_type_map'] != MAP_LABEL_TYPE_CUSTOM) { $customLabelMapTextArea->addClass('hidden'); } $sysmapList->addRow(_('Map label type'), array($labelTypeMapComboBox, BR(), $customLabelMapTextArea)); // append image to form list $labelTypeImageComboBox = new CComboBox('label_type_image', $this->data['sysmap']['label_type_image'], null, $this->data['labelTypesImage']); $customLabelImageTextArea = new CTextArea('label_string_image', $this->data['sysmap']['label_string_image']); if ($this->data['sysmap']['label_type_image'] != MAP_LABEL_TYPE_CUSTOM) { $customLabelImageTextArea->addClass('hidden'); } $sysmapList->addRow(_('Image label type'), array($labelTypeImageComboBox, BR(), $customLabelImageTextArea)); // append icon label to form list unset($this->data['labelTypes'][MAP_LABEL_TYPE_CUSTOM]); $sysmapList->addRow(_('Icon label type'), new CComboBox('label_type', $this->data['sysmap']['label_type'], null, $this->data['labelTypes'])); // append icon label location to form list $locationComboBox = new CComboBox('label_location', $this->data['sysmap']['label_location']); $locationComboBox->addItems(array(0 => _('Bottom'), 1 => _('Left'), 2 => _('Right'), 3 => _('Top'))); $sysmapList->addRow(_('Icon label location'), $locationComboBox); // append show unack to form list $showUnackComboBox = new CComboBox('show_unack', $this->data['sysmap']['show_unack']); $showUnackComboBox->addItems(array(EXTACK_OPTION_ALL => _('All'), EXTACK_OPTION_BOTH => _('Separated'), EXTACK_OPTION_UNACK => _('Unacknowledged only'))); $showUnackComboBox->setEnabled($this->data['config']['event_ack_enable']); if (!$this->data['config']['event_ack_enable']) { $showUnackComboBox->setAttribute('title', _('Acknowledging disabled'));