From 6c7fd6caa94f0dcfdc25863bd8e7c21d9cf30d50 Mon Sep 17 00:00:00 2001 From: lkehresman Date: Fri, 5 May 2000 00:40:00 +0000 Subject: [PATCH] updated html address book git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@495 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- src/addrbook_search_html.php | 34 ++++++++++++++++++++++++++++++---- src/compose.php | 29 +++++++++++++++++++---------- 2 files changed, 49 insertions(+), 14 deletions(-) diff --git a/src/addrbook_search_html.php b/src/addrbook_search_html.php index 5ef9a06e..1809f6f7 100644 --- a/src/addrbook_search_html.php +++ b/src/addrbook_search_html.php @@ -34,13 +34,27 @@ displayPageHeader($color, "None"); //
+ + $body = stripslashes($body); + $send_to = stripslashes($send_to); + $send_to_cc = stripslashes($send_to_cc); + $send_to_bcc = stripslashes($send_to_bcc); + $subject = stripslashes($subject); + echo "
"; - echo ""; + echo ""; echo " "; echo " "; + echo " "; + echo " "; + echo " "; + echo " "; + echo " "; echo ""; echo "
"; + echo "".nl2br($body).""; + if(!empty($query)) { $abook = addressbook_init(); $res = $abook->s_search($query); @@ -67,12 +81,21 @@ " %s\n", _("Name"), _("E-mail"), _("Info"), _("Source")); + ?> +
+ "; + echo " "; + echo " "; + echo " "; + echo " "; + while(list($key, $row) = each($res)) { printf("". - "To | ". - "Cc". + " To". + " Cc ". " %s  ". - "%s ". + "%s ". " %s  %s\n", ($line % 2) ? " bgcolor=\"$color[0]\"" : "", $row["email"], $row["email"], $row["name"], $row["email"], $row["email"], @@ -80,6 +103,9 @@ $line++; } print ""; + echo ""; + echo "
"; + echo ""; } ?> diff --git a/src/compose.php b/src/compose.php index 9b647295..8a67bac6 100644 --- a/src/compose.php +++ b/src/compose.php @@ -243,7 +243,7 @@ echo "   
\n"; echo " \n"; echo " \n"; - echo " \n"; @@ -251,7 +251,7 @@ echo " \n"; echo " \n"; echo "
"._("Attach:"); - echo " \n"; + echo " \n"; // echo " \n"; echo " \n"; @@ -263,7 +263,7 @@ if (isset($attachments) && count($attachments)>0) { echo "\n"; echo " "; - echo ""; + echo ""; while (list($localname, $remotename) = each($attachments)) { echo "\n"; echo "$remotename
\n"; @@ -312,9 +312,6 @@ - - - if(isset($send)) { if (checkInput(false)) { sendMessage($send_to, $send_to_cc, $send_to_bcc, $subject, $body); @@ -327,10 +324,6 @@ showInputForm(); } - } else if ($html_addr_search) { - //* I am using an include so as to elminiate an extra unnecessary click. If you - //* can think of a better way, please implement it. - include ("addrbook_search_html.php"); } else if ($html_addr_search_done) { echo "\n"; $imapConnection = sqimap_login($username, $key, $imapServerAddress, $imapPort, 0); @@ -342,7 +335,23 @@ $send_to_bcc = stripslashes($send_to_bcc); $subject = stripslashes($subject); + for ($i=0; $i < count($send_to_search); $i++) { + if ($send_to) + $send_to .= ", "; + $send_to .= $send_to_search[$i]; + } + + for ($i=0; $i < count($send_to_cc_search); $i++) { + if ($send_to_cc) + $send_to_cc .= ", "; + $send_to_cc .= $send_to_cc_search[$i]; + } + showInputForm(); + } else if ($html_addr_search) { + //* I am using an include so as to elminiate an extra unnecessary click. If you + //* can think of a better way, please implement it. + include ("addrbook_search_html.php"); } else if (isset($attach)) { echo "\n"; $imapConnection = sqimap_login($username, $key, $imapServerAddress, $imapPort, 0); -- 2.25.1