some further label editor tweaks
This commit is contained in:
parent
a4dbc5247a
commit
f531499b25
31
backend.php
31
backend.php
|
@ -2348,7 +2348,11 @@
|
||||||
|
|
||||||
if ($num_matches > 0) {
|
if ($num_matches > 0) {
|
||||||
|
|
||||||
print "<p>Query returned <b>$num_matches</b> matches, showing up to first 10:</p>";
|
if ($num_matches > 10) {
|
||||||
|
$showing_msg = ", showing first 10";
|
||||||
|
}
|
||||||
|
|
||||||
|
print "<p>Query returned <b>$num_matches</b> matches$showing_msg:</p>";
|
||||||
|
|
||||||
$result = db_query($link,
|
$result = db_query($link,
|
||||||
"SELECT ttrss_entries.title,
|
"SELECT ttrss_entries.title,
|
||||||
|
@ -2453,10 +2457,11 @@
|
||||||
|
|
||||||
print "<tr class=\"title\">
|
print "<tr class=\"title\">
|
||||||
<td width=\"5%\"> </td>
|
<td width=\"5%\"> </td>
|
||||||
<td width=\"40%\">SQL expression
|
<td width=\"30%\">Caption</td>
|
||||||
|
<td width=\"50%\">SQL Expression
|
||||||
<a class=\"helpLink\" href=\"javascript:displayHelpInfobox(1)\">(?)</a>
|
<a class=\"helpLink\" href=\"javascript:displayHelpInfobox(1)\">(?)</a>
|
||||||
</td>
|
</td>
|
||||||
<td width=\"40%\">Caption</td></tr>";
|
</tr>";
|
||||||
|
|
||||||
$lnum = 0;
|
$lnum = 0;
|
||||||
|
|
||||||
|
@ -2486,10 +2491,10 @@
|
||||||
type=\"checkbox\" id=\"LICHK-".$line["id"]."\"></td>";
|
type=\"checkbox\" id=\"LICHK-".$line["id"]."\"></td>";
|
||||||
|
|
||||||
print "<td><a href=\"javascript:editLabel($label_id);\">" .
|
print "<td><a href=\"javascript:editLabel($label_id);\">" .
|
||||||
$line["sql_exp"] . "</td>";
|
$line["description"] . "</td>";
|
||||||
|
|
||||||
print "<td><a href=\"javascript:editLabel($label_id);\">" .
|
print "<td><a href=\"javascript:editLabel($label_id);\">" .
|
||||||
$line["description"] . "</td>";
|
$line["sql_exp"] . "</td>";
|
||||||
|
|
||||||
print "</tr>";
|
print "</tr>";
|
||||||
|
|
||||||
|
@ -2506,23 +2511,13 @@
|
||||||
|
|
||||||
print "<p id=\"labelOpToolbar\">";
|
print "<p id=\"labelOpToolbar\">";
|
||||||
|
|
||||||
if ($subop == "edit") {
|
print "
|
||||||
print "Edit label:
|
|
||||||
<input type=\"submit\" class=\"button\"
|
|
||||||
onclick=\"javascript:labelTest()\" value=\"Test\">
|
|
||||||
<input type=\"submit\" class=\"button\"
|
|
||||||
onclick=\"javascript:labelEditSave()\" value=\"Save\">
|
|
||||||
<input type=\"submit\" class=\"button\"
|
|
||||||
onclick=\"javascript:labelEditCancel()\" value=\"Cancel\">";
|
|
||||||
|
|
||||||
} else {
|
|
||||||
print "
|
|
||||||
Selection:
|
Selection:
|
||||||
<input type=\"submit\" class=\"button\" disabled=\"true\"
|
<input type=\"submit\" class=\"button\" disabled=\"true\"
|
||||||
onclick=\"javascript:editSelectedLabel()\" value=\"Edit\">
|
onclick=\"javascript:editSelectedLabel()\" value=\"Edit\">
|
||||||
<input type=\"submit\" class=\"button\" disabled=\"true\"
|
<input type=\"submit\" class=\"button\" disabled=\"true\"
|
||||||
onclick=\"javascript:removeSelectedLabels()\" value=\"Remove\">";
|
onclick=\"javascript:removeSelectedLabels()\" value=\"Remove\">";
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
print "<p>No labels defined.</p>";
|
print "<p>No labels defined.</p>";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue