X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=src%2Faddrbook_search_html.php;h=56e7956baa1cdecaf8eb4a873034f53dd1ce3cee;hp=9ee5a53f6695fb854b6fe2dbfcec3001798e25f9;hb=9785376ec2914ab2f8bd8005680ebd95b106e9f4;hpb=eeb44e402b11bd6d31865c963bbca5efab9b6278 diff --git a/src/addrbook_search_html.php b/src/addrbook_search_html.php index 9ee5a53f..56e7956b 100644 --- a/src/addrbook_search_html.php +++ b/src/addrbook_search_html.php @@ -1,216 +1,183 @@ ' . "\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