$Log$
+Revision 213.7 2001/04/30 01:49:36 ajc
+* more work on UI overhaul
+
Revision 213.6 2001/04/29 04:39:23 ajc
* User interface overhaul now in progress. WARNING: incomplete system.
1998-12-03 Nathan Bryant <bryant@cs.usm.maine.edu>
* webserver.c: warning fix
+
void do_welcome(void)
{
/* smart_goto("_BASEROOM_"); */
- output_static("mainframeset.html");
+
+ output_headers(3);
+ wprintf("<A HREF=\"/static/mainframeset.html\">Click here</A>\n");
+ wDumpContent(2);
+ /* output_static("mainframeset.html"); */
}
<HTML>
-<HEAD>
-<SCRIPT language="JavaScript">
-<!--hide
-function OpenWholist()
-{
-window.open('/whobbs', 'whobbs', 'toolbar=no,location=no,directories=no,copyhistory=no,status=yes,scrollbars=yes,resizable=yes,height=200,width=600');
-}
-//-->
-</SCRIPT>
-</HEAD>
<BODY BGCOLOR=AAAAAA>
<CENTER>
<IMG BORDER=0 WIDTH=32 HEIGHT=32 SRC="/image&name=hello"><BR><BR>
<IMG BORDER=0 WIDTH=32 HEIGHT=32 SRC="/static/rooms-icon.gif"><BR>
Rooms</A><BR><BR>
+<A HREF="/whobbs" TARGET="workspace">
<IMG BORDER=0 WIDTH=32 HEIGHT=32 SRC="/static/users-icon.gif"><BR>
-Users<BR><BR>
+Users</A><BR><BR>
<A HREF="/termquit" TARGET="_top" onClick="return confirm('Do you really want to log off?');">
<IMG BORDER=0 WIDTH=32 HEIGHT=32 SRC="/static/exit-icon.gif"><BR>
<FRAMESET COLS="100, *" FRAMESPACING=0 BORDER="FALSE" FRAMEBORDER=0>
<FRAME NAME="left" SRC="/static/iconbar.html">
- <FRAMESET ROWS="*, 50" FRAMESPACING=0 BORDER="FALSE" FRAMEBORDER=0>
+ <FRAMESET ROWS="*, 50, 0" FRAMESPACING=0 BORDER="FALSE" FRAMEBORDER=0>
<FRAME NAME="workspace" SRC="/dotgoto&room=_BASEROOM_">
<FRAME NAME="bottom" SRC="/static/navbar.html">
+ <FRAME NAME="ka" SRC="/blank">
</FRAMESET>
<NOFRAMES>
Sorry, web-based access to Citadel requires a browser that supports frames,
*
* Bits 0 and 1:
* 0 = Nothing. Do not display any leading HTTP or HTML.
- * 1 = HTTP headers plus the "fake frames" found in most windows.
+ * 1 = HTTP headers plus the room banner
* 2 = HTTP headers required to terminate the session (unset cookies)
- * 3 = HTTP and HTML headers, but no 'fake frames'
+ * 3 = HTTP and HTML headers, but no room banner
*
* Bit 2: Set to 1 to auto-refresh page every 30 seconds
*
wDumpContent(1);
}
+
+/*
+ * Display a blank page.
+ */
+void blank_page(void) {
+ output_headers(7);
+ wDumpContent(2);
+}
+
+
void display_error(char *errormessage)
{
convenience_page("770000", "Error", errormessage);
else if (!strcasecmp(action, "do_welcome")) {
do_welcome();
+ } else if (!strcasecmp(action, "blank")) {
+ blank_page();
} else if (!strcasecmp(action, "display_main_menu")) {
display_main_menu();
} else if (!strcasecmp(action, "advanced")) {
/* username (link to user bio/photo page) */
- wprintf("<A HREF=\"javascript:window.opener.location='/showuser&who=");
+ wprintf("<A HREF=\"/showuser&who=");
urlescputs(wlist->username);
- wprintf("';window.location='/whobbs'\">");
+ wprintf("\">");
escputs(wlist->username);
wprintf("</A>");
wlist = wptr;
}
}
- wprintf("</TABLE>\n<BR><BR>\n");
- wprintf("<TABLE BORDER=0 BGCOLOR=\"#003399\">\n<TR><TD ALIGN=center VALIGN=center CELLPADING=20>\n");
- wprintf("<B><A HREF=\"javascript:window.close()\">Close window</A></B>\n");
- wprintf("</TD></TR>\n</TABLE></FONT>\n</CENTER>");
-
+ wprintf("</TABLE></CENTER>\n");
wDumpContent(1);
}