summaryrefslogtreecommitdiffstats
path: root/frontends/php/report3.php
diff options
context:
space:
mode:
authorhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2005-05-05 13:43:32 +0000
committerhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2005-05-05 13:43:32 +0000
commit1572af84d4d2936032d0312f3e3485c86adfb858 (patch)
tree5d8341e681d494041b9f6e9d37bc8757b6a30e56 /frontends/php/report3.php
parent82998fa5678341270d5660efb31dd61597aef8f2 (diff)
downloadzabbix-1572af84d4d2936032d0312f3e3485c86adfb858.tar.gz
zabbix-1572af84d4d2936032d0312f3e3485c86adfb858.tar.xz
zabbix-1572af84d4d2936032d0312f3e3485c86adfb858.zip
- better report3.php (Alexei)
git-svn-id: svn://svn.zabbix.com/trunk@1747 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/report3.php')
-rw-r--r--frontends/php/report3.php32
1 files changed, 13 insertions, 19 deletions
diff --git a/frontends/php/report3.php b/frontends/php/report3.php
index 0c9020e7..9c362fa7 100644
--- a/frontends/php/report3.php
+++ b/frontends/php/report3.php
@@ -45,37 +45,31 @@
?>
<?php
- show_table_header_begin();
- echo "IT SERVICES AVAILABILITY REPORT";
- echo "<br>";
- echo "<a href=\"srv_status.php?serviceid=".$service["serviceid"]."\">",$service["name"],"</a>";;
+ if(!isset($_GET["show"]))
+ {
+ $_GET["show"]=0;
+ }
- show_table_v_delimiter();
+ $h1=S_IT_SERVICES_AVAILABILITY_REPORT_BIG;
+ $h1=$h1.":"."<a href=\"srv_status.php?serviceid=".$service["serviceid"]."\">".$service["name"]."</a>";
+# $h2=S_GROUP."&nbsp;";
+ $h2=S_YEAR."&nbsp;";
+ $h2=$h2."<input name=\"serviceid\" type=\"hidden\" value=".$_GET["serviceid"].">";
+ $h2=$h2."<select class=\"biginput\" name=\"year\" onChange=\"submit()\">";
$result=DBselect("select h.hostid,h.host from hosts h,items i where h.status=".HOST_STATUS_MONITORED." and h.hostid=i.hostid group by h.hostid,h.host order by h.host");
$year=date("Y");
for($year=date("Y")-2;$year<=date("Y");$year++)
{
- if( isset($_GET["year"]) && ($_GET["year"] == $year) )
- {
- echo "<b>[";
- }
- echo "<a href='report3.php?serviceid=".$_GET["serviceid"]."&year=$year'>".$year."</a>";
- if(isset($_GET["year"]) && ($_GET["year"] == $year) )
- {
- echo "]</b>";
- }
- echo " ";
+ $h2=$h2."<option value=\"$year\" ".iif(isset($_GET["year"])&&($_GET["year"]==$year),"selected","").">".$year;
}
+ $h2=$h2."</select>";
- show_table_header_end();
+ show_header2($h1, $h2, "<form name=\"selection\" method=\"get\" action=\"report3.php\">", "</form>");
?>
<?php
-
-
- echo "<br>";
table_begin();
table_header(array(S_FROM,S_TILL,S_OK,S_PROBLEMS,S_PERCENTAGE,S_SLA));
$col=0;