diff options
| author | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2005-12-27 17:59:42 +0000 |
|---|---|---|
| committer | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2005-12-27 17:59:42 +0000 |
| commit | 461bb2a4ff683a38e6b2066f8c3fec67e110e44a (patch) | |
| tree | 330e16964a243f7c6f83a02af17c4c1b17441310 /frontends/php/actionconf.php | |
| parent | 324c7b6e8806397d52c637f352097158e8e0c7a4 (diff) | |
| download | zabbix-461bb2a4ff683a38e6b2066f8c3fec67e110e44a.tar.gz zabbix-461bb2a4ff683a38e6b2066f8c3fec67e110e44a.tar.xz zabbix-461bb2a4ff683a38e6b2066f8c3fec67e110e44a.zip | |
More changes for new configuration of actions.
git-svn-id: svn://svn.zabbix.com/trunk@2433 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/actionconf.php')
| -rw-r--r-- | frontends/php/actionconf.php | 23 |
1 files changed, 3 insertions, 20 deletions
diff --git a/frontends/php/actionconf.php b/frontends/php/actionconf.php index 06e4737d..bb73301b 100644 --- a/frontends/php/actionconf.php +++ b/frontends/php/actionconf.php @@ -47,7 +47,7 @@ $_REQUEST["repeatdelay"]=600; } - $actionid=add_action($_REQUEST["userid"], $_REQUEST["good"], $_REQUEST["delay"], $_REQUEST["subject"], $_REQUEST["message"],$_REQUEST["recipient"],$_REQUEST["usrgrpid"],$_REQUEST["maxrepeats"],$_REQUEST["repeatdelay"]); + $actionid=add_action($_REQUEST["userid"], $_REQUEST["delay"], $_REQUEST["subject"], $_REQUEST["message"],$_REQUEST["recipient"],$_REQUEST["usrgrpid"],$_REQUEST["maxrepeats"],$_REQUEST["repeatdelay"]); // add_action_to_linked_hosts($actionid); for($i=1;$i<=1000;$i++) { @@ -99,7 +99,7 @@ } if($_REQUEST["register"]=="delete") { - delete_action_from_templates($_REQUEST["actionid"]); +// delete_action_from_templates($_REQUEST["actionid"]); $result=delete_action($_REQUEST["actionid"]); show_messages($result,S_ACTION_DELETED,S_CANNOT_DELETE_ACTION); if($result) @@ -176,7 +176,7 @@ $result=DBselect($sql); table_begin(); - table_header(array(S_SOURCE,S_SEND_MESSAGE_TO,S_WHEN_TRIGGER,S_DELAY,S_SUBJECT,S_REPEATS,S_ACTIONS)); + table_header(array(S_SOURCE,S_SEND_MESSAGE_TO,S_DELAY,S_SUBJECT,S_REPEATS,S_ACTIONS)); $col=0; while($row=DBfetch($result)) { @@ -192,22 +192,6 @@ $recipient=$groupd["name"]; } - if($row["good"] == 1) - { -# echo "<TD><FONT COLOR=\"#AA0000\">".S_ON."</FONT></TD>"; - $good=array("value"=>S_ON,"class"=>"on"); - } - else if($row["good"] == 0) - { -# echo "<TD><FONT COLOR=\"#00AA00\">".S_OFF."</FONT></TD>"; - $good=array("value"=>S_OFF,"class"=>"off"); - } - else if($row["good"] == 2) - { -# echo "<TD><FONT COLOR=\"#AA0000\">".S_ON."</FONT>/<FONT COLOR=\"#00AA00\">OFF</FONT></TD>"; - $good=array("value"=>S_ON."/".S_OFF,"class"=>"on"); - } - if($row["maxrepeats"] == 0) { $maxrepeats=S_NO_REPEATS; @@ -222,7 +206,6 @@ table_row(array( get_source_description($row["source"]), $recipient, - $good, htmlspecialchars($row["delay"]), htmlspecialchars($row["subject"]), $maxrepeats, |
