X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=src%2Faddrbook_search.php;h=d5e027d58860bedbee16cdf4cef431c826a22dfb;hb=010ce1b3cf60603c746f1538a8097a25e8fa7250;hp=df111842b5f63ece5dbd07c08b839c6e60aab768;hpb=a16d133de1083bd684e6bf7c07d612ccef40ca98;p=squirrelmail.git
diff --git a/src/addrbook_search.php b/src/addrbook_search.php
index df111842..d5e027d5 100644
--- a/src/addrbook_search.php
+++ b/src/addrbook_search.php
@@ -1,100 +1,60 @@
-
+/**
+ * addrbook_search.php
+ *
+ * Copyright (c) 1999-2002 The SquirrelMail Project Team
+ * Licensed under the GNU GPL. For full terms see the file COPYING.
+ *
+ * Handle addressbook searching in the popup window.
+ *
+ * NOTE: A lot of this code is similar to the code in
+ * addrbook_search_html.html -- If you change one,
+ * change the other one too!
+ *
+ * $Id$
+ */
-
-
-
-
+/*****************************************************************/
+/*** THIS FILE NEEDS TO HAVE ITS FORMATTING FIXED!!! ***/
+/*** PLEASE DO SO AND REMOVE THIS COMMENT SECTION. ***/
+/*** + Base level indent should begin at left margin, as ***/
+/*** the require_once below looks. ***/
+/*** + All identation should consist of four space blocks ***/
+/*** + Tab characters are evil. ***/
+/*** + all comments should use "slash-star ... star-slash" ***/
+/*** style -- no pound characters, no slash-slash style ***/
+/*** + FLOW CONTROL STATEMENTS (if, while, etc) SHOULD ***/
+/*** ALWAYS USE { AND } CHARACTERS!!! ***/
+/*** + Please use ' instead of ", when possible. Note " ***/
+/*** should always be used in _( ) function calls. ***/
+/*** Thank you for your help making the SM code more readable. ***/
+/*****************************************************************/
-";
- } 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");
- }
+require_once('../src/validate.php');
- // Include JavaScript code if this is search results
- if(!empty($query)) {
+ // Function to include JavaScript code
+ function insert_javascript() {
?>
-s_search($query);
-
- if(!is_array($res)) {
- printf("
%s.
\n