diff options
| author | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2004-05-25 07:40:51 +0000 |
|---|---|---|
| committer | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2004-05-25 07:40:51 +0000 |
| commit | 231faf1162a0aac6feb4e30b18da7bd14bb8de11 (patch) | |
| tree | 5c9266d54cb8b65d5014629871ff730547268bdb /frontends/php/charts.php | |
| parent | d3efc4c51bb20d6122b9b45964017a9d1eae7c3a (diff) | |
- 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
Diffstat (limited to 'frontends/php/charts.php')
| -rw-r--r-- | frontends/php/charts.php | 31 |
1 files changed, 27 insertions, 4 deletions
diff --git a/frontends/php/charts.php b/frontends/php/charts.php index 6eb7a033..74bcb64c 100644 --- a/frontends/php/charts.php +++ b/frontends/php/charts.php @@ -53,8 +53,33 @@ echo S_GRAPHS_BIG; show_table_v_delimiter(); +// Start of new code + echo "<form name=\"form2\" method=\"get\" action=\"charts.php\">"; - echo "<font size=2>"; + if(isset($HTTP_GET_VARS["graphid"])&&($HTTP_GET_VARS["graphid"]==0)) + { + unset($HTTP_GET_VARS["graphid"]); + } + + echo S_GRAPH." "; + echo "<input name=\"keep\" type=\"hidden\" value=".$HTTP_GET_VARS["keep"].">"; + echo "<select class=\"biginput\" name=\"graphid\" onChange=\"submit()\">"; + echo "<option value=\"0\" ".iif(!isset($HTTP_GET_VARS["graphid"]),"selected","").">".S_SELECT_GRAPH_DOT_DOT_DOT; + + $result=DBselect("select graphid,name from graphs order by name"); + while($row=DBfetch($result)) + { + if(!check_right("Graph","R",$row["graphid"])) + { + continue; + } + echo "<option value=\"".$row["graphid"]."\" ".iif(isset($HTTP_GET_VARS["graphid"])&&($HTTP_GET_VARS["graphid"]==$row["graphid"]),"selected","").">".$row["name"]; + } + echo "</select>"; + echo "</form>"; +// End of new code + +/* echo "<font size=2>"; $result=DBselect("select graphid,name from graphs order by name"); while($row=DBfetch($result)) @@ -67,7 +92,6 @@ { echo "<b>["; } -// BEGIN - IGMI - keep support $str=""; if(isset($HTTP_GET_VARS["keep"])) { @@ -85,8 +109,6 @@ $str=$str."&keep=".$HTTP_GET_VARS["keep"]; } echo "<a href='charts.php?graphid=".$row["graphid"].url_param("stime").$str."'>".$row["name"]."</a>"; -// END - IGMI - keep support -// echo "<a href='charts.php?graphid=".$row["graphid"]."'>".$row["name"]."</a>"; if(isset($HTTP_GET_VARS["graphid"]) && ($HTTP_GET_VARS["graphid"] == $row["graphid"]) ) { echo "]</b>"; @@ -100,6 +122,7 @@ } echo "</font>"; +*/ show_table_header_end(); echo "<br>"; } |
