Webboard: Designing search.htm
| Newsgroups | gmane.comp.web.mnogosearch.general |
|---|---|
| Message-ID | <[email protected]> |
Author: anthony Email: [email protected] Message: <!-- I have 3 places where you can put in banners or links. You can copy and paste this code. This setup will allow all links to show even if the page is reduced or increased. I tried it out, but I accidentally erased all my banners today, so you can't see how it works on my site. This is default template file for mnoGoSearch 3.2 (C) 1999-2001, mnoGoSearch developers team <[email protected]> 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 # Format: <DBType>:[//[DBUser[:DBPass]@]DBHost[:DBPort]]/DBName/[?dbmode=mode] #DBAddr mysql://root@localhost/test/?dbmode=blob #DBAddr mysql # Uncomment this line to enable search result cache #Cache yes # Uncomment this line if you want to detect and eliminate clones #DetectClones yes # 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 1 #MaxWordLength 32 # Number of pages in navigator bar # #PagesPerScreen 10 # Load synonyms file. File name is either absolute # or relative to /etc directory of mnoGoSearch installation. # #Synonym synonym/english.syn #Synonym synonym/russian.syn # # # 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> <h1><a href="http://www.ntopics.com/">Ntopics</a></h1> <h1></h1> <!--tonys banner 1 start--> <!--tonys banner 1 end--> <meta http-equiv="Content-Type" content="text/html; charset=$&(BrowserCharset)" /> <title>Babies Search Engine - Ntopics.com: $&(q)</title> <style type="text/css"> body { background-color: #fff; } 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> <!IF NAME="form" CONTENT="extended"> </a></p> <FORM METHOD=GET ACTION=""> <table bgcolor=#EEEEEE border=0> <TR> <TD>Search for:</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"> <small><a href="?qprev=$%(qprev)">Simple mode</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"> <small><a href="?qprev=$%(q)">Simple mode</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 </SELECT> </TD> <TD>Results per page:</TD> <TD> <SELECT NAME="ps"> <OPTION VALUE="10" SELECTED="$&(ps)">10 <OPTION VALUE="20" SELECTED="$&(ps)">20 <OPTION VALUE="50" SELECTED="$&(ps)">50 </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:</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:</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> <!ELIF NAME="form" CONTENT="hidden"> <!ELSE> <div class="center"> <form method="get" action=""> <table class="grey" summary=""> <tr> <td> <br /> Search for: <!IF NAME="q" CONTENT=""> <input type="text" name="q" value="$&(qprev)" size="50" /> <input type="submit" name="cmd" value="Search" /> <!--tony <small><a href="?form=extended&qprev=$%(qprev)">Extended</a></small> --> <!ELSE> <INPUT TYPE="text" NAME="q" VALUE="$&(q)" SIZE=50 /> <INPUT TYPE="submit" NAME="cmd" VALUE="Search" /> <!--tony <small><a href="?form=extended&qprev=$%(q)">Extended</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> <!-- tonys banner2 start--> <!--tonys banner2 end--> </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">relevancy</a> | <b>last modified date</b> | <a href="$(FirstPage)&s=SRPD&su=title">title</a><!ELSEIF NAME="s" CONTENT="SRPD"> <a href="$(FirstPage)&s=RPD">relevancy</a> | <a href="$(FirstPage)&s=DRP">last modified date</a> | <b>title</b><!ELSE> <b>relevancy</b> | <a href="$(FirstPage)&s=DRP">last modified date</a> | <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--> </a></p> <p> </p> <DL> <!IFNOT NAME="Alias" CONTENT=""><!COPY NAME="URL" CONTENT="Alias"><!ENDIF> <!IF NAME="fmt" CONTENT="url"> <DT>$(Order). <a href="$(URL)" TARGET="_blank">$(URL:40)</a> <small>[<b>$(Score)</b>]</small> <!ELSEIF NAME="fmt" CONTENT="short"> <DT>$(Order). <a href="$(URL)" TARGET="_blank"> <!IF NAME="Title" CONTENT="">$(URL:40)<!ELSE>$&(Title)<!ENDIF> </a> <small>[<b>$(Score)</b>]</small> <!ELSE> <DT>$(Order). <a href="$(URL)" TARGET="_blank"> <!IF NAME="Title" CONTENT="">$(URL:40)<!ELSE>$&(Title)<!ENDIF> </a> <small> <!-- tony start [ <b>$(Score)</b> <!IFNOT NAME="Pop_Rank" CONTENT="0.00000">Popularity: <b>$(Pop_Rank)</b><!ENDIF> ] tony end --> </small> <DD> <table width=92%> <tr> <td> <small>$&(Body)...</small> </td> </tr> <tr> <td> <UL> <li> <small> <A HREF="$(URL)" TARGET="_blank">$(URL:40)</A> <font color="#008800"> - $(Content-Length) bytes [$(Content-Type)] - $(Last-Modified) <!IFNOT NAME="stored_href" CONTENT=""> <DD><small>[<a href="$(stored_href)" TARGET="_blank">Cached copy</a>]</small></DD> <!ENDIF> <!IFNOT NAME="sitelimit_href" CONTENT=""> <!IFGT NAME="PerSite" CONTENT="0"> <DD><small> [<a href="$(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> </TD></TD>$(NL)$(NB)$(NR)</TD></TR> <!--tonys banner 3 start --> <!--tonys banner 3 end--> </TABLE> </td> </tr> </table> <!--/resbot--> <!--clone--> <!IFNOT NAME="Alias" CONTENT=""><!COPY NAME="URL" CONTENT="Alias"><!ENDIF> <li> <small> <A HREF="$(URL)" TARGET="_blank">$(URL:40)</A> <font color="#008800"> - $(Content-Length) bytes - $(Last-Modified) </font> </small> <!--/clone--> <!--navleft--> <TD><small><A HREF="$(NH)"><< Prev</A></TD> <!--/navleft--> <!--navleft_nop--> <TD><small><FONT COLOR=gray><< Prev</FONT></TD> <!--/navleft_nop--> <!--navbar1--> <TD><small><A HREF="$(NH)">$(NP)</A></TD> <!--/navbar1--> <!--navbar0--> <TD><small>$(NP)</TD> <!--/navbar0--> <!--navright--> <TD><small><A HREF="$(NH)">Next >></A></TD> <!--/navright--> <!--navright_nop--> <TD><small><FONT COLOR=gray>Next >></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="?form=extended">extended search mode</a>. <!ENDIF> </UL> <!--/notfound--> <!--noquery--> <div class="center">Please enter one or more words and press Search.</div> <!--/noquery--> <!--error--> <CENTER> <FONT COLOR="#FF0000">An error occurred!</FONT> <P><B>$(E)</B> </CENTER> <!--/error--> <!--bottom--> <table class="grey" summary=""> <tr><td> </td></tr> </table> <table class="white" summary=""> <tr> <td align="left"> <a href="http://www.mnogosearch.org/"><img class="logo" src="http://www.mnogosearch.org/img/udm.gif" alt="Powered by mnoGoSearch" /></a> <a href="http://www.mnogosearch.org/"><small>Powered by mnoGoSearch $(version) - web search engine software</small></a><br /> </td> </tr> </table> </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> <a href="http://www.mnogosearch.org/"><IMG BORDER=0 SRC="http://www.mnogosearch.org/img/udm.gif"></A> <FONT SIZE=1><A HREF="http://www.mnogosearch.org/">Powered by mnoGoSearch $(version) - web search engine software</A></FONT> </CENTER> <!--/storedoc_bottom--> Reply: <http://www.mnogosearch.org/board/message.php?id=21139>