diff options
| author | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2005-05-14 21:04:35 +0000 |
|---|---|---|
| committer | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2005-05-14 21:04:35 +0000 |
| commit | d9fe75cd26afc681a902a611d56454add751b113 (patch) | |
| tree | 1810bf536507e9e7e2708fbadfef64d84cf045ac /frontends/php/overview.php | |
| parent | 1196b90ca4175ae95a6e6a48280a5dc8b5403a81 (diff) | |
- 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/overview.php')
| -rw-r--r-- | frontends/php/overview.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/frontends/php/overview.php b/frontends/php/overview.php index 2159ea32..1dccf2e2 100644 --- a/frontends/php/overview.php +++ b/frontends/php/overview.php @@ -64,7 +64,7 @@ $h2=S_GROUP." "; $h2=$h2."<select class=\"biginput\" name=\"groupid\" onChange=\"submit()\">"; - $h2=$h2."<option value=\"0\" ".iif(!isset($_GET["groupid"]),"selected","").">".S_SELECT_GROUP_DOT_DOT_DOT; + $h2=$h2.form_select("groupid",0,S_SELECT_GROUP_DOT_DOT_DOT); $result=DBselect("select groupid,name from groups order by name"); while($row=DBfetch($result)) { @@ -81,15 +81,15 @@ } 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." ".S_TYPE." "; $h2=$h2."<select class=\"biginput\" name=\"type\" onChange=\"submit()\">"; - $h2=$h2."<option value=\"0\" ".iif(isset($_GET["type"])&&($_GET["type"]==0),"selected","").">".S_TRIGGERS; - $h2=$h2."<option value=\"1\" ".iif(isset($_GET["type"])&&($_GET["type"]==1),"selected","").">".S_DATA; + $h2=$h2.form_select("type",0,S_TRIGGERS); + $h2=$h2.form_select("type",1,S_DATA); $h2=$h2."</select>"; show_header2($h1, $h2, "<form name=\"form2\" method=\"get\" action=\"overview.php\">", "</form>"); |
