From 461bb2a4ff683a38e6b2066f8c3fec67e110e44a Mon Sep 17 00:00:00 2001 From: hugetoad Date: Tue, 27 Dec 2005 17:59:42 +0000 Subject: More changes for new configuration of actions. git-svn-id: svn://svn.zabbix.com/trunk@2433 97f52cf1-0a1b-0410-bd0e-c28be96e8082 --- frontends/php/include/forms.inc.php | 63 ++++++++++++++++++++++++++++++------- 1 file changed, 51 insertions(+), 12 deletions(-) (limited to 'frontends/php/include/forms.inc.php') diff --git a/frontends/php/include/forms.inc.php b/frontends/php/include/forms.inc.php index deb740b7..3e046467 100644 --- a/frontends/php/include/forms.inc.php +++ b/frontends/php/include/forms.inc.php @@ -1508,7 +1508,6 @@ $subject=htmlspecialchars($action["subject"]); $message=$action["message"]; $uid=$action["userid"]; - $scope=@iif(isset($_REQUEST["scope"]),$_REQUEST["scope"],$action["scope"]); $recipient=@iif(isset($_REQUEST["recipient"]),$_REQUEST["recipient"],$action["recipient"]); $maxrepeats=$action["maxrepeats"]; $repeatdelay=$action["repeatdelay"]; @@ -1524,6 +1523,16 @@ { $repeat=1; } + $sql="select conditiontype, operator, value from conditions where actionid=".$_REQUEST["actionid"]; + $result=DBselect($sql); + $i=1; + while($condition=DBfetch($result)) + { + $_REQUEST["conditiontype$i"]=$condition["conditiontype"]; + $_REQUEST["conditionop$i"]=$condition["operator"]; + $_REQUEST["conditionvalue$i"]=$condition["value"]; + $i++; + } } else { @@ -1604,21 +1613,29 @@ // echo nbsp(" "."Condition"); // show_table2_h_delimiter(); $h2=""; // echo $h2; $h2=$h2.""; // echo $h2; @@ -1641,6 +1658,28 @@ { $h2=$h2.""; } + else if($conditiontype == CONDITION_TYPE_TRIGGER_VALUE) + { + $h2=$h2.""; + } + else if($conditiontype == CONDITION_TYPE_TIME_PERIOD) + { + $h2=$h2.""; + } + else if($conditiontype == CONDITION_TYPE_TRIGGER_SEVERITY) + { + $h2=$h2.""; + } else { show_table2_v_delimiter($col++); -- cgit