From a44db887de77a0d2284a375c8af6d765f8fc4eb9 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 6 Aug 2008 09:08:26 +0100 Subject: filter edit dialog: add remove button --- modules/pref-filters.php | 76 +++++------------------------------------------- 1 file changed, 8 insertions(+), 68 deletions(-) (limited to 'modules/pref-filters.php') diff --git a/modules/pref-filters.php b/modules/pref-filters.php index 927cddcd7..3946be5f3 100644 --- a/modules/pref-filters.php +++ b/modules/pref-filters.php @@ -38,74 +38,6 @@ $filter_types[$line["id"]] = __($line["description"]); } -/* print ""; - - print " - "; - print ""; - - print ""; - - print ""; - - print ""; - - $param_disabled = ($action_id == 4 || $action_id == 6) ? "" : "disabled"; - - print ""; - - if ($enabled) { - $checked = "checked"; - } else { - $checked = ""; - } - - print "
".__('Match:').""; - - print "
".__('On field:').""; - - print_select_hash("filter_type", $filter_type, $filter_types, "class=\"_iedit\""); - - print "
".__('Feed:').""; - - print_feed_select($link, "feed_id", $feed_id); - - print "
".__('Action:').""; - - print "
".__('Params:')."
Options: - -
"; - - if ($inverse) { - $checked = "checked"; - } else { - $checked = ""; - } - - print " - "; - - print "
"; - - print ""; - - print "
"; */ - print "
".__("Match")."
"; print "
"; @@ -188,6 +120,14 @@ type=\"submit\" onclick=\"return filterEditCancel()\" value=\"".__('Cancel')."\">"; + $reg_exp = htmlspecialchars($reg_exp); // second escaping seems to be needed for javascript + + print "
"; + print " "; + print "
"; + print "
"; return; -- cgit v1.2.3