summaryrefslogtreecommitdiffstats
path: root/frontends/php/include/html.inc.php
diff options
context:
space:
mode:
Diffstat (limited to 'frontends/php/include/html.inc.php')
-rw-r--r--frontends/php/include/html.inc.php7
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;