<!--
    This is based on a default template file for mnoGoSearch 3.2
    (C) 1999-2001, mnoGoSearch developers team <devel@mnogosearch.org>

    Please rename to search.htm and edit as desired.
    See doc/msearch-templates.html for detailed information.
    You may want to keep the original file for future reference.

    WARNING: Use proper chmod to protect your passwords!
-->
<!--variables
# Database parameters are to be used with SQL backend
# and do not matter for built-in text files support
# Format: <DBType>:[//[DBUser[:DBPass]@]DBHost[:DBPort]]/DBName/[?dbmode=mode]
DBAddr	sqlite3://localhost/mnt/kjbibledata/mnogosearch.db/

# Uncomment this line to enable search result cache
#Cache yes

#  Uncomment this line if you do not want to detect and show clones
#DetectClones	no

# Use proper local and browser charsets
# Default charset is iso-8859-1 (latin1)
# which is suitable for the most Western European languages

LocalCharset   iso-8859-1
BrowserCharset iso-8859-1

# Load stopwords file.  File name is either absolute
# or relative to /etc directory of mnoGoSearch installation.
#
#StopwordFile stopwords/en.sl
#StopwordFile stopwords/ru.sl
#

#
# Minimum and maximum word lengths
#
MinWordLength 3
MaxWordLength 32

# Number of pages in navigator bar
#
PagesPerScreen 20

# Load synonyms file.  File name is either absolute
# or relative to /etc directory of mnoGoSearch installation.
#
Synonym synonym/english.syn
#Synonym synonym/russian.syn

# Add support for  variations (for example, plurals).  Note: "english.
# aff" is a  data file that's provided with the  "mnogosearch"  source
# code.  "flags.dict"  is a  data file that was created manually.  For
# more information about the latter file, including the "build" proce-
# dure used, see the text file "flagsdict.txt".

Affix en us-ascii english.aff
Spell en us-ascii flags.dict

#
# How to hilight searched words.
#
HlBeg	'<span style="background-color: #ff0; color: #f00; font-weight: bold;">'
HlEnd	'</span>'

# Uncomment this line to enable error logging to stderr
#Log2stderr yes
#

# Uncomment this line to change default maximal excerpt size. Default value is 256.
#ExcerptSize 1024
#

# Uncomment this line to change number of characters before and after search words
# in excerpts. Default value is 40.
#ExcerptPadding 64
#

# Uncomment this line to change Last-Modified format output
# Use strftime function meta variables
#DateFormat '%d %b %Y %X %Z'

# Uncomment this line if you want to generate misspelled
# search word suggestions. You need to run "indexer -Ewrdstat"
# before using this feature.
#
#Suggest yes
-->

