Added option 'Summary page title'
SVN revision: 467
This commit is contained in:
@@ -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
|
||||
=======================================
|
||||
|
||||
|
||||
@@ -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.
|
||||
<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>
|
||||
<br>
|
||||
When this option is present, a user defined file is displayed instead of the logbook
|
||||
|
||||
+21
-8
@@ -6,6 +6,9 @@
|
||||
Contents: Web server program for Electronic Logbook ELOG
|
||||
|
||||
$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
|
||||
Fixed bug with missing link in reply/upload
|
||||
|
||||
@@ -4628,14 +4631,16 @@ time_t now;
|
||||
struct tm *ts;
|
||||
|
||||
/* copy attribute list */
|
||||
for (i=0 ; i<lbs->n_attr ; i++)
|
||||
{
|
||||
strcpy(list[i], attr_list[i]);
|
||||
if (attrib)
|
||||
strcpy(value[i], attrib[i]);
|
||||
else
|
||||
strcpy(value[i], getparam(attr_list[i]));
|
||||
}
|
||||
i = 0;
|
||||
if (attrib != NULL)
|
||||
for (; i<lbs->n_attr ; i++)
|
||||
{
|
||||
strcpy(list[i], attr_list[i]);
|
||||
if (attrib)
|
||||
strcpy(value[i], attrib[i]);
|
||||
else
|
||||
strcpy(value[i], getparam(attr_list[i]));
|
||||
}
|
||||
|
||||
/* add remote host */
|
||||
strcpy(list[i], "remote_host");
|
||||
@@ -8454,6 +8459,14 @@ LOGBOOK *lbs_cur;
|
||||
|
||||
/*---- 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);
|
||||
show_standard_header(lbs, TRUE, str, NULL);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user