summaryrefslogtreecommitdiffstats
path: root/frontends/php/include/forms.inc.php
diff options
context:
space:
mode:
authorartem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2008-03-20 14:04:01 +0000
committerartem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2008-03-20 14:04:01 +0000
commitdac53ecd0f9665e64f6e0f523de62823bf0a2090 (patch)
tree4f66ab367ad1df6bf615aa1161e64bc0355416eb /frontends/php/include/forms.inc.php
parentfdf2f4adc3931e50e59c87517613d6fac71b8d4c (diff)
downloadzabbix-dac53ecd0f9665e64f6e0f523de62823bf0a2090.tar.gz
zabbix-dac53ecd0f9665e64f6e0f523de62823bf0a2090.tar.xz
zabbix-dac53ecd0f9665e64f6e0f523de62823bf0a2090.zip
- [DEV-122] improved "Events" screen, added "Event Details" screen (Artem)
- applied patch by scricca: added Host-profiles to export/import (Artem) git-svn-id: svn://svn.zabbix.com/trunk@5508 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/include/forms.inc.php')
-rw-r--r--frontends/php/include/forms.inc.php31
1 files changed, 17 insertions, 14 deletions
diff --git a/frontends/php/include/forms.inc.php b/frontends/php/include/forms.inc.php
index ada9a9ac..11d17553 100644
--- a/frontends/php/include/forms.inc.php
+++ b/frontends/php/include/forms.inc.php
@@ -639,17 +639,19 @@
$title = S_ACKNOWLEDGE_ALARM_BY;
$btn_txt2 = S_ACKNOWLEDGE.' '.S_AND_SYMB.' '.S_RETURN;
}
- else if(!DBfetch(get_acknowledges_by_eventid(get_request('eventid',0))))
- {
- $title = S_ACKNOWLEDGE_ALARM_BY;
- $btn_txt = S_ACKNOWLEDGE;
- $btn_txt2 = S_ACKNOWLEDGE.' '.S_AND_SYMB.' '.S_RETURN;
- }
- else
- {
- $title = S_ADD_COMMENT_BY;
- $btn_txt = S_SAVE;
- $btn_txt2 = S_SAVE.' '.S_AND_SYMB.' '.S_RETURN;
+ else{
+ $temp=get_acknowledges_by_eventid(get_request('eventid',0));
+
+ if(!DBfetch($temp)){
+ $title = S_ACKNOWLEDGE_ALARM_BY;
+ $btn_txt = S_ACKNOWLEDGE;
+ $btn_txt2 = S_ACKNOWLEDGE.' '.S_AND_SYMB.' '.S_RETURN;
+ }
+ else{
+ $title = S_ADD_COMMENT_BY;
+ $btn_txt = S_SAVE;
+ $btn_txt2 = S_SAVE.' '.S_AND_SYMB.' '.S_RETURN;
+ }
}
$frmMsg= new CFormTable($title." \"".$USER_DETAILS["alias"]."\"");
@@ -2255,7 +2257,7 @@
function insert_login_form(){
// author: Aly
// description:
-// konqueror bug #138024; adding usless param(login=1) to the form's action path to avoid bug!!
+// konqueror bug #138024; adding useless param(login=1) to the form's action path to avoid bug!!
$frmLogin = new CFormTable('Login','index.php?login=1',"post","multipart/form-data");
$frmLogin->SetHelp('web.index.login');
@@ -2371,11 +2373,12 @@
$btnSelect, BR(),
new CButton("add_dependence",S_ADD)
),'new');
-
+ /* end new dependence */
+
$type_select = new CComboBox('type');
$type_select->Additem(TRIGGER_MULT_EVENT_DISABLED,S_NORMAL,(($type == TRIGGER_MULT_EVENT_ENABLED)?'no':'yes'));
$type_select->Additem(TRIGGER_MULT_EVENT_ENABLED,S_NORMAL.SPACE.'+'.SPACE.S_MULTIPLE_TRUE_EVENTS,(($type == TRIGGER_MULT_EVENT_ENABLED)?'yes':'no'));
- /* end new dependence */
+
$frmTrig->AddRow(S_EVENT_GENERATION,$type_select);
$cmbPrior = new CComboBox("priority",$priority);