<% /*
   * dbXML Core - Example Code
   *
   * Copyright (c) 1999-2001 The dbXML Group
   *
   * Permission is hereby granted, free of charge, to any person obtaining a copy
   * of this software and associated documentation files (the "Software"), to
   * deal in the Software without restriction, including without limitation the
   * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
   * sell copies of the Software, and to permit persons to whom the Software is
   * furnished to do so, subject to the following conditions:
   *
   *    The above copyright notice and this permission notice shall be included
   *       in all copies of substantial portions of the Software.
   *
   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
   * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
   * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
   * IN THE SOFTWARE.
   *
   * $Id: searchContacts.jsp,v 1.1 2001/08/08 04:56:23 kstaken Exp $
   */
%>

<%@ include file="header.jsp" %>

<FONT SIZE="+2">
   <CENTER>
      Search for a Contact
   </CENTER>
</FONT>



   <TABLE BORDER="0">
      <FORM NAME="SEARCH" ACTION="/Addressbook/servlet/Task" METHOD="POST">
         <INPUT TYPE="HIDDEN" NAME="ACTION" VALUE="ATTRIBUTESEARCH">
         <TR>
            <TD COLSPAN="3">
               <FONT SIZE="+1">
                  <B>
                     Search by attribute
                  </B>
               </FONT>
            </TD>
            <TD>
         </TR>
         <TR>
            <TD>
               <SELECT NAME="SEARCHTYPE">
                  <OPTION SELECTED VALUE="lname">Last Name
                  <OPTION VALUE="fname">First Name
                  <OPTION VALUE="workphone">Work Phone
                  <OPTION VALUE="homephone">Home Phone
                  <OPTION VALUE="cellphone">Cell Phone
                  <OPTION VALUE="homeemail">Home Email
                  <OPTION VALUE="workemail">Work Email
                  <OPTION VALUE="homeaddress">Home Address
                  <OPTION VALUE="workaddress">Work Address
               </SELECT>
            </TD>
            <TD>
               <INPUT TYPE="TEXT" NAME="SEARCHSTRING" SIZE="50">
            </TD>
            <TD>
               <INPUT TYPE="SUBMIT" NAME="SUBMIT" VALUE="SEARCH">
            </TD>
         </TR>
         <TR>
            <TD>
               &nbsp;
            </TD>
            <TD>
               Note: Search is case sensitive and must be exact
            </TD>
         </TR>
      </FORM>

      <TR>
         <TD>
            &nbsp
         </TD>
      </TR>
      <TR>
         <TD>
            &nbsp
         </TD>
      </TR>
      <TR>
         <TD>
            &nbsp
         </TD>
      </TR>
      <TR>
         <TD>
            &nbsp
         </TD>
      </TR>
      
      <FORM NAME="XPATHSEARCH" ACTION="/Addressbook/servlet/Task" METHOD="POST">
         <INPUT TYPE="HIDDEN" NAME="ACTION" VALUE="XPATHSEARCH">
         <TR>
            <TD COLSPAN="3">
               <FONT SIZE="+1">
                  <B>
                     Full Xpath query
                  </B>
               </FONT>
            </TD>
         </TR>
         <TR>
            <TD>
               Xpath query
            </TD>
            <TD>
               <INPUT TYPE="TEXT" NAME="SEARCHSTRING" SIZE="50">
            </TD>
            <TD>
               <INPUT TYPE="SUBMIT" NAME="SUBMIT" VALUE="SEARCH">
            </TD>
         </TR>
         <TR>
            <TD>
               &nbsp;
            </TD>
            <TD>
               Example -  /person[lname='Simpson']  ( See <A HREF="/Addressbook">Here</A> for sample XML format )
            </TD>
         </TR>
      </FORM>
   </TABLE>


<%@ include file="footer.jsp" %>


