* Add the Summary Page to the customizable iconbar
authorArt Cancro <ajc@citadel.org>
Thu, 7 Aug 2003 22:18:05 +0000 (22:18 +0000)
committerArt Cancro <ajc@citadel.org>
Thu, 7 Aug 2003 22:18:05 +0000 (22:18 +0000)
webcit/ChangeLog
webcit/iconbar.c
webcit/static/summary.gif [new file with mode: 0644]
webcit/summary.c

index c86945e0096c925eac3b73b0d869904e1c1a1e62..6b1d1bfd547a3237669370a202e7ad94b7aa3203 100644 (file)
@@ -1,4 +1,7 @@
 $Log$
+Revision 500.16  2003/08/07 22:18:03  ajc
+* Add the Summary Page to the customizable iconbar
+
 Revision 500.15  2003/08/07 03:51:51  ajc
 * Customizable icon bar as: pictures and text, pictures, text
 
@@ -1548,4 +1551,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 06a6718a9ee6094c6f1a4263601bc81f789297f7..691fe751273e3380996e6d3669812a7d298d98da 100644 (file)
@@ -41,6 +41,7 @@ void do_iconbar(void) {
         */
        int ib_displayas = 0;   /* pictures and text, pictures, text */
        int ib_logo = 1;        /* Site logo */
+       int ib_summary = 0;     /* Summary page icon */
        int ib_inbox = 0;       /* Inbox icon */
        int ib_calendar = 0;    /* Calendar icon */
        int ib_tasks = 0;       /* Tasks icon */
@@ -60,6 +61,7 @@ void do_iconbar(void) {
 
                if (!strcasecmp(key, "ib_displayas")) ib_displayas = atoi(value);
                if (!strcasecmp(key, "ib_logo")) ib_logo = atoi(value);
+               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_tasks")) ib_tasks = atoi(value);
@@ -83,6 +85,22 @@ void do_iconbar(void) {
                        "<BR>\n"
        );
 
+       if (ib_summary) {
+               wprintf("<SPAN CLASS=\"iconbar_link\">"
+                       "<A HREF=\"/summary\" "
+                       "TITLE=\"Your summary page\" "
+                       "TARGET=\"workspace\">"
+               );
+               if (ib_displayas != IB_TEXTONLY) {
+                       wprintf("<IMG BORDER=\"0\" WIDTH=\"32\" HEIGHT=\"32\" "
+                               "SRC=\"/static/summary.gif\"><BR>");
+               }
+               if (ib_displayas != IB_PICONLY) {
+                       wprintf("Summary<BR>");
+               }
+               wprintf("</A></SPAN>\n");
+       }
+
        if (ib_inbox) {
                wprintf("<SPAN CLASS=\"iconbar_link\">"
                        "<A HREF=\"/dotgoto?room=_MAIL_\" "
@@ -232,6 +250,7 @@ void display_customize_iconbar(void) {
         */
        int ib_displayas = IB_PICTEXT;  /* pictures and text, pictures, text */
        int ib_logo = 1;        /* Site logo */
+       int ib_summary = 0;     /* Summary page icon */
        int ib_inbox = 0;       /* Inbox icon */
        int ib_calendar = 0;    /* Calendar icon */
        int ib_tasks = 0;       /* Tasks icon */
@@ -251,6 +270,7 @@ void display_customize_iconbar(void) {
 
                if (!strcasecmp(key, "ib_displayas")) ib_displayas = atoi(value);
                if (!strcasecmp(key, "ib_logo")) ib_logo = atoi(value);
+               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_tasks")) ib_tasks = atoi(value);
@@ -301,6 +321,18 @@ void display_customize_iconbar(void) {
        );
 
        wprintf("<TR><TD>"
+               "<INPUT TYPE=\"checkbox\" NAME=\"ib_summary\" VALUE=\"yes\" %s>"
+               "</TD><TD>"
+               "<IMG BORDER=\"0\" WIDTH=\"48\" HEIGHT=\"48\" "
+               "SRC=\"/static/summary.gif\" ALT=\"&nbsp;\">"
+               "</TD><TD>"
+               "<B>Summary</B><BR>"
+               "Your summary page"
+               "</TD></TR>\n",
+               (ib_summary ? "CHECKED" : "")
+       );
+
+       wprintf("<TR BGCOLOR=\"#CCCCCC\"><TD>"
                "<INPUT TYPE=\"checkbox\" NAME=\"ib_inbox\" VALUE=\"yes\" %s>"
                "</TD><TD>"
                "<IMG BORDER=\"0\" WIDTH=\"48\" HEIGHT=\"48\" "
@@ -313,7 +345,7 @@ void display_customize_iconbar(void) {
        );
 
 #ifdef WEBCIT_WITH_CALENDAR_SERVICE
-       wprintf("<TR BGCOLOR=\"#CCCCCC\"><TD>"
+       wprintf("<TR><TD>"
                "<INPUT TYPE=\"checkbox\" NAME=\"ib_calendar\" "
                "VALUE=\"yes\" %s>"
                "</TD><TD>"
@@ -326,7 +358,7 @@ void display_customize_iconbar(void) {
                (ib_calendar ? "CHECKED" : "")
        );
 
-       wprintf("<TR><TD>"
+       wprintf("<TR BGCOLOR=\"#CCCCCC\"><TD>"
                "<INPUT TYPE=\"checkbox\" NAME=\"ib_tasks\" VALUE=\"yes\" %s>"
                "</TD><TD>"
                "<IMG BORDER=\"0\" WIDTH=\"48\" HEIGHT=\"48\" "
@@ -339,7 +371,7 @@ void display_customize_iconbar(void) {
        );
 #endif /* WEBCIT_WITH_CALENDAR_SERVICE */
 
-       wprintf("<TR BGCOLOR=\"#CCCCCC\"><TD>"
+       wprintf("<TR><TD>"
                "<INPUT TYPE=\"checkbox\" NAME=\"ib_rooms\" VALUE=\"yes\" %s>"
                "</TD><TD>"
                "<IMG BORDER=\"0\" WIDTH=\"48\" HEIGHT=\"48\" "
@@ -352,7 +384,7 @@ void display_customize_iconbar(void) {
                (ib_rooms ? "CHECKED" : "")
        );
 
-       wprintf("<TR><TD>"
+       wprintf("<TR BGCOLOR=\"#CCCCCC\"><TD>"
                "<INPUT TYPE=\"checkbox\" NAME=\"ib_users\" VALUE=\"yes\" %s>"
                "</TD><TD>"
                "<IMG BORDER=\"0\" WIDTH=\"48\" HEIGHT=\"48\" "
@@ -365,7 +397,7 @@ void display_customize_iconbar(void) {
                (ib_users ? "CHECKED" : "")
        );
 
-       wprintf("<TR BGCOLOR=\"#CCCCCC\"><TD>"
+       wprintf("<TR><TD>"
                "<INPUT TYPE=\"checkbox\" NAME=\"ib_advanced\" "
                "VALUE=\"yes\" %s>"
                "</TD><TD>"
@@ -378,7 +410,7 @@ void display_customize_iconbar(void) {
                (ib_advanced ? "CHECKED" : "")
        );
 
-       wprintf("<TR><TD>"
+       wprintf("<TR BGCOLOR=\"#CCCCCC\"><TD>"
                "<INPUT TYPE=\"checkbox\" NAME=\"ib_logoff\" "
                "VALUE=\"yes\" %s>"
                "</TD><TD>"
@@ -391,7 +423,7 @@ void display_customize_iconbar(void) {
                "</TD></TR>\n",
                (ib_logoff ? "CHECKED" : "")
        );
-       wprintf("<TR BGCOLOR=\"#CCCCCC\"><TD>"
+       wprintf("<TR><TD>"
                "<INPUT TYPE=\"checkbox\" NAME=\"ib_citadel\" "
                "VALUE=\"yes\" %s>"
                "</TD><TD>"
@@ -423,6 +455,7 @@ void commit_iconbar(void) {
 
        char *boxen[] = {
                "ib_logo",
+               "ib_summary",
                "ib_inbox",
                "ib_calendar",
                "ib_tasks",
diff --git a/webcit/static/summary.gif b/webcit/static/summary.gif
new file mode 100644 (file)
index 0000000..3516950
Binary files /dev/null and b/webcit/static/summary.gif differ
index 3b35df7cb3475bdee201497179c09e45d425626b..68d21af03d8ddec116f7136ca62e70b019234d08 100644 (file)
@@ -221,7 +221,8 @@ void server_info_section(void) {
 void summary(void) {
        output_headers(7);
 
-       wprintf("<TABLE WIDTH=100%% BORDER=0 BGCOLOR=#007700><TR><TD>"
+       wprintf("<TABLE WIDTH=100%% BORDER=0 BGCOLOR=#007700><TR>"
+               "<TD><IMG SRC=\"/static/summary.gif\"></TD><TD>"
                "<SPAN CLASS=\"titlebar\">"
                "Summary page for ");
        escputs(WC->wc_username);