$Log$
+Revision 410.12 2003/04/19 21:42:36 ajc
+* Repaired all my b0rken COLOR tags
+* Replaced most FONT tags with SPAN tags
+* Added new styles
+
Revision 410.11 2003/04/19 19:58:10 ajc
* Lots of great changes from Nick to make the site CSS-enabled.
1998-12-03 Nathan Bryant <bryant@cs.usm.maine.edu>
* webserver.c: warning fix
-
output_headers(3);
- wprintf("<TABLE WIDTH=100%% BORDER=0 BGCOLOR=770000><TR><TD>");
- wprintf("<FONT SIZE=+1 COLOR=\"FFFFFF\"");
- wprintf("<B>Change your password</B>\n");
- wprintf("</FONT></TD></TR></TABLE>\n");
+ wprintf("<TABLE WIDTH=100%% BORDER=0 BGCOLOR=\"#770000\"><TR><TD>");
+ wprintf("<SPAN CLASS=\"titlebar\">Change your password</SPAN>\n");
+ wprintf("</TD></TR></TABLE>\n");
wprintf("<CENTER>");
serv_puts("MESG changepw");
output_headers(3);
- wprintf("<TABLE WIDTH=100%% BORDER=0 BGCOLOR=007700><TR><TD>"
- "<FONT SIZE=+1 COLOR=\"FFFFFF\""
- "<B>Respond to meeting request</B>"
- "</FONT></TD></TR></TABLE><BR>\n"
+ wprintf("<TABLE WIDTH=100%% BORDER=0 BGCOLOR=\"#007700\"><TR><TD>"
+ "<SPAN CLASS=\"titlebar\">Respond to meeting request</SPAN>"
+ "</TD></TR></TABLE><BR>\n"
);
serv_printf("ICAL respond|%s|%s|%s|",
output_headers(3);
- wprintf("<TABLE WIDTH=100%% BORDER=0 BGCOLOR=007700><TR><TD>"
- "<FONT SIZE=+1 COLOR=\"FFFFFF\""
- "<B>Update your calendar with this RSVP</B>"
- "</FONT></TD></TR></TABLE><BR>\n"
+ wprintf("<TABLE WIDTH=100%% BORDER=0 BGCOLOR=\"#007700\"><TR><TD>"
+ "<SPAN CLASS=\"titlebar\">"
+ "Update your calendar with this RSVP</SPAN>"
+ "</TD></TR></TABLE><BR>\n"
);
serv_printf("ICAL handle_rsvp|%s|%s|%s|",
}
output_headers(3);
- wprintf("<TABLE WIDTH=100%% BORDER=0 BGCOLOR=007700><TR><TD>"
- "<FONT SIZE=+1 COLOR=\"FFFFFF\""
- "<B>Edit task</B>"
- "</FONT></TD></TR></TABLE><BR>\n"
+ wprintf("<TABLE WIDTH=100%% BORDER=0 BGCOLOR=\"#007700\"><TR><TD>"
+ "<SPAN CLASS=\"titlebar\">Edit task</SPAN>"
+ "</TD></TR></TABLE><BR>\n"
);
wprintf("<FORM METHOD=\"POST\" ACTION=\"/save_task\">\n");
if (all_day_event) {
wprintf("<TABLE border=0 cellpadding=2><TR>"
- "<TD BGCOLOR=#CCCCDD>"
+ "<TD BGCOLOR=\"#CCCCDD\">"
);
}
wprintf("<IMG ALIGN=MIDDLE SRC=\"/static/back.gif\" BORDER=0></A>\n");
wprintf(" "
- "<FONT COLOR=#FFFFFF>"
+ "<FONT COLOR=\"#FFFFFF\">"
"%s %d"
"</FONT>"
" ", months[month-1], year);
wprintf("<TABLE width=100%% border=0 cellpadding=1 cellspacing=1 "
"bgcolor=#4444FF>");
for (i=0; i<7; ++i) {
- wprintf("<TH><FONT COLOR=#FFFFFF>%s</FONT></TH>", days[i]);
+ wprintf("<TH><FONT COLOR=\"#FFFFFF\">%s</FONT></TH>", days[i]);
}
/* Now do 35 days */
wprintf("<TR>");
}
- wprintf("<TD BGCOLOR=%s WIDTH=14%% HEIGHT=60 VALIGN=TOP><B>",
+ wprintf("<TD BGCOLOR=\"#%s\" WIDTH=14%% HEIGHT=60 VALIGN=TOP><B>",
((tm.tm_mon != month-1) ? "DDDDDD" :
((tm.tm_wday==0 || tm.tm_wday==6) ? "EEEECC" :
"FFFFFF"))
if (all_day_event) {
wprintf("<TABLE border=1 cellpadding=2><TR>"
- "<TD BGCOLOR=#CCCCCC>"
+ "<TD BGCOLOR=\"#CCCCCC\">"
);
}
/* Display events before 8:00 (hour=-1 is all-day events) */
wprintf("<TR>"
- "<TD BGCOLOR=CCCCDD VALIGN=MIDDLE WIDTH=10%%></TD>"
- "<TD BGCOLOR=FFFFFF VALIGN=TOP>");
+ "<TD BGCOLOR=\"#CCCCDD\" VALIGN=MIDDLE WIDTH=10%%></TD>"
+ "<TD BGCOLOR=\"#FFFFFF\" VALIGN=TOP>");
for (hour = (-1); hour <= 7; ++hour) {
calendar_day_view_display_events(year, month, day, hour);
}
/* Now the middle of the day... */
for (hour = 8; hour <= 17; ++hour) { /* could do HEIGHT=xx */
- wprintf("<TR HEIGHT=30><TD BGCOLOR=CCCCDD ALIGN=MIDDLE "
+ wprintf("<TR HEIGHT=30><TD BGCOLOR=\"#CCCCDD\" ALIGN=MIDDLE "
"VALIGN=MIDDLE WIDTH=10%%>");
wprintf("<A HREF=\"/display_edit_event?msgnum=0"
"&year=%d&month=%d&day=%d&hour=%d&minute=0\">",
(hour <= 12 ? hour : hour-12),
(hour < 12 ? "am" : "pm")
);
- wprintf("</TD><TD BGCOLOR=FFFFFF VALIGN=TOP>");
+ wprintf("</TD><TD BGCOLOR=\"#FFFFFF\" VALIGN=TOP>");
/* put the data here, stupid */
calendar_day_view_display_events(year, month, day, hour);
/* Display events after 5:00... */
wprintf("<TR>"
- "<TD BGCOLOR=CCCCDD VALIGN=MIDDLE WIDTH=10%%></TD>"
- "<TD BGCOLOR=FFFFFF VALIGN=TOP>");
+ "<TD BGCOLOR=\"#CCCCDD\" VALIGN=MIDDLE WIDTH=10%%></TD>"
+ "<TD BGCOLOR=\"#FFFFFF\" VALIGN=TOP>");
for (hour = 18; hour <= 23; ++hour) {
calendar_day_view_display_events(year, month, day, hour);
}
wprintf("<IMG ALIGN=MIDDLE SRC=\"/static/back.gif\" BORDER=0></A>"
"</TD>\n");
- wprintf("<TD ALIGN=MIDDLE><FONT COLOR=#FFFFFF>"
+ wprintf("<TD ALIGN=MIDDLE><FONT COLOR=\"#FFFFFF\">"
"<H2>%s</H2><H1>%d</H1><H3>%d</H3>"
"</FONT></TD>",
months[month-1], day, year);
/* Begin output */
output_headers(3);
- wprintf("<TABLE WIDTH=100%% BORDER=0 BGCOLOR=007700><TR><TD>"
+ wprintf("<TABLE WIDTH=100%% BORDER=0 BGCOLOR=\"#007700\"><TR><TD>"
"<IMG ALIGN=CENTER SRC=\"/static/vcalendar.gif\">"
- "<FONT SIZE=+1 COLOR=\"FFFFFF\""
- "<B>Edit event</B>"
- "</FONT></TD></TR></TABLE><BR>\n"
+ "<SPAN CLASS=\"titlebar\">Edit event</SPAN>"
+ "</TD></TR></TABLE><BR>\n"
);
/************************************************************
serv_printf("LFLR"); /* FIXME put a real test here */
serv_gets(buf);
if (buf[0] != '1') {
- wprintf("<TABLE WIDTH=100%% BORDER=0 BGCOLOR=770000><TR><TD>");
- wprintf("<FONT SIZE=+1 COLOR=\"FFFFFF\"");
- wprintf("<B>Error</B>\n");
- wprintf("</FONT></TD></TR></TABLE><BR>\n");
+ wprintf("<TABLE WIDTH=100%% BORDER=0 BGCOLOR=\"#770000\"><TR><TD>");
+ wprintf("<SPAN CLASS=\"titlebar\">Error</SPAN>\n");
+ wprintf("</TD></TR></TABLE><BR>\n");
wprintf("%s<BR>\n", &buf[4]);
wDumpContent(1);
return;
}
- wprintf("<TABLE WIDTH=100%% BORDER=0 BGCOLOR=007700><TR><TD>"
- "<FONT SIZE=+1 COLOR=\"FFFFFF\"<B>Floor configuration"
- "</B></FONT></TD></TR></TABLE>\n"
+ wprintf("<TABLE WIDTH=100%% BORDER=0 BGCOLOR=\"#007700\"><TR><TD>"
+ "<SPAN CLASS=\"titlebar\">Floor configuration</SPAN>"
+ "</TD></TR></TABLE>\n"
);
wprintf("<TABLE BORDER=1 WIDTH=100%>\n"
return;
}
output_headers(3);
- wprintf("<TABLE WIDTH=100%% BORDER=0 BGCOLOR=770000><TR><TD>");
- wprintf("<FONT SIZE=+1 COLOR=\"FFFFFF\"");
- wprintf("<B>Set/change %s</B>\n", description);
- wprintf("</FONT></TD></TR></TABLE>\n");
+ wprintf("<TABLE WIDTH=100%% BORDER=0 BGCOLOR=\"#770000\"><TR><TD>");
+ wprintf("<SPAN CLASS=\"titlebar\">Set/change %s</SPAN>\n", description);
+ wprintf("</TD></TR></TABLE>\n");
wprintf("<CENTER>\n");
strcpy(subtype, bstr("subtype"));
wprintf("<CENTER>"
- "<TABLE WIDTH=100%% BORDER=0 BGCOLOR=000077><TR><TD>"
- "<FONT SIZE=+1 COLOR=\"FFFFFF\""
- "<B>List subscribe/unsubscribe</B>\n"
+ "<TABLE WIDTH=100%% BORDER=0 BGCOLOR=\"#000077\"><TR><TD>"
+ "<SPAN CLASS=\"titlebar\">List subscribe/unsubscribe</SPAN>\n"
"</TD></TR></TABLE><BR>\n"
);
{
output_headers(1);
- wprintf("<TABLE WIDTH=100%% BORDER=0 BGCOLOR=770077><TR><TD>"
- "<FONT SIZE=+1 COLOR=\"FFFFFF\""
- "<B>Basic commands</B>\n"
- "</FONT></TD>"
+ wprintf("<TABLE WIDTH=100%% BORDER=0 BGCOLOR=\"#770077\"><TR><TD>"
+ "<SPAN CLASS=\"titlebar\">Basic commands</SPAN>\n"
"</TD></TR></TABLE>\n"
"<CENTER><TABLE border=0><TR>"
);
wprintf("<TABLE WIDTH=100%%><TR VALIGN=TOP><TD>");
- wprintf("<TABLE WIDTH=100%% BORDER=0 BGCOLOR=770000><TR><TD>");
- wprintf("<FONT SIZE=+1 COLOR=\"FFFFFF\"");
- wprintf("<B>Interaction</B>\n");
- wprintf("</FONT></TD></TR></TABLE>\n");
+ wprintf("<TABLE WIDTH=100%% BORDER=0 BGCOLOR=\"#770000\"><TR><TD>");
+ wprintf("<SPAN CLASS=\"titlebar\">Interaction</SPAN>\n");
+ wprintf("</TD></TR></TABLE>\n");
wprintf("<UL>");
wprintf("<LI><A HREF=\"/whobbs\">\n");
wprintf("</TD><TD>");
- wprintf("<TABLE WIDTH=100%% BORDER=0 BGCOLOR=007700><TR><TD>");
- wprintf("<FONT SIZE=+1 COLOR=\"FFFFFF\"");
- wprintf("<B>Your info</B>\n");
- wprintf("</FONT></TD></TR></TABLE>\n");
+ wprintf("<TABLE WIDTH=100%% BORDER=0 BGCOLOR=\"#007700\"><TR><TD>");
+ wprintf("<SPAN CLASS=\"titlebar\">Your info</SPAN>\n");
+ wprintf("</TD></TR></TABLE>\n");
wprintf("<UL>");
wprintf("<LI><A HREF=\"/display_editbio\">\n");
wprintf("</TD></TR><TR VALIGN=TOP><TD>");
- wprintf("<TABLE WIDTH=100%% BORDER=0 BGCOLOR=000077><TR><TD>");
- wprintf("<FONT SIZE=+1 COLOR=\"FFFFFF\"");
- wprintf("<B>Advanced room commands</B>\n");
- wprintf("</FONT></TD></TR></TABLE>\n");
+ wprintf("<TABLE WIDTH=100%% BORDER=0 BGCOLOR=\"#000077\"><TR><TD>");
+ wprintf("<SPAN CLASS=\"titlebar\">Advanced room commands</SPAN>\n");
+ wprintf("</TD></TR></TABLE>\n");
wprintf("<UL>");
wprintf("<LI><A HREF=\"/display_private\">\n");
wprintf("</TD><TD>");
if ((WC->axlevel >= 6) || (WC->is_room_aide)) {
- wprintf("<TABLE WIDTH=100%% BORDER=0 BGCOLOR=007777><TR><TD>");
- wprintf("<FONT SIZE=+1 COLOR=\"FFFFFF\"");
- wprintf("<B>Administrative functions</B>\n");
- wprintf("</FONT></TD></TR></TABLE>\n");
+ wprintf("<TABLE WIDTH=100%% BORDER=0 BGCOLOR=\"#007777\"><TR><TD>");
+ wprintf("<SPAN CLASS=\"titlebar\">Administrative functions</SPAN>\n");
+ wprintf("</TD></TR></TABLE>\n");
wprintf("<UL>");
wprintf("<LI><A HREF=\"/display_editroom\">\n");
{
output_headers(1);
- wprintf("<TABLE WIDTH=100%% BORDER=0 BGCOLOR=770077><TR><TD>");
- wprintf("<FONT SIZE=+1 COLOR=\"FFFFFF\"");
- wprintf("<B>Enter a server command</B>\n");
- wprintf("</FONT></TD></TR></TABLE>\n");
+ wprintf("<TABLE WIDTH=100%% BORDER=0 BGCOLOR=\"#770077\"><TR><TD>");
+ wprintf("<SPAN CLASS=\"titlebar\">Enter a server command</SPAN>\n");
+ wprintf("</TD></TR></TABLE>\n");
wprintf("<CENTER>");
wprintf("This screen allows you to enter Citadel server commands which are\n");
serv_printf("%s", bstr("g_cmd"));
serv_gets(buf);
- wprintf("<TABLE WIDTH=100%% BORDER=0 BGCOLOR=770077><TR><TD>");
- wprintf("<FONT SIZE=+1 COLOR=\"FFFFFF\"");
- wprintf("<B>Server command results</B>\n");
- wprintf("</FONT></TD></TR></TABLE>\n");
+ wprintf("<TABLE WIDTH=100%% BORDER=0 BGCOLOR=\"#770077\"><TR><TD>");
+ wprintf("<SPAN CLASS=\"titlebar\">Server command results</SPAN>\n");
+ wprintf("</TD></TR></TABLE>\n");
wprintf("<TABLE border=0><TR><TD>Command:</TD><TD><TT>");
escputs(bstr("g_cmd"));
wprintf("<TABLE bgcolor=#888888>");
if (v->numprops) for (i=0; i<(v->numprops); ++i) {
if (!strcasecmp(v->prop[i].name, "n")) {
- wprintf("<TR BGCOLOR=#AAAAAA>"
- "<TD BGCOLOR=#FFFFFF>"
+ wprintf("<TR BGCOLOR=\"#AAAAAA\">"
+ "<TD BGCOLOR=\"#FFFFFF\">"
"<IMG ALIGN=CENTER SRC=\"/static/vcard.gif\"></TD>"
"<TD><FONT SIZE=+1><B>");
escputs(v->prop[i].value);
}
wprintf("<TABLE WIDTH=100%% BORDER=0 CELLSPACING=0 "
- "CELLPADDING=1 BGCOLOR=CCCCCC><TR><TD>\n");
+ "CELLPADDING=1 BGCOLOR=\"#CCCCCC\"><TR><TD>\n");
- wprintf("<FONT ");
- wprintf("SIZE=+1 ");
- wprintf("COLOR=\"000000\"> ");
+ wprintf("<SPAN CLASS=\"message_header\">");
strcpy(m_subject, "");
while (serv_gets(buf), strcasecmp(buf, "text")) {
if (!strcmp(buf, "000")) {
wprintf("<I>unexpected end of message</I><BR><BR>\n");
+ wprintf("</SPAN>\n");
return;
}
if (!strncasecmp(buf, "nhdr=yes", 8))
wprintf("****");
}
- wprintf("</FONT></TD>");
+ wprintf("</SPAN></TD>");
wprintf("<TD ALIGN=RIGHT>\n"
"<TABLE BORDER=0><TR>\n");
- wprintf("<TD BGCOLOR=\"AAAADD\">"
+ wprintf("<TD BGCOLOR=\"#AAAADD\">"
"<A HREF=\"/readfwd?startmsg=%ld", msgnum);
wprintf("&maxmsgs=1&summary=0\">Read</A>"
"</TD>\n", msgnum);
- wprintf("<TD BGCOLOR=\"AAAADD\">"
+ wprintf("<TD BGCOLOR=\"#AAAADD\">"
"<A HREF=\"/display_enter?recp=");
urlescputs(reply_to);
wprintf("\"><FONT SIZE=-1>Reply</FONT></A>"
"</TD>\n", msgnum);
if (WC->is_room_aide) {
- wprintf("<TD BGCOLOR=\"AAAADD\">"
+ wprintf("<TD BGCOLOR=\"#AAAADD\">"
"<A HREF=\"/confirm_move_msg"
"&msgid=%ld"
"\"><FONT SIZE=-1>Move</FONT></A>"
"</TD>\n", msgnum);
- wprintf("<TD BGCOLOR=\"AAAADD\">"
+ wprintf("<TD BGCOLOR=\"#AAAADD\">"
"<A HREF=\"/delete_msg"
"&msgid=%ld\""
"onClick=\"return confirm('Delete this message?');\""
"</TD>\n");
if (strlen(m_subject) > 0) {
- wprintf("<TR><TD><FONT COLOR=\"0000FF\">"
- "Subject: %s</FONT>"
+ wprintf("<TR><TD>"
+ "<SPAN CLASS=\"message_subject\">"
+ "Subject: %s"
+ "</SPAN>"
"</TD><TD> </TD></TR>\n", m_subject);
}
buf[strlen(buf) - 1] = 0;
if ((bq == 0) &&
((!strncmp(buf, ">", 1)) || (!strncmp(buf, " >", 2)) || (!strncmp(buf, " :-)", 4)))) {
- wprintf("<FONT COLOR=\"000044\"><I>");
+ wprintf("<SPAN CLASS=\"pull_quote\">");
bq = 1;
} else if ((bq == 1) &&
(strncmp(buf, ">", 1)) && (strncmp(buf, " >", 2)) && (strncmp(buf, " :-)", 4))) {
- wprintf("</FONT></I>");
+ wprintf("</SPAN>");
bq = 0;
}
wprintf("<TT>");
/* If a tabular view, set up the line */
if ( (is_summary) || (is_addressbook) ) {
bg = 1 - bg;
- wprintf("<TR BGCOLOR=%s>",
+ wprintf("<TR BGCOLOR=\"#%s\">",
(bg ? "DDDDDD" : "FFFFFF")
);
}
if ((!is_tasks) && (!is_calendar)) {
wprintf("<CENTER>"
- "<TABLE BORDER=0 WIDTH=100%% BGCOLOR=DDDDDD><TR><TD>"
+ "<TABLE BORDER=0 WIDTH=100%% BGCOLOR=\"#DDDDDD\"><TR><TD>"
"Reading #%d of %d messages.</TD>\n"
"<TD ALIGN=RIGHT><FONT SIZE=+1>",
lowest_displayed, nummsgs);
if (num_displayed > 1) {
if ((!is_tasks) && (!is_calendar)) {
wprintf("<CENTER>"
- "<TABLE BORDER=0 WIDTH=100%% BGCOLOR=DDDDDD><TR><TD>"
+ "<TABLE BORDER=0 WIDTH=100%% BGCOLOR=\"#DDDDDD\"><TR><TD>"
"Reading #%d-%d of %d messages.</TD>\n"
"<TD ALIGN=RIGHT><FONT SIZE=+1>",
lowest_displayed, highest_displayed, nummsgs);
strcpy(buf, (char *) asctime(tm));
buf[strlen(buf) - 1] = 0;
strcpy(&buf[16], &buf[19]);
- wprintf("</CENTER><FONT COLOR=\"440000\">\n"
+ wprintf("</CENTER><FONT COLOR=\"#440000\">\n"
"<IMG SRC=\"static/enter.gif\" ALIGN=MIDDLE ALT=\" \" "
"onLoad=\"document.enterform.msgtext.focus();\" >");
wprintf("<B> %s ", &buf[4]);
output_headers(1);
- wprintf("<TABLE WIDTH=100%% BORDER=0 BGCOLOR=770000><TR><TD>");
- wprintf("<FONT SIZE=+1 COLOR=\"FFFFFF\"");
+ wprintf("<TABLE WIDTH=100%% BORDER=0 BGCOLOR=\"#770000\"><TR><TD>");
+ wprintf("<FONT SIZE=+1 COLOR=\"#FFFFFF\"");
wprintf("<B>Confirm move of message</B>\n");
wprintf("</FONT></TD></TR></TABLE>\n");
void display_add_node(void)
{
output_headers(3);
- wprintf("<TABLE WIDTH=100%% BORDER=0 BGCOLOR=000077><TR><TD>");
- wprintf("<FONT SIZE=+1 COLOR=\"FFFFFF\"");
- wprintf("<B>Add new node</B>");
- wprintf("</FONT></TD></TR></TABLE>\n");
+ wprintf("<TABLE WIDTH=100%% BORDER=0 BGCOLOR=\"#000077\"><TR><TD>");
+ wprintf("<SPAN CLASS=\"titlebar\">Add new node</SPAN>");
+ wprintf("</TD></TR></TABLE>\n");
wprintf("<FORM METHOD=\"POST\" ACTION=\"/edit_node\">\n");
wprintf("<CENTER><TABLE border=0>\n");
strcpy(node, bstr("node"));
output_headers(3);
- wprintf("<TABLE WIDTH=100%% BORDER=0 BGCOLOR=000077><TR><TD>");
- wprintf("<FONT SIZE=+1 COLOR=\"FFFFFF\"");
- wprintf("<B>Edit node configuration for ");
+ wprintf("<TABLE WIDTH=100%% BORDER=0 BGCOLOR=\"#000077\"><TR><TD>");
+ wprintf("<SPAN CLASS=\"titlebar\">Edit node configuration for ");
escputs(node);
- wprintf("</B>\n");
- wprintf("</FONT></TD></TR></TABLE>\n");
+ wprintf("</SPAN>\n");
+ wprintf("</TD></TR></TABLE>\n");
serv_puts("CONF getsys|application/x-citadel-ignet-config");
serv_gets(buf);
char node[SIZ];
output_headers(3);
- wprintf("<TABLE WIDTH=100%% BORDER=0 BGCOLOR=770000><TR><TD>");
- wprintf("<FONT SIZE=+1 COLOR=\"FFFFFF\"");
- wprintf("<B>Network configuration</B>\n");
- wprintf("</FONT></TD></TR></TABLE>\n");
+ wprintf("<TABLE WIDTH=100%% BORDER=0 BGCOLOR=\"#770000\"><TR><TD>");
+ wprintf("<SPAN CLASS=\"titlebar\">Network configuration</SPAN>\n");
+ wprintf("</TD></TR></TABLE>\n");
wprintf("<CENTER>");
wprintf("<A HREF=\"/display_add_node\">");
wprintf("Add a new node</A><BR>\n");
wprintf("</CENTER>");
- wprintf("<TABLE WIDTH=100%% BORDER=0 BGCOLOR=000077><TR><TD>");
- wprintf("<FONT SIZE=+1 COLOR=\"FFFFFF\"");
- wprintf("<B>Currently configured nodes</B>\n");
- wprintf("</FONT></TD></TR></TABLE>\n");
+ wprintf("<TABLE WIDTH=100%% BORDER=0 BGCOLOR=\"#000077\"><TR><TD>");
+ wprintf("<SPAN CLASS=\"titlebar\">Currently configured nodes</SPAN>\n");
+ wprintf("</TD></TR></TABLE>\n");
serv_puts("CONF getsys|application/x-citadel-ignet-config");
serv_gets(buf);
if (buf[0] == '1') {
char node[SIZ];
output_headers(3);
- wprintf("<TABLE WIDTH=100%% BORDER=0 BGCOLOR=770000><TR><TD>");
- wprintf("<FONT SIZE=+1 COLOR=\"FFFFFF\"");
- wprintf("<B>Confirm delete</B>\n");
- wprintf("</FONT></TD></TR></TABLE>\n");
+ wprintf("<TABLE WIDTH=100%% BORDER=0 BGCOLOR=\"#770000\"><TR><TD>");
+ wprintf("<SPAN CLASS=\"titlebar\">Confirm delete</SPAN>\n");
+ wprintf("</TD></TR></TABLE>\n");
strcpy(node, bstr("node"));
wprintf("<CENTER>Are you sure you want to delete <FONT SIZE=+1>");
output_headers(3);
- wprintf("<TABLE WIDTH=100%% BORDER=0 BGCOLOR=007700><TR><TD>");
- wprintf("<FONT SIZE=+1 COLOR=\"FFFFFF\"");
- wprintf("<B>Page another user</B>\n");
- wprintf("</FONT></TD></TR></TABLE>\n");
+ wprintf("<TABLE WIDTH=100%% BORDER=0 BGCOLOR=\"#007700\"><TR><TD>");
+ wprintf("<SPAN CLASS=\"titlebar\">Page another user</SPAN>\n");
+ wprintf("</TD></TR></TABLE>\n");
wprintf("<CENTER>This will send a page (instant message) "
"to %s.\n", recp);
output_headers(1);
- wprintf("<TABLE WIDTH=100%% BORDER=0 BGCOLOR=000077><TR><TD>");
- wprintf("<FONT SIZE=+1 COLOR=\"FFFFFF\"");
- wprintf("<B>Real-time chat</B>\n");
- wprintf("</FONT></TD></TR></TABLE>\n");
+ wprintf("<TABLE WIDTH=100%% BORDER=0 BGCOLOR=\"#000077\"><TR><TD>");
+ wprintf("<SPAN CLASS=\"titlebar\">Real-time chat</SPAN>\n");
+ wprintf("</TD></TR></TABLE>\n");
if (!strcasecmp(ctdlhost, "uds")) {
wprintf("<I>Sorry ... chat is not available here.</i></BR>\n");
extract(pagefrom, &buf[4], 3);
- wprintf("<TABLE WIDTH=100%% BORDER=0 BGCOLOR=007700><TR><TD>");
- wprintf("<FONT SIZE=+1 COLOR=\"FFFFFF\""
- "<B>Express message from ");
+ wprintf("<TABLE WIDTH=100%% BORDER=0 BGCOLOR=\"#007700\"><TR><TD>");
+ wprintf("<SPAN CLASS=\"titlebar\">Express message from ");
escputs(pagefrom);
- wprintf("</B></FONT></TD></TR></TABLE>\n");
+ wprintf("</SPAN></TD></TR></TABLE>\n");
fmout(NULL);
}
void zapped_list(void)
{
output_headers(1);
- wprintf("<TABLE WIDTH=100%% BORDER=0 BGCOLOR=770000><TR><TD>");
- wprintf("<FONT SIZE=+1 COLOR=\"FFFFFF\"");
- wprintf("<B>Zapped (forgotten) rooms</B>\n");
+ wprintf("<TABLE WIDTH=100%% BORDER=0 BGCOLOR=\"#770000\"><TR><TD>");
+ wprintf("<SPAN CLASS=\"titlebar\">Zapped (forgotten) rooms</SPAN>\n");
wprintf("</TD></TR></TABLE><BR>\n");
listrms("LZRM -1");
wprintf("<BR><BR>\n");
serv_puts("OIMG _roompic_");
serv_gets(buf);
if (buf[0] == '2') {
- wprintf("<TD BGCOLOR=444455>");
+ wprintf("<TD BGCOLOR=\"#444455\">");
wprintf("<IMG SRC=\"/image&name=_roompic_&room=");
urlescputs(WC->wc_roomname);
wprintf("\"></TD>");
"<A HREF=\"/dotgoto?room=_MAIL_\">"
"<IMG SRC=\"/static/mail.gif\" border=0 "
"ALT=\"You have new mail\">"
- "<BR><FONT SIZE=2 COLOR=FFFFFF>"
- "%d new mail</FONT></A>", WC->new_mail);
+ "<BR><SPAN CLASS=\"youhavemail\">"
+ "%d new mail</SPAN></A>", WC->new_mail);
WC->remember_new_mail = WC->new_mail;
}
}
/* print the tabbed dialog */
wprintf("<TABLE border=0 cellspacing=0 cellpadding=0 width=100%%>"
- "<TR ALIGN=CENTER BGCOLOR=FFFFFF>"
+ "<TR ALIGN=CENTER BGCOLOR=\"#FFFFFF\">"
"<TD> </TD>\n");
if (!strcmp(tab, "admin")) {
- wprintf("<TD BGCOLOR=000077><FONT SIZE=+1 COLOR=\"FFFFFF\"><B>");
+ wprintf("<TD BGCOLOR=\"#000077\"><SPAN CLASS=\"tablabel\">");
}
else {
- wprintf("<TD BGCOLOR=AAAAAA><A HREF=\"/display_editroom&tab=admin\">");
+ wprintf("<TD BGCOLOR=\"#AAAAAA\"><A HREF=\"/display_editroom&tab=admin\">");
}
wprintf("Room administration");
if (!strcmp(tab, "admin")) {
- wprintf("</B></FONT></TD>\n");
+ wprintf("</SPAN></TD>\n");
}
else {
wprintf("</A></TD>\n");
wprintf("<TD> </TD>\n");
if (!strcmp(tab, "config")) {
- wprintf("<TD BGCOLOR=000077><FONT SIZE=+1 COLOR=\"FFFFFF\"><B>");
+ wprintf("<TD BGCOLOR=\"#000077\"><SPAN CLASS=\"tablabel\">");
}
else {
- wprintf("<TD BGCOLOR=AAAAAA><A HREF=\"/display_editroom&tab=config\">");
+ wprintf("<TD BGCOLOR=\"#AAAAAA\"><A HREF=\"/display_editroom&tab=config\">");
}
wprintf("Room configuration");
if (!strcmp(tab, "config")) {
- wprintf("</B></FONT></TD>\n");
+ wprintf("</SPAN></TD>\n");
}
else {
wprintf("</A></TD>\n");
wprintf("<TD> </TD>\n");
if (!strcmp(tab, "sharing")) {
- wprintf("<TD BGCOLOR=000077><FONT SIZE=+1 COLOR=\"FFFFFF\"><B>");
+ wprintf("<TD BGCOLOR=\"#000077\"><SPAN CLASS=\"tablabel\">");
}
else {
- wprintf("<TD BGCOLOR=AAAAAA><A HREF=\"/display_editroom&tab=sharing\">");
+ wprintf("<TD BGCOLOR=\"#AAAAAA\"><A HREF=\"/display_editroom&tab=sharing\">");
}
wprintf("Sharing");
if (!strcmp(tab, "sharing")) {
- wprintf("</B></FONT></TD>\n");
+ wprintf("</SPAN></TD>\n");
}
else {
wprintf("</A></TD>\n");
wprintf("<TD> </TD>\n");
if (!strcmp(tab, "listserv")) {
- wprintf("<TD BGCOLOR=000077><FONT SIZE=+1 COLOR=\"FFFFFF\"><B>");
+ wprintf("<TD BGCOLOR=\"#000077\"><SPAN CLASS=\"tablabel\">");
}
else {
- wprintf("<TD BGCOLOR=AAAAAA><A HREF=\"/display_editroom&tab=listserv\">");
+ wprintf("<TD BGCOLOR=\"#AAAAAA\"><A HREF=\"/display_editroom&tab=listserv\">");
}
wprintf("Mailing list service");
if (!strcmp(tab, "listserv")) {
- wprintf("</B></FONT></TD>\n");
+ wprintf("</SPAN></TD>\n");
}
else {
wprintf("</A></TD>\n");
}
wprintf("<TD> </TD></TR>"
- "<TR><TD BGCOLOR=000077 COLSPAN=9 HEIGHT=5> </TD></TR>"
+ "<TR><TD BGCOLOR=\"#000077\" COLSPAN=9 HEIGHT=5> </TD></TR>"
"</TABLE>\n");
/* end tabbed dialog */
output_headers(1);
- wprintf("<TABLE WIDTH=100%% BORDER=0 BGCOLOR=007700><TR><TD>");
- wprintf("<FONT SIZE=+1 COLOR=\"FFFFFF\"<B>Access control list for ");
+ wprintf("<TABLE WIDTH=100%% BORDER=0 BGCOLOR=\"#007700\"><TR><TD>");
+ wprintf("<SPAN CLASS=\"titlebar\">Access control list for ");
escputs(WC->wc_roomname);
- wprintf("</B></FONT></TD></TR></TABLE>\n");
+ wprintf("</SPAN></TD></TR></TABLE>\n");
if(!strcmp(bstr("sc"), "Kick")) {
sprintf(buf, "KICK %s", username);
}
output_headers(1);
- wprintf("<TABLE WIDTH=100%% BORDER=0 BGCOLOR=000077><TR><TD>");
- wprintf("<FONT SIZE=+1 COLOR=\"FFFFFF\"");
- wprintf("<B>Enter (create) a new room</B>\n");
- wprintf("</FONT></TD></TR></TABLE>\n");
+ wprintf("<TABLE WIDTH=100%% BORDER=0 BGCOLOR=\"#000077\"><TR><TD>");
+ wprintf("<SPAN CLASS=\"titlebar\">Enter (create) a new room</SPAN>\n");
+ wprintf("</TD></TR></TABLE>\n");
wprintf("<FORM METHOD=\"POST\" ACTION=\"/entroom\">\n");
output_headers(1);
- wprintf("<TABLE WIDTH=100%% BORDER=0 BGCOLOR=770000><TR><TD>");
- wprintf("<FONT SIZE=+1 COLOR=\"FFFFFF\"");
- wprintf("<B>Goto a private room</B>\n");
- wprintf("</FONT></TD></TR></TABLE>\n");
+ wprintf("<TABLE WIDTH=100%% BORDER=0 BGCOLOR=\"#770000\"><TR><TD>");
+ wprintf("<SPAN CLASS=\"titlebar\">Goto a private room</SPAN>\n");
+ wprintf("</TD></TR></TABLE>\n");
wprintf("<CENTER>\n");
wprintf("If you know the name of a hidden (guess-name) or\n");
{
output_headers(1);
- wprintf("<TABLE WIDTH=100%% BORDER=0 BGCOLOR=770000><TR><TD>");
- wprintf("<FONT SIZE=+1 COLOR=\"FFFFFF\"");
- wprintf("<B>Zap (forget) the current room</B>\n");
- wprintf("</FONT></TD></TR></TABLE>\n");
+ wprintf("<TABLE WIDTH=100%% BORDER=0 BGCOLOR=\"#770000\"><TR><TD>");
+ wprintf("<SPAN CLASS=\"titlebar\">Zap (forget) the current room</SPAN>\n");
+ wprintf("</TD></TR></TABLE>\n");
wprintf("If you select this option, <em>%s</em> will ", WC->wc_roomname);
wprintf("disappear from your room list. Is this what you wish ");
return;
}
output_headers(1);
- wprintf("<TABLE WIDTH=100%% BORDER=0 BGCOLOR=770000><TR><TD>");
- wprintf("<FONT SIZE=+1 COLOR=\"FFFFFF\"");
- wprintf("<B>Confirm deletion of room</B>\n");
- wprintf("</FONT></TD></TR></TABLE>\n");
+ wprintf("<TABLE WIDTH=100%% BORDER=0 BGCOLOR=\"#770000\"><TR><TD>");
+ wprintf("<SPAN CLASS=\"titlebar\">Confirm deletion of room</SPAN>\n");
+ wprintf("</TD></TR></TABLE>\n");
wprintf("<CENTER>");
wprintf("<FORM METHOD=\"GET\" ACTION=\"/delete_room\">\n");
}
/* title bar */
- wprintf("<TABLE WIDTH=100%% BORDER=0 BGCOLOR=000077><TR><TD>"
- "<FONT SIZE=+1 COLOR=\"FFFFFF\"<B>"
+ wprintf("<TABLE WIDTH=100%% BORDER=0 BGCOLOR=\"#000077\"><TR><TD>"
+ "<SPAN CLASS=\"titlebar\">"
);
if (!strcasecmp(listviewpref, "rooms")) {
wprintf("Room list");
if (!strcasecmp(listviewpref, "folders")) {
wprintf("Folder list");
}
- wprintf("</B></TD>\n");
+ wprintf("</SPAN></TD>\n");
/* offer the ability to switch views */
*/
if ((bq == 0) &&
((!strncmp(buf, " >", 2)) || (!strncmp(buf, " :-)", 4)))) {
- wprintf("<FONT COLOR=\"000044\"><I>");
+ wprintf("<SPAN CLASS=\"pull_quote\">");
bq = 1;
} else if ((bq == 1) &&
(strncmp(buf, " >", 2)) && (strncmp(buf, " :-)", 4))) {
- wprintf("</FONT></I>");
+ wprintf("</SPAN>");
bq = 0;
}
/* Activate embedded URL's */
serv_printf("CONF get");
serv_gets(buf);
if (buf[0] != '1') {
- wprintf("<TABLE WIDTH=100%% BORDER=0 BGCOLOR=770000><TR><TD>");
- wprintf("<FONT SIZE=+1 COLOR=\"FFFFFF\"");
- wprintf("<B>Error</B>\n");
- wprintf("</FONT></TD></TR></TABLE><BR>\n");
+ wprintf("<TABLE WIDTH=100%% BORDER=0 BGCOLOR=\"#770000\"><TR><TD>");
+ wprintf("<SPAN CLASS=\"titlebar\">Error</SPAN>\n");
+ wprintf("</TD></TR></TABLE><BR>\n");
wprintf("%s<BR>\n", &buf[4]);
wDumpContent(1);
return;
}
- wprintf("<TABLE WIDTH=100%% BORDER=0 BGCOLOR=007700><TR><TD>");
- wprintf("<FONT SIZE=+1 COLOR=\"FFFFFF\"<B>Site configuration");
- wprintf("</B></FONT></TD></TR></TABLE>\n");
+ wprintf("<TABLE WIDTH=100%% BORDER=0 BGCOLOR=\"#007700\"><TR><TD>");
+ wprintf("<SPAN CLASS=\"titlebar\">Site configuration");
+ wprintf("</SPAN></TD></TR></TABLE>\n");
wprintf("<FORM METHOD=\"POST\" ACTION=\"/siteconfig\">\n");
wprintf("<TABLE border=0>\n");
<TABLE WIDTH="100%" BORDER="0" BGCOLOR="#000077">
<TR>
<TD>
- <FONT SIZE=+1 COLOR="FFFFFF"
+ <FONT SIZE=+1 COLOR="#FFFFFF"
<B>New start page</B>
</FONT>
</TD>
-<TABLE WIDTH=100% BORDER=0 BGCOLOR=007700>
-<TR><TD><FONT SIZE=+1 COLOR="FFFFFF">
-<B>Send private e-mail</B>
-</FONT></TD></TR></TABLE>
+<TABLE WIDTH=100% BORDER=0 BGCOLOR="#007700">
+<TR><TD><SPAN CLASS="titlebar">
+Send private e-mail
+</SPAN></TD></TR></TABLE>
<CENTER>
<FORM METHOD="POST" ACTION="/display_enter">
a:visited {
color: #800080;
+ text-decoration: none;
}
a:active {
color: #00FF00;
+ text-decoration: none;
}
.menubar_link {
color: #FFFFEE;
}
+.message_header {
+ font-family: Bitstream Vera Sans,Arial,Helvetica,sans-serif;
+ font-size: 10pt;
+ color: #000000;
+}
+
+.message_subject {
+ font-family: Bitstream Vera Sans,Arial,Helvetica,sans-serif;
+ font-size: 10pt;
+ color: #000000;
+ font-style: italic;
+}
+
+.pull_quote {
+ font-family: Bitstream Vera Sans,Arial,Helvetica,sans-serif;
+ font-size: 7pt;
+ font-style: italic;
+ color: #000044;
+}
+
+.tablabel {
+ font-family: Bitstream Vera Sans,Arial,Helvetica,sans-serif;
+ font-size: 10pt;
+ font-style: bold;
+ color: #FFFFEE;
+}
+
+.youhavemail {
+ font-family: Bitstream Vera Sans,Arial,Helvetica,sans-serif;
+ font-size: 6pt;
+ font-style: italic;
+ color: #000044;
+}
+
.room_banner_room_name {
font-family: Bitstream Vera Sans,Arial,Helvetica,sans-serif;
font-size: 14pt;
}
output_headers(1);
- wprintf("<TABLE WIDTH=100%% BORDER=0 BGCOLOR=007700><TR><TD>");
- wprintf("<FONT SIZE=+1 COLOR=\"FFFFFF\"");
- wprintf("<B>Edit ");
+ wprintf("<TABLE WIDTH=100%% BORDER=0 BGCOLOR=\"#007700\"><TR><TD>");
+ wprintf("<SPAN CLASS=\"titlebar\">Edit ");
escputs(description);
- wprintf("</B></FONT></TD></TR></TABLE>\n");
+ wprintf("</SPAN></TD></TR></TABLE>\n");
wprintf("<CENTER>Enter %s below. Text is formatted to\n", description);
wprintf("the <EM>reader's</EM> screen width. To defeat the\n");
if (message != NULL) wprintf(message);
- wprintf("<TABLE WIDTH=100%% BORDER=0 BGCOLOR=007700><TR><TD>");
- wprintf("<FONT SIZE=+1 COLOR=\"FFFFFF\"<B>"
+ wprintf("<TABLE WIDTH=100%% BORDER=0 BGCOLOR=\"#007700\"><TR><TD>");
+ wprintf("<SPAN CLASS=\"titlebar\">"
"Add/change/delete user accounts"
- "</B></FONT></TD></TR></TABLE>\n");
+ "</SPAN></TD></TR></TABLE>\n");
wprintf("<TABLE border=0 CELLSPACING=10><TR VALIGN=TOP>"
"<TD>To edit an existing user account, select the user "
}
output_headers(3); /* No room banner on this screen */
- wprintf("<TABLE WIDTH=100%% BORDER=0 BGCOLOR=007700><TR><TD>");
- wprintf("<FONT SIZE=+1 COLOR=\"FFFFFF\"<B>"
+ wprintf("<TABLE WIDTH=100%% BORDER=0 BGCOLOR=\"#007700\"><TR><TD>");
+ wprintf("<SPAN CLASS=\"titlebar\">"
"Edit user account: ");
escputs(username);
- wprintf("</B></FONT></TD></TR></TABLE>\n");
+ wprintf("</SPAN></TD></TR></TABLE>\n");
wprintf("<FORM METHOD=\"POST\" ACTION=\"/edituser\">\n"
"<INPUT TYPE=\"hidden\" NAME=\"username\" VALUE=\"");
wprintf("<EM>%s</EM><BR>\n", &buf[4]);
goto DONE;
}
- wprintf("<TABLE WIDTH=100%% BORDER=0 BGCOLOR=007700><TR><TD>");
- wprintf("<FONT SIZE=+1 COLOR=\"FFFFFF\"");
- wprintf("<B>User list for ");
+ wprintf("<TABLE WIDTH=100%% BORDER=0 BGCOLOR=\"#007700\"><TR><TD>");
+ wprintf("<SPAN CLASS=\"titlebar\">User list for ");
escputs(serv_info.serv_humannode);
- wprintf("</B></FONT></TD></TR></TABLE>\n");
+ wprintf("</SPAN></TD></TR></TABLE>\n");
wprintf("<CENTER><TABLE border>");
wprintf("<TR><TH>User Name</TH><TH>Number</TH><TH>Access Level</TH>");
output_headers(3);
- wprintf("<TABLE WIDTH=100%% BORDER=0 BGCOLOR=007700><TR><TD>");
- wprintf("<FONT SIZE=+1 COLOR=\"FFFFFF\"<B>User profile");
- wprintf("</B></FONT></TD></TR></TABLE>\n");
+ wprintf("<TABLE WIDTH=100%% BORDER=0 BGCOLOR=\"#007700\"><TR><TD>");
+ wprintf("<SPAN CLASS=\"titlebar\">User profile");
+ wprintf("</SPAN></TD></TR></TABLE>\n");
strcpy(who, bstr("who"));
serv_printf("OIMG _userpic_|%s", who);
{
wprintf("HTTP/1.0 200 OK\n");
output_headers(1);
- wprintf("<TABLE WIDTH=100%% BORDER=0 BGCOLOR=%s><TR><TD>", titlebarcolor);
- wprintf("<FONT SIZE=+1 COLOR=\"FFFFFF\"");
- wprintf("<B>%s</B>\n", titlebarmsg);
- wprintf("</FONT></TD></TR></TABLE><BR>\n");
+ wprintf("<TABLE WIDTH=100%% BORDER=0 BGCOLOR=\"#%s\"><TR><TD>", titlebarcolor);
+ wprintf("<SPAN CLASS=\"titlebar\">%s</SPAN>\n", titlebarmsg);
+ wprintf("</TD></TR></TABLE><BR>\n");
escputs(messagetext);
wprintf("<HR>\n");
wprintf("<A HREF=\"/change_start_page?startpage=");
urlescputs(WC->this_page);
wprintf("\">"
- "<FONT SIZE=-2 COLOR=#AAAAAA>Make this my start page</FONT>"
+ "<FONT SIZE=-2 COLOR=\"#AAAAAA\">Make this my start page</FONT>"
"</A>"
);
}
"</SCRIPT>\n"
);
- wprintf("<TABLE WIDTH=100%% BORDER=0 BGCOLOR=007700><TR><TD>");
+ wprintf("<TABLE WIDTH=100%% BORDER=0 BGCOLOR=\"#007700\"><TR><TD>");
wprintf("<IMG SRC=\"/static/users-icon.gif\" ALT=\" \" ALIGN=MIDDLE>");
- wprintf("<FONT SIZE=+1 COLOR=\"FFFFFF\"> <B>Users currently on ");
+ wprintf("<SPAN CLASS=\"titlebar\">Users currently on ");
escputs(serv_info.serv_humannode);
- wprintf("</B></FONT></TD><TD>");
+ wprintf("</SPAN></TD><TD>");
offer_start_page();
wprintf("</TD></TR></TABLE>\n");
output_headers(3);
- wprintf("<TABLE WIDTH=100%% BORDER=0 BGCOLOR=000077><TR><TD>");
- wprintf("<FONT SIZE=+1 COLOR=\"FFFFFF\"><B>");
+ wprintf("<TABLE WIDTH=100%% BORDER=0 BGCOLOR=\"#000077\"><TR><TD>");
+ wprintf("<SPAN CLASS=\"titlebar\">");
wprintf("Edit your session display");
- wprintf("</B></FONT></TD></TR></TABLE>\n");
+ wprintf("</SPAN></TD></TR></TABLE>\n");
wprintf("This screen allows you to change the way your\n");
wprintf("session appears in the 'Who is online' listing.\n");
wprintf("To turn off any 'fake' name you've previously\n");