1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-15 18:15:56 +00:00

af_zz_imgproxy: add optional setting to proxy all remote images

functions: add some form helper methods
This commit is contained in:
Andrew Dolgov
2017-02-10 14:17:18 +03:00
parent 38b3998bbc
commit 8cf37284e7
2 changed files with 80 additions and 11 deletions

View File

@@ -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) {