aboutsummaryrefslogtreecommitdiff
path: root/src/Groups.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/Groups.c')
-rw-r--r--src/Groups.c18
1 files changed, 13 insertions, 5 deletions
diff --git a/src/Groups.c b/src/Groups.c
index eb3f248..53c9f06 100644
--- a/src/Groups.c
+++ b/src/Groups.c
@@ -153,6 +153,11 @@ static int MessagesPage (const cGH *GH, httpRequest *request, void *data)
SetHTML_HeadHeader( message);
Send_HTTP_String(request, message );
+ Send_HTTP(request, "<style type=\"text/css\">\n");
+ Send_HTTP(request, " td.nomsg { background-color: #E9F4D3; }\n");
+ Send_HTTP(request, "</style>\n");
+ Send_HTTP(request, "</head>\n<body>\n");
+
/* Write out the header part */
SetHTML_ContentHeader(GH, 0, message, NULL);
Send_HTTP_String(request, message);
@@ -163,24 +168,27 @@ static int MessagesPage (const cGH *GH, httpRequest *request, void *data)
"simulation. At the moment the messages will disappear \n"
"when the simulation finishes, but soon there will be an \n"
"option to save them to a file.</p>\n"
- "<center><table><form action=\"/Messages/\">\n"
+ "<div class=\"centered\">"
+ "<form action=\"/Messages/\">\n"
+ "<table>\n"
"<tr><td>Name:</td>"
"<td><input type=\"text\" size=\"40\" maxlength=\"100\" name=\"name\" "
- "value=\"\"></td></tr>\n"
+ "value=\"\" /></td></tr>\n"
"<tr><td valign=\"top\">Message:</td><td>"
"<textarea name=\"memo\" rows=\"10\" cols=\"40\"></textarea>\n"
"</td></tr></table>\n"
- "<input type=\"submit\" value=\"Submit Message\"></form>\n"
+ "<input type=\"submit\" value=\"Submit Message\" />\n"
"<table width=\"80%\"><tr><td>\n"
"<h2>Messages:</h2></td></tr>\n"
"<tr><td><table width=\"100%\" cellpadding=\"5\" cellspacing=\"5\">"
- "<tr><td bgcolor=\"#E9F4D3\">" );
+ "<tr><td class=\"nomsg\">" );
temp = message_board ? message_board :
"No messages yet ... use the form above to add one";
Send_HTTP (request, temp );
- Send_HTTP (request, "</td></tr></table></td></tr></table></center>" );
+ Send_HTTP (request, "</td></tr></table>\n" );
+ Send_HTTP (request, "</td></tr></table>\n</form>\n</div>\n" );
/* Write out the footer part. */
SetHTML_ContentFooter(GH, 0, message);