From cebf73fa6902bb4c4e3004656865ebd87662126c Mon Sep 17 00:00:00 2001 From: Art Cancro Date: Thu, 7 Aug 2003 22:18:05 +0000 Subject: [PATCH] * Add the Summary Page to the customizable iconbar --- webcit/ChangeLog | 4 +++- webcit/iconbar.c | 47 ++++++++++++++++++++++++++++++++------ webcit/static/summary.gif | Bin 0 -> 948 bytes webcit/summary.c | 3 ++- 4 files changed, 45 insertions(+), 9 deletions(-) create mode 100644 webcit/static/summary.gif 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 0000000000000000000000000000000000000000..351695048ab95f1e74154a9151b1568625373d97 GIT binary patch literal 948 zcmaiv@lP9N7{{M$d*ymFqb;R9aWsc?LT!hIGt%i~1(8zIW)vZorD9cVfPmInx7o$z z+BASl#_Y(Fn-OU3SXa9+%{EvyS=szy(<3RM8R|qDlZhZ&qb6=L>f67-=gpIR^E}_@ z^E|KF(q!EIq5%wW8h~M#TrLLy9LF(?8wJnvZX_6n=Q-XDIUZ?1k4FaN1BT<=IpoPp z;5kHqT#o15sEh(JkTVZJ(>%v;$d^Z<7RRGaDDw?OWjI7ci39`rX@uq6sFR=LQ6YcW z|3=vz5k|sZ(C1If{|Urfsc}!UzGUQj^uUe2$H&t#?=$E2Pc0=5ezoDdvXcGA)okR2 z*HTRPXFp~S*30P%(q^X1-nb7yNbRBm_#;{`Y?#8eVVL5bD3eY;En1tQ`j z5#XW%I313}BP^ztuvW0vQms~D$#5wVCl&GwU=_^W0y;Rin1YrHRLGm{$u00$6S94x}}HWU+a3)C#jiB zFEqWKbDD{P;jL5eovAwd zz=W>7W^l4Mvtz~3wr`>|c=xX+ud1fiVbfM0&#d~nuE4_CKNmj0Fon@mX%}4yP(OUxsb6V@L3~?XSO3R~cl@m#>zfNROLNnO+dBD{^8r@dZaES29FJ=|gj(lG z5*)$6A`Kn8`Wol7T%_rm&LJ@jE*2{cEo5bn^Fd)vqQRQdvwi-fms)h1GCq^}C5pFE`YDPI~= z4oNO#GKHg#0|SAl?M25x3YQvQP1;haktC62&94}e zVrlZQIwWl&-t~QMH_r*59WqDXFQV`4qa;o#M$FF+MX9}`_ON#>a`!2bEU0A@nVE-! YBMqC~>#~c#t*uX`#JXRL>j9ql5BK$mu>b%7 literal 0 HcmV?d00001 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); -- 2.39.2