summaryrefslogtreecommitdiffstats
path: root/frontends/php/report3.php
diff options
context:
space:
mode:
authorhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2005-05-14 21:04:35 +0000
committerhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2005-05-14 21:04:35 +0000
commitd9fe75cd26afc681a902a611d56454add751b113 (patch)
tree1810bf536507e9e7e2708fbadfef64d84cf045ac /frontends/php/report3.php
parent1196b90ca4175ae95a6e6a48280a5dc8b5403a81 (diff)
downloadzabbix-d9fe75cd26afc681a902a611d56454add751b113.tar.gz
zabbix-d9fe75cd26afc681a902a611d56454add751b113.tar.xz
zabbix-d9fe75cd26afc681a902a611d56454add751b113.zip
- better readability of php code (Alexei)
git-svn-id: svn://svn.zabbix.com/trunk@1772 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/report3.php')
-rw-r--r--frontends/php/report3.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/frontends/php/report3.php b/frontends/php/report3.php
index 3d749748..16b5546a 100644
--- a/frontends/php/report3.php
+++ b/frontends/php/report3.php
@@ -62,16 +62,16 @@
$year=date("Y");
for($year=date("Y")-2;$year<=date("Y");$year++)
{
- $h2=$h2."<option value=\"$year\" ".iif(isset($_GET["year"])&&($_GET["year"]==$year),"selected","").">".$year;
+ $h2=$h2.form_select("year",$year,$year);
}
$h2=$h2."</select>";
$h2=$h2."&nbsp;".S_PERIOD."&nbsp;";
$h2=$h2."<select class=\"biginput\" name=\"period\" onChange=\"submit()\">";
- $h2=$h2."<option value=\"daily\" ".iif($_GET["period"]=="daily","selected","").">".S_DAILY;
- $h2=$h2."<option value=\"weekly\" ".iif($_GET["period"]=="weekly","selected","").">".S_WEEKLY;
- $h2=$h2."<option value=\"monthly\" ".iif($_GET["period"]=="monthly","selected","").">".S_MONTHLY;
- $h2=$h2."<option value=\"yearly\" ".iif($_GET["period"]=="yearly","selected","").">".S_YEARLY;
+ $h2=$h2.form_select("period","daily",S_DAILY);
+ $h2=$h2.form_select("period","weekly",S_WEEKLY);
+ $h2=$h2.form_select("period","monthly",S_MONTHLY);
+ $h2=$h2.form_select("period","yearly",S_YEARLY);
$h2=$h2."</select>";
show_header2($h1, $h2, "<form name=\"selection\" method=\"get\" action=\"report3.php\">", "</form>");