diff options
author | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2005-05-05 13:43:32 +0000 |
---|---|---|
committer | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2005-05-05 13:43:32 +0000 |
commit | 1572af84d4d2936032d0312f3e3485c86adfb858 (patch) | |
tree | 5d8341e681d494041b9f6e9d37bc8757b6a30e56 | |
parent | 82998fa5678341270d5660efb31dd61597aef8f2 (diff) | |
download | zabbix-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
-rw-r--r-- | ChangeLog | 1 | ||||
-rw-r--r-- | frontends/php/include/local_en.inc.php | 2 | ||||
-rw-r--r-- | frontends/php/report3.php | 32 |
3 files changed, 16 insertions, 19 deletions
@@ -1,5 +1,6 @@ Changes for 1.1alpha8: + - better report3.php (Alexei) - better alarms.php (Alexei) - new item type: active check (Alexei) - new mandatory parameter for zabbix_agentd.conf - Hostname (Alexei) diff --git a/frontends/php/include/local_en.inc.php b/frontends/php/include/local_en.inc.php index 5f2367e7..913e79ae 100644 --- a/frontends/php/include/local_en.inc.php +++ b/frontends/php/include/local_en.inc.php @@ -473,12 +473,14 @@ define("S_FALSE", "False"); // report3.php + define("S_IT_SERVICES_AVAILABILITY_REPORT_BIG", "IT SERVICES AVAILABILITY REPORT"); define("S_FROM", "From"); define("S_TILL", "Till"); define("S_OK", "Ok"); define("S_PROBLEMS", "Problems"); define("S_PERCENTAGE", "Percentage"); define("S_SLA", "SLA"); + define("S_YEAR", "Year"); // screenconf.php define("S_SCREENS", "Screens"); 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." "; + $h2=S_YEAR." "; + $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; |