icon for that room's current view.
* Replace "graphic" with "icon" throughout the system messages.
$Log$
+Revision 611.13 2005/06/14 03:21:57 ajc
+* When no icon is present on the server for a room, display the default
+ icon for that room's current view.
+* Replace "graphic" with "icon" throughout the system messages.
+
Revision 611.12 2005/06/14 01:59:43 ajc
* 16x16 icons in the new tree view. Nice!
1998-12-03 Nathan Bryant <bryant@cs.usm.maine.edu>
* webserver.c: warning fix
-
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\">Set/change your photo</SPAN>"
+ "<SPAN CLASS=\"titlebar\">Image upload</SPAN>"
"</TD></TR></TABLE>\n"
"</div>\n<div id=\"content\">\n"
);
"SRC=\"/image&name=hello\" ALT=\" \">"
"</TD><TD>"
"<B>Site logo</B><br />"
- "A graphic describing this site"
+ "An icon describing this site"
"</TD></TR>\n",
((bar = 1 - bar), (bar ? "\"#CCCCCC\"" : "\"#FFFFFF\"")),
(ib_logo ? "CHECKED" : "")
"SRC=\"/static/citadel-logo.gif\" ALT=\" \">"
"</TD><TD>"
"<B>Citadel logo</B><br />"
- "Displays the "Powered by Citadel" graphic"
+ "Displays the "Powered by Citadel" icon"
"</TD></TR>\n",
((bar = 1 - bar), (bar ? "\"#CCCCCC\"" : "\"#FFFFFF\"")),
(ib_citadel ? "CHECKED" : "")
-/* Display room graphic. The server doesn't actually
+/* Display room banner icon. The server doesn't actually
* need the room name, but we supply it in order to
- * keep the browser from using a cached graphic from
+ * keep the browser from using a cached icon from
* another room.
*/
void embed_room_graphic(void) {
serv_puts("CLOS");
serv_getln(buf, sizeof buf);
}
+ else if (WC->wc_view == VIEW_ADDRESSBOOK) {
+ wprintf("<td bgcolor=\"#444455\">"
+ "<img height=48 width=48 src=\""
+ "static/savecontact_48x.gif"
+ "\">\n"
+ );
+ }
+ else if (WC->wc_view == VIEW_CALENDAR) {
+ wprintf("<td bgcolor=\"#444455\">"
+ "<img height=48 width=48 src=\""
+ "static/calarea_48x.gif"
+ "\">\n"
+ );
+ }
+ else if (WC->wc_view == VIEW_TASKS) {
+ wprintf("<td bgcolor=\"#444455\">"
+ "<img height=48 width=48 src=\""
+ "static/taskmanag_48x.gif"
+ "\">\n"
+ );
+ }
+ else if (WC->wc_view == VIEW_NOTES) {
+ wprintf("<td bgcolor=\"#444455\">"
+ "<img height=48 width=48 src=\""
+ "static/storenotes_48x.gif"
+ "\">\n"
+ );
+ wprintf("'static/storenotes_16x.gif'");
+ }
+ else if (WC->wc_view == VIEW_MAILBOX) {
+ wprintf("<td bgcolor=\"#444455\">"
+ "<img height=48 width=48 src=\""
+ "static/privatemess_48x.gif"
+ "\">\n"
+ );
+ }
+ else {
+ wprintf("<td bgcolor=\"#444455\">"
+ "<img height=48 width=48 src=\""
+ "static/chatrooms_48x.gif"
+ "\">\n"
+ );
+ }
}
"onClick=\"return confirm('Are you sure you want to delete this room?');\">\n"
"Delete this room</A>\n"
"<LI><A HREF=\"/display_editroompic\">\n"
- "Set or change the graphic for this room's banner</A>\n"
+ "Set or change the icon for this room's banner</A>\n"
"<LI><A HREF=\"/display_editinfo\">\n"
"Edit this room's Info file</A>\n"
"</UL>");
} else if (!strcasecmp(action, "editpic")) {
do_graphics_upload("UIMG 1|_userpic_");
} else if (!strcasecmp(action, "display_editroompic")) {
- display_graphics_upload("the graphic for this room",
+ display_graphics_upload("the icon for this room",
"UIMG 0|_roompic_",
"/editroompic");
} else if (!strcasecmp(action, "editroompic")) {
} else if (!strcasecmp(action, "display_editfloorpic")) {
sprintf(buf, "UIMG 0|_floorpic_|%s",
bstr("which_floor"));
- display_graphics_upload("the graphic for this floor",
+ display_graphics_upload("the icon for this floor",
buf,
"/editfloorpic");
} else if (!strcasecmp(action, "editfloorpic")) {