* Made all the title boxes the same background color. The old scheme was
authorArt Cancro <ajc@citadel.org>
Thu, 10 Jun 2004 02:58:55 +0000 (02:58 +0000)
committerArt Cancro <ajc@citadel.org>
Thu, 10 Jun 2004 02:58:55 +0000 (02:58 +0000)
  cute but not professional looking.

webcit/ChangeLog
webcit/calendar.c
webcit/listsub.c
webcit/messages.c
webcit/netconf.c
webcit/paging.c
webcit/roomops.c
webcit/siteconfig.c
webcit/summary.c
webcit/useredit.c
webcit/who.c

index 9c7d2983092520d9bee9e050b43a187fdc1ea8a6..22fb5e83af84a4397267519290b311af0cfa296c 100644 (file)
@@ -1,4 +1,8 @@
 $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
 
@@ -1872,4 +1876,3 @@ Sun Dec  6 19:50:55 EST 1998 Art Cancro <ajc@uncnsrd.mt-kisco.ny.us>
 
 1998-12-03 Nathan Bryant <bryant@cs.usm.maine.edu>
        * webserver.c: warning fix
-
index 3e74dde71cda92eb0c3d6fcd1866aa7dc47a9136..01dd192b1df89a9708168d955d1270dfe831dd4b 100644 (file)
@@ -354,7 +354,7 @@ void respond_to_request(void) {
 
        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"
        );
@@ -409,7 +409,7 @@ void handle_rsvp(void) {
 
        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"
@@ -537,7 +537,7 @@ void display_edit_individual_task(icalcomponent *supplied_vtodo, long msgnum) {
        }
 
        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"
        );
index 118a0598c38ca5d8109dd57a455d92ef3630c648..0d79857af016db032f42cc3ba875758144edee67 100644 (file)
@@ -49,7 +49,7 @@ void do_listsub(void)
        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"
        );
index c2aaa717390bf4317597a3da8cda6ae245951a4c..9dfa0bb969116f7d99d4a0cffec21b2823d3ded9 100644 (file)
@@ -503,14 +503,6 @@ void read_message(long msgnum) {
        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);
@@ -1600,7 +1592,7 @@ void confirm_move_msg(void)
 
        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");
index 287a1a6881218f87bef3fa7dd8d9a407d92f27b7..1ee398d00818c7a66d8aeca2cb44178fcd3052bc 100644 (file)
@@ -77,7 +77,7 @@ void edit_node(void) {
 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");
 
@@ -111,7 +111,7 @@ void display_edit_node(void)
        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");
@@ -161,7 +161,7 @@ void display_netconf(void)
        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");
 
@@ -170,7 +170,7 @@ void display_netconf(void)
        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");
@@ -201,7 +201,7 @@ void display_confirm_delete_node(void)
        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");
 
index 6a3625d33d5a88ad30457c3ec7678ca36bc7890c..be11aad49e09c982929516f0d49b35581a5e9313 100644 (file)
@@ -158,7 +158,7 @@ void page_popup(void)
 
                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");
index 7716506335ba20a36cc141831d1fa7272e7b1001..64c30065554f891d0cf0adb1cb05afaa25ba999c 100644 (file)
@@ -215,63 +215,6 @@ void listrms(char *variety)
 }
 
 
-/*
- * 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
  */
@@ -2172,7 +2115,7 @@ void knrooms() {
        }
 
        /* 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")) {
@@ -2188,7 +2131,7 @@ void knrooms() {
 
 
        /* 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");
@@ -2205,21 +2148,10 @@ void knrooms() {
                ( !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);
 }
index 4bd5ed86a05cde24a11ca60977fe7f550b6fbe3b..5d814bbbb034d6e0e92069f3d2fd2c55ee6a1b5f 100644 (file)
@@ -135,7 +135,7 @@ void display_siteconfig(void)
        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]);
index 68d21af03d8ddec116f7136ca62e70b019234d08..142d6165a77da52f4bb743f043d8ba8971e1d2b0 100644 (file)
@@ -221,16 +221,17 @@ void server_info_section(void) {
 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
index 0ccf14e900857c4e47ce05c706e929c2330aa7ee..fd1a14a443dc7bad5195ef22e92958aa285d0c34 100644 (file)
@@ -264,7 +264,7 @@ void display_edituser(char *supplied_username, int is_new) {
        }
 
        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);
index e1f8b9bafc71ceda91cb734c8fb149caa3ac8a11..ec5267684db5e33d229a32bf3b4c1c92e9a93b07 100644 (file)
@@ -46,11 +46,11 @@ void whobbs(void)
                "</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\">&nbsp;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");
 
@@ -197,7 +197,7 @@ void edit_me(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\">");
                wprintf("Edit your session display");
                wprintf("</SPAN></TD></TR></TABLE>\n");