X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=src%2Faddrbook_search.php;h=cfbe3ba8b6c296026aad418691ccefd89ca84794;hb=6a2f68354009082148e09f5c82a29d1b17f69190;hp=df111842b5f63ece5dbd07c08b839c6e60aab768;hpb=a16d133de1083bd684e6bf7c07d612ccef40ca98;p=squirrelmail.git diff --git a/src/addrbook_search.php b/src/addrbook_search.php index df111842..cfbe3ba8 100644 --- a/src/addrbook_search.php +++ b/src/addrbook_search.php @@ -1,169 +1,143 @@ - - - - -<?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 ""; - printf("\n", - _("Name"), _("E-mail"), _("Info"), _("Source")); - - 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 "
 ". - "%s%s%s". - "%s
To | Cc%s %s %s %s
"; - } -?> - - +$oTemplate->display('footer.tpl'); +?> \ No newline at end of file