From 95395f5187ae29c24db64016fe9437c28ca627c8 Mon Sep 17 00:00:00 2001 From: Stefan Ritt Date: Mon, 19 Jan 2004 09:13:28 +0000 Subject: [PATCH] Removed '{n}' in quick filter and find page list SVN revision: 695 --- src/elogd.c | 42 +++++++++++++++++++++++++++++------------- 1 file changed, 29 insertions(+), 13 deletions(-) diff --git a/src/elogd.c b/src/elogd.c index a9611e90..279f53c3 100755 --- a/src/elogd.c +++ b/src/elogd.c @@ -6,6 +6,9 @@ Contents: Web server program for Electronic Logbook ELOG $Log$ + Revision 1.199 2004/01/19 09:13:28 midas + Removed '{n}' in quick filter and find page list + Revision 1.198 2004/01/18 21:47:11 midas Continued working on synchronizing @@ -6454,7 +6457,7 @@ void show_edit_form(LOGBOOK * lbs, int message_id, BOOL breply, BOOL bedit, BOOL void show_find_form(LOGBOOK * lbs) { int i, j; - char str[NAME_LENGTH], mode[256], comment[256]; + char str[NAME_LENGTH], mode[NAME_LENGTH], comment[NAME_LENGTH], option[NAME_LENGTH]; /*---- header ----*/ @@ -6625,26 +6628,35 @@ void show_find_form(LOGBOOK * lbs) /* display image for icon */ else if (attr_flags[i] & AF_ICON) { for (j = 0; j < MAX_N_LIST && attr_options[i][j][0]; j++) { - sprintf(str, "Icon comment %s", attr_options[i][j]); + strcpy(option, attr_options[i][j]); + if (strchr(option, '{')) + *strchr(option, '{') = 0; + + sprintf(str, "Icon comment %s", option); getcfg(lbs->name, str, comment); rsprintf("", attr_list[i], - attr_options[i][j]); + option); if (comment[0]) rsprintf("\"%s\"\n", - attr_options[i][j], comment); + option, comment); else - rsprintf("\n", attr_options[i][j]); + rsprintf("\n", option); } } else { rsprintf("\n"); } } @@ -9195,7 +9207,7 @@ void show_page_filters(LOGBOOK * lbs, int n_msg, int page_n, int n_page, BOOL to { int cur_exp, n, i, j, index; char ref[256], str[NAME_LENGTH], comment[NAME_LENGTH]; - char list[MAX_N_LIST][NAME_LENGTH]; + char list[MAX_N_LIST][NAME_LENGTH], option[NAME_LENGTH]; rsprintf("\n"); rsprintf("\n"); @@ -9327,15 +9339,19 @@ void show_page_filters(LOGBOOK * lbs, int n_msg, int page_n, int n_page, BOOL to getcfg(lbs->name, str, comment); } + strcpy(option, attr_options[i][j]); + if (strchr(option, '{')) + *strchr(option, '{') = 0; + if (comment[0] == 0) - strcpy(comment, attr_options[i][j]); + strcpy(comment, option); if (isparam(attr_list[i]) - && equal_ustring(attr_options[i][j], getparam(attr_list[i]))) - rsprintf("