From a98bed6824ff8715108a2971b66ae2b17d0f35fb Mon Sep 17 00:00:00 2001 From: lkehresman Date: Sun, 18 Mar 2001 21:03:16 +0000 Subject: [PATCH] added bcc to html addressbook search (should have been there in first place) git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@1201 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- src/addrbook_search_html.php | 3 ++- src/compose.php | 23 ++++++++++++++--------- 2 files changed, 16 insertions(+), 10 deletions(-) diff --git a/src/addrbook_search_html.php b/src/addrbook_search_html.php index 94590191..30f436b8 100644 --- a/src/addrbook_search_html.php +++ b/src/addrbook_search_html.php @@ -85,11 +85,12 @@ printf("". " To". " Cc ". + " Bcc ". " %s  ". "%s". " %s ", ($line % 2) ? " bgcolor=\"$color[0]\"" : "", - htmlspecialchars($row["email"]), htmlspecialchars($row["email"]), + htmlspecialchars($row["email"]), htmlspecialchars($row["email"]), htmlspecialchars($row["email"]), $row["name"], $row["email"], $row["label"]); if($includesource) printf(" %s", $row["source"]); diff --git a/src/compose.php b/src/compose.php index 73e9d966..078acf66 100644 --- a/src/compose.php +++ b/src/compose.php @@ -41,10 +41,8 @@ include("../src/load_prefs.php"); if (!isset($attachments)) - { $attachments = array(); - } - + // This function is used when not sending or adding attachments function newMail () { global $forward_id, $imapConnection, $msg, $ent_num, $body_ary, $body, @@ -304,19 +302,20 @@ } // This code is for attachments - echo " \n"; - echo " "._("Attach:"); - echo " \n"; + echo " \n"; + echo " \n"; + echo "
"._("Attach:"); + echo " \n"; echo " \n"; echo "   \n"; echo " \n"; echo " \n"; if (count($attachments) > 0) { - echo "\n"; + echo "\n"; echo " "; - echo ""; - foreach ($attachments as $localname => $remotename) { + echo ""; + while (list($localname, $remotename) = each($attachments)) { echo "\n"; echo "$remotename
\n"; } @@ -471,6 +470,12 @@ $send_to_cc .= $send_to_cc_search[$i]; } + for ($i=0; $i < count($send_to_bcc_search); $i++) { + if ($send_to_bcc) + $send_to_bcc .= ", "; + $send_to_bcc .= $send_to_bcc_search[$i]; + } + showInputForm(); } else if (isset($html_addr_search)) { // I am using an include so as to elminiate an extra unnecessary click. If you -- 2.25.1