diff --git a/src/elogd.c b/src/elogd.c
index 79f8231e..69121d2a 100755
--- a/src/elogd.c
+++ b/src/elogd.c
@@ -6,6 +6,9 @@
Contents: Web server program for Electronic Logbook ELOG
$Log$
+ Revision 1.10 2003/02/14 22:07:56 midas
+ Made most HTML pages pass validator.w3.org
+
Revision 1.9 2003/02/14 19:17:36 midas
Implemented quick filters for free-form attributes (without an options list)
@@ -3769,7 +3772,7 @@ char str[256];
if (getcfg("global", "charset", str))
rsprintf("Content-Type: text/html;charset=%s\r\n", str);
else
- rsprintf("Content-Type: text/html\r\n");
+ rsprintf("Content-Type: text/html;charset=iso-8859-1\r\n");
if (use_keepalive)
{
@@ -3792,6 +3795,9 @@ char css[256], str[256];
show_http_header(expires);
+ /* DOCTYPE */
+ rsprintf("\n");
+
/* page title */
rsprintf("
\n");
+ rsprintf("\n");
/* left cell */
rsprintf("");
@@ -4097,7 +4103,7 @@ LBLIST clb, flb, nlb, lbl;
if (getcfg(logbook, "Title image URL", str))
rsprintf("\n", str);
- rsprintf(" ");
+ rsprintf(" ");
if (getcfg(logbook, "Title image URL", str))
rsprintf(" \n");
@@ -4753,12 +4759,12 @@ time_t now;
rsprintf(" \n", loc("Submit"));
rsprintf(" \n", loc("Back"));
- rsprintf(" \n\n");
+ rsprintf("\n\n");
/*---- entry form ----*/
/* table for two-column items */
- rsprintf("");
+ rsprintf("");
/* print required message if one of the attributes has it set */
for (i= 0 ; i < lbs->n_attr ; i++)
@@ -4806,7 +4812,7 @@ time_t now;
strcpy(str, ctime(&now));
}
- rsprintf("%s: ", loc("Entry date"));
+ rsprintf("%s: ", loc("Entry date"));
rsprintf("%s \n", str);
/* display attributes */
@@ -5213,7 +5219,7 @@ time_t now;
rsprintf(" \n\n");
+ rsprintf("\n\n");
rsprintf("
\n");
rsprintf("\r\n");
@@ -5241,7 +5247,7 @@ char str[256], mode[256];
rsprintf(" \n", loc("Search"));
rsprintf(" \n", loc("Reset Form"));
rsprintf(" \n", loc("Back"));
- rsprintf(" \n\n");
+ rsprintf("\n\n");
/*---- entry form ----*/
@@ -5272,7 +5278,7 @@ char str[256], mode[256];
rsprintf("\n");
- rsprintf("%s: ", loc("Options"));
+ rsprintf("%s: ", loc("Options"));
if (!getcfg(lbs->name, "Number attachments", str) || atoi(str) > 0)
rsprintf(" %s \n", loc("Show attachments"));
@@ -5312,9 +5318,9 @@ char str[256], mode[256];
rsprintf("%s: ", loc("Filters"));
/* table for two-column items */
- rsprintf("\n");
+ rsprintf("\n");
- rsprintf("%s: ", loc("Start date"));
+ rsprintf("%s: ", loc("Start date"));
rsprintf("\n");
rsprintf("\n");
@@ -5361,8 +5367,6 @@ char str[256], mode[256];
rsprintf(" %s: ", loc("Year"));
rsprintf(" \n");
- rsprintf("\n");
-
for (i=0 ; in_attr ; i++)
{
rsprintf("%s: ", attr_list[i]);
@@ -5434,7 +5438,7 @@ char str[256];
rsprintf(" \n\n");
+ rsprintf("\n\n");
/*---- entry form ----*/
@@ -5481,7 +5485,7 @@ char str[256];
rsprintf(" \n", loc("Save"));
rsprintf(" \n", loc("Cancel"));
- rsprintf("\n\n");
+ rsprintf("\n\n");
rsprintf("
\n\n");
rsprintf("