summaryrefslogtreecommitdiffstats
path: root/frontends/php/include
diff options
context:
space:
mode:
authorhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2005-12-26 20:32:02 +0000
committerhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2005-12-26 20:32:02 +0000
commitb4942b68162cb3606056b71e46ae91d630e10523 (patch)
tree55f6eaeb4eccedd69f967f35260bbf41a0213f75 /frontends/php/include
parenteac15533a497e31e41f44dd38518d7ad91c4e6dc (diff)
Not finished:
- new concept of defenition of actions, one screen (Alexei) - new fields for table 'actions' (Alexei) git-svn-id: svn://svn.zabbix.com/trunk@2429 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/include')
-rw-r--r--frontends/php/include/actions.inc.php14
-rw-r--r--frontends/php/include/config.inc.php17
-rw-r--r--frontends/php/include/forms.inc.php2
-rw-r--r--frontends/php/include/locales/en_gb.inc.php1
4 files changed, 16 insertions, 18 deletions
diff --git a/frontends/php/include/actions.inc.php b/frontends/php/include/actions.inc.php
index f3f4df21..db6f9f81 100644
--- a/frontends/php/include/actions.inc.php
+++ b/frontends/php/include/actions.inc.php
@@ -276,4 +276,18 @@
}
}
}
+
+ function get_source_description($source)
+ {
+ $desc="Unknown";
+ if($source==1)
+ {
+ $desc="IT Service";
+ }
+ elseif($source==0)
+ {
+ $desc="Trigger";
+ }
+ return $desc;
+ }
?>
diff --git a/frontends/php/include/config.inc.php b/frontends/php/include/config.inc.php
index 05e38709..25e6b82c 100644
--- a/frontends/php/include/config.inc.php
+++ b/frontends/php/include/config.inc.php
@@ -573,23 +573,6 @@
}
*/
- function get_scope_description($scope)
- {
- $desc="Unknown";
- if($scope==2)
- {
- $desc="All";
- }
- elseif($scope==1)
- {
- $desc="Host";
- }
- elseif($scope==0)
- {
- $desc="Trigger";
- }
- return $desc;
- }
// The hash has form <md5sum of triggerid>,<sum of priorities>
function calc_trigger_hash()
diff --git a/frontends/php/include/forms.inc.php b/frontends/php/include/forms.inc.php
index a5b2b41d..c63bfd74 100644
--- a/frontends/php/include/forms.inc.php
+++ b/frontends/php/include/forms.inc.php
@@ -1699,7 +1699,7 @@
echo nbsp(S_ACTION_TYPE);
show_table2_h_delimiter();
echo "<select class=\"biginput\" name=\"actiontype\" size=\"1\" onChange=\"submit()\">";
- echo "<option value=\"0\""; if($actiontype==0) echo " selected"; echo ">".S_MESSAGE;
+ echo "<option value=\"0\""; if($actiontype==0) echo " selected"; echo ">".S_SEND_MESSAGE;
echo "<option value=\"1\""; if($actiontype==1) echo " selected"; echo ">".S_REMOTE_COMMAND;
echo "</select>";
diff --git a/frontends/php/include/locales/en_gb.inc.php b/frontends/php/include/locales/en_gb.inc.php
index 6dee0983..b9d47e7b 100644
--- a/frontends/php/include/locales/en_gb.inc.php
+++ b/frontends/php/include/locales/en_gb.inc.php
@@ -53,6 +53,7 @@
"S_FILTER_TRIGGER_SEVERITY"=> "Filter: Trigger severity",
"S_FILTER_WHEN_TRIGGER_BECOMES"=> "Filter: When trigger becomes",
"S_ACTION_TYPE"=> "Action type",
+ "S_SEND_MESSAGE"=> "Send message",
"S_REMOTE_COMMAND"=> "Remote command",
// actions.php