diff options
| author | osmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2006-02-13 14:39:13 +0000 |
|---|---|---|
| committer | osmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2006-02-13 14:39:13 +0000 |
| commit | 42858cb993ece4f6cdf86d3bc77a3e0451e2a66a (patch) | |
| tree | ed54d37750ea42c92aaa05eb22ea8adb39ab8e82 /frontends/php/include/html.inc.php | |
| parent | 243d617eb24a7ba56683fcc976701064720181ba (diff) | |
| download | zabbix-42858cb993ece4f6cdf86d3bc77a3e0451e2a66a.tar.gz zabbix-42858cb993ece4f6cdf86d3bc77a3e0451e2a66a.tar.xz zabbix-42858cb993ece4f6cdf86d3bc77a3e0451e2a66a.zip | |
- fixed navigation bar for Sreens (Eugene)
(http://www.zabbix.com/forum/showthread.php?t=2148)
git-svn-id: svn://svn.zabbix.com/trunk@2637 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/include/html.inc.php')
| -rw-r--r-- | frontends/php/include/html.inc.php | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/frontends/php/include/html.inc.php b/frontends/php/include/html.inc.php index 4c888aaa..23ac7cb8 100644 --- a/frontends/php/include/html.inc.php +++ b/frontends/php/include/html.inc.php @@ -50,8 +50,14 @@ function form_select($var, $value, $label) { global $_REQUEST; - - return "<option value=\"$value\" ".iif(isset($_REQUEST[$var])&&$_REQUEST[$var]==$value,"selected","").">$label"; + + $selected = ""; + if(!is_null($var)) + { + if(isset($_REQUEST[$var])&&$_REQUEST[$var]==$value) + $selected = "selected"; + } + return "<option value=\"$value\" $selected>$label"; } function form_input($name, $value, $size) |
