mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-08 17:13:56 +00:00
Added option 'Summary page title'
SVN revision: 467
This commit is contained in:
parent
2821643c92
commit
585ca9d3ef
@ -1,3 +1,8 @@
|
|||||||
|
Version 2.3.5, released April xxx, 2003
|
||||||
|
=======================================
|
||||||
|
|
||||||
|
- Added option "Summary page title"
|
||||||
|
|
||||||
Version 2.3.4, released April 2nd, 2003
|
Version 2.3.4, released April 2nd, 2003
|
||||||
=======================================
|
=======================================
|
||||||
|
|
||||||
|
|||||||
@ -169,6 +169,13 @@ from each message. The option <b><code>Page title</code></b> in the <b><code>[gl
|
|||||||
section is used for the logbook selection page.
|
section is used for the logbook selection page.
|
||||||
<p>
|
<p>
|
||||||
|
|
||||||
|
<LI><b><code>Summary page title = <string></code></b>
|
||||||
|
<br>
|
||||||
|
The same for the summary or find result page. This may include substitutions as well, although
|
||||||
|
attribute substitutions make no sense here, since the summary page may contain many messages
|
||||||
|
with different attributes.
|
||||||
|
<p>
|
||||||
|
|
||||||
<LI><b><code>Selection page = <file></code></b>
|
<LI><b><code>Selection page = <file></code></b>
|
||||||
<br>
|
<br>
|
||||||
When this option is present, a user defined file is displayed instead of the logbook
|
When this option is present, a user defined file is displayed instead of the logbook
|
||||||
|
|||||||
29
src/elogd.c
29
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.64 2003/04/03 08:08:50 midas
|
||||||
|
Added option 'Summary page title'
|
||||||
|
|
||||||
Revision 1.63 2003/04/02 08:11:49 midas
|
Revision 1.63 2003/04/02 08:11:49 midas
|
||||||
Fixed bug with missing link in reply/upload
|
Fixed bug with missing link in reply/upload
|
||||||
|
|
||||||
@ -4628,14 +4631,16 @@ time_t now;
|
|||||||
struct tm *ts;
|
struct tm *ts;
|
||||||
|
|
||||||
/* copy attribute list */
|
/* copy attribute list */
|
||||||
for (i=0 ; i<lbs->n_attr ; i++)
|
i = 0;
|
||||||
{
|
if (attrib != NULL)
|
||||||
strcpy(list[i], attr_list[i]);
|
for (; i<lbs->n_attr ; i++)
|
||||||
if (attrib)
|
{
|
||||||
strcpy(value[i], attrib[i]);
|
strcpy(list[i], attr_list[i]);
|
||||||
else
|
if (attrib)
|
||||||
strcpy(value[i], getparam(attr_list[i]));
|
strcpy(value[i], attrib[i]);
|
||||||
}
|
else
|
||||||
|
strcpy(value[i], getparam(attr_list[i]));
|
||||||
|
}
|
||||||
|
|
||||||
/* add remote host */
|
/* add remote host */
|
||||||
strcpy(list[i], "remote_host");
|
strcpy(list[i], "remote_host");
|
||||||
@ -8454,6 +8459,14 @@ LOGBOOK *lbs_cur;
|
|||||||
|
|
||||||
/*---- header ----*/
|
/*---- header ----*/
|
||||||
|
|
||||||
|
if (getcfg(lbs->name, "Summary Page Title", str))
|
||||||
|
{
|
||||||
|
i = build_subst_list(lbs, slist, svalue, NULL);
|
||||||
|
strsubst(str, slist, svalue, i);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
strcpy(str, "ELOG");
|
||||||
|
|
||||||
sprintf(str, "ELOG %s", lbs->name);
|
sprintf(str, "ELOG %s", lbs->name);
|
||||||
show_standard_header(lbs, TRUE, str, NULL);
|
show_standard_header(lbs, TRUE, str, NULL);
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user