* Replaced all the "centered 99% tables" with 100% width tables wrapped
authorArt Cancro <ajc@citadel.org>
Sat, 19 Feb 2005 05:22:00 +0000 (05:22 +0000)
committerArt Cancro <ajc@citadel.org>
Sat, 19 Feb 2005 05:22:00 +0000 (05:22 +0000)
  inside a div with margin-right:1px to remove the horizontal scrollbar
  in Gecko without creating whitespace.  IE6's problem is much more
  serious and will require dropping a nuclear bomb on Redmond to fix.

19 files changed:
webcit/ChangeLog
webcit/auth.c
webcit/calendar.c
webcit/calendar_view.c
webcit/event.c
webcit/floors.c
webcit/graphics.c
webcit/iconbar.c
webcit/inetconf.c
webcit/mainmenu.c
webcit/messages.c
webcit/paging.c
webcit/roomops.c
webcit/siteconfig.c
webcit/summary.c
webcit/useredit.c
webcit/userlist.c
webcit/vcard_edit.c
webcit/who.c

index 4e9345705d966d711ecccd85f5de3c69b035f800..8ca6db249a40a81d504011aaa1381bf0d5199a71 100644 (file)
@@ -1,4 +1,10 @@
 $Log$
+Revision 602.5  2005/02/19 05:22:00  ajc
+* Replaced all the "centered 99% tables" with 100% width tables wrapped
+  inside a div with margin-right:1px to remove the horizontal scrollbar
+  in Gecko without creating whitespace.  IE6's problem is much more
+  serious and will require dropping a nuclear bomb on Redmond to fix.
+
 Revision 602.4  2005/02/18 05:09:52  ajc
 * Moved the room access control screen into a tab on the edit room menu
 
@@ -2387,4 +2393,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 79f56ead519eb432cb9089d83ecfbd3c97c95129..1f2a62d1b0cee1dac59d133614ee24247b2358b0 100644 (file)
@@ -249,7 +249,8 @@ void validate(void)
                return;
        }
 
-       wprintf("<center><table border=0 width=99%% bgcolor=\"#ffffff\"><tr><td>\n");
+       wprintf("<div style=\"margin-right:1px\">"
+               "<table border=0 width=100%% bgcolor=\"#ffffff\"><tr><td>\n");
        wprintf("<center>");
 
        strcpy(user, &buf[4]);
@@ -295,7 +296,7 @@ void validate(void)
        wprintf("<br />\n");
 
        wprintf("</CENTER>\n");
-       wprintf("</td></tr></table></center>\n");
+       wprintf("</td></tr></table></div>\n");
        wDumpContent(1);
 }
 
@@ -358,7 +359,8 @@ void display_changepw(void)
                strcpy(WC->ImportantMessage, "");
        }
 
-       wprintf("<center><table border=0 width=99%% bgcolor=\"#ffffff\"><tr><td>\n");
+       wprintf("<div style=\"margin-right:1px\">"
+               "<table border=0 width=100%% bgcolor=\"#ffffff\"><tr><td>\n");
 
        wprintf("<CENTER><br />");
        serv_puts("MESG changepw");
@@ -381,7 +383,7 @@ void display_changepw(void)
                "&nbsp;"
                "<INPUT type=\"submit\" name=\"action\" value=\"Cancel\">\n");
        wprintf("</form></center>\n");
-       wprintf("</td></tr></table></center>\n");
+       wprintf("</td></tr></table></div>\n");
        wDumpContent(1);
 }
 
index 3702758604a990db85ca34d349165a7f25c5fb4b..5dfa23453d31cc9356a815aedea802a7f05e6162 100644 (file)
@@ -529,7 +529,8 @@ void display_edit_individual_task(icalcomponent *supplied_vtodo, long msgnum) {
                "</div>\n<div id=\"content\">\n"
        );
 
