From e5d758e3db48bd8613771d9c139de5017f1d7194 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 18 May 2006 05:58:31 +0100 Subject: rework tab appearance, various interface improvements --- backend.php | 104 ++++++++++++++++++++++++++++++++++++++---------------------- 1 file changed, 66 insertions(+), 38 deletions(-) (limited to 'backend.php') diff --git a/backend.php b/backend.php index c9d86ee0b..051a5f670 100644 --- a/backend.php +++ b/backend.php @@ -1308,11 +1308,11 @@ print "Feed browser is administratively disabled."; return; } + + print "
Other feeds: Top 50
"; print "
"; - print "

Feed browser

"; - print "

Showing top 50 registered feeds, sorted by popularity:

"; $result = db_query($link, "SELECT feed_url,count(id) AS subscribers @@ -1388,8 +1388,6 @@ $title = htmlspecialchars(db_unescape_string(db_fetch_result($result, 0, "title"))); - print "
"; - $icon_file = ICONS_DIR . "/$feed_id.ico"; if (file_exists($icon_file) && filesize($icon_file) > 0) { @@ -1398,8 +1396,12 @@ } else { $feed_icon = ""; } - - print "

$feed_icon $title

"; + + print "
Feed editor
"; + + print "
"; + +# print "

$feed_icon $title

"; print ""; @@ -1823,10 +1825,11 @@ onchange=\"javascript:addFeed()\" size=\"40\"> "; + onclick=\"javascript:addFeed()\" value=\"Subscribe\">"; if (ENABLE_FEED_BROWSER && !SINGLE_USER_MODE) { - print " (Top 50)"; + print " "; } print ""; print ""; @@ -2384,7 +2388,7 @@ } else { - print ""; + print ""; print ""; @@ -2491,9 +2495,11 @@ $expr = $_GET["expr"]; $descr = $_GET["descr"]; + print "
Test label: $descr
"; + print "
"; - print "

Label «$descr»

"; +# print "

Label «$descr»

"; // print "

Expression: $expr

"; @@ -2726,6 +2732,8 @@ $tid = sprintf("%d", $_GET["tid"]); + print "
Help
"; + print "
"; if (file_exists("help/$tid.php")) { @@ -2750,20 +2758,24 @@ $id = $_GET["id"]; $param = $_GET["param"]; - print "
"; - if ($id == "quickAddFeed") { - print " - Feed URL: "; + + print "
Subscribe to feed
"; + print "
"; + + print "
@@ -2000,16 +2003,16 @@ print " Selection:  - + "; + onclick=\"javascript:removeSelectedFeeds()\" value=\"Unsubscribe\">"; if (get_pref($link, 'ENABLE_FEED_CATS')) { - print "  "; + print " | "; $result = db_query($link, "SELECT title,id FROM ttrss_feed_categories WHERE owner_uid = ".$_SESSION["uid"]." @@ -2058,7 +2061,7 @@ size=\"40\">  "; + onclick=\"javascript:addFeedCat()\" value=\"Create category\">"; $result = db_query($link, "SELECT title,id FROM ttrss_feed_categories WHERE owner_uid = ".$_SESSION["uid"]." @@ -2233,7 +2236,8 @@ if ($quiet) return; - print "
PLACEHOLDER
"; + print "
+
PLACEHOLDER
"; $result = db_query($link, "SELECT description FROM ttrss_filter_types ORDER BY description"); @@ -2374,7 +2378,7 @@ if (!$line["description"]) $line["description"] = "[No description]"; - print "
".$line["reg_exp"]."
+ "; if (get_pref($link, 'ENABLE_FEED_CATS')) { + print ""; } - print "  + print "
Feed URL: +
Category:"; + $result = db_query($link, "SELECT title,id FROM ttrss_feed_categories WHERE owner_uid = ".$_SESSION["uid"]." ORDER BY title"); - print " "; print ""; if (db_num_rows($result) != 0) { @@ -2777,13 +2789,14 @@ } print ""; + print "
"; + type=\"submit\" onclick=\"javascript:closeInfoBox()\" + value=\"Cancel\">
"; } if ($id == "quickDelFeed") { @@ -2800,23 +2813,29 @@ "; } else { print "Error: Feed $param not found.  "; } } if ($id == "search") { + print "
Search
"; + print "
"; + $active_feed_id = db_escape_string($_GET["param"]); + print " + +
Search:"; + print " +
Where: + print "
"; + type=\"submit\" onclick=\"javascript:closeInfoBox()\" + value=\"Cancel\">
"; } if ($id == "quickAddFilter") { + print "
Create filter
"; + print "
"; + $result = db_query($link, "SELECT description FROM ttrss_filter_types ORDER BY description"); @@ -2850,9 +2874,9 @@ array_push($filter_types, $line["description"]); } - print ""; + print "
"; - print "
Match: "; + print "
Match: "; print_select("fadd_match", "Title", $filter_types); @@ -2896,13 +2920,14 @@ print " "; + value=\"Create\"> "; print ""; + type=\"submit\" onclick=\"javascript:closeInfoBox()\" + value=\"Cancel\">"; print "
"; + } print "
"; @@ -3581,6 +3606,8 @@ $uid = sprintf("%d", $_GET["id"]); + print "
User details
"; + print "
"; $result = db_query($link, "SELECT login, @@ -3681,6 +3708,7 @@ $feed_ids = split(",", db_escape_string($_GET["id"])); + print "
Feed details
"; print "
"; foreach ($feed_ids as $feed_id) { -- cgit v1.2.3-54-g00ecf