From 10fa66154912a6b69252b7decf6a3426448be486 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 6 Aug 2008 07:47:56 +0100 Subject: [PATCH] rework filter and label edit/create dialog layouts --- modules/popup-dialog.php | 81 ++++++++++++++++++++++++++++++++++------ modules/pref-filters.php | 74 +++++++++++++++++++++++++++++++++++- modules/pref-labels.php | 22 ++++++----- tt-rss.css | 30 +++++++++++++++ 4 files changed, 183 insertions(+), 24 deletions(-) diff --git a/modules/popup-dialog.php b/modules/popup-dialog.php index 1dc381979..baead1c37 100644 --- a/modules/popup-dialog.php +++ b/modules/popup-dialog.php @@ -213,28 +213,30 @@ print ""; print ""; - print ""; + print "
".__("Caption")."
"; + + print "
"; - print "
- "; + print "
".__("Match SQL")."
"; - print "
".__('Caption:').""; + name=\"description\" size=\"30\" value=\"$description\">"; + print ""; - print "
-

".__('SQL Expression:')."

"; + print "
"; print ""; - print "
"; + rows=\"6\" name=\"sql_exp\" class=\"labelSQL\" cols=\"50\">$sql_exp"; + + print ""; print ""; print "
"; - print "
"; + print "
"; print "
"; print ""; +/* print ""; print "
".__('Match:')." "; + print ""; */ + + print "
".__("Match")."
"; + + print "
"; + + print ""; + + print " " . __("on field") . " "; + print_select_hash("filter_type", 1, $filter_types); + + print "
"; + + print __("in") . " "; + print_feed_select($link, "feed_id", $active_feed_id); + + print "
"; + + print "
".__("Perform action")."
"; + + print "
"; + + print ""; + + print " " . __("with params") . " "; + + print ""; + + print "
"; + + print "
".__("Options")."
"; + print "
"; + + print " +
"; + + print " + "; + + print "
"; + print ""; - print "
"; + print "
"; print ""; +/* print ""; print "
".__('Match:')." "; - print "
"; + print "
"; */ + + print "
".__("Match")."
"; + + print "
"; + + print ""; + + print " " . __("on field") . " "; + print_select_hash("filter_type", $filter_type, $filter_types); + + print "
"; + + print __("in") . " "; + print_feed_select($link, "feed_id", $feed_id); + + print "
"; + + print "
".__("Perform action")."
"; + + print "
"; + + print ""; + + print " " . __("with params") . " "; + + $param_disabled = ($action_id == 4 || $action_id == 6) ? "" : "disabled"; + + print ""; + + print "
"; + + print "
".__("Options")."
"; + print "
"; + + if ($enabled) { + $checked = "checked"; + } else { + $checked = ""; + } + + print " +
"; + + if ($inverse) { + $checked = "checked"; + } else { + $checked = ""; + } + + print " + "; + + print "
"; + + print "
"; print ""; print ""; - print ""; + print "
".__("Caption")."
"; - print " - "; + print "
".__("Match SQL")."
"; - print "
Caption:"; + + print ""; + name=\"description\" size=\"30\" value=\"$description\">"; + print ""; - print "
-

SQL Expression:

"; + print "
"; print ""; - print "
"; + rows=\"6\" name=\"sql_exp\" class=\"labelSQL\" cols=\"50\">$sql_exp"; + + print "
"; print ""; print "
"; - print "
"; + print "
"; print "
"; print "