mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-12 19:33:03 +00:00
Supersede 'Display mode' by cookie
SVN revision: 1359
This commit is contained in:
parent
81a3bf403e
commit
74483acf8b
19
src/elogd.c
19
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.654 2005/05/10 11:27:23 ritt
|
||||||
|
Supersede 'Display mode' by cookie
|
||||||
|
|
||||||
Revision 1.653 2005/05/10 07:17:48 ritt
|
Revision 1.653 2005/05/10 07:17:48 ritt
|
||||||
Store list mode in cookie
|
Store list mode in cookie
|
||||||
|
|
||||||
@ -15633,16 +15636,20 @@ void show_elog_list(LOGBOOK * lbs, INT past_n, INT last_n, INT page_n, char *inf
|
|||||||
strcpy(mode, "Summary");
|
strcpy(mode, "Summary");
|
||||||
show_attachments = FALSE;
|
show_attachments = FALSE;
|
||||||
|
|
||||||
/* superseede mode from cookie */
|
|
||||||
if (isparam("elmode"))
|
|
||||||
strcpy(mode, getparam("elmode"));
|
|
||||||
|
|
||||||
/* for page display, get mode from config file */
|
|
||||||
if (past_n || last_n || page_n) {
|
if (past_n || last_n || page_n) {
|
||||||
|
/* for page display, get mode from config file */
|
||||||
if (getcfg(lbs->name, "Display Mode", str, sizeof(str)))
|
if (getcfg(lbs->name, "Display Mode", str, sizeof(str)))
|
||||||
strcpy(mode, str);
|
strcpy(mode, str);
|
||||||
if (*getparam("mode"))
|
|
||||||
|
/* supersede mode from cookie */
|
||||||
|
if (isparam("elmode"))
|
||||||
|
strcpy(mode, getparam("elmode"));
|
||||||
|
|
||||||
|
/* supersede mode from direct parameter */
|
||||||
|
if (isparam("mode"))
|
||||||
strcpy(mode, getparam("mode"));
|
strcpy(mode, getparam("mode"));
|
||||||
|
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
/* for find result, get mode from find form */
|
/* for find result, get mode from find form */
|
||||||
strcpy(mode, getparam("mode"));
|
strcpy(mode, getparam("mode"));
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user