From d3efc4c51bb20d6122b9b45964017a9d1eae7c3a Mon Sep 17 00:00:00 2001 From: hugetoad Date: Thu, 20 May 2004 12:34:33 +0000 Subject: - added support of localisation (Alexei) - added file frontends/php/include/locale_en.inc.php (Alexei) - fixed check of NNTP service (Alexei) git-svn-id: svn://svn.zabbix.com/trunk@1347 97f52cf1-0a1b-0410-bd0e-c28be96e8082 --- frontends/php/graph.php | 68 ++++++++++++++++++++++++------------------------- 1 file changed, 34 insertions(+), 34 deletions(-) (limited to 'frontends/php/graph.php') diff --git a/frontends/php/graph.php b/frontends/php/graph.php index 7b4c6bb6..2e123876 100644 --- a/frontends/php/graph.php +++ b/frontends/php/graph.php @@ -20,20 +20,20 @@ ?> "; ?> No permissions !"); + show_table_header("".S_NO_PERMISSIONS.""); show_footer(); exit; } @@ -45,31 +45,31 @@ if($HTTP_GET_VARS["register"]=="add") { $result=add_item_to_graph($HTTP_GET_VARS["graphid"],$HTTP_GET_VARS["itemid"],$HTTP_GET_VARS["color"],$HTTP_GET_VARS["drawtype"],$HTTP_GET_VARS["sortorder"]); - show_messages($result,"Item added","Cannot add item"); + show_messages($result,S_ITEM_ADDED, S_CANNOT_ADD_ITEM); } if($HTTP_GET_VARS["register"]=="update") { $result=update_graph_item($HTTP_GET_VARS["gitemid"],$HTTP_GET_VARS["itemid"],$HTTP_GET_VARS["color"],$HTTP_GET_VARS["drawtype"],$HTTP_GET_VARS["sortorder"]); - show_messages($result,"Item updated","Cannot update item"); + show_messages($result, S_ITEM_UPDATED, S_CANNOT_UPDATE_ITEM); } if($HTTP_GET_VARS["register"]=="delete") { $result=delete_graphs_item($HTTP_GET_VARS["gitemid"]); - show_messages($result,"Item deleted","Cannot delete item"); + show_messages($result, S_ITEM_DELETED, S_CANNOT_DELETE_ITEM); unset($HTTP_GET_VARS["gitemid"]); } if($HTTP_GET_VARS["register"]=="up") { $sql="update graphs_items set sortorder=sortorder-1 where sortorder>0 and gitemid=".$HTTP_GET_VARS["gitemid"]; $result=DBexecute($sql); - show_messages($result,"Sort order updated","Cannot update sort order"); + show_messages($result, S_SORT_ORDER_UPDATED, S_CANNOT_UPDATE_SORT_ORDER); unset($HTTP_GET_VARS["gitemid"]); } if($HTTP_GET_VARS["register"]=="down") { $sql="update graphs_items set sortorder=sortorder+1 where sortorder<100 and gitemid=".$HTTP_GET_VARS["gitemid"]; $result=DBexecute($sql); - show_messages($result,"Sort order updated","Cannot update sort order"); + show_messages($result, S_SORT_ORDER_UPDATED, S_CANNOT_UPDATE_SORT_ORDER); unset($HTTP_GET_VARS["gitemid"]); } } @@ -87,14 +87,14 @@ echo ""; echo ""; - show_table_header("DISPLAYED PARAMETERS"); + show_table_header(S_DISPLAYED_PARAMETERS_BIG); echo ""; - echo ""; - echo ""; - echo ""; - echo ""; - echo ""; - echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; echo ""; $sql="select i.itemid,h.host,i.description,gi.gitemid,gi.color,gi.drawtype,gi.sortorder from hosts h,graphs_items gi,items i where i.itemid=gi.itemid and gi.graphid=".$HTTP_GET_VARS["graphid"]." and h.hostid=i.hostid order by gi.sortorder"; @@ -111,11 +111,11 @@ echo ""; echo ""; echo ""; echo ""; } @@ -141,7 +141,7 @@ } show_table2_header_begin(); - echo "New item for graph"; + echo S_NEW_ITEM_FOR_THE_GRAPH; show_table2_v_delimiter(); echo ""; @@ -151,7 +151,7 @@ echo ""; } - echo "Parameter"; + echo S_PARAMETER; 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 ""; show_table2_v_delimiter(); - echo "Type"; + echo S_TYPE; show_table2_h_delimiter(); echo ""; show_table2_v_delimiter(); - echo "Color"; + echo S_COLOR; show_table2_h_delimiter(); echo ""; show_table2_v_delimiter(); - echo nbsp("Sort order (0->100)"); + echo nbsp("S_SORT_ORDER_1_100"); show_table2_h_delimiter(); echo ""; -- cgit
Sort orderHostParameterTypeColorActions".S_SORT_ORDER."".S_HOST."".S_PARAMETER."".S_TYPE."".S_COLOR."".S_ACTIONS."
".get_drawtype_description($row["drawtype"])."".$row["color"].""; - echo "Change"; + echo "".S_CHANGE.""; echo " - "; - echo "Up"; + echo "".S_UP.""; echo " - "; - echo "Down"; + echo "".S_DOWN.""; echo "