$hostgroup->addStatusMessage(_('Chyba přiřazení kontaktu'), 'warning'); } break; default: if ($oPage->isPosted()) { $hostgroup->takeData($_POST); if (!$hostgroup->getId()) { $hostgroup->setDataValue('members', array()); } $hostgroupID = $hostgroup->saveToMySQL(); if (is_null($hostgroupID)) { $oUser->addStatusMessage(_('Skupina hostů nebyla uložena'), 'warning'); } else { $oUser->addStatusMessage(_('Skupina hostů byla uložena'), 'success'); } $hostgroup->saveMembers(); } $delete = $oPage->getGetValue('delete', 'bool'); if ($delete == 'true') { $hostgroup->delete(); $oPage->redirect('hostgroups.php'); exit; } break; } $oPage->addItem(new IEPageTop(_('Editace skupiny hostů') . ' ' . $hostgroup->getName())); $hostgroupEdit = new IECfgEditor($hostgroup); $form = new EaseTWBForm('Hostgroup', 'hostgroup.php', 'POST', $hostgroupEdit, array('class' => 'form-horizontal')); $form->setTagID($form->getTagName()); if (!is_null($hostgroup->getMyKey())) { $form->addItem(new EaseHtmlInputHiddenTag($hostgroup->getmyKeyColumn(), $hostgroup->getMyKey()));