From: Art Cancro Date: Thu, 7 Aug 2003 22:18:05 +0000 (+0000) Subject: * Add the Summary Page to the customizable iconbar X-Git-Tag: v7.86~5793 X-Git-Url: https://code.citadel.org/?a=commitdiff_plain;h=cebf73fa6902bb4c4e3004656865ebd87662126c;p=citadel.git * Add the Summary Page to the customizable iconbar --- diff --git a/webcit/ChangeLog b/webcit/ChangeLog index c86945e00..6b1d1bfd5 100644 --- a/webcit/ChangeLog +++ b/webcit/ChangeLog @@ -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 1998-12-03 Nathan Bryant * webserver.c: warning fix - diff --git a/webcit/iconbar.c b/webcit/iconbar.c index 06a6718a9..691fe7512 100644 --- a/webcit/iconbar.c +++ b/webcit/iconbar.c @@ -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) { "
\n" ); + if (ib_summary) { + wprintf("" + "" + ); + if (ib_displayas != IB_TEXTONLY) { + wprintf("
"); + } + if (ib_displayas != IB_PICONLY) { + wprintf("Summary
"); + } + wprintf("
\n"); + } + if (ib_inbox) { wprintf("" "" + "" + "" + "\" \"" + "" + "Summary
" + "Your summary page" + "\n", + (ib_summary ? "CHECKED" : "") + ); + + wprintf("" "" "" "" + wprintf("" "" "" @@ -326,7 +358,7 @@ void display_customize_iconbar(void) { (ib_calendar ? "CHECKED" : "") ); - wprintf("" + wprintf("" "" "" "" + wprintf("" "" "" "" + wprintf("" "" "" "" + wprintf("" "" "" @@ -378,7 +410,7 @@ void display_customize_iconbar(void) { (ib_advanced ? "CHECKED" : "") ); - wprintf("" + wprintf("" "" "" @@ -391,7 +423,7 @@ void display_customize_iconbar(void) { "\n", (ib_logoff ? "CHECKED" : "") ); - wprintf("" + wprintf("" "" "" @@ -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 index 000000000..351695048 Binary files /dev/null and b/webcit/static/summary.gif differ diff --git a/webcit/summary.c b/webcit/summary.c index 3b35df7cb..68d21af03 100644 --- a/webcit/summary.c +++ b/webcit/summary.c @@ -221,7 +221,8 @@ void server_info_section(void) { void summary(void) { output_headers(7); - wprintf("
" + wprintf("" + "
" "" "Summary page for "); escputs(WC->wc_username);