extended search dialog placeholder, disabled for now

This commit is contained in:
Andrew Dolgov 2005-10-28 07:51:34 +01:00
parent aee198609d
commit 033e47e09b
4 changed files with 38 additions and 10 deletions

View File

@ -1320,7 +1320,9 @@
$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\"
@ -1352,6 +1354,23 @@
}
}
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);

View File

@ -402,3 +402,7 @@ pre {
#qafInput {
width : 300px;
}
input.extSearch {
width : 200px;
}

View File

@ -201,6 +201,9 @@ function viewCurrentFeed(skip, subop) {
if (getActiveFeedId()) {
viewfeed(getActiveFeedId(), skip, subop);
} else {
disableContainerChildren("headlinesToolbar", false, document);
viewfeed(-1, skip, subop); // FIXME
}
}
@ -428,10 +431,15 @@ function quickMenuGo() {
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;
@ -448,7 +456,6 @@ function quickMenuGo() {
displayDlg("quickDelFeed", actid);
return;
}
}
function qafAdd() {
@ -505,5 +512,6 @@ function qfdDelete(feed_id) {
xmlhttp.open("GET", "backend.php?op=pref-feeds&subop=remove&ids=" + feed_id);
xmlhttp.onreadystatechange=dlg_frefresh_callback;
xmlhttp.send(null);
}

View File

@ -76,9 +76,6 @@
<td valign="top" class="headlinesToolbarBox">
<table width="100%" cellpadding="0" cellspacing="0">
<!-- <tr><td id="headlinesTitle" class="headlinesTitle">
&nbsp;
</td></tr> -->
<tr><td class="headlinesToolbar" id="headlinesToolbar">
<input id="searchbox"
onblur="javascript:enableHotkeys()" onfocus="javascript:disableHotkeys()"
@ -90,10 +87,10 @@
<input type="submit"
class="button" onclick="javascript:search()" value="Search">
<!-- <input type="submit"
class="button" onclick="javascript:resetSearch()" value="Reset"> -->
&nbsp;View:
&nbsp;
View:
<select id="viewbox" onchange="javascript:viewCurrentFeed(0, '')">
<option>All Articles</option>