diff options
| author | osmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2005-12-30 11:36:15 +0000 |
|---|---|---|
| committer | osmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2005-12-30 11:36:15 +0000 |
| commit | ac9c6ecc360df3e9347194fbb2924b2bf68954f4 (patch) | |
| tree | a0f29bb7e8d470b6576adc7248e97cc91ea9da6b /frontends/php/graphs.php | |
| parent | d5dce47a8b216a4db6ba2d075edd0e2de7556b6a (diff) | |
| download | zabbix-ac9c6ecc360df3e9347194fbb2924b2bf68954f4.tar.gz zabbix-ac9c6ecc360df3e9347194fbb2924b2bf68954f4.tar.xz zabbix-ac9c6ecc360df3e9347194fbb2924b2bf68954f4.zip | |
- added Graphs synchronization for linked hosts (Eugene)
git-svn-id: svn://svn.zabbix.com/trunk@2458 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/graphs.php')
| -rw-r--r-- | frontends/php/graphs.php | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/frontends/php/graphs.php b/frontends/php/graphs.php index b394da38..882ea298 100644 --- a/frontends/php/graphs.php +++ b/frontends/php/graphs.php @@ -26,11 +26,9 @@ show_header($page["title"],0,0); insert_confirm_javascript(); ?> - <?php show_table_header(S_CONFIGURATION_OF_GRAPHS_BIG); ?> - <?php if(!check_anyright("Graph","U")) { @@ -42,7 +40,6 @@ update_profile("web.latest.hostid",$_REQUEST["hostid"]); update_profile("web.menu.config.last",$page["file"]); ?> - <?php if(isset($_REQUEST["register"])) { @@ -57,6 +54,8 @@ } if($_REQUEST["register"]=="update") { + update_graph_from_templates($_REQUEST["graphid"],$_REQUEST["name"],$_REQUEST["width"],$_REQUEST["height"],$_REQUEST["yaxistype"],$_REQUEST["yaxismin"],$_REQUEST["yaxismax"]); + $result=update_graph($_REQUEST["graphid"],$_REQUEST["name"],$_REQUEST["width"],$_REQUEST["height"],$_REQUEST["yaxistype"],$_REQUEST["yaxismin"],$_REQUEST["yaxismax"]); if($result) { @@ -66,6 +65,7 @@ } if($_REQUEST["register"]=="delete") { + delete_graph_from_templates($_REQUEST["graphid"]); $graph=get_graph_by_graphid($_REQUEST["graphid"]); $result=delete_graph($_REQUEST["graphid"]); if($result) @@ -77,7 +77,6 @@ } } ?> - <?php if(isset($_REQUEST["groupid"])&&($_REQUEST["groupid"]==0)) { @@ -155,7 +154,6 @@ show_header2($h1,$h2,"<form name=\"form2\" method=\"get\" action=\"graphs.php\">","</form>"); ?> - <?php table_begin(); table_header(array(S_ID,S_NAME,S_WIDTH,S_HEIGHT,S_ACTIONS)); @@ -199,14 +197,12 @@ } table_end(); ?> - <?php echo "<a name=\"form\"></a>"; insert_graph_form(); ?> - <?php show_footer(); ?> |
