feed search works now
This commit is contained in:
parent
62b6c0a8e7
commit
97e98c119c
|
@ -204,7 +204,7 @@
|
||||||
print "<tr>
|
print "<tr>
|
||||||
<td colspan=\"3\" class=\"title\">" . $line["title"] . "</td></tr>";
|
<td colspan=\"3\" class=\"title\">" . $line["title"] . "</td></tr>";
|
||||||
|
|
||||||
if ($ext == "SEARCH") {
|
if ($subop == "search") {
|
||||||
$search = $_GET["search"];
|
$search = $_GET["search"];
|
||||||
$search_query_part = "(upper(title) LIKE upper('%$search%')
|
$search_query_part = "(upper(title) LIKE upper('%$search%')
|
||||||
OR content LIKE '%$search%') AND";
|
OR content LIKE '%$search%') AND";
|
||||||
|
|
|
@ -297,7 +297,7 @@ function search(feed, sender) {
|
||||||
document.getElementById('content').innerHTML=' ';
|
document.getElementById('content').innerHTML=' ';
|
||||||
|
|
||||||
xmlhttp.open("GET", "backend.php?op=viewfeed&feed=" + param_escape(feed) +
|
xmlhttp.open("GET", "backend.php?op=viewfeed&feed=" + param_escape(feed) +
|
||||||
"&search=" + param_escape(sender.value) + "&ext=SEARCH", true);
|
"&search=" + param_escape(sender.value) + "&subop=search", true);
|
||||||
xmlhttp.onreadystatechange=viewfeed_callback;
|
xmlhttp.onreadystatechange=viewfeed_callback;
|
||||||
xmlhttp.send(null);
|
xmlhttp.send(null);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue