]> code.citadel.org Git - citadel.git/commitdiff
* Added iconbar shortcut to Contacts room
authorArt Cancro <ajc@citadel.org>
Wed, 20 Aug 2003 03:48:55 +0000 (03:48 +0000)
committerArt Cancro <ajc@citadel.org>
Wed, 20 Aug 2003 03:48:55 +0000 (03:48 +0000)
* Minimum required Citadel is now 6.11

webcit/ChangeLog
webcit/iconbar.c
webcit/webcit.h

index ab2ed33e4de0cf254c8ca591b8cbfab12e4cf4d9..d89df0d28b951053b75dc7d7261485e6ae3e91c5 100644 (file)
@@ -1,4 +1,8 @@
 $Log$
+Revision 500.20  2003/08/20 03:48:55  ajc
+* Added iconbar shortcut to Contacts room
+* Minimum required Citadel is now 6.11
+
 Revision 500.19  2003/08/20 03:07:25  ajc
 * Address book "single card" view now suppresses "reading nn message" and
   instead shows the letter indices across the top
@@ -1564,4 +1568,3 @@ Sun Dec  6 19:50:55 EST 1998 Art Cancro <ajc@uncnsrd.mt-kisco.ny.us>
 
 1998-12-03 Nathan Bryant <bryant@cs.usm.maine.edu>
        * webserver.c: warning fix
