From 231faf1162a0aac6feb4e30b18da7bd14bb8de11 Mon Sep 17 00:00:00 2001 From: hugetoad Date: Tue, 25 May 2004 07:40:51 +0000 Subject: - added support for real delta. item.delta=2. (Alexei) - new selection for triggers.php (Alexei) - new selection for items.php (Alexei) - removed helpdesk.php (Alexei) - fixed check of permissions for screenedit.php (Alexei) - new selection for graphs in charts.php (Alexei) - new selection of maps in maps.php (Alexei) - new selection of group and host for latest.php (Alexei) - added support for macro {IPADDRESS} (Alexei) git-svn-id: svn://svn.zabbix.com/trunk@1348 97f52cf1-0a1b-0410-bd0e-c28be96e8082 --- frontends/php/screenedit.php | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) (limited to 'frontends/php/screenedit.php') diff --git a/frontends/php/screenedit.php b/frontends/php/screenedit.php index e0ae1da3..6ad3c07e 100644 --- a/frontends/php/screenedit.php +++ b/frontends/php/screenedit.php @@ -26,14 +26,14 @@ ?> "; ?> No permissions !"); + show_table_header("".S_NO_PERMISSIONS.""); show_footer(); exit; } @@ -51,18 +51,18 @@ // } $result=add_screen_item($HTTP_GET_VARS["resource"],$HTTP_GET_VARS["screenid"],$HTTP_GET_VARS["x"],$HTTP_GET_VARS["y"],$HTTP_GET_VARS["resourceid"],$HTTP_GET_VARS["width"],$HTTP_GET_VARS["height"]); unset($HTTP_GET_VARS["x"]); - show_messages($result,"Item added","Cannot add item"); + show_messages($result, S_ITEM_ADDED, S_CANNOT_ADD_ITEM); } if($HTTP_GET_VARS["register"]=="delete") { $result=delete_screen_item($HTTP_GET_VARS["screenitemid"]); - show_messages($result,"Item deleted","Cannot delete item"); + show_messages($result, S_ITEM_DELETED, S_CANNOT_DELETE_ITEM); unset($HTTP_GET_VARS["x"]); } if($HTTP_GET_VARS["register"]=="update") { $result=update_screen_item($HTTP_GET_VARS["screenitemid"],$HTTP_GET_VARS["resource"],$HTTP_GET_VARS["resourceid"],$HTTP_GET_VARS["width"],$HTTP_GET_VARS["height"]); - show_messages($result,"Item updated","Cannot update item"); + show_messages($result, S_ITEM_UPDATED, S_CANNOT_UPDATE_ITEM); unset($HTTP_GET_VARS["x"]); } unset($HTTP_GET_VARS["register"]); @@ -114,7 +114,7 @@ $height=@iif(isset($HTTP_GET_VARS["height"]),$HTTP_GET_VARS["height"],$height); show_table2_header_begin(); - echo "Screen cell configuration"; + echo S_SCREEN_CELL_CONFIGURATION; echo ""; echo ""; @@ -124,18 +124,18 @@ // echo ""; show_table2_v_delimiter(); - echo "Resource"; + echo S_RESOURCE; show_table2_h_delimiter(); echo ""; if($resource == 1) { show_table2_v_delimiter(); - echo nbsp("Graph name"); + echo nbsp(S_GRAPH_NAME); show_table2_h_delimiter(); $result=DBselect("select h.host,i.description,i.itemid from hosts h,items i where h.hostid=i.hostid and h.status in (0,2) and i.status=0 order by h.host,i.description"); echo ""; @@ -168,7 +168,7 @@ else if($resource == 2) { show_table2_v_delimiter(); - echo "Map"; + echo S_MAP; show_table2_h_delimiter(); $result=DBselect("select sysmapid,name from sysmaps order by name"); echo ""; show_table2_v_delimiter(); - echo "Height"; + echo S_HEIGHT; show_table2_h_delimiter(); echo ""; } @@ -227,7 +227,7 @@ } else { - echo "Empty"; + echo "".S_EMPTY.""; } echo "\n"; -- cgit