From 0f7af07c6e00a976b1d15759e6d842791dc81821 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 12 Feb 2021 12:12:47 +0300 Subject: [PATCH] edit filter dialog: cleanup --- classes/pref/filters.php | 132 +++++++++++++++++---------------------- 1 file changed, 58 insertions(+), 74 deletions(-) diff --git a/classes/pref/filters.php b/classes/pref/filters.php index 096ab826d..eb7c87746 100755 --- a/classes/pref/filters.php +++ b/classes/pref/filters.php @@ -333,32 +333,28 @@ class Pref_Filters extends Handler_Protected { print_hidden("method", "editSave"); print_hidden("csrf_token", $_SESSION['csrf_token']); - print "
".__("Caption")."
"; - print "
"; - print ""; - print "
"; - - print "
".__("Match")."
"; - print "
"; - - print "
"; - - print "
". - "" . __('Select').""; - print "
"; - print "
".__('All')."
"; - print "
".__('None')."
"; - print "
"; - - print " "; - - print " "; - - print "
"; + print "
".__("Caption")."
+
+ +
+
".__("Match")."
+
+
+
+ " . __('Select')." +
+ +
".__('All')."
+
".__('None')."
+
+
+ + +
"; print "
    "; @@ -386,39 +382,33 @@ class Pref_Filters extends Handler_Protected { if (!$line["inverse"]) unset($line["inverse"]); unset($line["match_on"]); - $data = htmlspecialchars(json_encode($line)); + $data = htmlspecialchars((string)json_encode($line)); print "
  • ". - "".$this->getRuleName($line)."". + "".$this->getRuleName($line)."". "
  • "; } - print "
"; + print " +
"; - print "
"; - - print "
".__("Apply actions")."
"; - - print "
"; - - print "
"; - - print "
". - "" . __('Select').""; - print "
"; - print "
".__('All')."
"; - print "
".__('None')."
"; - print "
"; - - print " "; - - print " "; - - print "
"; + print "
".__("Apply actions")."
+
+
+
+ ".__('Select')." +
+
".__('All')."
+
".__('None')."
+
+
+ + +
"; print "
    "; @@ -432,10 +422,10 @@ class Pref_Filters extends Handler_Protected { unset($line["filter_id"]); unset($line["id"]); - $data = htmlspecialchars(json_encode($line)); + $data = htmlspecialchars((string)json_encode($line)); print "
  • ". - "".$this->getActionName($line)."". + "".$this->getActionName($line)."". "
  • "; } @@ -482,25 +472,19 @@ class Pref_Filters extends Handler_Protected { print "
"; - print "
"; - - print "
"; - print ""; - print "
"; - - print " "; - - print " "; - - print ""; - - print "
"; - print ""; - + print " + "; } }