X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=src%2Faddrbook_search_html.php;h=ac0be5609901293ef996935f7239efd147327d13;hb=7111b0daa5f74c1c96d3bcf87da7a05e4ba6e189;hp=98cbe4ca35188386e39109d7c61115d8acf8a6a4;hpb=65a5bae684ea2124d134d4ef3afd9aa408a0dca1;p=squirrelmail.git diff --git a/src/addrbook_search_html.php b/src/addrbook_search_html.php index 98cbe4ca..ac0be560 100644 --- a/src/addrbook_search_html.php +++ b/src/addrbook_search_html.php @@ -1,171 +1,227 @@ ' . "\n" . - '' . "\n" . - '' . "\n" . - '' . "\n" . - '' . "\n" . - '' . "\n" . - '\n" . '' . - "\n"; + echo addHidden('body', "\n".$body); + } else { + echo addHidden('body', $body); } + echo addHidden('session', $session). + addHidden('subject', $subject). + addHidden('send_to', $send_to). + addHidden('send_to_bcc', $send_to_bcc). + addHidden('send_to_cc', $send_to_cc). + addHidden('identity', $identity). + addHidden('mailbox', $mailbox). + addHidden('from_htmladdr_search', 'true'); +} + -/* List search results */ +/** + * List search results + * @param array $res Array containing results of search + * @param bool $includesource If true, adds backend column to address listing + */ function addr_display_result($res, $includesource = true) { - global $color, $PHP_SELF; + global $color, $javascript_on, $PHP_SELF, $squirrelmail_language; if (sizeof($res) <= 0) return; - echo '
'; + if ($includesource) { $td_colspan = '5'; } else { $td_colspan = '4'; } + echo html_tag( 'tr', + html_tag( 'td', + ' ' . + '', + 'center', '', 'colspan="'. $td_colspan .'"' ) + ) . + '' . + addHidden('html_addr_search_done', '1'). + ''; } /* --- End functions --- */ -global $mailbox; -displayPageHeader($color, $mailbox); +if ($compose_new_win == '1') { + compose_Header($color, $mailbox); +} +else { + displayPageHeader($color, $mailbox); +} + +/** set correct value of $default_charset */ +global $default_charset; +set_my_charset(); /* Initialize addressbook */ $abook = addressbook_init(); -?> -
- |
\n" . - ' |
' . - sprintf(_("Unable to list addresses from %s"), - $abook->backends[$backend]->sname) . - "
\n"; + echo html_tag( 'p', '
' .
- _("Your search failed with the following error(s)") . ':
' .
- $abook->error . "