-       wprintf("<center><table border=0 width=99%% bgcolor=\"#ffffff\"><tr><td>");
+       wprintf("<div style=\"margin-right:1px\">"
+               "<table border=0 width=100%% bgcolor=\"#ffffff\"><tr><td>");
        
        wprintf("<FORM METHOD=\"POST\" ACTION=\"/save_task\">\n");
        wprintf("<INPUT TYPE=\"hidden\" NAME=\"msgnum\" VALUE=\"%ld\">\n",
@@ -588,7 +589,7 @@ void display_edit_individual_task(icalcomponent *supplied_vtodo, long msgnum) {
 
        wprintf("</FORM>\n");
 
-       wprintf("</td></tr></table></center>\n");
+       wprintf("</td></tr></table></div>\n");
        wDumpContent(1);
 
        if (created_new_vtodo) {
index da14cde2cfbeeadf00a63f5830db29477e4ed68e..0428d382bfca3cf8c73d08f3a2073f964b0ca169 100644 (file)
@@ -155,8 +155,8 @@ void calendar_month_view(int year, int month, int day) {
        }
 
        /* Outer table (to get the background color) */
-       wprintf("<center>"
-               "<TABLE width=99%% border=0 cellpadding=0 cellspacing=0 "
+       wprintf("<div style=\"margin-right:1px\">"
+               "<TABLE width=100%% border=0 cellpadding=0 cellspacing=0 "
                "bgcolor=#204B78><TR><TD>\n");
 
        wprintf("<TABLE width=100%% border=0 cellpadding=0 cellspacing=0><tr>\n");
@@ -229,7 +229,7 @@ void calendar_month_view(int year, int month, int day) {
 
        wprintf("</TABLE>"                      /* end of inner table */
                "</TD></TR></TABLE>"            /* end of outer table */
-               "</CENTER>\n");
+               "</div>\n");
 }
 
 
@@ -252,7 +252,7 @@ void calendar_day_view_display_events(int year, int month,
        int all_day_event = 0;
 
        if (WC->num_cal == 0) {
-               wprintf("<br /><br /><br />\n");
+               // FIXME wprintf("<br /><br /><br />\n");
                return;
        }
 
@@ -335,8 +335,8 @@ void calendar_day_view(int year, int month, int day) {
 
 
        /* Outer table (to get the background color) */
-       wprintf("<center>"
-               "<TABLE width=99%% border=0 cellpadding=0 cellspacing=0 "
+       wprintf("<div style=\"margin-right:1px\">"
+               "<TABLE width=100%% border=0 cellpadding=0 cellspacing=0 "
                "bgcolor=#204B78><TR><TD>\n");
 
        /* Inner table (the real one) */
@@ -434,7 +434,7 @@ void calendar_day_view(int year, int month, int day) {
 
 
        wprintf("</TR></TABLE>"                 /* end of inner table */
-               "</TD></TR></TABLE></center>"   /* end of outer table */
+               "</TD></TR></TABLE></div>"      /* end of outer table */
        );
 
 
@@ -614,7 +614,8 @@ void do_tasks_view(void) {
        char buf[SIZ];
        icalproperty *p;
 
-       wprintf("<center><table border=0 cellspacing=0 width=99%% bgcolor=\"#FFFFFF\">\n<tr>\n"
+       wprintf("<div style=\"margin-right:1px\">"
+               "<table border=0 cellspacing=0 width=100%% bgcolor=\"#FFFFFF\">\n<tr>\n"
                "<TH>Name of task</TH>\n"
                "<TH>Date due</TH></TR>\n"
        );
@@ -656,7 +657,7 @@ void do_tasks_view(void) {
                wprintf(">%s</FONT></TD></TR>\n", buf);
        }
 
-       wprintf("</table></center>\n");
+       wprintf("</table></div>\n");
 
        /* Free the list */
        free_calendar_buffer();
index 832bac7a48b916840001667e104cc8550af62b4f..1de559ffb91956c213ad71e668b5b6136b8a0c38 100644 (file)
@@ -92,7 +92,8 @@ void display_edit_individual_event(icalcomponent *supplied_vevent, long msgnum)
                "</div>\n<div id=\"content\">\n"
        );
 
-       wprintf("<center><table border=0 width=99%% bgcolor=\"#ffffff\"><tr><td>\n");
+       wprintf("<div style=\"margin-right:1px\">"
+               "<table border=0 width=100%% bgcolor=\"#ffffff\"><tr><td>\n");
 
        /************************************************************
         * Uncomment this to see the UID in calendar events for debugging
@@ -401,7 +402,7 @@ void display_edit_individual_event(icalcomponent *supplied_vevent, long msgnum)
                "</script>\n"
        );
 
-       wprintf("</td></tr></table></center>\n");
+       wprintf("</td></tr></table></div>\n");
        wDumpContent(1);
 
        if (created_new_vevent) {
index 31cd1c8106a46d9231c66180556f751741b5b28e..e2dbcd1316c0550b35cc970b21536752a7ccd42c 100644 (file)
@@ -68,7 +68,8 @@ void display_floorconfig(char *prepend_html)
                return;
        }
 
-       wprintf("<center><TABLE BORDER=1 WIDTH=99%% bgcolor=\"#ffffff\">\n"
+       wprintf("<div style=\"margin-right:1px\">"
+               "<TABLE BORDER=1 WIDTH=100%% bgcolor=\"#ffffff\">\n"
                "<TR><TH>Floor number</TH>"
                "<TH>Floor name</TH>"
                "<TH>Number of rooms</TH></TR>\n"
@@ -117,7 +118,7 @@ void display_floorconfig(char *prepend_html)
                "</FORM></TD>"
                "<TD>&nbsp;</TD></TR>\n");
 
-       wprintf("</table></center>\n");
+       wprintf("</table></div>\n");
        wDumpContent(1);
 }
 
index 5243e01142be0f38d5b29db6f2887b64bdec4d7d..fdcf30ce8d533f431a5074afa7c2544c7f07180b 100644 (file)
@@ -46,7 +46,8 @@ void display_graphics_upload(char *description, char *check_cmd, char *uplurl)
                "</div>\n<div id=\"content\">\n"
        );
 
-       wprintf("<center><table border=0 width=99%% bgcolor=\"#ffffff\"><tr><td>\n");
+       wprintf("<div style=\"margin-right:1px\">"
+               "<table border=0 width=100%% bgcolor=\"#ffffff\"><tr><td>\n");
 
        wprintf("<CENTER>\n");
 
@@ -71,7 +72,7 @@ void display_graphics_upload(char *description, char *check_cmd, char *uplurl)
        wprintf("<INPUT TYPE=\"SUBMIT\" NAME=\"sc\" VALUE=\"Cancel\">\n");
        wprintf("</FORM>\n");
        wprintf("</CENTER>\n");
-       wprintf("</td></tr></table></center>\n");
+       wprintf("</td></tr></table></div>\n");
        wDumpContent(1);
 }
 
index 277bc75a5ff023a998125f4d59d9049ed5817b7c..c5601f2574cdd42ba3d1122209641a2d671c005f 100644 (file)
@@ -97,7 +97,7 @@ void do_iconbar(void) {
        if (ib_citadel) if (ib_displayas != IB_TEXTONLY) wprintf(
                "<li><div align=\"center\">"
                "<A HREF=\"http://www.citadel.org\" "
-               "title=\"Find out more about Citadel\" target=\"aboutcit\" "
+               "title=\"Find out more about Citadel\" target=\"aboutcit\">"
                "<img border=\"0\" width=\"48\" height=\"48\" "
                "SRC=\"/static/citadel-logo.gif\" ALT=\"CITADEL\">"
                "CITADEL</A>"
@@ -367,7 +367,8 @@ void display_customize_iconbar(void) {
                "</div>\n<div id=\"content\">\n"
        );
 
-       wprintf("<center><table border=0 width=99%% bgcolor=\"#ffffff\"><tr><td>");
+       wprintf("<div style=\"margin-right:1px\">"
+               "<table border=0 width=100%% bgcolor=\"#ffffff\"><tr><td>");
 
        wprintf("<FORM METHOD=\"POST\" ACTION=\"/commit_iconbar\">\n");
 
@@ -565,7 +566,7 @@ void display_customize_iconbar(void) {
                "</CENTER></FORM>\n"
        );
 
-       wprintf("</td></tr></table></center>\n");
+       wprintf("</td></tr></table></div>\n");
        wDumpContent(2);
 }
 
index ff2c31432594d1d5a30de998905f69b2a3b5b8b5..091592f2fd88e5908eb02dbfbedd132db1877933 100644 (file)
@@ -113,7 +113,8 @@ void display_inetconf(void)
        wprintf("</TD></TR></TABLE>\n");
        wprintf("</div>\n<div id=\"content\">\n");
 
-       wprintf("<center><table border=0 width=99%%><tr><td valign=top>\n");
+       wprintf("<div style=\"margin-right:1px\">"
+               "<table border=0 width=100%%><tr><td valign=top>\n");
        for (which=0; which<ic_max; ++which) {
                if (which == (ic_max / 2)) {
                        wprintf("</TD><TD VALIGN=TOP>");
@@ -148,7 +149,7 @@ void display_inetconf(void)
                        "</TD></TR></TABLE></FORM>\n");
                do_template("endbox");
        }
-       wprintf("</td></tr></table></center>\n");
+       wprintf("</td></tr></table></div>\n");
        wDumpContent(1);
 
        for (i=0; i<ic_max; ++i) {
index 87f3f15da76282523a77a34599b150bd105ff6b7..6a79433f1b6bd20f91a13eac49218f05fbc33f80 100644 (file)
@@ -35,7 +35,8 @@ void display_main_menu(void)
 {
        output_headers(1, 1, 1, 0, 0, 0, 0);
 
-       wprintf("<center><TABLE WIDTH=99%%>"
+       wprintf("<div style=\"margin-right:1px\">"
+               "<TABLE WIDTH=100%%>"
                "<TR><TD COLSPAN=2>\n");
 
        svprintf("BOXTITLE", WCS_STRING, "Basic commands");
@@ -184,7 +185,7 @@ void display_main_menu(void)
 
        do_template("endbox");
 
-       wprintf("</td></tr></table></center>");
+       wprintf("</td></tr></table></div>");
        wDumpContent(2);
 }
 
@@ -202,7 +203,8 @@ void display_aide_menu(void)
                "</div>\n<div id=\"content\">\n"
        );
 
-       wprintf("<center><table border=0 width=99%%><tr valign=top><td>");
+       wprintf("<div style=\"margin-right:1px\">"
+               "<table border=0 width=100%%><tr valign=top><td>");
 
        svprintf("BOXTITLE", WCS_STRING, "Global Configuration");
        do_template("beginbox");
@@ -248,7 +250,7 @@ void display_aide_menu(void)
 
        do_template("endbox");
 
-       wprintf("</td></tr></table></center>");
+       wprintf("</td></tr></table></div>");
        wDumpContent(2);
 }
 
@@ -269,7 +271,8 @@ void display_generic(void)
                "</div>\n<div id=\"content\">\n"
        );
 
-       wprintf("<center><table border=0 width=99%% bgcolor=\"#ffffff\"><tr><td>\n");
+       wprintf("<div style=\"margin-right:1px\">"
+               "<table border=0 width=100%% bgcolor=\"#ffffff\"><tr><td>\n");
 
        wprintf("<CENTER>");
        wprintf("This screen allows you to enter Citadel server commands which are\n");
@@ -291,7 +294,7 @@ void display_generic(void)
        wprintf("<INPUT TYPE=\"submit\" NAME=\"sc\" VALUE=\"Cancel\"><br />\n");
 
        wprintf("</FORM></CENTER>\n");
-       wprintf("</td></tr></table></center>\n");
+       wprintf("</td></tr></table></div>\n");
        wDumpContent(1);
 }
 
index b3e55205cb549d14404cc1c4f9ade8a0c7b5bf24..123c894602f681d00ffb3ee84d602b5e2d47e150 100644 (file)
@@ -375,7 +375,8 @@ void read_message(long msgnum) {
        }
 
        /* begin everythingamundo table */
-       wprintf("<center><table width=99%% border=1 cellspacing=0 "
+       wprintf("<div style=\"margin-right:1px\">\n");
+       wprintf("<table width=100%% border=1 cellspacing=0 "
                "cellpadding=0><TR><TD>\n");
 
        /* begin message header table */
@@ -648,7 +649,8 @@ ENDBODY:
        wprintf("</TD></TR></TABLE>\n");
 
        /* end everythingamundo table */
-       wprintf("</TD></TR></TABLE></center><br />\n");
+       wprintf("</TD></TR></TABLE>\n");
+       wprintf("</div>\n");
 }
 
 
@@ -1144,9 +1146,9 @@ void readloop(char *oper)
        wprintf("<FORM NAME=\"msgomatic\" "
                "METHOD=\"POST\" ACTION=\"/do_stuff_to_msgs\">\n");
        if (is_summary) {
-               wprintf(
-                       "<center><table border=0 cellspacing=0 "
-                       "cellpadding=0 width=99%%>\n"
+               wprintf("<div style=\"margin-right:1px\">"
+                       "<table border=0 cellspacing=0 "
+                       "cellpadding=0 width=100%%>\n"
                        "<TR>"
                        "<TD><I>Subject</I></TD>"
                        "<TD><I>Sender</I></TD>"
@@ -1223,7 +1225,7 @@ void readloop(char *oper)
        }
 
        if (is_summary) {
-               wprintf("</table></center>\n");
+               wprintf("</table></div>\n");
        }
 
        /* Bump these because although we're thinking in zero base, the user
@@ -1236,8 +1238,8 @@ void readloop(char *oper)
        if (num_displayed == 1) {
           if ((!is_tasks) && (!is_calendar) && (!is_addressbook) && (!is_notes) && (!is_singlecard)) {
 
-               wprintf("<CENTER>"
-                       "<TABLE BORDER=0 WIDTH=99%% BGCOLOR=\"#DDDDDD\"><TR><TD>"
+               wprintf("<div style=\"margin-right:1px\">"
+                       "<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);
@@ -1274,6 +1276,7 @@ void readloop(char *oper)
                        oper,
                        WC->msgarr[0]);
 
+               wprintf("</td></tr></table></div>\n");
            }
        }
 
@@ -1622,7 +1625,8 @@ void display_enter(void)
                "<input type=\"submit\" name=\"sc\" value=\"Cancel\">\n");
 
        /* begin richedit box */
-       wprintf("<div style=\"position:absolute; left:0%%; width:100%%; top:15%; height:80%%\">\n");
+       wprintf("<div style=\"position:absolute; left:0%%; width:100%%; "
+               "top:15%; height:75%%\">\n");
 
        wprintf("<script type=\"text/javascript\" "
                "src=\"static/richtext.js\"></script>\n"
@@ -1646,18 +1650,23 @@ void display_enter(void)
        wprintf("<div style=\"position:absolute; bottom:0px; left:0px; width:100%%\">\n");
 
        /* Enumerate any attachments which are already in place... */
+       wprintf("<img src=\"/static/attachment.gif\" border=0 "
+               "align=middle height=16 width=16> Attachments: ");
+       wprintf("<select name=\"which_attachment\" size=1>");
        for (att = WC->first_attachment; att != NULL; att = att->next) {
-               wprintf("<IMG SRC=\"/static/attachment.gif\" "
-                       "BORDER=0 ALIGN=MIDDLE> Attachment: ");
+               wprintf("<option value=\"");
+               urlescputs(att->filename);
+               wprintf("\">");
                escputs(att->filename);
-               wprintf(" (%s, %d bytes)<br />\n",
-                       att->content_type, att->length);
+               /* wprintf(" (%s, %d bytes)",att->content_type,att->length); */
+               wprintf("</option>\n");
        }
+       wprintf("</select>");
 
        /* Now offer the ability to attach additional files... */
        wprintf("&nbsp;&nbsp;&nbsp;"
                "Attach file: <input NAME=\"attachfile\" "
-               "SIZE=48 TYPE=\"file\">\n&nbsp;&nbsp;"
+               "SIZE=16 TYPE=\"file\">\n&nbsp;&nbsp;"
                "<input type=\"submit\" name=\"attach\" value=\"Add\">\n");
 
        wprintf("</div>\n");    /* end attachments section */
@@ -1708,10 +1717,11 @@ void confirm_move_msg(void)
 
        output_headers(1, 1, 1, 0, 0, 0, 0);
 
-       wprintf("<center><table width=99%% border=0 bgcolor=\"#444455\"><tr><td>");
+       wprintf("<div style=\"margin-right:1px\">"
+               "<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></center>\n");
+       wprintf("</font></td></tr></table></div>\n");
 
        wprintf("<CENTER>");
 
index 757921b4c9ffbe2eb58345b8c5b9ed48a2058470..2717d174799e4cb9a7b2d523424ebb0cf600b75c 100644 (file)
@@ -44,7 +44,8 @@ void display_page(void)
                 "</div>\n<div id=\"content\">\n"
         );
                                                                                                                              
-        wprintf("<center><table border=0 width=99%% bgcolor=\"#ffffff\"><tr><td>\n");
+        wprintf("<div style=\"margin-right:1px\">"
+               "<table border=0 width=100%% bgcolor=\"#ffffff\"><tr><td>\n");
 
        wprintf("Send an instant message to: ");
        escputs(recp);
@@ -73,7 +74,7 @@ void display_page(void)
        wprintf("<br /><A HREF=\"javascript:window.close();\"Cancel</A>\n");
 
        wprintf("</FORM></CENTER>\n");
-       wprintf("</td></tr></table></center>\n");
+       wprintf("</td></tr></table></div>\n");
        wDumpContent(1);
 }
 
index ae1de7791d6a067deda1e3608e2c3b8696cf74f4..62b0fbb124c843c4732116c914dd111189621fa0 100644 (file)
@@ -826,7 +826,9 @@ void display_editroom(void)
        output_headers(1, 1, 1, 0, 0, 0, 0);
 
        /* print the tabbed dialog */
-       wprintf("<br /><center><TABLE border=0 cellspacing=0 cellpadding=0 width=99%%>"
+       wprintf("<br />"
+               "<div style=\"margin-right:1px\">"
+               "<TABLE border=0 cellspacing=0 cellpadding=0 width=100%%>"
                "<TR ALIGN=CENTER>"
                "<TD>&nbsp;</TD>\n");
 
@@ -926,11 +928,12 @@ void display_editroom(void)
 
        wprintf("<TD>&nbsp;</TD>\n");
 
-       wprintf("</TR></TABLE>\n");
+       wprintf("</TR></TABLE></div>\n");
        /* end tabbed dialog */ 
 
        /* begin content of whatever tab is open now */
-       wprintf("<TABLE border=0 width=99%% bgcolor=\"#FFFFFF\">\n"
+       wprintf("<div style=\"margin-right:1px\">"
+               "<TABLE border=0 width=100%% bgcolor=\"#FFFFFF\">\n"
                "<TR><TD>\n");
 
        if (!strcmp(tab, "admin")) {
@@ -1401,7 +1404,7 @@ void display_editroom(void)
        }
 
        /* end content of whatever tab is open now */
-       wprintf("</TD></TR></TABLE>\n");
+       wprintf("</TD></TR></TABLE></div>\n");
 
        wDumpContent(1);
 }
@@ -1714,7 +1717,8 @@ void display_entroom(void)
                "</div>\n<div id=\"content\">\n"
        );
 
-       wprintf("<center><table border=0 width=99%% bgcolor=\"#ffffff\"><tr><td>\n");
+       wprintf("<div style=\"margin-right:1px\">"
+               "<table border=0 width=100%% bgcolor=\"#ffffff\"><tr><td>\n");
 
        wprintf("<FORM METHOD=\"POST\" ACTION=\"/entroom\">\n");
 
@@ -1773,7 +1777,7 @@ void display_entroom(void)
        if (buf[0] == '1') {
                fmout(NULL, "CENTER");
        }
-       wprintf("</td></tr></table></center>\n");
+       wprintf("</td></tr></table></div>\n");
        wDumpContent(1);
 }
 
index 36704dde86553a0150fea7b560aa4e309ae845d1..3174b9d931740fbf0a60ef176ba2dd607614484a 100644 (file)
@@ -51,7 +51,8 @@ void display_siteconfig(void)
                "</div>\n<div id=\"content\">\n"
        );
 
-       wprintf("<center><table border=0 width=99%% bgcolor=\"#ffffff\"><tr><td>");
+       wprintf("<div style=\"margin-right:1px\">"
+               "<table border=0 width=100%% bgcolor=\"#ffffff\"><tr><td>");
 
        whichmenu = bstr("whichmenu");
 
@@ -663,7 +664,7 @@ void display_siteconfig(void)
        wprintf("&nbsp;");
        wprintf("<INPUT TYPE=\"submit\" NAME=\"sc\" VALUE=\"Cancel\">\n");
        wprintf("</CENTER></FORM>\n");
-       wprintf("</td></tr></table></center>\n");
+       wprintf("</td></tr></table></div>\n");
        wDumpContent(1);
 }
 
index 128dd835facde25531e14e322f375952e7c8cb27..114902babd1a394914a80fa9f0c791397e49b53b 100644 (file)
@@ -249,7 +249,8 @@ void summary(void) {
         * not people I consider worthwhile, I still want them to use WebCit.
         */
 
-       wprintf("<center><table border=0 width=99%%><tr valign=top>");
+       wprintf("<div style=\"margin-right:1px\">"
+               "<table border=0 width=100%%><tr valign=top>");
 
        /*
         * Column One
@@ -276,7 +277,6 @@ void summary(void) {
        /*
         * End of columns
         */
-       wprintf("</td></tr></table></center>\n");
-
+       wprintf("</td></tr></table></div>\n");
        wDumpContent(1);
 }
index a1927f0d03a934991b82b9326672b8ee23889b94..5439ff0f90291d774fcb79d20637b7a2ed72e2c7 100644 (file)
@@ -291,7 +291,8 @@ void display_edituser(char *supplied_username, int is_new) {
        wprintf("</SPAN></TD></TR></TABLE>\n");
        wprintf("</div>\n<div id=\"content\">\n");
 
-       wprintf("<center><table border=0 width=99%% bgcolor=\"#ffffff\"><tr><td>\n");
+       wprintf("<div style=\"margin-right:1px\">"
+               "<table border=0 width=100%% bgcolor=\"#ffffff\"><tr><td>\n");
        wprintf("<FORM METHOD=\"POST\" ACTION=\"/edituser\">\n"
                "<INPUT TYPE=\"hidden\" NAME=\"username\" VALUE=\"");
        escputs(username);
@@ -363,8 +364,7 @@ void display_edituser(char *supplied_username, int is_new) {
                "<br /><br /></FORM>\n");
 
        wprintf("</CENTER>\n");
-       wprintf("</td></tr></table></center>\n");
-
+       wprintf("</td></tr></table></div>\n");
        wDumpContent(1);
 
 }
index 4578f048190d0e9ee12d47b9544f62ead420c2c6..34e75d9343159697bfa28bd380ee11abce60e201 100644 (file)
@@ -71,7 +71,8 @@ void userlist(void)
                goto DONE;
        }
 
-       wprintf("<center><table border=0 width=99%% bgcolor=\"#ffffff\"><tr><td>\n");
+       wprintf("<div style=\"margin-right:1px\">"
+               "<table border=0 width=100%% bgcolor=\"#ffffff\"><tr><td>\n");
        wprintf("<TR><TH>User Name</TH><TH>Number</TH><TH>Access Level</TH>");
        wprintf("<TH>Last Login</TH><TH>Total Logins</TH><TH>Total Posts</TH></TR>\n");
 
@@ -110,7 +111,7 @@ void userlist(void)
                        extract_long(buf, 4), extract_long(buf, 5));
 
        }
-       wprintf("</table></center>\n");
+       wprintf("</table></div>\n");
 DONE:  wDumpContent(1);
 }
 
@@ -134,7 +135,8 @@ void showuser(void)
                "</div>\n<div id=\"content\">\n"
        );
 
-       wprintf("<center><table border=0 width=99%% bgcolor=\"#ffffff\"><tr><td>\n");
+       wprintf("<div style=\"margin-right:1px\">"
+               "<table border=0 width=100%% bgcolor=\"#ffffff\"><tr><td>\n");
 
        serv_printf("OIMG _userpic_|%s", who);
        serv_gets(buf);
@@ -167,6 +169,6 @@ void showuser(void)
        escputs(who);
        wprintf("</A>\n");
 
-       wprintf("</td></tr></table></center>\n");
+       wprintf("</td></tr></table></div>\n");
        wDumpContent(1);
 }
