From 413d198df72118ed7778c4dc7570ceaa7129f602 Mon Sep 17 00:00:00 2001 From: Art Cancro Date: Tue, 12 Jun 2007 15:39:22 +0000 Subject: [PATCH] Added the address book popup into mailing list mangement --- webcit/roomops.c | 49 +++++++++++++++++++++++++++++++++++++++--------- 1 file changed, 40 insertions(+), 9 deletions(-) diff --git a/webcit/roomops.c b/webcit/roomops.c index 0f51ee2a0..d51da9ae3 100644 --- a/webcit/roomops.c +++ b/webcit/roomops.c @@ -1516,10 +1516,9 @@ void display_editroom(void) extract_token(recp, buf, 1, '|', sizeof recp); escputs(recp); - wprintf(" "); + wprintf("\">"); wprintf(_("(remove)")); wprintf("
"); } @@ -1527,7 +1526,7 @@ void display_editroom(void) wprintf("
\n" "\n" "\n"); - wprintf("\n"); + wprintf("\n"); wprintf("", _("Add")); wprintf("
\n"); @@ -1546,10 +1545,10 @@ void display_editroom(void) extract_token(recp, buf, 1, '|', sizeof recp); escputs(recp); - wprintf(" "); + wprintf("\">"); wprintf(_("(remove)")); wprintf("
"); } @@ -1557,12 +1556,27 @@ void display_editroom(void) wprintf("
\n" "\n" "\n"); - wprintf("\n"); + wprintf("\n"); wprintf("", _("Add")); wprintf("
\n"); - wprintf("
\n"); + wprintf("\n"); + + /** Pop open an address book -- begin **/ + wprintf("
" + "" + "" + " %s" + "
", + _("List"), + _("Digest"), + _("Add recipients from Contacts or other address books"), + _("Add recipients from Contacts or other address books") + ); + /** Pop open an address book -- end **/ + wprintf("
"); if (self_service(999) == 1) { wprintf(_("This room is configured to allow " "self-service subscribe/unsubscribe requests.")); @@ -1682,6 +1696,7 @@ void display_editroom(void) /** end content of whatever tab is open now */ wprintf("\n"); + address_book_popup(); wDumpContent(1); } @@ -2390,6 +2405,7 @@ void netedit(void) { char cmpa1[SIZ]; char cmpb0[SIZ]; char cmpb1[SIZ]; + int i, num_addrs; if (strlen(bstr("line"))==0) { display_editroom(); @@ -2441,7 +2457,22 @@ void netedit(void) { } if (strlen(bstr("add_button")) > 0) { - serv_puts(line); + num_addrs = num_tokens(bstr("line"), ','); + if (num_addrs < 2) { + /* just adding one node or address */ + serv_puts(line); + } + else { + /* adding multiple addresses separated by commas */ + for (i=0; i