X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=src%2Faddrbook_search_html.php;h=71e7d0c9cae41780b388c98e27cf65d17e141454;hb=55521a0717830d38714bdc4177fc31df8089f8dc;hp=63b3e4daa960e4bc27bbcb38474236c3d3f36163;hpb=6ee631f7b92f6a205e0841ac40e6b0e763a5a734;p=squirrelmail.git diff --git a/src/addrbook_search_html.php b/src/addrbook_search_html.php index 63b3e4da..71e7d0c9 100644 --- a/src/addrbook_search_html.php +++ b/src/addrbook_search_html.php @@ -1,213 +1,186 @@ ' . "\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 --- - - 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