From f531499b2506bca709a5528b96dce3f7a415d74d Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 16 Aug 2006 08:32:28 +0100 Subject: some further label editor tweaks --- backend.php | 35 +++++++++++++++-------------------- 1 file changed, 15 insertions(+), 20 deletions(-) diff --git a/backend.php b/backend.php index 860fec181..72b563d05 100644 --- a/backend.php +++ b/backend.php @@ -2348,7 +2348,11 @@ if ($num_matches > 0) { - print "

Query returned $num_matches matches, showing up to first 10:

"; + if ($num_matches > 10) { + $showing_msg = ", showing first 10"; + } + + print "

Query returned $num_matches matches$showing_msg:

"; $result = db_query($link, "SELECT ttrss_entries.title, @@ -2453,10 +2457,11 @@ print "   - SQL expression + Caption + SQL Expression (?) - Caption"; + "; $lnum = 0; @@ -2485,12 +2490,12 @@ print ""; - print "" . - $line["sql_exp"] . ""; - print "" . $line["description"] . ""; - + + print "" . + $line["sql_exp"] . ""; + print ""; ++$lnum; @@ -2506,23 +2511,13 @@ print "

"; - if ($subop == "edit") { - print "Edit label: - - - "; - - } else { - print " + print " Selection: "; - } + onclick=\"javascript:removeSelectedLabels()\" value=\"Remove\">"; + } else { print "

No labels defined.

"; } -- cgit v1.2.3