diff options
| author | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2005-08-26 16:17:57 +0000 |
|---|---|---|
| committer | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2005-08-26 16:17:57 +0000 |
| commit | 19d8ca6f149b006c8775c2e7ae24d74f16201198 (patch) | |
| tree | 3ef2e08011c1423ada2689707250fc80f3ed1bfd /frontends/php/include | |
| parent | 53338d4d70ccb87b724bd3df293b8ce1b32fbb11 (diff) | |
| download | zabbix-19d8ca6f149b006c8775c2e7ae24d74f16201198.tar.gz zabbix-19d8ca6f149b006c8775c2e7ae24d74f16201198.tar.xz zabbix-19d8ca6f149b006c8775c2e7ae24d74f16201198.zip | |
- misc usability fixes for PHP interface (Alexei)
git-svn-id: svn://svn.zabbix.com/trunk@1998 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/include')
| -rw-r--r-- | frontends/php/include/config.inc.php | 66 | ||||
| -rw-r--r-- | frontends/php/include/locales/en_gb.inc.php | 12 |
2 files changed, 48 insertions, 30 deletions
diff --git a/frontends/php/include/config.inc.php b/frontends/php/include/config.inc.php index c2b529d9..e7112685 100644 --- a/frontends/php/include/config.inc.php +++ b/frontends/php/include/config.inc.php @@ -1065,50 +1065,50 @@ echo "</head>"; <?php $menu=array( "view"=>array( - "label"=>"View", + "label"=>S_VIEW, "pages"=>array("overview.php","latest.php","tr_status.php","queue.php","latestalarms.php","alerts.php","maps.php","charts.php","screens.php","srv_status.php","alarms.php","history.php","tr_comments.php","report3.php","profile.php"), "level2"=>array( - array("label"=>"Overview","url"=>"overview.php"), - array("label"=>"Latest data","url"=>"latest.php"), - array("label"=>"Triggers","url"=>"tr_status.php?onlytrue=true&noactions=true&compact=true"), - array("label"=>"Queue","url"=>"queue.php"), - array("label"=>"Events","url"=>"latestalarms.php"), - array("label"=>"Actions","url"=>"alerts.php"), - array("label"=>"Maps","url"=>"maps.php"), - array("label"=>"Graphs","url"=>"charts.php"), - array("label"=>"Screens","url"=>"screens.php"), - array("label"=>"IT Services","url"=>"srv_status.php") + array("label"=>S_OVERVIEW,"url"=>"overview.php"), + array("label"=>S_LATEST_DATA,"url"=>"latest.php"), + array("label"=>S_TRIGGERS,"url"=>"tr_status.php"), + array("label"=>S_QUEUE,"url"=>"queue.php"), + array("label"=>S_EVENTS,"url"=>"latestalarms.php"), + array("label"=>S_ACTIONS,"url"=>"alerts.php"), + array("label"=>S_MAPS,"url"=>"maps.php"), + array("label"=>S_GRAPHS,"url"=>"charts.php"), + array("label"=>S_SCREENS,"url"=>"screens.php"), + array("label"=>S_IT_SERVICES,"url"=>"srv_status.php") ) ), "reports"=>array( - "label"=>"Reports", + "label"=>S_REPORTS, "pages"=>array("report1.php","report2.php"), "level2"=>array( - array("label"=>"Status of ZABBIX","url"=>"report1.php"), - array("label"=>"Availability report","url"=>"report2.php") + array("label"=>S_STATUS_OF_ZABBIX,"url"=>"report1.php"), + array("label"=>S_AVAILABILITY_REPORT,"url"=>"report2.php") ) ), "configuration"=>array( - "label"=>"Configuration", + "label"=>S_CONFIGURATION, "pages"=>array("config.php","users.php","audit.php","hosts.php","items.php","triggers.php","sysmaps.php","graphs.php","screenconf.php","services.php","sysmap.php","media.php","screenedit.php","actions.php","graph.php"), "level2"=>array( - array("label"=>"General","url"=>"config.php"), - array("label"=>"Users","url"=>"users.php"), - array("label"=>"Audit","url"=>"audit.php"), - array("label"=>"Hosts","url"=>"hosts.php"), - array("label"=>"Items","url"=>"items.php"), - array("label"=>"Triggers","url"=>"triggers.php"), - array("label"=>"Maps","url"=>"sysmaps.php"), - array("label"=>"Graphs","url"=>"graphs.php"), - array("label"=>"Screens","url"=>"screenconf.php"), - array("label"=>"IT Services","url"=>"services.php") + array("label"=>S_GENERAL,"url"=>"config.php"), + array("label"=>S_USERS,"url"=>"users.php"), + array("label"=>S_AUDIT,"url"=>"audit.php"), + array("label"=>S_HOSTS,"url"=>"hosts.php"), + array("label"=>S_ITEMS,"url"=>"items.php"), + array("label"=>S_TRIGGERS,"url"=>"triggers.php"), + array("label"=>S_MAPS,"url"=>"sysmaps.php"), + array("label"=>S_GRAPHS,"url"=>"graphs.php"), + array("label"=>S_SCREENS,"url"=>"screenconf.php"), + array("label"=>S_IT_SERVICES,"url"=>"services.php") ) ), "login"=>array( - "label"=>"Login", + "label"=>S_LOGIN, "pages"=>array("index.php"), "level2"=>array( - array("label"=>"Login","url"=>"index.php"), + array("label"=>S_LOGIN,"url"=>"index.php"), ) ), ); @@ -1165,10 +1165,18 @@ echo "</head>"; $active_level1=$label; } } + if($i==0) $url=get_profile("web.menu.view.last",0); + else if($i==1) $url=get_profile("web.menu.reports.last",0); + else if($i==2) $url=get_profile("web.menu.config.last",0); + if($url=="0") $url=$sub["level2"][0]["url"]; if($active==1) - echo "<td class=\"horizontal_menu\" height=24 colspan=9><b><a href=\"".$sub["level2"][0]["url"]."\" class=\"highlight\">".$sub["label"]."</a></b></td>"; + { + echo "<td class=\"horizontal_menu\" height=24 colspan=9><b><a href=\"$url\" class=\"highlight\">".$sub["label"]."</a></b></td>"; + } else - echo "<td class=\"horizontal_menu_n\" height=24 colspan=9><b><a href=\"".$sub["level2"][0]["url"]."\" class=\"highlight\">".$sub["label"]."</a></b></td>"; + { + echo "<td class=\"horizontal_menu_n\" height=24 colspan=9><b><a href=\"$url\" class=\"highlight\">".$sub["label"]."</a></b></td>"; + } $i++; } ?> diff --git a/frontends/php/include/locales/en_gb.inc.php b/frontends/php/include/locales/en_gb.inc.php index 0fb7a387..ba2fc613 100644 --- a/frontends/php/include/locales/en_gb.inc.php +++ b/frontends/php/include/locales/en_gb.inc.php @@ -206,7 +206,7 @@ // Latest values "S_LATEST_VALUES"=> "Latest values", "S_NO_PERMISSIONS"=> "No permissions !", - "S_LATEST_DATA"=> "LATEST DATA", + "S_LATEST_DATA_BIG"=> "LATEST DATA", "S_ALL_SMALL"=> "all", "S_DESCRIPTION_LARGE"=> "DESCRIPTION", "S_DESCRIPTION_SMALL"=> "Description", @@ -538,6 +538,7 @@ "S_SCREENS"=> "Screens", "S_SCREEN"=> "Screen", "S_CONFIGURATION_OF_SCREENS_BIG"=> "CONFIGURATION OF SCREENS", + "S_CONFIGURATION_OF_SCREENS"=> "Configuration of screens", "S_SCREEN_ADDED"=> "Screen added", "S_CANNOT_ADD_SCREEN"=> "Cannot add screen", "S_SCREEN_UPDATED"=> "Screen updated", @@ -745,5 +746,14 @@ "S_HELP"=> "Help", "S_PROFILE"=> "Profile", + "S_VIEW"=> "View", + "S_QUEUE"=> "Queue", + "S_EVENTS"=> "Events", + "S_MAPS"=> "Maps", + "S_REPORTS"=> "Reports", + "S_GENERAL"=> "General", + "S_AUDIT"=> "Audit", + "S_LOGIN"=> "Login", + "S_LATEST_DATA"=> "Latest data", ); ?> |
