X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=src%2Faddrbook_search_html.php;h=0322132feb0dc6d29b79dd3b7593c6f1918ae86f;hb=e0d7bbf4116047c6504f76e839adbd61557de722;hp=9cdf82a9117fa2def492f898742fdac89fe5b84c;hpb=d4e84069d1d9af8760b8e858672d3ea3d4eac8b0;p=squirrelmail.git diff --git a/src/addrbook_search_html.php b/src/addrbook_search_html.php index 9cdf82a9..0322132f 100644 --- a/src/addrbook_search_html.php +++ b/src/addrbook_search_html.php @@ -1,217 +1,178 @@ ' . "\n"; - echo '' . "\n"; - echo '' . "\n"; - echo "' . "\n"; - echo "' . "\n"; - echo "' . "\n"; - echo "\n"; - echo "\n"; - } - - - // List search results - function addr_display_result($res, $includesource = true) { - global $color, $PHP_SELF; - - if(sizeof($res) <= 0) return; - - echo '
'; - } - - // --- End functions --- - - global $mailbox; - displayPageHeader($color, $mailbox); - - // Initialize addressbook - $abook = addressbook_init(); - -?> - -
- |
\n"; - printf(''; - - print " |
"._("Unable to list addresses from %s"). - "
\n", $abook->backends[$backend]->sname); - } - - } else { - $res = $abook->list_addr(); - addr_display_result($res, true); - } - exit; - - } else - - // Do the search - if(!empty($addrquery) && empty($listall)) { - - if($backend == -1) { - $res = $abook->s_search($addrquery); - } else { - $res = $abook->s_search($addrquery, $backend); - } - - if(!is_array($res)) { - printf("
%s:
%s