mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 13:35:56 +00:00
use print_hidden() for hidden dojo form fields
This commit is contained in:
@@ -548,9 +548,9 @@ class Pref_Feeds extends Handler_Protected {
|
||||
$title = htmlspecialchars($this->dbh->fetch_result($result,
|
||||
0, "title"));
|
||||
|
||||
print "<input dojoType=\"dijit.form.TextBox\" style=\"display : none\" name=\"id\" value=\"$feed_id\">";
|
||||
print "<input dojoType=\"dijit.form.TextBox\" style=\"display : none\" name=\"op\" value=\"pref-feeds\">";
|
||||
print "<input dojoType=\"dijit.form.TextBox\" style=\"display : none\" name=\"method\" value=\"editSave\">";
|
||||
print_hidden("id", "$feed_id");
|
||||
print_hidden("op", "pref-feeds");
|
||||
print_hidden("method", "editSave");
|
||||
|
||||
print "<div class=\"dlgSec\">".__("Feed")."</div>";
|
||||
print "<div class=\"dlgSecCont\">";
|
||||
@@ -816,9 +816,9 @@ class Pref_Feeds extends Handler_Protected {
|
||||
|
||||
print "<p>";
|
||||
|
||||
print "<input dojoType=\"dijit.form.TextBox\" style=\"display : none\" name=\"ids\" value=\"$feed_ids\">";
|
||||
print "<input dojoType=\"dijit.form.TextBox\" style=\"display : none\" name=\"op\" value=\"pref-feeds\">";
|
||||
print "<input dojoType=\"dijit.form.TextBox\" style=\"display : none\" name=\"method\" value=\"batchEditSave\">";
|
||||
print_hidden("ids", "$feed_ids");
|
||||
print_hidden("op", "pref-feeds");
|
||||
print_hidden("method", "batchEditSave");
|
||||
|
||||
print "<div class=\"dlgSec\">".__("Feed")."</div>";
|
||||
print "<div class=\"dlgSecCont\">";
|
||||
@@ -1812,8 +1812,8 @@ class Pref_Feeds extends Handler_Protected {
|
||||
}
|
||||
|
||||
function batchSubscribe() {
|
||||
print "<input dojoType=\"dijit.form.TextBox\" style=\"display : none\" name=\"op\" value=\"pref-feeds\">";
|
||||
print "<input dojoType=\"dijit.form.TextBox\" style=\"display : none\" name=\"method\" value=\"batchaddfeeds\">";
|
||||
print_hidden("op", "pref-feeds");
|
||||
print_hidden("method", "batchaddfeeds");
|
||||
|
||||
print "<table width='100%'><tr><td>
|
||||
".__("Add one valid RSS feed per line (no feed detection is done)")."
|
||||
|
||||
@@ -340,10 +340,10 @@ class Pref_Filters extends Handler_Protected {
|
||||
|
||||
print "<form id=\"filter_edit_form\" onsubmit='return false'>";
|
||||
|
||||
print "<input dojoType=\"dijit.form.TextBox\" style=\"display : none\" name=\"op\" value=\"pref-filters\">";
|
||||
print "<input dojoType=\"dijit.form.TextBox\" style=\"display : none\" name=\"id\" value=\"$filter_id\">";
|
||||
print "<input dojoType=\"dijit.form.TextBox\" style=\"display : none\" name=\"method\" value=\"editSave\">";
|
||||
print "<input dojoType=\"dijit.form.TextBox\" style=\"display : none\" name=\"csrf_token\" value=\"".$_SESSION['csrf_token']."\">";
|
||||
print_hidden("op", "pref-filters");
|
||||
print_hidden("id", "$filter_id");
|
||||
print_hidden("method", "editSave");
|
||||
print_hidden("csrf_token", $_SESSION['csrf_token']);
|
||||
|
||||
print "<div class=\"dlgSec\">".__("Caption")."</div>";
|
||||
|
||||
@@ -816,9 +816,9 @@ class Pref_Filters extends Handler_Protected {
|
||||
|
||||
print "<form name='filter_new_form' id='filter_new_form'>";
|
||||
|
||||
print "<input dojoType=\"dijit.form.TextBox\" style=\"display : none\" name=\"op\" value=\"pref-filters\">";
|
||||
print "<input dojoType=\"dijit.form.TextBox\" style=\"display : none\" name=\"method\" value=\"add\">";
|
||||
print "<input dojoType=\"dijit.form.TextBox\" style=\"display : none\" name=\"csrf_token\" value=\"".$_SESSION['csrf_token']."\">";
|
||||
print_hidden("op", "pref-filters");
|
||||
print_hidden("method", "add");
|
||||
print_hidden("csrf_token", $_SESSION['csrf_token']);
|
||||
|
||||
print "<div class=\"dlgSec\">".__("Caption")."</div>";
|
||||
|
||||
|
||||
@@ -15,9 +15,9 @@ class Pref_Labels extends Handler_Protected {
|
||||
|
||||
$line = $this->dbh->fetch_assoc($result);
|
||||
|
||||
print "<input dojoType=\"dijit.form.TextBox\" style=\"display : none\" name=\"id\" value=\"$label_id\">";
|
||||
print "<input dojoType=\"dijit.form.TextBox\" style=\"display : none\" name=\"op\" value=\"pref-labels\">";
|
||||
print "<input dojoType=\"dijit.form.TextBox\" style=\"display : none\" name=\"method\" value=\"save\">";
|
||||
print_hidden("id", "$label_id");
|
||||
print_hidden("op", "pref-labels");
|
||||
print_hidden("method", "save");
|
||||
|
||||
print "<div class=\"dlgSec\">".__("Caption")."</div>";
|
||||
|
||||
|
||||
@@ -226,8 +226,8 @@ class Pref_Prefs extends Handler_Protected {
|
||||
|
||||
print "</table>";
|
||||
|
||||
print "<input dojoType=\"dijit.form.TextBox\" style=\"display : none\" name=\"op\" value=\"pref-prefs\">";
|
||||
print "<input dojoType=\"dijit.form.TextBox\" style=\"display : none\" name=\"method\" value=\"changeemail\">";
|
||||
print_hidden("op", "pref-prefs");
|
||||
print_hidden("method", "changeemail");
|
||||
|
||||
print "<p><button dojoType=\"dijit.form.Button\" type=\"submit\">".
|
||||
__("Save data")."</button>";
|
||||
@@ -305,8 +305,8 @@ class Pref_Prefs extends Handler_Protected {
|
||||
|
||||
print "</table>";
|
||||
|
||||
print "<input dojoType=\"dijit.form.TextBox\" style=\"display : none\" name=\"op\" value=\"pref-prefs\">";
|
||||
print "<input dojoType=\"dijit.form.TextBox\" style=\"display : none\" name=\"method\" value=\"changepassword\">";
|
||||
print_hidden("op", "pref-prefs");
|
||||
print_hidden("method", "changepassword");
|
||||
|
||||
print "<p><button dojoType=\"dijit.form.Button\" type=\"submit\">".
|
||||
__("Change password")."</button>";
|
||||
@@ -351,8 +351,8 @@ class Pref_Prefs extends Handler_Protected {
|
||||
|
||||
print "</table>";
|
||||
|
||||
print "<input dojoType=\"dijit.form.TextBox\" style=\"display : none\" name=\"op\" value=\"pref-prefs\">";
|
||||
print "<input dojoType=\"dijit.form.TextBox\" style=\"display : none\" name=\"method\" value=\"otpdisable\">";
|
||||
print_hidden("op", "pref-prefs");
|
||||
print_hidden("method", "otpdisable");
|
||||
|
||||
print "<p><button dojoType=\"dijit.form.Button\" type=\"submit\">".
|
||||
__("Disable OTP")."</button>";
|
||||
@@ -371,8 +371,8 @@ class Pref_Prefs extends Handler_Protected {
|
||||
|
||||
print "<form dojoType=\"dijit.form.Form\" id=\"changeOtpForm\">";
|
||||
|
||||
print "<input dojoType=\"dijit.form.TextBox\" style=\"display : none\" name=\"op\" value=\"pref-prefs\">";
|
||||
print "<input dojoType=\"dijit.form.TextBox\" style=\"display : none\" name=\"method\" value=\"otpenable\">";
|
||||
print_hidden("op", "pref-prefs");
|
||||
print_hidden("method", "otpenable");
|
||||
|
||||
print "<script type=\"dojo/method\" event=\"onSubmit\" args=\"evt\">
|
||||
evt.preventDefault();
|
||||
@@ -658,7 +658,7 @@ class Pref_Prefs extends Handler_Protected {
|
||||
|
||||
$listed_boolean_prefs = htmlspecialchars(join(",", $listed_boolean_prefs));
|
||||
|
||||
print "<input dojoType=\"dijit.form.TextBox\" style=\"display : none\" name=\"boolean_prefs\" value=\"$listed_boolean_prefs\">";
|
||||
print_hidden("boolean_prefs", "$listed_boolean_prefs");
|
||||
|
||||
PluginHost::getInstance()->run_hooks(PluginHost::HOOK_PREFS_TAB_SECTION,
|
||||
"hook_prefs_tab_section", "prefPrefsPrefsInside");
|
||||
@@ -666,8 +666,8 @@ class Pref_Prefs extends Handler_Protected {
|
||||
print '</div>'; # inside pane
|
||||
print '<div dojoType="dijit.layout.ContentPane" region="bottom">';
|
||||
|
||||
print "<input dojoType=\"dijit.form.TextBox\" style=\"display : none\" name=\"op\" value=\"pref-prefs\">";
|
||||
print "<input dojoType=\"dijit.form.TextBox\" style=\"display : none\" name=\"method\" value=\"saveconfig\">";
|
||||
print_hidden("op", "pref-prefs");
|
||||
print_hidden("method", "saveconfig");
|
||||
|
||||
print "<div dojoType=\"dijit.form.ComboButton\" type=\"submit\">
|
||||
<span>".__('Save configuration')."</span>
|
||||
@@ -734,8 +734,8 @@ class Pref_Prefs extends Handler_Protected {
|
||||
}
|
||||
</script>";
|
||||
|
||||
print "<input dojoType=\"dijit.form.TextBox\" style=\"display : none\" name=\"op\" value=\"pref-prefs\">";
|
||||
print "<input dojoType=\"dijit.form.TextBox\" style=\"display : none\" name=\"method\" value=\"setplugins\">";
|
||||
print_hidden("op", "pref-prefs");
|
||||
print_hidden("method", "setplugins");
|
||||
|
||||
print "<table width='100%' class='prefPluginsList'>";
|
||||
|
||||
@@ -975,9 +975,9 @@ class Pref_Prefs extends Handler_Protected {
|
||||
|
||||
print_notice(T_sprintf("You can override colors, fonts and layout of your currently selected theme with custom CSS declarations here. <a target=\"_blank\" class=\"visibleLink\" href=\"%s\">This file</a> can be used as a baseline.", "css/tt-rss.css"));
|
||||
|
||||
print "<input dojoType=\"dijit.form.TextBox\" style=\"display : none\" name=\"op\" value=\"rpc\">";
|
||||
print "<input dojoType=\"dijit.form.TextBox\" style=\"display : none\" name=\"method\" value=\"setpref\">";
|
||||
print "<input dojoType=\"dijit.form.TextBox\" style=\"display : none\" name=\"key\" value=\"USER_STYLESHEET\">";
|
||||
print_hidden("op", "rpc");
|
||||
print_hidden("method", "setpref");
|
||||
print_hidden("key", "USER_STYLESHEET");
|
||||
|
||||
print "<table width='100%'><tr><td>";
|
||||
print "<textarea dojoType=\"dijit.form.SimpleTextarea\"
|
||||
|
||||
@@ -27,9 +27,9 @@ class Pref_Users extends Handler_Protected {
|
||||
|
||||
$id = (int) $this->dbh->escape_string($_REQUEST["id"]);
|
||||
|
||||
print "<input dojoType=\"dijit.form.TextBox\" style=\"display : none\" name=\"id\" value=\"$id\">";
|
||||
print "<input dojoType=\"dijit.form.TextBox\" style=\"display : none\" name=\"op\" value=\"pref-users\">";
|
||||
print "<input dojoType=\"dijit.form.TextBox\" style=\"display : none\" name=\"method\" value=\"editSave\">";
|
||||
print_hidden("id", "$id");
|
||||
print_hidden("op", "pref-users");
|
||||
print_hidden("method", "editSave");
|
||||
|
||||
$result = $this->dbh->query("SELECT * FROM ttrss_users WHERE id = '$id'");
|
||||
|
||||
@@ -43,7 +43,7 @@ class Pref_Users extends Handler_Protected {
|
||||
print "<div class=\"dlgSecCont\">";
|
||||
|
||||
if ($sel_disabled) {
|
||||
print "<input dojoType=\"dijit.form.TextBox\" style=\"display : none\" name=\"login\" value=\"$login\">";
|
||||
print_hidden("login", "$login");
|
||||
}
|
||||
|
||||
print "<input size=\"30\" style=\"font-size : 16px\"
|
||||
@@ -64,7 +64,7 @@ class Pref_Users extends Handler_Protected {
|
||||
} else {
|
||||
print_select_hash("", $access_level, $access_level_names,
|
||||
"dojoType=\"dijit.form.Select\" $sel_disabled");
|
||||
print "<input dojoType=\"dijit.form.TextBox\" style=\"display : none\" name=\"access_level\" value=\"$access_level\">";
|
||||
print_hidden("access_level", "$access_level");
|
||||
}
|
||||
|
||||
print "<hr/>";
|
||||
|
||||
Reference in New Issue
Block a user