Implemented 'search all logbooks = 2'

SVN revision: 1807
This commit is contained in:
2007-03-08 06:58:01 +00:00
parent 92853952e2
commit ec8da0c3f9
+6 -2
View File
@@ -10586,8 +10586,12 @@ void show_find_form(LOGBOOK * lbs)
}
if (i > 2) {
if (!getcfg(lbs->name, "Search all logbooks", str, sizeof(str)) || atoi(str) == 1) {
rsprintf("<input type=checkbox id=all name=all value=1>");
if (!getcfg(lbs->name, "Search all logbooks", str, sizeof(str)) || atoi(str) == 1 || atoi(str) == 2) {
if (atoi(str) == 2)
rsprintf("<input type=checkbox checked id=all name=all value=1>");
else
rsprintf("<input type=checkbox id=all name=all value=1>");
rsprintf("<label for=\"all\">%s</label><br>\n", loc("Search all logbooks"));
}
}