X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=src%2Faddrbook_search_html.php;h=2342391d373663e85b0e925b37dcd3c7d18fb46a;hb=2f617223e0e2742d2d9377aadedd3737b3256430;hp=6aa64625caeadb811b2f2714e77ce7273e68f482;hpb=4c8ac648bc61946e9910df9c9f84f95387045938;p=squirrelmail.git diff --git a/src/addrbook_search_html.php b/src/addrbook_search_html.php index 6aa64625..2342391d 100644 --- a/src/addrbook_search_html.php +++ b/src/addrbook_search_html.php @@ -1,218 +1,184 @@ ' . "\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