-
-
-/*
- * 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 icon from another room.
- */
-void embed_room_graphic(StrBuf *Target, WCTemplputParams *TP)
-{
- char buf[SIZ];
-
- serv_puts("OIMG _roompic_");
- serv_getln(buf, sizeof buf);
- if (buf[0] == '2') {
- wc_printf("<img height=\"64px\" src=\"image?name=_roompic_&room=");
- urlescputs(ChrPtr(WC->CurRoom.name));
- wc_printf("\">");
- serv_puts("CLOS");
- serv_getln(buf, sizeof buf);
- }
- else if (WC->CurRoom.view == VIEW_ADDRESSBOOK) {
- wc_printf("<img class=\"roompic\" alt=\"\" src=\""
- "static/viewcontacts_48x.gif"
- "\" >"
- );
- }
- else if ( (WC->CurRoom.view == VIEW_CALENDAR) || (WC->CurRoom.view == VIEW_CALBRIEF) ) {
- wc_printf("<img class=\"roompic\" alt=\"\" src=\""
- "static/calarea_48x.gif"
- "\" width=\"48\" height=\"48\">"
- );
- }
- else if (WC->CurRoom.view == VIEW_TASKS) {
- wc_printf("<img class=\"roompic\" alt=\"\" src=\""
- "static/taskmanag_48x.gif"
- "\" width=\"48\" height=\"48\">"
- );
- }
- else if (WC->CurRoom.view == VIEW_NOTES) {
- wc_printf("<img class=\"roompic\" alt=\"\" src=\""
- "static/storenotes_48x.gif"
- "\" width=\"48\" height=\"48\">"
- );
- }
- else if (WC->CurRoom.view == VIEW_MAILBOX) {
- wc_printf("<img class=\"roompic\" alt=\"\" src=\""
- "static/privatemess_48x.gif"
- "\" width=\"48\" height=\"48\">"
- );
- }
- else {
- wc_printf("<img class=\"roompic\" alt=\"\" src=\""
- "static/chatrooms_48x.gif"
- "\" width=\"48\" height=\"48\">"
- );
- }
-
-}
-
-
-