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/include/html.inc.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/include/html.inc.php')
| -rw-r--r-- | frontends/php/include/html.inc.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/frontends/php/include/html.inc.php b/frontends/php/include/html.inc.php index d08b895a..4c1b70d1 100644 --- a/frontends/php/include/html.inc.php +++ b/frontends/php/include/html.inc.php @@ -24,6 +24,13 @@ return str_replace(" "," ",$str);; } + function form_select($var, $value, $label) + { + global $_GET; + + return "<option value=\"$value\" ".iif(isset($_GET[$var])&&$_GET[$var]==$value,"selected","").">$label"; + } + function url1_param($parameter) { global $_GET; |
