summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2017-02-10 14:17:18 +0300
committerAndrew Dolgov <[email protected]>2017-02-10 14:17:18 +0300
commit8cf37284e757cd4b36beb69fe3180dabea3e648b (patch)
tree44734dbcaacc82aa670041f85633fbdee2b3dbd0 /include
parent38b3998bbc41b01ef5cf6de18387f96a14f32836 (diff)
af_zz_imgproxy: add optional setting to proxy all remote images
functions: add some form helper methods
Diffstat (limited to 'include')
-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) {