summaryrefslogtreecommitdiffstats
path: root/frontends/php/graphs.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/graphs.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/graphs.php')
-rw-r--r--frontends/php/graphs.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/frontends/php/graphs.php b/frontends/php/graphs.php
index f93e2117..16df601f 100644
--- a/frontends/php/graphs.php
+++ b/frontends/php/graphs.php
@@ -103,7 +103,7 @@
$h2=S_GROUP."&nbsp;";
$h2=$h2."<select class=\"biginput\" name=\"groupid\" onChange=\"submit()\">";
- $h2=$h2."<option value=\"0\" ".iif(!isset($_GET["groupid"]),"selected","").">".S_ALL_SMALL;
+ $h2=$h2.form_select("groupid",0,S_ALL_SMALL);
$result=DBselect("select groupid,name from groups order by name");
while($row=DBfetch($result))
{
@@ -120,14 +120,14 @@
}
if($cnt!=0)
{
- $h2=$h2."<option value=\"".$row["groupid"]."\" ".iif(isset($_GET["groupid"])&&($_GET["groupid"]==$row["groupid"]),"selected","").">".$row["name"];
+ $h2=$h2.form_select("groupid",$row["groupid"],$row["name"]);
}
}
$h2=$h2."</select>";
$h2=$h2."&nbsp;".S_HOST."&nbsp;";
$h2=$h2."<select class=\"biginput\" name=\"hostid\" onChange=\"submit()\">";
- $h2=$h2."<option value=\"0\"".iif(!isset($_GET["hostid"])||($_GET["hostid"]==0),"selected","").">".S_SELECT_HOST_DOT_DOT_DOT;
+ $h2=$h2.form_select("hostid",0,S_SELECT_HOST_DOT_DOT_DOT);
if(isset($_GET["groupid"]))
{
@@ -145,7 +145,7 @@
{
continue;
}
- $h2=$h2."<option value=\"".$row["hostid"]."\"".iif(isset($_GET["hostid"])&&($_GET["hostid"]==$row["hostid"]),"selected","").">".$row["host"];
+ $h2=$h2.form_select("hostid",$row["hostid"],$row["host"]);
}
$h2=$h2."</select>";