X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=src%2Faddrbook_search_html.php;h=0322132feb0dc6d29b79dd3b7593c6f1918ae86f;hp=fae1d4f3207e18d42148a92c7230084ac53a356b;hb=ebd2391cb0c5e3049870f90fa8a8b28707e9571a;hpb=d51894be063bf2e1349762bc554358c62d368e36 diff --git a/src/addrbook_search_html.php b/src/addrbook_search_html.php index fae1d4f3..0322132f 100644 --- a/src/addrbook_search_html.php +++ b/src/addrbook_search_html.php @@ -1,223 +1,178 @@ ' . "\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; - - printf('
'; - } - - // --- End functions --- - - displayPageHeader($color, 'None'); - - // 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