diff options
author | Andrew Dolgov <[email protected]> | 2017-02-10 14:17:18 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2017-02-10 14:17:18 +0300 |
commit | 8cf37284e757cd4b36beb69fe3180dabea3e648b (patch) | |
tree | 44734dbcaacc82aa670041f85633fbdee2b3dbd0 /include/functions.php | |
parent | 38b3998bbc41b01ef5cf6de18387f96a14f32836 (diff) |
af_zz_imgproxy: add optional setting to proxy all remote images
functions: add some form helper methods
Diffstat (limited to 'include/functions.php')
-rw-r--r-- | include/functions.php | 14 |
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) { |