$param = $_GET["param"];
if ($id == "quickAddFeed") {
- print "Feed URL: <input id=\"qafInput\">
+ print "Feed URL: <input
+ onblur=\"javascript:enableHotkeys()\" onfocus=\"javascript:disableHotkeys()\"
+ id=\"qafInput\">
<input class=\"button\"
type=\"submit\" onclick=\"javascript:qafAdd()\" value=\"Add feed\">
<input class=\"button\"
}
}
+ if ($id == "search") {
+
+ print "<input id=\"searchbox\" class=\"extSearch\"
+ onblur=\"javascript:enableHotkeys()\" onfocus=\"javascript:disableHotkeys()\"
+ onchange=\"javascript:search()\">
+ <select id=\"searchmodebox\">
+ <option selected>All feeds</option>
+ <option>This feed</option>
+ </select>
+ <input type=\"submit\"
+ class=\"button\" onclick=\"javascript:search()\" value=\"Search\">
+ <input class=\"button\"
+ type=\"submit\" onclick=\"javascript:closeDlg()\"
+ value=\"Close\">";
+
+ }
+
}
db_close($link);
#qafInput {
width : 300px;
}
+
+input.extSearch {
+ width : 200px;
+}
if (getActiveFeedId()) {
viewfeed(getActiveFeedId(), skip, subop);
+ } else {
+ disableContainerChildren("headlinesToolbar", false, document);
+ viewfeed(-1, skip, subop); // FIXME
}
}
var opname = chooser[chooser.selectedIndex].text;
- if (opname.match("Preferences")) {
+ if (opname == "Preferences") {
gotoPreferences();
}
+ if (opname == "Extended search") {
+ displayDlg("search");
+ return;
+ }
+
if (opname.match("Add new feed")) {
displayDlg("quickAddFeed");
return;
displayDlg("quickDelFeed", actid);
return;
}
-
}
function qafAdd() {
xmlhttp.open("GET", "backend.php?op=pref-feeds&subop=remove&ids=" + feed_id);
xmlhttp.onreadystatechange=dlg_frefresh_callback;
xmlhttp.send(null);
-
}
+
+
<td valign="top" class="headlinesToolbarBox">
<table width="100%" cellpadding="0" cellspacing="0">
- <!-- <tr><td id="headlinesTitle" class="headlinesTitle">
-
- </td></tr> -->
<tr><td class="headlinesToolbar" id="headlinesToolbar">
<input id="searchbox"
onblur="javascript:enableHotkeys()" onfocus="javascript:disableHotkeys()"
<input type="submit"
class="button" onclick="javascript:search()" value="Search">
- <!-- <input type="submit"
- class="button" onclick="javascript:resetSearch()" value="Reset"> -->
- View:
+
+
+ View:
<select id="viewbox" onchange="javascript:viewCurrentFeed(0, '')">
<option>All Articles</option>