<!--top-->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=$(BrowserCharset)" />
<title>mnoGoSearch: $&(q)</title>
<style type="text/css">
body { background-color: #fff; margin:20px; }
a { color: #00c; }
div.center { text-align: center; }
table.grey { background-color: #eee; width: 100%; }
table.white { background-color: #fff; width: 100%; }
img.logo { border: none; }
</style>
</head>

<body style="margin:20px">

<!IF NAME="form" CONTENT="extended">
<FORM METHOD=GET ACTION="$(Self)">
<table bgcolor=#EEEEEE border=0>
  <TR>
    <TD>Search for:&nbsp;</TD>
    <TD COLSPAN=4>
<!IF NAME="q" CONTENT="">
      <INPUT TYPE="text"   NAME="q"    VALUE="$&(qprev)" SIZE=50 >
      <INPUT TYPE="submit" NAME="cmd"  VALUE="Search">
      <INPUT TYPE="hidden" NAMe="form" VALUE="extended">
      &nbsp;
      <small><a href="$(self)?qprev=$%(qprev)">Simple search</a></small>
<!ELSE>
      <INPUT TYPE="text"   NAME="q"    VALUE="$&(q)" SIZE=50 >
      <INPUT TYPE="submit" NAME="cmd"  VALUE="Search">
      <INPUT TYPE="hidden" NAMe="form" VALUE="extended">
      &nbsp;
      <small><a href="$(self)?qprev=$%(q)">Simple search</a></small>
<!ENDIF>
    </TD>
  </TR>

  <TR>
    <TD>Match:</TD>
    <TD>
      <SELECT NAME="m">
        <OPTION VALUE="all"  SELECTED="$&(m)">All
        <OPTION VALUE="any"  SELECTED="$&(m)">Any
        <OPTION VALUE="bool" SELECTED="$&(m)">Boolean
      </SELECT>
    </TD>
    <TD>Results per page:</TD>
    <TD>
      <SELECT NAME="ps">
        <OPTION VALUE="20" SELECTED="$&(ps)">20
        <OPTION VALUE="50" SELECTED="$&(ps)">50
        <OPTION VALUE="10" SELECTED="$&(ps)">10
      </SELECT>
    </TD>
    <TD>Output format:</TD>
    <TD>
      <SELECT NAME="fmt">
        <OPTION VALUE="long"  SELECTED="$&(fmt)">Long
        <OPTION VALUE="short" SELECTED="$&(fmt)">Short
        <OPTION VALUE="url"   SELECTED="$&(fmt)">URL
      </SELECT>
    </TD>
  </TR>

  <TR>
    <TD>Search for:&nbsp;</TD>
    <TD>
      <SELECT NAME="wm">
        <OPTION VALUE="wrd" SELECTED="$&(wm)">Whole word
        <OPTION VALUE="beg" SELECTED="$&(wm)">Beginning
        <OPTION VALUE="end" SELECTED="$&(wm)">Ending
        <OPTION VALUE="sub" SELECTED="$&(wm)">Substring
      </SELECT>
    </TD>
    <TD>Words forms:</TD>
    <TD>
       <SELECT NAME="sp">
         <OPTION VALUE="1"  SELECTED="$&(sp)">All
         <OPTION VALUE="0" SELECTED="$&(sp)">Exact
       </SELECT>
    </TD>
    <TD>Use synonyms:</TD>
    <TD>
      <SELECT NAME="sy">
        <OPTION VALUE="1"  SELECTED="$&(sy)">Yes
        <OPTION VALUE="0" SELECTED="$&(sy)">No
      </SELECT>
    </TD>
  </TR>


  <TR>
    <TD>In:</TD>
    <TD>
      <SELECT NAME="wf">
        <OPTION VALUE="2221"  SELECTED="$&(wf)">Whole document
        <OPTION VALUE="2000"  SELECTED="$&(wf)">Description
        <OPTION VALUE="0200"  SELECTED="$&(wf)">Keywords
        <OPTION VALUE="0020"  SELECTED="$&(wf)">Title
        <OPTION VALUE="0001"  SELECTED="$&(wf)">Body
      </SELECT>
    </TD>
    <TD>Document types:</TD>
    <TD>
      <SELECT NAME="type">
        <OPTION VALUE=""           SELECTED="$&(type)">all types
        <OPTION VALUE="text/html"  SELECTED="$&(type)">text/html
        <OPTION VALUE="text/plain" SELECTED="$&(type)">text/plain
      </SELECT>
    </TD>
    <TD>
	<select name="GroupBySite">
	<option value="no" selected="$&(GroupBySite)">do not group</option>
	<option value="yes" selected="$&(GroupBySite)">group by site</option>
	</select>
    </TD>
  </TR>

  <TR>
    <TD>URL matches:&nbsp;</TD>
    <TD><INPUT TYPE="text" NAME="ul" VALUE="$&(ul)"></TD>
    <TD COLSPAN=4>
      <small>e.g. http://www.mnogosearch.org, /manual/ , index.html</small>
    </TD>
  </TR>

<!-- Uncomment this to limit database subsection by "tag" -->
<!--
  <TR>
    <TD>Search through:</TD>
    <TD>
      <SELECT NAME="t">
        <OPTION VALUE=""  SELECTED="$&(t)">All sites
        <OPTION VALUE="1" SELECTED="$&(t)">Sport
        <OPTION VALUE="2" SELECTED="$&(t)">Technology
        <OPTION VALUE="3" SELECTED="$&(t)">Shopping
      </SELECT>
    </TD>
   </TR>
-->

</table>
</form>

<!ELSE>

<div class="center">
<form method="get" action="$(Self)">
<table class="grey" summary="">
  <tr>
    <td>
      <br /> Search for:&nbsp;
<!IF NAME="q" CONTENT="">
      <input type="text"   name="q"   value="$&(qprev)" size="50" />
      <input type="submit" name="cmd" value="Search" />
      &nbsp;
      <small><a href="?form=extended&amp;qprev=$%(qprev)">Advanced search</a></small>
<!ELSE>
      <INPUT TYPE="text"   NAME="q"    VALUE="$&(q)" SIZE=50 />
      <INPUT TYPE="submit" NAME="cmd" VALUE="Search" />
      &nbsp;
      <small><a href="?form=extended&amp;qprev=$%(q)">Advanced search</a></small>
<!ENDIF>
      <br /><br />
    </td>
<!IF NAME="qid" CONTENT="">
<!ELSE>
  <tr>
    <td>
      <input type="checkbox" value="$(qid)" name="pqid">in found
    </td>
  </td>
<!ENDIF>
  </tr>
</table>
</form>
</div>

<!ENDIF>

<!--/top-->


<!--restop-->
<table bgcolor=#EEEEEE width=100% border=0>
  <tr>
    <td>
      <small>Search for <b>$&(q)</b>.</small>
      <small>Search results: <b>$(WE)</b>.</small>
    </td>
    <td>
      <small>Results <b>$(first)-$(last)</b> of <B>$(total)</B>.</small>
      <small>Search took <b>$(SearchTime)</b> seconds</small>
    </td>
  </tr>
  <tr><td colspan="2">
      Sort by:
      <!IF NAME="s" CONTENT="DRP">
      <a href="$(FirstPage)&s=RPD">relevance</a>&nbsp;|&nbsp;<b>modification date</b>&nbsp;|&nbsp;<a href="$(FirstPage)&s=SRPD&su=title">title</a><!ELSEIF NAME="s" CONTENT="SRPD">
      <a href="$(FirstPage)&s=RPD">relevance</a>&nbsp;|&nbsp;<a href="$(FirstPage)&s=DRP">modification date</a>&nbsp;|&nbsp;<b>title</b><!ELSE>
      <b>relevance</b>&nbsp;|&nbsp;<a href="$(FirstPage)&s=DRP">modification date</a>&nbsp;|&nbsp;<a href="$(FirstPage)&s=SRPD&su=title">title</a><!ENDIF>
  </td></tr>
</table>

<!IFGT NAME="StrictModeFound" CONTENT="0">
<table bgcolor=#EEEEEE width=100% border=0>
<tr><td>
Too few results were found in strict mode: $(StrictModeFound)
<tr><td>
Displaying results in less strict mode.
</table>
<!ENDIF>
<!--/restop-->


<!--res-->
<DL>
<!IFNOT NAME="Alias" CONTENT=""><!COPY NAME="URL" CONTENT="Alias"><!ENDIF>
<!IF   NAME="fmt" CONTENT="url">
  <DT>$(Order).
  <a href="$(URL)">$(URL:40)</a>
  <small>[<b>$(Score)</b>]</small>
<!ELSEIF NAME="fmt" CONTENT="short">
  <DT>$(Order).
  <a href="$(URL)">
    <!IF NAME="Title" CONTENT="[no title]">$(URL:40)<!ELSE>$&(Title)<!ENDIF>
  </a>
  <small>[<b>$(Score)</b>]</small>
<!ELSE>
  <DT>$(Order).
  <a href="$(URL)">
    <!IF NAME="Title" CONTENT="[no title]">$(URL:40)<!ELSE>$&(Title)<!ENDIF>
  </a>
  <small>[<b>$(Score)</b>]</small>
  <DD>
  <table width=60%>
    <tr>
      <td>
        <small>$&(Body)...</small>
      </td>
    </tr>
    <tr>
      <td>
        <UL>
         <li>
           <small>
             <A HREF="$(URL)">$(URL:40)</A>
             <font color="#008800">
              - $(Content-Length) bytes [$(Content-Type)] 
              - $(Last-Modified) 
	      <!IFNOT NAME="CachedCopy" CONTENT="">
	      <DD>[<a href="$(stored_href)">Matches in context</a>]</DD>
	      <!ENDIF>
	      <!IFNOT NAME="sitelimit_href" CONTENT="">
	      <!IFNOT NAME="PerSite" CONTENT="0">
	      <DD><small>
              [<a href="$(self)$(sitelimit_href)">More results from this site ($(PerSite) total) </a>]
	      </small></DD>
	      <!ENDIF>
	      <!ENDIF>
             </font>
           </small>
           <BR>
           $(CL)
        </UL>
        $(STORED)
	
      </td>
    </tr>
  </table>
  
<!ENDIF>
</DL>
<!--/res-->


<!--resbot-->
<table width=100% bgcolor=#FFFFFF>
  <tr>
    <td align=center>
      <TABLE BORDER=0>
        <TR><TD><small>Result pages: <TD>&nbsp;</TD></TD>$(NL)$(NB)$(NR)</TD></TR>
      </TABLE>
    </td>
  </tr>
</table>
<!--/resbot-->


<!--clone-->
<!IFNOT NAME="Alias" CONTENT=""><!COPY NAME="URL" CONTENT="Alias"><!ENDIF>
<li>
<small>
  <A HREF="$(URL)">$(URL:40)</A>
  <font color="#008800">
  - $(Content-Length) bytes
  - $(Last-Modified) 
  </font>
</small>
<!--/clone-->


<!--navleft-->
<TD><small><A HREF="$(self)$(NH)">&lt;&lt; Prev</A></TD>
<!--/navleft-->

<!--navleft_nop-->
<TD><small><FONT COLOR=gray>&lt;&lt; Prev</FONT></TD>
<!--/navleft_nop-->

<!--navbar1-->
<TD><small><A HREF="$(self)$(NH)">$(NP)</A></TD>
<!--/navbar1-->

<!--navbar0-->
<TD><small>$(NP)</TD>
<!--/navbar0-->

<!--navright-->
<TD><small><A HREF="$(self)$(NH)">Next &gt;&gt;</A></TD>
<!--/navright-->

<!--navright_nop-->
<TD><small><FONT COLOR=gray>Next &gt;&gt;</FONT></TD>
<!--/navright_nop-->



<!--notfound-->
<!IFNOT NAME="WS" CONTENT="">
Did you mean <b><a href="?q=$%(WS)">$(WS)</a></b>?
<!ENDIF>
<table bgcolor=#EEEEEE width=100%>
  <tr>
    <td>
      <small>Search for <b>$&(q)</b>.</small>
      <small>Search results: <b>$(WE)</b></small>
    </td>
  </tr>
</table>

<p>
Sorry, your search for <b>$&(q)</b> did not find any results.<br>
No documents were found containing <b>"$&(q)"</b>.<br>

<p>
Suggestions:
<UL>
  <LI> Make sure all words are spelled correctly.
  <LI> Try different keywords.
  <LI> Try more general keywords. 
<!IFNOT NAME="form" CONTENT="extended">
  Also, you can try <a href="$(self)?form=extended">extended search mode</a>.
<!ENDIF>
</UL>
<!--/notfound-->

<!--noquery-->
<div class="center"><p align="justify">Enter one or more words and
press Search.
</p>
</div>
<!--/noquery-->

<!--error-->
<CENTER>
<FONT COLOR="#FF0000">An error occurred!</FONT>
<P><B>$(E)</B>
</CENTER>
<!--/error-->

<!--bottom-->
<table class="grey" summary="">
  <tr><td>&nbsp;</td></tr>
</table>

<table class="white" summary="">
<tr>
    <td align="left">
    <img class="logo" src="/images/udmlogo.gif" alt="Powered by mnogosearch" /><br />
<font size="2">Powered by mnoGoSearch</font>
    </td>
</tr>
</table>
<br><p></p>
</body>
</html>
<!--/bottom-->

<!--storedoc_top-->
<BASE HREF="$(URL)">

<table border="1" cellpadding="2" cellspacing="0"><tr>
<td><b>Document ID:</b> $(ID)</td>
<td><b>Last modified:</b> $(Last-Modified)</td>
<td><b>Language:</b> $(Content-Language)</td>
<td><b>Charset:</b> $(Charset)</td>
<td><b>Size:</b> $(Content-Length)</td>
</tr></table>
<hr>
<!--/storedoc_top-->

<!--storedoc-->
$^(document)
<!--/storedoc-->

<!--storedoc_bottom-->
<hr>

<center>
<img src="/images/udmlogo.gif">
<font size="2">Powered by mnoGoSearch</font>
</center>
<br><p></p>
</body>
</html>
<!--/storedoc_bottom-->
