X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=src%2Faddrbook_search_html.php;h=54de9f8ff27c002704a2beb7c7e6e63ce4b83ae1;hb=d625cff3462b402e4a30981015a6c63a695f8911;hp=778c52e2688de90f8cc8ad4cd569cdc56d77fabf;hpb=db48e3f5d3a7dfaeb19e9e87b9d6a8f6effe11dc;p=squirrelmail.git diff --git a/src/addrbook_search_html.php b/src/addrbook_search_html.php index 778c52e2..54de9f8f 100644 --- a/src/addrbook_search_html.php +++ b/src/addrbook_search_html.php @@ -24,16 +24,19 @@ require_once('../functions/display_messages.php'); require_once('../functions/addressbook.php'); require_once('../functions/plugin.php'); require_once('../functions/strings.php'); +require_once('../functions/html.php'); /* Insert hidden data */ function addr_insert_hidden() { global $body, $subject, $send_to, $send_to_cc, $send_to_bcc, $mailbox, - $identity; + $identity, $session; echo '' . "\n" . + '' . "\n" . '' . "\n" . '\n" . + echo '
'; @@ -104,26 +135,32 @@ function addr_display_result($res, $includesource = true) { /* --- End functions --- */ global $mailbox; -displayPageHeader($color, $mailbox); - +if ($compose_new_win == '1') { + compose_Header($color, $mailbox); +} +else { + displayPageHeader($color, $mailbox); +} /* Initialize addressbook */ $abook = addressbook_init(); -?> -
- |
\n" . - ' |
' .
+ echo html_tag( 'p', '
' .
sprintf(_("Unable to list addresses from %s"),
- $abook->backends[$backend]->sname) .
- "
' .
- _("Your search failed with the following error(s)") . ':
' .
- $abook->error . "