The Simple Theme


The Simple theme is composed of the following forms:
File
Description
smplsrcp.hts
Simple search form. Displays a single line text-box for the query with no other options.
smplrslp.hts
Simple results list. Displays a single line results list showing score and title. Allows navigation by page number.
smplviep.hts
Simple document view form. Allows navigation to previous and next documents, and back to results list.

Simple Search Form

The Simple search form template, smplsrcp.hts, provides a query text box.

Following is the HTML form and SEARCHScript source for smplsrcp.hts. It is only a portion of smplsrcp.hts and is out of context from the whole file which is required for processing.


<FORM METHOD="POST" ACTION="$$vtopicscriptname">
<INPUT TYPE=HIDDEN NAME="Action" VALUE="Search">
<INPUT TYPE=HIDDEN NAME="ServerKey" VALUE="$$ServerKey">
<INPUT TYPE=HIDDEN NAME="ResultTemplate" VALUE="smplrslp.hts">
<INPUT TYPE=HIDDEN NAME="Theme" VALUE="$$Theme">
<INPUT TYPE=HIDDEN NAME="Company" VALUE="$$Company">
<CENTER>
<TABLE BORDER=0>
<TR>
<TD COLSPAN=2><b>Enter words or phrases, separated by commas:</b></TD>
</TR>
<TR>
<TD COLSPAN=2><INPUT NAME="queryText" size=55 VALUE=""></TD>
</TR>
<TR>
<TD><INPUT TYPE="image" SRC="/search97img/search.gif" NAME="SEARCH-97" ALT="Search" BORDER=0></TD>
<TD ALIGN=RIGHT><INPUT TYPE="reset" VALUE=" Clear "></TD>
</TR>
</TABLE>
</CENTER>
</FORM>

Simple Results Template

The Simple results template, smplrslp.hts, displays the document hits in a list with the document score and title. For more information on navigation links, including source, see "Navigation Links" above.

Following is some of the HTML and SEARCHScript source for smplrslp.hts. It is only a portion of smplrslp.hts and is out of context from the whole file which is required for processing.


<TABLE>
<TR><TH>Score</TH><TH ALIGN="left">Title</TH></TR>
<% Foreach Doc in Result.Documents %>
<TR>
<TD>$$Doc.Score</TD>
<TD>
<A HREF="<%$$Doc.URL_HTML%>hlnavigate=off&ViewTemplate=<% PrintUrlEsc("smplviep.hts") %>&ServerKey=$$ServerKey&AdminImagePath=<% PrintUrlEsc(AdminImagePath) %>&Theme=$$Theme&Company=<%PrintUrlEsc(Company)%>">
<% If exists(Doc.Title) Then %>
$$Doc.Title
<% Else %>
No Title
<% EndIf %>
</A>
</TD>
</TR>
<% Endfor %>
</TABLE>

Simple Viewer Template

The Simple viewer template, smplviep.hts, displays the full body of a document and provides navigation links.

The document view templates are identical in how they work, basically only differing in the text string declaring to which theme they belong. These templates, smplviep.hts, stndviep.hts, pwerviep.hts, advsviep.hts, and allviep.hts, have been separated by file name to make it easier for you to customize and maintain them by theme.

The basic building block, used in all the document view templates, for displaying the full body of a document is:


<BR>
<% HTMLBodyPrint %>
<BR>
The rest of the template is composed of HTML for formatting the look of the page, and SEARCHScript navigation links for returning to the results list and viewing the next or previous document. For more information on navigation links, including source, see "Navigation Links" above.

For more information on customizing the document view template, see the SEARCHScript Reference Guide.





Copyright © 1998, Verity, Inc. All rights reserved.