From 1c719115435a63fd79ab6c84c9f813898be05ba9 Mon Sep 17 00:00:00 2001 From: Art Cancro Date: Sun, 4 May 2003 02:54:56 +0000 Subject: [PATCH] * Summary page now uses our cutesy new rounded window boxes --- webcit/ChangeLog | 4 ++++ webcit/summary.c | 41 +++++++++++++++++++++-------------------- 2 files changed, 25 insertions(+), 20 deletions(-) diff --git a/webcit/ChangeLog b/webcit/ChangeLog index 93f3fe087..cb167674e 100644 --- a/webcit/ChangeLog +++ b/webcit/ChangeLog @@ -1,4 +1,7 @@ $Log$ +Revision 410.23 2003/05/04 02:54:55 ajc +* Summary page now uses our cutesy new rounded window boxes + Revision 410.22 2003/05/03 21:28:41 ajc * Added in a slick new box style and put the room lists in it @@ -1371,3 +1374,4 @@ Sun Dec 6 19:50:55 EST 1998 Art Cancro 1998-12-03 Nathan Bryant * webserver.c: warning fix + diff --git a/webcit/summary.c b/webcit/summary.c index b4c249593..99c8f246d 100644 --- a/webcit/summary.c +++ b/webcit/summary.c @@ -51,24 +51,15 @@ void output_date(void) { -/* - * Display the title bar for a section - */ -void section_title(char *title) { - - wprintf("" - "
" - ""); - escputs(title); - wprintf("
\n"); -} - /* * Dummy section */ void dummy_section(void) { - section_title("---"); + svprintf("BOXTITLE", WCS_STRING, "(dummy section)"); + do_template("beginbox"); + wprintf("(nothing)"); + do_template("endbox"); } @@ -82,7 +73,8 @@ void new_messages_section(void) { int number_of_rooms_to_check; char *rooms_to_check = "Mail|Lobby"; - section_title("Messages"); + svprintf("BOXTITLE", WCS_STRING, "Messages"); + do_template("beginbox"); number_of_rooms_to_check = num_tokens(rooms_to_check, '|'); if (number_of_rooms_to_check == 0) return; @@ -106,6 +98,7 @@ void new_messages_section(void) { } } wprintf("\n"); + do_template("endbox"); } @@ -117,7 +110,8 @@ void wholist_section(void) { char buf[SIZ]; char user[SIZ]; - section_title("Who's online now"); + svprintf("BOXTITLE", WCS_STRING, "Who's online now"); + do_template("beginbox"); serv_puts("RWHO"); serv_gets(buf); if (buf[0] == '1') while(serv_gets(buf), strcmp(buf, "000")) { @@ -125,6 +119,7 @@ void wholist_section(void) { escputs(user); wprintf("
\n"); } + do_template("endbox"); } @@ -135,7 +130,8 @@ void tasks_section(void) { int num_msgs = 0; int i; - section_title("Tasks"); + svprintf("BOXTITLE", WCS_STRING, "Tasks"); + do_template("beginbox"); gotoroom("Tasks", 0); if (strcasecmp(WC->wc_roomname, "Tasks")) { wprintf("(You do not have a task list)
\n"); @@ -153,6 +149,7 @@ void tasks_section(void) { display_task(WC->msgarr[i]); } wprintf("\n"); + do_template("endbox"); } @@ -163,7 +160,8 @@ void calendar_section(void) { int num_msgs = 0; int i; - section_title("Today on your calendar"); + svprintf("BOXTITLE", WCS_STRING, "Today on your calendar"); + do_template("beginbox"); #ifdef WEBCIT_WITH_CALENDAR_SERVICE gotoroom("Calendar", 0); if (strcasecmp(WC->wc_roomname, "Calendar")) { @@ -183,6 +181,7 @@ void calendar_section(void) { calendar_summary_view(); #endif /* WEBCIT_WITH_CALENDAR_SERVICE */ + do_template("endbox"); } @@ -190,7 +189,8 @@ void calendar_section(void) { * Server info section (fluff, really) */ void server_info_section(void) { - section_title("About this server"); + svprintf("BOXTITLE", WCS_STRING, "About this server"); + do_template("beginbox"); wprintf("You are connected to "); escputs(serv_info.serv_humannode); wprintf(", running "); @@ -200,6 +200,7 @@ void server_info_section(void) { wprintf(".
\nYour system administrator is "); escputs(serv_info.serv_sysadm); wprintf(".\n"); + do_template("endbox"); } @@ -240,7 +241,7 @@ void summary(void) { */ wprintf(""); server_info_section(); - wprintf("

"); + wprintf("
"); tasks_section(); /* @@ -248,7 +249,7 @@ void summary(void) { */ wprintf(""); new_messages_section(); - wprintf("

"); + wprintf("
"); calendar_section(); /* -- 2.39.2