From: Andrew Dolgov Date: Wed, 16 Aug 2006 07:32:28 +0000 (+0100) Subject: some further label editor tweaks X-Git-Tag: schema_freeze_for_1.2.2~9 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=f531499b2506bca709a5528b96dce3f7a415d74d;p=tt-rss.git some further label editor tweaks --- diff --git a/backend.php b/backend.php index 860fec18..72b563d0 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.

"; }