-
index 7c51fd62bd62e9b4e27f8c5e6dea727295f6d14a..4dfc3e74e38d6a89d45b60b9abcb4bdf2ca26022 100644 (file)
@@ -44,6 +44,7 @@ void do_iconbar(void) {
        int ib_summary = 0;     /* Summary page icon */
        int ib_inbox = 0;       /* Inbox icon */
        int ib_calendar = 0;    /* Calendar icon */
+       int ib_contacts = 0;    /* Contacts icon */
        int ib_tasks = 0;       /* Tasks icon */
        int ib_rooms = 1;       /* Rooms icon */
        int ib_users = 1;       /* Users icon */
@@ -64,6 +65,7 @@ void do_iconbar(void) {
                if (!strcasecmp(key, "ib_summary")) ib_summary = atoi(value);
                if (!strcasecmp(key, "ib_inbox")) ib_inbox = atoi(value);
                if (!strcasecmp(key, "ib_calendar")) ib_calendar = atoi(value);
+               if (!strcasecmp(key, "ib_contacts")) ib_contacts = atoi(value);
                if (!strcasecmp(key, "ib_tasks")) ib_tasks = atoi(value);
                if (!strcasecmp(key, "ib_rooms")) ib_rooms = atoi(value);
                if (!strcasecmp(key, "ib_users")) ib_users = atoi(value);
@@ -133,6 +135,22 @@ void do_iconbar(void) {
                wprintf("</A></SPAN>\n");
        }
 
+       if (ib_contacts) {
+               wprintf("<SPAN CLASS=\"iconbar_link\">"
+                       "<A HREF=\"/dotgoto?room=Contacts\" "
+                       "TITLE=\"Go to your personal address book\" "
+                       "TARGET=\"workspace\">"
+               );
+               if (ib_displayas != IB_TEXTONLY) {
+                       wprintf("<IMG BORDER=\"0\" WIDTH=\"32\" HEIGHT=\"32\" "
+                       "SRC=\"/static/vcard.gif\"><BR>");
+               }
+               if (ib_displayas != IB_PICONLY) {
+                       wprintf("Contacts<BR>");
+               }
+               wprintf("</A></SPAN>\n");
+       }
+
        if (ib_tasks)  {
                wprintf("<SPAN CLASS=\"iconbar_link\">"
                        "<A HREF=\"/dotgoto?room=Tasks\" "
@@ -253,6 +271,7 @@ void display_customize_iconbar(void) {
        int ib_summary = 0;     /* Summary page icon */
        int ib_inbox = 0;       /* Inbox icon */
        int ib_calendar = 0;    /* Calendar icon */
+       int ib_contacts = 0;    /* Contacts icon */
        int ib_tasks = 0;       /* Tasks icon */
        int ib_rooms = 1;       /* Rooms icon */
        int ib_users = 1;       /* Users icon */
@@ -273,6 +292,7 @@ void display_customize_iconbar(void) {
                if (!strcasecmp(key, "ib_summary")) ib_summary = atoi(value);
                if (!strcasecmp(key, "ib_inbox")) ib_inbox = atoi(value);
                if (!strcasecmp(key, "ib_calendar")) ib_calendar = atoi(value);
+               if (!strcasecmp(key, "ib_contacts")) ib_contacts = atoi(value);
                if (!strcasecmp(key, "ib_tasks")) ib_tasks = atoi(value);
                if (!strcasecmp(key, "ib_rooms")) ib_rooms = atoi(value);
                if (!strcasecmp(key, "ib_users")) ib_users = atoi(value);
@@ -344,8 +364,21 @@ void display_customize_iconbar(void) {
                (ib_inbox ? "CHECKED" : "")
        );
 
-#ifdef WEBCIT_WITH_CALENDAR_SERVICE
        wprintf("<TR><TD>"
+               "<INPUT TYPE=\"checkbox\" NAME=\"ib_contacts\" "
+               "VALUE=\"yes\" %s>"
+               "</TD><TD>"
+               "<IMG BORDER=\"0\" WIDTH=\"48\" HEIGHT=\"48\" "
+               "SRC=\"/static/vcard.gif\" ALT=\"&nbsp;\">"
+               "</TD><TD>"
+               "<B>Contacts</B><BR>"
+               "Your personal address book."
+               "</TD></TR>\n",
+               (ib_contacts ? "CHECKED" : "")
+       );
+
+#ifdef WEBCIT_WITH_CALENDAR_SERVICE
+       wprintf("<TR BGCOLOR=\"#CCCCCC\"><TD>"
                "<INPUT TYPE=\"checkbox\" NAME=\"ib_calendar\" "
                "VALUE=\"yes\" %s>"
                "</TD><TD>"
@@ -358,7 +391,7 @@ void display_customize_iconbar(void) {
                (ib_calendar ? "CHECKED" : "")
        );
 
-       wprintf("<TR BGCOLOR=\"#CCCCCC\"><TD>"
+       wprintf("<TR><TD>"
                "<INPUT TYPE=\"checkbox\" NAME=\"ib_tasks\" VALUE=\"yes\" %s>"
                "</TD><TD>"
                "<IMG BORDER=\"0\" WIDTH=\"48\" HEIGHT=\"48\" "
@@ -371,7 +404,7 @@ void display_customize_iconbar(void) {
        );
 #endif /* WEBCIT_WITH_CALENDAR_SERVICE */
 
-       wprintf("<TR><TD>"
+       wprintf("<TR BGCOLOR=\"#CCCCCC\"><TD>"
                "<INPUT TYPE=\"checkbox\" NAME=\"ib_rooms\" VALUE=\"yes\" %s>"
                "</TD><TD>"
                "<IMG BORDER=\"0\" WIDTH=\"48\" HEIGHT=\"48\" "
@@ -384,7 +417,7 @@ void display_customize_iconbar(void) {
                (ib_rooms ? "CHECKED" : "")
        );
 
-       wprintf("<TR BGCOLOR=\"#CCCCCC\"><TD>"
+       wprintf("<TR><TD>"
                "<INPUT TYPE=\"checkbox\" NAME=\"ib_users\" VALUE=\"yes\" %s>"
                "</TD><TD>"
                "<IMG BORDER=\"0\" WIDTH=\"48\" HEIGHT=\"48\" "
@@ -397,7 +430,7 @@ void display_customize_iconbar(void) {
                (ib_users ? "CHECKED" : "")
        );
 
-       wprintf("<TR><TD>"
+       wprintf("<TR BGCOLOR=\"#CCCCCC\"><TD>"
                "<INPUT TYPE=\"checkbox\" NAME=\"ib_advanced\" "
                "VALUE=\"yes\" %s>"
                "</TD><TD>"
@@ -410,7 +443,7 @@ void display_customize_iconbar(void) {
                (ib_advanced ? "CHECKED" : "")
        );
 
-       wprintf("<TR BGCOLOR=\"#CCCCCC\"><TD>"
+       wprintf("<TR><TD>"
                "<INPUT TYPE=\"checkbox\" NAME=\"ib_logoff\" "
                "VALUE=\"yes\" %s>"
                "</TD><TD>"
@@ -423,7 +456,7 @@ void display_customize_iconbar(void) {
                "</TD></TR>\n",
                (ib_logoff ? "CHECKED" : "")
        );
-       wprintf("<TR><TD>"
+       wprintf("<TR BGCOLOR=\"#CCCCCC\"><TD>"
                "<INPUT TYPE=\"checkbox\" NAME=\"ib_citadel\" "
                "VALUE=\"yes\" %s>"
                "</TD><TD>"
@@ -458,6 +491,7 @@ void commit_iconbar(void) {
                "ib_summary",
                "ib_inbox",
                "ib_calendar",
+               "ib_contacts",
                "ib_tasks",
                "ib_rooms",
                "ib_users",
index cd8fe7f0f16090f026b75572536ecda8a22a086a..1b0a81f59e68670740b908b0a200531b24ba0cf4 100644 (file)
@@ -29,7 +29,7 @@
 #define DEVELOPER_ID           0
 #define CLIENT_ID              4
 #define CLIENT_VERSION         500             /* This version of WebCit */
-#define MINIMUM_CIT_VERSION    607             /* min required Citadel vers */
+#define MINIMUM_CIT_VERSION    611             /* min required Citadel vers */
 #define DEFAULT_HOST           "localhost"     /* Default Citadel server */
 #define DEFAULT_PORT           "504"
 #define LB                     (1)             /* Internal escape chars */