$Id$
+Thu Dec 1 14:35:09 EST 2005 ajc
+* Added icons to the new room list
+
Thu Dec 1 00:42:01 EST 2005 ajc
* The iconbar roomlist, when selected, is now persistent across page loads
and even between sessions. We also cache the list for up to 5 minutes so
int levels, oldlevels;
int i, t;
int num_drop_targets = 0;
+ char *icon = NULL;
strcpy(floor_name, "");
strcpy(old_floor_name, "");
if (levels > 1) {
wprintf("<div id=\"roomdiv%d\">", i);
wprintf(" ");
- if (levels>2) for (t=0; t<(levels-2); ++t) wprintf(" ");
+ if (levels>2) for (t=0; t<(levels-2); ++t) wprintf(" ");
+
+ /* choose the icon */
+ if (fold[i].view == VIEW_ADDRESSBOOK) {
+ icon = "viewcontacts_16x.gif" ;
+ }
+ else if (fold[i].view == VIEW_CALENDAR) {
+ icon = "calarea_16x.gif" ;
+ }
+ else if (fold[i].view == VIEW_TASKS) {
+ icon = "taskmanag_16x.gif" ;
+ }
+ else if (fold[i].view == VIEW_NOTES) {
+ icon = "storenotes_16x.gif" ;
+ }
+ else if (fold[i].view == VIEW_MAILBOX) {
+ icon = "privatemess_16x.gif" ;
+ }
+ else {
+ icon = "chatrooms_16x.gif" ;
+ }
+
if (fold[i].selectable) {
wprintf("<a href=\"dotgoto?room=");
urlescputs(fold[i].room);
wprintf("\">");
+ wprintf("<img align=\"middle\" border=0 src=\"static/%s\" alt=\"\"> ", icon);
}
else {
wprintf("<i>");