cute but not professional looking.
$Log$
+Revision 521.1 2004/06/10 02:58:55 ajc
+* Made all the title boxes the same background color. The old scheme was
+ cute but not professional looking.
+
Revision 521.0 2004/06/06 19:53:25 ajc
* THIS IS 5.21
1998-12-03 Nathan Bryant <bryant@cs.usm.maine.edu>
* webserver.c: warning fix
-
output_headers(3);
- wprintf("<TABLE WIDTH=100%% BORDER=0 BGCOLOR=\"#007700\"><TR><TD>"
+ wprintf("<TABLE WIDTH=100%% BORDER=0 BGCOLOR=\"#444455\"><TR><TD>"
"<SPAN CLASS=\"titlebar\">Respond to meeting request</SPAN>"
"</TD></TR></TABLE><BR>\n"
);
output_headers(3);
- wprintf("<TABLE WIDTH=100%% BORDER=0 BGCOLOR=\"#007700\"><TR><TD>"
+ wprintf("<TABLE WIDTH=100%% BORDER=0 BGCOLOR=\"#444455\"><TR><TD>"
"<SPAN CLASS=\"titlebar\">"
"Update your calendar with this RSVP</SPAN>"
"</TD></TR></TABLE><BR>\n"
}
output_headers(3);
- wprintf("<TABLE WIDTH=100%% BORDER=0 BGCOLOR=\"#007700\"><TR><TD>"
+ wprintf("<TABLE WIDTH=100%% BORDER=0 BGCOLOR=\"#444455\"><TR><TD>"
"<SPAN CLASS=\"titlebar\">Edit task</SPAN>"
"</TD></TR></TABLE><BR>\n"
);
strcpy(subtype, bstr("subtype"));
wprintf("<CENTER>"
- "<TABLE WIDTH=100%% BORDER=0 BGCOLOR=\"#000077\"><TR><TD>"
+ "<TABLE WIDTH=100%% BORDER=0 BGCOLOR=\"#444455\"><TR><TD>"
"<SPAN CLASS=\"titlebar\">List subscribe/unsubscribe</SPAN>\n"
"</TD></TR></TABLE><BR>\n"
);
wprintf("<TD ALIGN=RIGHT>\n"
"<TABLE BORDER=0><TR>\n");
- /*** "Read" button is now superfluous
- ***
- ***wprintf("<TD BGCOLOR=\"#AAAADD\">"
- *** "<A HREF=\"/readfwd?startmsg=%ld", msgnum);
- ***wprintf("&maxmsgs=1&summary=0\">Read</A>"
- *** "</TD>\n", msgnum);
- ***/
-
wprintf("<TD BGCOLOR=\"#AAAADD\">"
"<A HREF=\"/display_enter?recp=");
urlescputs(reply_to);
output_headers(1);
- wprintf("<TABLE WIDTH=100%% BORDER=0 BGCOLOR=\"#770000\"><TR><TD>");
+ wprintf("<TABLE WIDTH=100%% BORDER=0 BGCOLOR=\"#444455\"><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("<TABLE WIDTH=100%% BORDER=0 BGCOLOR=\"#444455\"><TR><TD>");
wprintf("<SPAN CLASS=\"titlebar\">Add new node</SPAN>");
wprintf("</TD></TR></TABLE>\n");
strcpy(node, bstr("node"));
output_headers(3);
- wprintf("<TABLE WIDTH=100%% BORDER=0 BGCOLOR=\"#000077\"><TR><TD>");
+ wprintf("<TABLE WIDTH=100%% BORDER=0 BGCOLOR=\"#444455\"><TR><TD>");
wprintf("<SPAN CLASS=\"titlebar\">Edit node configuration for ");
escputs(node);
wprintf("</SPAN>\n");
char node[SIZ];
output_headers(3);
- wprintf("<TABLE WIDTH=100%% BORDER=0 BGCOLOR=\"#770000\"><TR><TD>");
+ wprintf("<TABLE WIDTH=100%% BORDER=0 BGCOLOR=\"#444455\"><TR><TD>");
wprintf("<SPAN CLASS=\"titlebar\">Network configuration</SPAN>\n");
wprintf("</TD></TR></TABLE>\n");
wprintf("Add a new node</A><BR>\n");
wprintf("</CENTER>");
- wprintf("<TABLE WIDTH=100%% BORDER=0 BGCOLOR=\"#000077\"><TR><TD>");
+ wprintf("<TABLE WIDTH=100%% BORDER=0 BGCOLOR=\"#444455\"><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");
char node[SIZ];
output_headers(3);
- wprintf("<TABLE WIDTH=100%% BORDER=0 BGCOLOR=\"#770000\"><TR><TD>");
+ wprintf("<TABLE WIDTH=100%% BORDER=0 BGCOLOR=\"#444455\"><TR><TD>");
wprintf("<SPAN CLASS=\"titlebar\">Confirm delete</SPAN>\n");
wprintf("</TD></TR></TABLE>\n");
extract(pagefrom, &buf[4], 3);
- wprintf("<TABLE WIDTH=100%% BORDER=0 BGCOLOR=\"#007700\"><TR><TD>");
+ wprintf("<TABLE WIDTH=100%% BORDER=0 BGCOLOR=\"#444455\"><TR><TD>");
wprintf("<SPAN CLASS=\"titlebar\">Instant message from ");
escputs(pagefrom);
wprintf("</SPAN></TD></TR></TABLE>\n");
}
-/*
- * list all rooms by floor (only should get called from knrooms() because
- * that's where output_headers() is called from)
- */
-void tabular_room_list(void)
-{
- int a;
- char buf[SIZ];
-
- do_template("beginbox_nt");
- wprintf("<TABLE width=100%% border><TR><TH>Floor</TH>");
- wprintf("<TH>Rooms with new messages</TH>");
- wprintf("<TH>Rooms with no new messages</TH></TR>\n");
-
- for (a = 0; a < 128; ++a)
- if (floorlist[a][0] != 0) {
-
- /* Floor name column */
- wprintf("<TR><TD>");
-
- serv_printf("OIMG _floorpic_|%d", a);
- serv_gets(buf);
- if (buf[0] == '2') {
- serv_puts("CLOS");
- serv_gets(buf);
- wprintf("<IMG SRC=\"/image&name=_floorpic_&parm=%d\" ALT=\"%s\">",
- a, &floorlist[a][0]);
- } else {
- escputs(&floorlist[a][0]);
- }
-
- wprintf("</TD>");
-
- /* Rooms with new messages column */
- wprintf("<TD>");
- sprintf(buf, "LKRN %d", a);
- listrms(buf);
- wprintf("</TD>\n<TD>");
-
- /* Rooms with old messages column */
- sprintf(buf, "LKRO %d", a);
- listrms(buf);
- wprintf("</TD></TR>\n");
- }
- wprintf("</TABLE>\n");
- do_template("endbox");
- wDumpContent(1);
-}
-
-
-
-
-
-
-
-
-
/*
* list all forgotten rooms
*/
}
/* title bar */
- wprintf("<TABLE WIDTH=100%% BORDER=0 BGCOLOR=\"#000077\"><TR><TD>"
+ wprintf("<TABLE WIDTH=100%% BORDER=0 BGCOLOR=\"#444455\"><TR><TD>"
"<SPAN CLASS=\"titlebar\">"
);
if (!strcasecmp(listviewpref, "rooms")) {
/* offer the ability to switch views */
- wprintf("<TD><FORM NAME=\"roomlistomatic\">\n"
+ wprintf("<TD ALIGN=RIGHT><FORM NAME=\"roomlistomatic\">\n"
"<SELECT NAME=\"newview\" SIZE=\"1\" "
"OnChange=\"location.href=roomlistomatic.newview.options"
"[selectedIndex].value\">\n");
( !strcasecmp(listviewpref, "folders") ? "SELECTED" : "" )
);
- wprintf("<OPTION %s VALUE=\"/knrooms&view=table\">"
- "Classic table view"
- "</OPTION>\n",
- ( !strcasecmp(listviewpref, "table") ? "SELECTED" : "" )
- );
-
- wprintf("</SELECT></FORM></TD><TD>\n");
+ wprintf("</SELECT><BR>");
offer_start_page();
- wprintf("</TD></TR></TABLE>\n");
+ wprintf("</FORM></TD></TR></TABLE>\n");
/* Display the room list in the user's preferred format */
- if (!strcasecmp(listviewpref, "table")) {
- tabular_room_list();
- }
- else {
- list_all_rooms_by_floor(listviewpref);
- }
+ list_all_rooms_by_floor(listviewpref);
}
serv_printf("CONF get");
serv_gets(buf);
if (buf[0] != '1') {
- wprintf("<TABLE WIDTH=100%% BORDER=0 BGCOLOR=\"#770000\"><TR><TD>");
+ wprintf("<TABLE WIDTH=100%% BORDER=0 BGCOLOR=\"#444455\"><TR><TD>");
wprintf("<SPAN CLASS=\"titlebar\">Error</SPAN>\n");
wprintf("</TD></TR></TABLE><BR>\n");
wprintf("%s<BR>\n", &buf[4]);
void summary(void) {
output_headers(7);
- wprintf("<TABLE WIDTH=100%% BORDER=0 BGCOLOR=#007700><TR>"
+ wprintf("<TABLE WIDTH=100%% BORDER=0 BGCOLOR=#444455><TR>"
"<TD><IMG SRC=\"/static/summary.gif\"></TD><TD>"
"<SPAN CLASS=\"titlebar\">"
"Summary page for ");
escputs(WC->wc_username);
wprintf("</SPAN></TD><TD>\n");
- offer_start_page();
wprintf("</TD><TD ALIGN=RIGHT><SPAN CLASS=\"titlebar\">");
output_date();
- wprintf("</SPAN></TD></TR></TABLE>\n");
+ wprintf("</SPAN><BR>");
+ offer_start_page();
+ wprintf("</TD></TR></TABLE>\n");
/*
* Now let's do three columns of crap. All portals and all groupware
}
output_headers(3); /* No room banner on this screen */
- wprintf("<TABLE WIDTH=100%% BORDER=0 BGCOLOR=\"#007700\"><TR><TD>");
+ wprintf("<TABLE WIDTH=100%% BORDER=0 BGCOLOR=\"#444455\"><TR><TD>");
wprintf("<SPAN CLASS=\"titlebar\">"
"Edit user account: ");
escputs(username);
"</SCRIPT>\n"
);
- wprintf("<TABLE WIDTH=100%% BORDER=0 BGCOLOR=\"#007700\"><TR><TD>");
+ wprintf("<TABLE WIDTH=100%% BORDER=0 BGCOLOR=\"#444455\"><TR><TD>");
wprintf("<IMG SRC=\"/static/users-icon.gif\" ALT=\" \" ALIGN=MIDDLE>");
wprintf("<SPAN CLASS=\"titlebar\"> Users currently on ");
escputs(serv_info.serv_humannode);
- wprintf("</SPAN></TD><TD>");
+ wprintf("</SPAN></TD><TD ALIGN=RIGHT>");
offer_start_page();
wprintf("</TD></TR></TABLE><BR>\n");
output_headers(3);
- wprintf("<TABLE WIDTH=100%% BORDER=0 BGCOLOR=\"#000077\"><TR><TD>");
+ wprintf("<TABLE WIDTH=100%% BORDER=0 BGCOLOR=\"#444455\"><TR><TD>");
wprintf("<SPAN CLASS=\"titlebar\">");
wprintf("Edit your session display");
wprintf("</SPAN></TD></TR></TABLE>\n");