mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-08 17:13:56 +00:00
Implemented 'case sensitive search' flag
SVN revision: 1337
This commit is contained in:
parent
8bb3c6b9db
commit
f860ca6d9d
@ -1,4 +1,4 @@
|
|||||||
<HTML>
|
\<HTML>
|
||||||
<HEAD>
|
<HEAD>
|
||||||
<TITLE>ELOG - Syntax of elogd.cfg</TITLE>
|
<TITLE>ELOG - Syntax of elogd.cfg</TITLE>
|
||||||
<LINK REV="made" HREF="mailto:fredpmygale.org">
|
<LINK REV="made" HREF="mailto:fredpmygale.org">
|
||||||
@ -1789,6 +1789,13 @@ useful for set-ups where some attributed must be changed later, but the
|
|||||||
text body should be preserved. The default is <b>0</b>.
|
text body should be preserved. The default is <b>0</b>.
|
||||||
<p>
|
<p>
|
||||||
|
|
||||||
|
<li><b><code>Case sensitive search = 0|1</code></b>
|
||||||
|
<br>
|
||||||
|
This switch has two meanings. First, it defines the default state of the
|
||||||
|
<code><b>Case sensitive</b></code> check box in the "Find" page. Second, it determines
|
||||||
|
if the quick filters are case sensitive or not. The default is <b>0</b>.
|
||||||
|
<p>
|
||||||
|
|
||||||
</ul><p>
|
</ul><p>
|
||||||
|
|
||||||
<a name="themes"><hr>
|
<a name="themes"><hr>
|
||||||
|
|||||||
13
src/elogd.c
13
src/elogd.c
@ -6,6 +6,9 @@
|
|||||||
Contents: Web server program for Electronic Logbook ELOG
|
Contents: Web server program for Electronic Logbook ELOG
|
||||||
|
|
||||||
$Log$
|
$Log$
|
||||||
|
Revision 1.639 2005/04/29 20:04:51 ritt
|
||||||
|
Implemented 'case sensitive search' flag
|
||||||
|
|
||||||
Revision 1.638 2005/04/27 10:43:43 ritt
|
Revision 1.638 2005/04/27 10:43:43 ritt
|
||||||
Applied patch from Emiliano to fix possible buffer overflow
|
Applied patch from Emiliano to fix possible buffer overflow
|
||||||
|
|
||||||
@ -9615,7 +9618,11 @@ void show_find_form(LOGBOOK * lbs)
|
|||||||
rsprintf("<tr><td><td class=\"attribvalue\">\n");
|
rsprintf("<tr><td><td class=\"attribvalue\">\n");
|
||||||
rsprintf("<input type=checkbox id=\"sall\" name=\"sall\" value=1>\n");
|
rsprintf("<input type=checkbox id=\"sall\" name=\"sall\" value=1>\n");
|
||||||
rsprintf("<label for=\"sall\">%s</label>\n", loc("Search text also in attributes"));
|
rsprintf("<label for=\"sall\">%s</label>\n", loc("Search text also in attributes"));
|
||||||
rsprintf("<input type=checkbox id=\"sall\" name=\"casesensitive\" value=1>\n");
|
|
||||||
|
if (getcfg(lbs->name, "Case sensitive search", str, sizeof(str)) && atoi(str))
|
||||||
|
rsprintf("<input type=checkbox id=\"sall\" name=\"casesensitive\" value=1 checked>\n");
|
||||||
|
else
|
||||||
|
rsprintf("<input type=checkbox id=\"sall\" name=\"casesensitive\" value=1>\n");
|
||||||
rsprintf("<label for=\"casesensitive\">%s</label>\n", loc("Case sensitive"));
|
rsprintf("<label for=\"casesensitive\">%s</label>\n", loc("Case sensitive"));
|
||||||
|
|
||||||
rsprintf("</td></tr></table></td></tr></table>\n");
|
rsprintf("</td></tr></table></td></tr></table>\n");
|
||||||
@ -14860,8 +14867,12 @@ void show_page_filters(LOGBOOK * lbs, int n_msg, int page_n, BOOL mode_commands,
|
|||||||
|
|
||||||
if (getcfg(lbs->name, "Quick filter", str, sizeof(str))) {
|
if (getcfg(lbs->name, "Quick filter", str, sizeof(str))) {
|
||||||
rsprintf("<td class=\"menu2b\">\n");
|
rsprintf("<td class=\"menu2b\">\n");
|
||||||
|
|
||||||
n = strbreak(str, list, MAX_N_LIST, ",");
|
n = strbreak(str, list, MAX_N_LIST, ",");
|
||||||
|
|
||||||
|
if (getcfg(lbs->name, "Case sensitive search", str, sizeof(str)) && atoi(str))
|
||||||
|
rsprintf("<input type=hidden name=\"casesensitive\" value=1>\n");
|
||||||
|
|
||||||
for (index = 0; index < n; index++) {
|
for (index = 0; index < n; index++) {
|
||||||
if (strieq(list[index], loc("Date"))) {
|
if (strieq(list[index], loc("Date"))) {
|
||||||
i = atoi(getparam("last"));
|
i = atoi(getparam("last"));
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user