index d28bd47c20b6c138824cd330e3aa53601482e2ac..f9eabc4a195f70201cb2a7323bd3454136d91ab3 100644 (file)
@@ -187,7 +187,8 @@ void do_edit_vcard(long msgnum, char *partnum, char *return_to) {
        );
 
        wprintf("<FORM METHOD=\"POST\" ACTION=\"/submit_vcard\">\n");
-       wprintf("<center><table border=0 width=99%% bgcolor=\"#ffffff\"><tr><td>\n");
+       wprintf("<div style=\"margin-right:1px\">"
+               "<table border=0 width=100%% bgcolor=\"#ffffff\"><tr><td>\n");
 
        wprintf("<TABLE border=0><TR>"
                "<TD>Prefix</TD>"
@@ -276,7 +277,7 @@ void do_edit_vcard(long msgnum, char *partnum, char *return_to) {
                "</CENTER></FORM>\n"
        );
        
-       wprintf("</td></tr></table></center>\n");
+       wprintf("</td></tr></table></div>\n");
        wDumpContent(1);
 }
 
index 40a988fb3ce237928ba14c6765f8cdd3f3804580..512d68b55df8dfe10b7a599dbf3d20d2636f8c57 100644 (file)
@@ -61,8 +61,8 @@ void whobbs(void)
        wprintf("</div>\n"
                "<div id=\"content\">\n");
 
-       wprintf("<center>"
-               "<table border=0 cellspacing=0 width=99%% bgcolor=\"#FFFFFF\">"
+       wprintf("<div style=\"margin-right:1px\">"
+               "<table border=0 cellspacing=0 width=100%% bgcolor=\"#FFFFFF\">"
                "<tr>\n");
        wprintf("<TH COLSPAN=4>Session ID</TH>\n");
        wprintf("<TH>User Name</TH>\n");
@@ -159,11 +159,12 @@ void whobbs(void)
                        wprintf("</TD>\n</TR>");
                }
        }
-       wprintf("</TABLE>\n"
+       wprintf("</TABLE></div>\n"
+               "<div align=center>"
                "Click on a name to read user info.  Click on "
                "<IMG ALIGN=MIDDLE SRC=\"/static/page.gif\" ALT=\"(p)\" "
                "BORDER=0> to send "
-               "a page (instant message) to that user.<br /></CENTER>\n");
+               "a page (instant message) to that user.</div>\n");
        wDumpContent(1);
 }