controls_compat: comment out most of them

This commit is contained in:
Andrew Dolgov 2021-02-16 18:53:56 +03:00
parent f58c49beaa
commit 24c79d91c2
2 changed files with 8 additions and 6 deletions

View File

@ -889,10 +889,6 @@ class Pref_Filters extends Handler_Protected {
id='filterDlg_actionParam' style=\"$param_hidden\" id='filterDlg_actionParam' style=\"$param_hidden\"
name='action_param' value=\"$action_param\">"; name='action_param' value=\"$action_param\">";
/*print_label_select("action_param_label", $action_param,
"id='filterDlg_actionParamLabel' style=\"$label_param_hidden\"
dojoType='fox.form.Select'");*/
print \Controls\select_labels("action_param_label", $action_param, print \Controls\select_labels("action_param_label", $action_param,
["style" => $label_param_hidden], ["style" => $label_param_hidden],
"filterDlg_actionParamLabel"); "filterDlg_actionParamLabel");

View File

@ -2,7 +2,7 @@
// the following is deprecated and will be eventually removed // the following is deprecated and will be eventually removed
function print_select($id, $default, $values, $attributes = "", $name = "") { /*function print_select($id, $default, $values, $attributes = "", $name = "") {
if (!$name) $name = $id; if (!$name) $name = $id;
print "<select name=\"$name\" id=\"$id\" $attributes>"; print "<select name=\"$name\" id=\"$id\" $attributes>";
@ -35,8 +35,9 @@ function print_select_hash($id, $default, $values, $attributes = "", $name = "")
} }
print "</select>"; print "</select>";
} }*/
/*
function format_hidden($name, $value) { function format_hidden($name, $value) {
return "<input dojoType=\"dijit.form.TextBox\" style=\"display : none\" name=\"$name\" value=\"$value\">"; return "<input dojoType=\"dijit.form.TextBox\" style=\"display : none\" name=\"$name\" value=\"$value\">";
} }
@ -44,6 +45,7 @@ function format_hidden($name, $value) {
function print_hidden($name, $value) { function print_hidden($name, $value) {
print format_hidden($name, $value); print format_hidden($name, $value);
} }
*/
function format_checkbox($id, $checked, $value = "", $attributes = "") { function format_checkbox($id, $checked, $value = "", $attributes = "") {
$checked_str = $checked ? "checked" : ""; $checked_str = $checked ? "checked" : "";
@ -56,6 +58,7 @@ function print_checkbox($id, $checked, $value = "", $attributes = "") {
print format_checkbox($id, $checked, $value, $attributes); print format_checkbox($id, $checked, $value, $attributes);
} }
/*
function format_button($type, $value, $attributes = "") { function format_button($type, $value, $attributes = "") {
return "<button dojoType=\"dijit.form.Button\" $attributes type=\"$type\">$value</button>"; return "<button dojoType=\"dijit.form.Button\" $attributes type=\"$type\">$value</button>";
} }
@ -236,6 +239,7 @@ function format_feed_cat_select($id, $default_id, $attributes, $include_all_cats
return $ret; return $ret;
} }
*/
function stylesheet_tag($filename, $id = false) { function stylesheet_tag($filename, $id = false) {
$timestamp = filemtime($filename); $timestamp = filemtime($filename);
@ -284,6 +288,7 @@ function print_error($msg) {
return print format_error($msg); return print format_error($msg);
} }
/*
function print_label_select($name, $value, $attributes = "") { function print_label_select($name, $value, $attributes = "") {
$pdo = Db::pdo(); $pdo = Db::pdo();
@ -310,3 +315,4 @@ function print_label_select($name, $value, $attributes = "") {
} }
*/