The Simple theme is composed of the following forms:
Simple Search Form
The Simple search form template, smplsrcp.hts, provides a query text box.
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>
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.
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>
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>