Template for Search Form

Select and copy the HTML code between the horizontal lines (below), and paste it into a text or HTML editor. Then modify it according to the instructions. Save it as a file with an .htm extension. Finally, upload it to your site.

You can follow hyperlinks in the code below for explanations of the changes you can make.


<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 3.0//EN" "html.dtd">
<HTML>

<HEAD>

<!--
                *****      INSTRUCTIONS FOR CUSTOMIZING THIS FORM      *****

                To customize this form, look for remarks in the file beginning with
                5 stars ("*****"). These lines contain instructions for easily
                customizing the most common qeury form elements.
                Save this file with an .htm extension, for example, 'query.htm'

-->
<!-- ***** Put your own title in below; give a description & keywords if you want ***** -->
        <TITLE>Search the IPGRI Web Site</TITLE>
        <META NAME="DESCRIPTION" CONTENT="Search the IPGRI Web Site">
        <META NAME="KEYWORDS"    CONTENT="query, content, hit">
        <META NAME="SUBJECT"     CONTENT="search form">
        <META NAME="MS.CATEGORY" CONTENT="Internet">
        <META NAME="MS.LOCALE"   CONTENT="EN-US">
        <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=Windows-1252">
</HEAD>

<!-- ***** To change the form's background pattern or color,
        simply save your background pattern as a .gif in the 
        same directory as this form, and use one of the forms below: 
        <BODY BACKGROUND="my_background_picture.gif"> or 
        <BODY BGCOLOR="#hex_color_values"> 
                                                                            ***** -->

<BODY BGCOLOR="#fff7d7">


<!-- ***** To change the form's logo, simply save your logo 
           in the same directory as this form. ***** -->
    <IMG SRC="logo_sma.gif">

<!-- ***** Put your own heading in below ***** -->

<H1>Search the IPGRI Web Site</H1>

<!-- ***** Replace ACTION="query.idq" below with the name of your .idq file. ***** -->

<FORM ACTION="query.idq" METHOD="GET">
<pre>
Enter your query:  <INPUT TYPE="TEXT" NAME="CiRestriction" SIZE="65" MAXLENGTH="100" VALUE="">
Sorting Order:     <SELECT NAME="CiSort">
		   <OPTION VALUE="rank[d]" SELECTED>Rank (descending)
		   <OPTION VALUE="DocTitle[a]">Title (ascending)
		   <OPTION VALUE="write[d]">Document Date (descending)
		   </SELECT>

Records per page:  <SELECT NAME="CiMaxRecordsPerPage">
		   <OPTION VALUE="10" SELECTED>10
		   <OPTION VALUE="15">15
		   <OPTION VALUE="20">20
		   <OPTION VALUE="25">25
		   </SELECT>

<!-- ***** These are links to help pages in the CGIAR search directory.
You can leave them as is, or create links to your own help pages if you want. ***** -->

<INPUT TYPE="checkbox" NAME="FreeText">Use <a href="/search/ixtiphlp.htm#FreeTextQueries">Free-Text Query</a>    
<A href="/search/ixtiphlp.htm">Tips for Searching</a>

</pre>
<INPUT TYPE="SUBMIT" VALUE="Search"> <INPUT TYPE="RESET" VALUE="Reset">

<!-- ***** The CiScope parameter allows you to control which documents are searched. 
           To search only the docs in your area documents, set the value equal
           to the virtual directory where your center's content sits,
           e.g."/". ***** --> 

<INPUT TYPE="HIDDEN" NAME="CiScope" VALUE="/">

<!-- ***** The HTMLQueryForm parameter is used to create hyperlinks on the
           results page back to this search page.
           Pass in the name of this file, so that the .idq file can pass it on to the templates. ***** -->

<INPUT TYPE="HIDDEN" NAME="HTMLQueryForm" VALUE="query.htm">

<!-- ***** The TemplateName parameter allows you to control which formatting
           file should be used to format your results as a web page.
           Pass in the name of this file, so that the .idq file can pass it on to the templates. ***** -->

<INPUT TYPE="HIDDEN" NAME="TemplateName" VALUE="query.htx">

</FORM>



<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
</script>
<script type="text/javascript">
_uacct = "UA-383676-1";
urchinTracker();
</script>
</body>
</HTML>

Notes:

  1. TITLE Tag: You can change the title of the page to reflect your own web area. The DESCRIPTION keyword is used by some commercial search sites to describe the pages they include in their indexes.
  2. BODY Tag: You can change the background color or use a background image here if you wish.
  3. IMAGE Tag: Modify this tag to replace the logo on this page with your own.
  4. Heading Tag: Replace the heading at the top of the page with your own.
  5. FORM Tag: If you have saved the source of the .idq file with a name other than 'query.idq', you must use that same filename in the ACTION attribute of the FORM tag here.
  6. Links to Help Files: If you wish to provide your own help files (or not to provide any help at all), modify these hyperlinks.
  7. CiScope parameter: This parameter controls which portion of the CGIAR web site should be searched. Replace the string 'd:\inetpub\cgiarweb\ipgri\' in the VALUE attribute of the INPUT tag with the physical path to your own center's content.
    Note: This information was recently revised. You could also use a virtual path to your site, e.g. '/ipgri/', here; however, the physical path is necessary if your site is reachable via more than one alternate URL, such as both www.cgiar.org/ipgri and www.ipgri.org. On the new server where centers' web sites all reside in their own roots, use the virtual path to the root, i.e. '/'.
  8. HTMLQueryForm parameter: This parameter contains the name of your query form (the file you are currently customizing). If you save it as any filename other than 'query.htm', you must reference that filename here.
  9. TemplateName parameter: This parameter contains the name of your results format file. If you save it as any filename other than 'query.htx', you must reference that filename here.