X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=src%2Faddrbook_search_html.php;h=a9bd6c8780f30a0ff77c06c1ec3ba94e13f410db;hp=94590191f5fc3a249a5fa91a3f84d138c033f1a3;hb=5df2efa257f7aa8ddcfa44ed517a8cef8c26b118;hpb=507832e7aaf3b34e2165c871632c5eb365125240 diff --git a/src/addrbook_search_html.php b/src/addrbook_search_html.php index 94590191..a9bd6c87 100644 --- a/src/addrbook_search_html.php +++ b/src/addrbook_search_html.php @@ -1,224 +1,184 @@ ' . "\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