X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=src%2Faddrbook_search.php;h=14a2f477599c7b45e644a692f5f3b73ce4933b20;hp=9202b1375ab8292b5a05725020d5c601fd8a1b71;hb=a6519f058c12bc4eade242bef1c5f4e27a9611ba;hpb=5100704d64380cc532dac7e5da8c72a56dd94071 diff --git a/src/addrbook_search.php b/src/addrbook_search.php index 9202b137..14a2f477 100644 --- a/src/addrbook_search.php +++ b/src/addrbook_search.php @@ -1,168 +1,144 @@ - - - - -<?php - printf("%s: %s", $org_title, _("Address Book")); -?> - - -"; - } else { - echo "\n"; - } - - // Just make a blank page and exit - if(($show == "blank") || (empty($query) && empty($show))) { - printf("


%s

\n\n", - _("Search results will display here")); - exit; - } - - // Create search form - if($show == "form") { - printf("
\n", - $PHP_SELF); - printf(""); - printf("
\n"); - printf(" %s:\n\n", - _("Search for")); - printf(" \n", - htmlspecialchars($query)); - printf("\n"); - printf(" ", - _("Search")); - printf("\n"); - printf("\n", - _("Close window")); - printf("
\n"); - } - - // Include JavaScript code if this is search results - if(!empty($query)) { -?> - - -s_search($query); - - if(!is_array($res)) { - printf("


%s.

\n\n", - _("No persons matching your search was found")); - exit; - } - - // List search results - $line = 0; - print ""; - print "\n"; - - while(list($key, $row) = each($res)) { - printf("\n", - ($line % 2) ? " bgcolor=\"$color[0]\"" : "", $row["email"], - $row["email"], $row["name"], $row["email"], $row["label"], - $row["source"]); - $line++; - } - print "
 NameE-mailInfoSource
To | Cc%s %s %s %s
"; - } -?> - - +$oTemplate->display('footer.tpl');