summaryrefslogtreecommitdiff
path: root/include/functions.php
diff options
context:
space:
mode:
Diffstat (limited to 'include/functions.php')
-rw-r--r--include/functions.php14
1 files changed, 14 insertions, 0 deletions
diff --git a/include/functions.php b/include/functions.php
index 72cf695f3..072779615 100644
--- a/include/functions.php
+++ b/include/functions.php
@@ -663,6 +663,20 @@
print "</select>";
}
+ function print_hidden($name, $value) {
+ print "<input dojoType=\"dijit.form.TextBox\" style=\"display : none\" name=\"$name\" value=\"$value\">";
+ }
+
+ function print_checkbox($id, $checked, $attributes = "") {
+ $checked_str = $checked ? "checked" : "";
+
+ print "<input dojoType=\"dijit.form.CheckBox\" id=\"$id\" $checked_str $attributes name=\"$id\">";
+ }
+
+ function print_button($type, $value, $attributes = "") {
+ print "<p><button dojoType=\"dijit.form.Button\" $attributes type=\"$type\">$value</button>";
+ }
+
function print_radio($id, $default, $true_is, $values, $attributes = "") {
foreach ($values as $v) {