diff --git a/doc/config.html b/doc/config.html index b8b12fc2..c91cd204 100755 --- a/doc/config.html +++ b/doc/config.html @@ -592,6 +592,13 @@ no text at all. The default is 3. If this flag is 1, the result of the "Last day" and "Last 10" queries is sorted in reverse order (newest entry down to oldest). Default is 0.
+
Search all logbooks = 0/1
+
+If this flag is 1, the search form displays the button "Search all
+logbooks". The default is 1. It might be necessary to turn this option
+off for public logbooks if there are also protected logbooks. Otherwise the
+search result would also display entries from the protected logbooks.+
Enable browsing = 0/1
If this flag is 1, browsing (hitting the next/previous button) is enabled.
diff --git a/elogd.c b/elogd.c
index 63f590fe..24fec5c9 100755
--- a/elogd.c
+++ b/elogd.c
@@ -6,6 +6,9 @@
Contents: Web server program for Electronic Logbook ELOG
$Log$
+ Revision 1.7 2002/01/23 08:41:42 midas
+ Added "Search all logbooks" flag
+
Revision 1.6 2002/01/15 10:23:59 midas
- Remove "back" button from error display (NS4.7 does not support it)
- Fixed wrong URL in email notification
@@ -3725,8 +3728,11 @@ char str[256];
if (i > 2)
{
- rsprintf("| # | ", col, size); - if (atoi(getparam("all")) == 1) + if (search_all) rsprintf("Logbook | ", col, size); rsprintf("Date | ", col, size); @@ -4403,7 +4415,7 @@ FILE *f; n_found = 0; old_data_dir[0] = 0; - if (atoi(getparam("all")) == 1) + if (search_all) { /* count logbooks */ for (i=n_logbook=0 ; ; i++) @@ -4668,7 +4680,7 @@ FILE *f; rsprintf("%d | ", col, size, ref, n_found); - if (atoi(getparam("all")) == 1) + if (search_all) rsprintf("%s | ", nowrap, col, size, logbook_list[lindex]); if (getcfg(logbook, "Date format", format)) @@ -4722,7 +4734,7 @@ FILE *f; rsprintf("\n"); - if (atoi(getparam("all")) == 1) + if (search_all) colspan = 3+n_attr_disp; else colspan = 2+n_attr_disp; @@ -4836,7 +4848,7 @@ FILE *f; rsprintf("%d | ", col, size, ref, n_found); - if (atoi(getparam("all")) == 1) + if (search_all) rsprintf("%s | ", nowrap, col, logbook_list[lindex]); if (getcfg(logbook, "Date format", format)) @@ -7934,7 +7946,7 @@ struct tm *tms; else { usage: - printf("usage: %s [-p port] [-h hostname] [-D] [-c file] [-r pwd] [-w pwd] [-a pwd] [-l loggbook]\n\n", argv[0]); + printf("usage: %s [-p port] [-h hostname] [-D] [-c file] [-r pwd] [-w pwd] [-a pwd] [-l logbook]\n\n", argv[0]); printf(" -p