diff --git a/src/elogd.c b/src/elogd.c index eafa0ce5..40b6e911 100755 --- a/src/elogd.c +++ b/src/elogd.c @@ -6,6 +6,9 @@ Contents: Web server program for Electronic Logbook ELOG $Log$ + Revision 1.688 2005/07/04 20:43:39 ritt + 'Show all entries' keeps parameters from original search + Revision 1.687 2005/07/04 20:17:25 ritt Put absolute link for CSS @@ -15746,7 +15749,7 @@ BOOL is_command_allowed(LOGBOOK * lbs, char *command) /*------------------------------------------------------------------*/ -void build_ref(char *ref, int size, char *mode, char *expand) +void build_ref(char *ref, int size, char *mode, char *expand, char *new_entries) { char str[1000]; @@ -15765,6 +15768,10 @@ void build_ref(char *ref, int size, char *mode, char *expand) if (expand[0]) subst_param(ref, size, "expand", expand); + /* eliminate old new_entries if new one is present */ + if (new_entries[0]) + subst_param(ref, size, "new_entries", new_entries); + /* eliminate old last= */ subst_param(ref, size, "last", getparam("last")); @@ -15793,7 +15800,7 @@ void show_page_filters(LOGBOOK * lbs, int n_msg, int page_n, BOOL mode_commands, sprintf(ref, "page%d", page_n); else ref[0] = 0; - build_ref(ref, sizeof(ref), "full", ""); + build_ref(ref, sizeof(ref), "full", "", ""); rsprintf(" %s |", ref, loc("Full")); } @@ -15801,14 +15808,14 @@ void show_page_filters(LOGBOOK * lbs, int n_msg, int page_n, BOOL mode_commands, sprintf(ref, "page%d", page_n); else ref[0] = 0; - build_ref(ref, sizeof(ref), "summary", ""); + build_ref(ref, sizeof(ref), "summary", "", ""); rsprintf(" %s |", ref, loc("Summary")); if (page_n != 1) sprintf(ref, "page%d", page_n); else ref[0] = 0; - build_ref(ref, sizeof(ref), "threaded", ""); + build_ref(ref, sizeof(ref), "threaded", "", ""); rsprintf(" %s ", ref, loc("Threaded")); if (threaded) { @@ -15825,7 +15832,7 @@ void show_page_filters(LOGBOOK * lbs, int n_msg, int page_n, BOOL mode_commands, if (cur_exp > 0) { sprintf(str, "%d", cur_exp > 0 ? cur_exp - 1 : 0); - build_ref(ref, sizeof(ref), "", str); + build_ref(ref, sizeof(ref), "", str, ""); rsprintf("| %s ", ref, loc("Collapse")); } else rsprintf("| %s ", loc("Collapse")); @@ -15836,7 +15843,7 @@ void show_page_filters(LOGBOOK * lbs, int n_msg, int page_n, BOOL mode_commands, else ref[0] = 0; sprintf(str, "%d", cur_exp < 3 ? cur_exp + 1 : 3); - build_ref(ref, sizeof(ref), "", str); + build_ref(ref, sizeof(ref), "", str, ""); rsprintf("| %s ", ref, loc("Expand")); } else rsprintf("| %s ", loc("Expand")); @@ -15847,10 +15854,14 @@ void show_page_filters(LOGBOOK * lbs, int n_msg, int page_n, BOOL mode_commands, rsprintf("
| %s: | ", loc("New entries since"));