$Log$
+Revision 601.3 2005/02/15 05:20:44 ajc
+* Fixed an HTTP output error for static data which was causing images
+ to display improperly in Konqueror
+* Changed most of the beginbox_nt boxes to centered tables with 99%
+ width, to avoid the mysterious horizontal scrollbar
+
Revision 601.2 2005/02/14 04:57:23 ajc
* Started changing some of the top-level tables from 100% width to 99%
width in order to keep the b0rken CSS box-model from displaying a
1998-12-03 Nathan Bryant <bryant@cs.usm.maine.edu>
* webserver.c: warning fix
+
"</TD></TR></TABLE>\n"
"</div>\n<div id=\"content\">\n"
);
-
- do_template("beginbox_nt");
+ wprintf("<center><table border=0 width=99%% bgcolor=\"#ffffff\"><tr><td>");
+
wprintf("<FORM METHOD=\"POST\" ACTION=\"/save_task\">\n");
wprintf("<INPUT TYPE=\"hidden\" NAME=\"msgnum\" VALUE=\"%ld\">\n",
msgnum);
wprintf("</FORM>\n");
- do_template("endbox");
+ wprintf("</td></tr></table></center>\n");
wDumpContent(1);
if (created_new_vtodo) {
char buf[SIZ];
icalproperty *p;
- do_template("beginbox_nt");
-
- wprintf("<TABLE BORDER=0 CELLSPACING=0 WIDTH=100%%>\n<TR>\n"
+ wprintf("<center><table border=0 cellspacing=0 width=99%% bgcolor=\"#FFFFFF\">\n<tr>\n"
"<TH>Name of task</TH>\n"
"<TH>Date due</TH></TR>\n"
);
wprintf(">%s</FONT></TD></TR>\n", buf);
}
- wprintf("</TABLE>\n");
-
- do_template("endbox");
-
+ wprintf("</table></center>\n");
/* Free the list */
free_calendar_buffer();
"</div>\n<div id=\"content\">\n"
);
- do_template("beginbox_nt");
+ wprintf("<center><table border=0 width=99%% bgcolor=\"#ffffff\"><tr><td>\n");
/************************************************************
* Uncomment this to see the UID in calendar events for debugging
"</script>\n"
);
- do_template("endbox");
+ wprintf("</td></tr></table></center>\n");
wDumpContent(1);
if (created_new_vevent) {
if (!strcasecmp(key, "ib_citadel")) ib_citadel = atoi(value);
}
- output_headers(1, 1, 0, 0, 0, 0, 0);
- svprintf("BOXTITLE", WCS_STRING, "Customize the icon bar");
- do_template("beginbox");
+ output_headers(1, 1, 2, 0, 0, 0, 0);
+ wprintf("<div id=\"banner\">\n"
+ "<TABLE WIDTH=100%% BORDER=0 BGCOLOR=\"#444455\"><TR><TD>"
+ "<SPAN CLASS=\"titlebar\">Customize the icon bar</SPAN>"
+ "</TD></TR></TABLE>\n"
+ "</div>\n<div id=\"content\">\n"
+ );
+
+ wprintf("<center><table border=0 width=99%% bgcolor=\"#ffffff\"><tr><td>");
wprintf("<FORM METHOD=\"POST\" ACTION=\"/commit_iconbar\">\n");
"</CENTER></FORM>\n"
);
- do_template("endbox");
+ wprintf("</td></tr></table></center>\n");
wDumpContent(2);
}
set_preference("iconbar", iconbar);
output_headers(1, 1, 0, 0, 0, 0, 0);
- do_template("beginbox_nt");
wprintf(
+ "<center><table border=1 bgcolor=\"#ffffff\"><tr><td>"
"<IMG SRC=\"/static/advanced-icon.gif\">"
" "
"Your icon bar has been updated. Please select any of its "
- "choices to continue.\n"
+ "choices to continue."
+ "</td></tr></table>\n"
);
- do_template("endbox");
wDumpContent(2);
}
int mboxpolicy = 0;
int mboxvalue = 0;
- output_headers(1, 1, 0, 0, 0, 0, 0);
+ output_headers(1, 1, 2, 0, 0, 0, 0);
+ wprintf("<div id=\"banner\">\n"
+ "<TABLE WIDTH=100%% BORDER=0 BGCOLOR=\"#444455\"><TR><TD>"
+ "<SPAN CLASS=\"titlebar\">Site configuration</SPAN>"
+ "</TD></TR></TABLE>\n"
+ "</div>\n<div id=\"content\">\n"
+ );
- whichmenu = bstr("whichmenu");
+ wprintf("<center><table border=0 width=99%% bgcolor=\"#ffffff\"><tr><td>");
- svprintf("BOXTITLE", WCS_STRING, "Site configuration");
- do_template("beginbox_nt");
+ whichmenu = bstr("whichmenu");
if (!strcmp(whichmenu, "")) {
wprintf("<TABLE border=0 cellspacing=0 cellpadding=3 width=100%%>\n");
);
wprintf("</TABLE>");
-
- do_template("endbox");
+ wprintf("</td></tr></table></center>\n");
wDumpContent(1);
return;
}
wprintf(" ");
wprintf("<INPUT TYPE=\"submit\" NAME=\"sc\" VALUE=\"Cancel\">\n");
wprintf("</CENTER></FORM>\n");
- do_template("endbox");
+ wprintf("</td></tr></table></center>\n");
wDumpContent(1);
}
wprintf("</SPAN></TD></TR></TABLE>\n");
wprintf("</div>\n<div id=\"content\">\n");
- do_template("beginbox_nt");
+ wprintf("<center><table border=0 width=99%% bgcolor=\"#ffffff\"><tr><td>\n");
wprintf("<FORM METHOD=\"POST\" ACTION=\"/edituser\">\n"
"<INPUT TYPE=\"hidden\" NAME=\"username\" VALUE=\"");
escputs(username);
"<br /><br /></FORM>\n");
wprintf("</CENTER>\n");
- do_template("endbox");
+ wprintf("</td></tr></table></center>\n");
wDumpContent(1);
other_inetemail[0] = 0;
extrafields[0] = 0;
- output_headers(1, 1, 0, 0, 0, 0, 0);
-
strcpy(whatuser, "");
if (msgnum >= 0) {
serv_puts(buf);
serv_gets(buf);
if (buf[0] != '1') {
- wDumpContent(1);
+ convenience_page("770000", "Error", &buf[4]);
return;
}
while (serv_gets(buf), strcmp(buf, "000")) {
serv_puts(buf);
serv_gets(buf);
if (buf[0] != '2') {
- wDumpContent(1);
+ convenience_page("770000", "Error", &buf[4]);
return;
}
}
/* Display the form */
- do_template("beginbox_nt");
- wprintf("<FORM METHOD=\"POST\" ACTION=\"/submit_vcard\">\n");
- wprintf("<H2><IMG ALIGN=CENTER SRC=\"/static/vcard.gif\">"
- "Contact information for ");
+ output_headers(1, 1, 2, 0, 0, 0, 0);
+ wprintf("<div id=\"banner\">\n"
+ "<TABLE WIDTH=100%% BORDER=0 BGCOLOR=\"#444455\"><TR><TD>"
+ "<SPAN CLASS=\"titlebar\">"
+ "<img src=\"/static/vcard.gif\">"
+ "Contact information for "
+ );
escputs(whatuser);
- wprintf("</H2>\n");
+ wprintf("</SPAN>"
+ "</TD></TR></TABLE>\n"
+ "</div>\n<div id=\"content\">\n"
+ );
+
+ wprintf("<FORM METHOD=\"POST\" ACTION=\"/submit_vcard\">\n");
+ wprintf("<center><table border=0 width=99%% bgcolor=\"#ffffff\"><tr><td>\n");
wprintf("<TABLE border=0><TR>"
"<TD>Prefix</TD>"
"</CENTER></FORM>\n"
);
- do_template("endbox");
+ wprintf("</td></tr></table></center>\n");
wDumpContent(1);
}
int do_room_banner, /* 0=no, 1=yes, */
/* 2 = I'm going to embed my own, so don't open the */
- /* <div id="text"> either. */
+ /* <div id="content"> either. */
int unset_cookies, /* 1 = session is terminating, so unset the cookies */
int refresh30, /* 1 = automatically refresh page every 30 seconds */
}
}
- if (do_room_banner != 2) {
+ if (do_room_banner == 1) {
wprintf("<div id=\"content\">\n");
char *safestrncpy(char *dest, const char *src, size_t n);
void display_addressbook(long msgnum, char alpha);
void offer_start_page(void);
+void convenience_page(char *titlebarcolor, char *titlebarmsg, char *messagetext);
void change_start_page(void);
void output_html(void);
void display_floorconfig(char *);