From 18087ee2210c415d5491af0df22ae7c6162ab772 Mon Sep 17 00:00:00 2001 From: Stefan Ritt Date: Sun, 15 Feb 2004 14:06:09 +0000 Subject: [PATCH] Implemented search functionality for AF_DATE SVN revision: 757 --- src/elogd.c | 531 ++++++++++++++++++++++++++++++++++------------------ 1 file changed, 351 insertions(+), 180 deletions(-) diff --git a/src/elogd.c b/src/elogd.c index eef4a757..38c7b861 100755 --- a/src/elogd.c +++ b/src/elogd.c @@ -6,6 +6,9 @@ Contents: Web server program for Electronic Logbook ELOG $Log$ + Revision 1.245 2004/02/15 14:06:09 midas + Implemented search functionality for AF_DATE + Revision 1.244 2004/02/13 23:27:20 midas Restructured code @@ -810,10 +813,13 @@ Encode the given string in-place by adding %XX escapes pd = str; p = ps; while (*p && (int) pd < (int) str + 250) { - if (strchr(" %&=#?+", *p) || *p > 127) { + if (strchr("%&=#?+", *p) || *p > 127) { sprintf(pd, "%%%02X", *p); pd += 3; p++; + } else if (*p == ' ') { + *pd++ = '+'; + p++; } else { *pd++ = *p++; } @@ -5926,11 +5932,11 @@ BOOL is_cond_attr(index) /*------------------------------------------------------------------*/ -void show_date_selector(int day, int month, int year, int index) +void show_date_selector(int day, int month, int year, char *index) { int i; - rsprintf("\n", index); rsprintf("