summaryrefslogtreecommitdiff
path: root/includes/sys_template.php
diff options
context:
space:
mode:
authorPhilip Häusler <msquare@notrademark.de>2011-06-02 16:56:45 +0200
committerPhilip Häusler <msquare@notrademark.de>2011-06-02 16:56:45 +0200
commit0d351f47915679f98cbd93cd5d8f4d32d91a834a (patch)
tree172987cc073c573956547a344a32a5ef6f9311d8 /includes/sys_template.php
parent5a935f413dd6dff69df736b437073d343aa8a6ec (diff)
admin rooms
Diffstat (limited to 'includes/sys_template.php')
-rw-r--r--includes/sys_template.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/includes/sys_template.php b/includes/sys_template.php
index ab613c07..2c7f4f22 100644
--- a/includes/sys_template.php
+++ b/includes/sys_template.php
@@ -14,4 +14,12 @@ function template_render($file, $data) {
die('Cannot find template file &laquo;' . $file . '&raquo;.');
}
}
+
+function html_options($name, $options, $selected = "") {
+ $html = "";
+ foreach ($options as $value => $label)
+ $html .= '<input type="radio"' . ($value == $selected ? ' selected="selected"' : '') . ' name="' . $name . '" value="' . $value . '"> ' . $label;
+
+ return $html;
+}
?> \ No newline at end of file