From dd7479f16f6494da91251ea8b295eaff1985c8bc Mon Sep 17 00:00:00 2001 From: Art Cancro Date: Mon, 12 Jun 2000 03:28:44 +0000 Subject: [PATCH] * added support for multi-line paging --- webcit/ChangeLog | 4 +++- webcit/paging.c | 24 ++++++++++++++++-------- webcit/roomops.c | 8 ++++---- 3 files changed, 23 insertions(+), 13 deletions(-) diff --git a/webcit/ChangeLog b/webcit/ChangeLog index 43d2bfa3f..0d28a5f94 100644 --- a/webcit/ChangeLog +++ b/webcit/ChangeLog @@ -1,4 +1,7 @@ $Log$ +Revision 212.3 2000/06/12 03:28:44 ajc +* added support for multi-line paging + Revision 212.2 2000/06/07 04:11:28 ajc * HTML changes to room banner @@ -454,4 +457,3 @@ Sun Dec 6 19:50:55 EST 1998 Art Cancro 1998-12-03 Nathan Bryant * webserver.c: warning fix - diff --git a/webcit/paging.c b/webcit/paging.c index ebe3a4e66..ce7d05775 100644 --- a/webcit/paging.c +++ b/webcit/paging.c @@ -42,6 +42,9 @@ void display_page(void) wprintf("
\n"); + + wprintf("
\n"); + wprintf("Select a user to send a message to:
"); wprintf("\n"); - wprintf("
\n"); + + wprintf("
"); wprintf("Enter message text:
"); - wprintf("\n"); - wprintf("

\n"); + + wprintf("

\n"); + + wprintf("


\n"); wprintf(""); wprintf("
\n"); @@ -75,27 +82,28 @@ void display_page(void) void page_user(void) { char recp[256]; - char msgtext[256]; char sc[256]; char buf[256]; output_headers(1); strcpy(recp, bstr("recp")); - strcpy(msgtext, bstr("msgtext")); strcpy(sc, bstr("sc")); if (strcmp(sc, "Send message")) { wprintf("Message was not sent.
\n"); } else { - serv_printf("SEXP %s|%s", recp, msgtext); + serv_printf("SEXP %s|-", recp); serv_gets(buf); - if (buf[0] == '2') { + if (buf[0] == '4') { + text_to_server(bstr("msgtext")); + serv_puts("000"); wprintf("Message has been sent to "); escputs(recp); wprintf(".
\n"); - } else { + } + else { wprintf("%s
\n", &buf[4]); } } diff --git a/webcit/roomops.c b/webcit/roomops.c index 949945dc2..ce50b78f6 100644 --- a/webcit/roomops.c +++ b/webcit/roomops.c @@ -327,9 +327,9 @@ void embed_room_banner(char *got) { if ((strlen(WC->ugname) > 0) && (strcasecmp(WC->ugname, WC->wc_roomname))) { wprintf(""); wprintf(""); - wprintf("
Previous room
"); + wprintf("
Previous room"); } - wprintf(""); + wprintf(""); wprintf("%s
", WC->wc_roomname); wprintf("%d new of %d messages\n", extract_int(&got[4], 1), @@ -360,13 +360,13 @@ void embed_room_banner(char *got) { "" "
%d", WC->new_mail); - wprintf(" new mail messages"); + wprintf(" new mail messages"); remember_new_mail = WC->new_mail; } wprintf(""); wprintf(""); - wprintf("
Next room
"); + wprintf("
Next room"); wprintf("\n"); } -- 2.39.2