mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-08 17:13:56 +00:00
Introduced wrapping logbook tabs
SVN revision: 121
This commit is contained in:
parent
a7ce5320c7
commit
f202a20ce6
65
elogd.c
65
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 2.16 2002/06/14 06:46:41 midas
|
||||||
|
Introduced wrapping logbook tabs
|
||||||
|
|
||||||
Revision 2.15 2002/06/14 06:08:19 midas
|
Revision 2.15 2002/06/14 06:08:19 midas
|
||||||
Sort index by date
|
Sort index by date
|
||||||
|
|
||||||
@ -2950,7 +2953,7 @@ void show_standard_header(char *title, char *path)
|
|||||||
void show_standard_title(char *logbook, char *text, int printable)
|
void show_standard_title(char *logbook, char *text, int printable)
|
||||||
{
|
{
|
||||||
char str[256], ref[256];
|
char str[256], ref[256];
|
||||||
int i;
|
int i, j;
|
||||||
|
|
||||||
/* overall table, containing title, menu and message body */
|
/* overall table, containing title, menu and message body */
|
||||||
if (printable)
|
if (printable)
|
||||||
@ -2964,42 +2967,10 @@ int i;
|
|||||||
|
|
||||||
if (!printable && getcfg(logbook, "logbook tabs", str) && atoi(str) == 1)
|
if (!printable && getcfg(logbook, "logbook tabs", str) && atoi(str) == 1)
|
||||||
{
|
{
|
||||||
/*
|
|
||||||
if (!getcfg("global", "tab cellpadding", str))
|
|
||||||
strcpy(str, "5");
|
|
||||||
rsprintf("<tr><td><table width=100%% border=0 cellpadding=%s cellspacing=0 bgcolor=#FFFFFF><tr>\n", str);
|
|
||||||
|
|
||||||
if (getcfg("global", "main tab", str))
|
|
||||||
{
|
|
||||||
rsprintf("<td nowrap bgcolor=#E0E0E0><a href=\"../\">%s</a></td>\n", str);
|
|
||||||
rsprintf("<td width=10 bgcolor=#FFFFFF> </td>\n");
|
|
||||||
}
|
|
||||||
|
|
||||||
for (i=0 ; ; i++)
|
|
||||||
{
|
|
||||||
if (!enumgrp(i, str))
|
|
||||||
break;
|
|
||||||
|
|
||||||
if (equal_ustring(str, "global"))
|
|
||||||
continue;
|
|
||||||
|
|
||||||
strcpy(ref, str);
|
|
||||||
url_encode(ref);
|
|
||||||
|
|
||||||
if (equal_ustring(str, logbook))
|
|
||||||
rsprintf("<td nowrap bgcolor=%s><font color=%s>%s</font></td>\n", gt("Title BGColor"), gt("Title fontcolor"), str);
|
|
||||||
else
|
|
||||||
rsprintf("<td nowrap bgcolor=#E0E0E0><a href=\"../%s/\">%s</a></td>\n", ref, str);
|
|
||||||
rsprintf("<td width=10 bgcolor=#FFFFFF> </td>\n");
|
|
||||||
}
|
|
||||||
rsprintf("<td width=100%% bgcolor=#FFFFFF> </td>\n");
|
|
||||||
rsprintf("</tr></table></td></tr>\n\n");
|
|
||||||
*/
|
|
||||||
|
|
||||||
rsprintf("<tr><td bgcolor=#FFFFFF>\n");
|
rsprintf("<tr><td bgcolor=#FFFFFF>\n");
|
||||||
|
|
||||||
if (getcfg("global", "main tab", str))
|
if (getcfg("global", "main tab", str))
|
||||||
rsprintf("<font style=\"background-color:#E0E0E0\"> <a href=\"../\">%s</a> </font> \n", str);
|
rsprintf("<font size=3 face=verdana,arial,helvetica,sans-serif style=\"background-color:#E0E0E0\"> <a href=\"../\">%s</a> </font> \n", str);
|
||||||
|
|
||||||
for (i=0 ; ; i++)
|
for (i=0 ; ; i++)
|
||||||
{
|
{
|
||||||
@ -3013,9 +2984,31 @@ int i;
|
|||||||
url_encode(ref);
|
url_encode(ref);
|
||||||
|
|
||||||
if (equal_ustring(str, logbook))
|
if (equal_ustring(str, logbook))
|
||||||
rsprintf("<font style=\"color:%s;background-color:%s\"> %s </font> \n", gt("Title fontcolor"), gt("Title BGColor"), str);
|
{
|
||||||
|
rsprintf("<font size=3 face=verdana,arial,helvetica,sans-serif style=\"color:%s;background-color:%s\"> ",
|
||||||
|
gt("Title fontcolor"), gt("Title BGColor"));
|
||||||
|
|
||||||
|
for (j=0 ; j<(int)strlen(str) ; j++)
|
||||||
|
if (str[j] == ' ')
|
||||||
|
rsprintf(" ");
|
||||||
|
else
|
||||||
|
rsprintf("%c", str[j]);
|
||||||
|
|
||||||
|
rsprintf(" </font> \n");
|
||||||
|
}
|
||||||
else
|
else
|
||||||
rsprintf("<font style=\"background-color:#E0E0E0\"> <a href=\"../%s/\">%s</a> </font> \n", ref, str);
|
{
|
||||||
|
rsprintf("<font size=3 face=verdana,arial,helvetica,sans-serif style=\"background-color:#E0E0E0\"> ");
|
||||||
|
rsprintf("<a style=\"text-decoration:none\" href=\"../%s/\">", ref);
|
||||||
|
|
||||||
|
for (j=0 ; j<(int)strlen(str) ; j++)
|
||||||
|
if (str[j] == ' ')
|
||||||
|
rsprintf(" ");
|
||||||
|
else
|
||||||
|
rsprintf("%c", str[j]);
|
||||||
|
|
||||||
|
rsprintf("</a> </font> \n");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
rsprintf("</td></tr>\n\n");
|
rsprintf("</td></tr>\n\n");
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user