The Standard theme is composed of the following forms:
Standard Search Form
The Standard search form template, stndsrcp.hts, provides a multiline query text box, and checkboxes for the collections available to the search.
stndsrcp.hts. It is only a portion of stndsrcp.hts and is out of context from the whole file which is required for processing.
- <FORM METHOD="GET" ACTION="$$VTopicScriptName">
- <INPUT TYPE=HIDDEN NAME="Action" VALUE="Search">
- <INPUT TYPE=HIDDEN NAME="AdminImagePath" VALUE="$$AdminImagePath">
- <INPUT TYPE=HIDDEN NAME="ServerKey" VALUE="$$ServerKey">
- <INPUT TYPE=HIDDEN NAME="ResultTemplate" VALUE="stndrslp.hts">
- <INPUT TYPE=HIDDEN NAME="Theme" VALUE="$$Theme">
- <INPUT TYPE=HIDDEN NAME="Company" VALUE="$$Company">
- <DD><H4>Collections:</H4>
- <% x = 0 %>
- <% coll_count = Count( Collections ) %>
- <% if coll_count > 0 %>
- <CENTER>
- <TABLE BORDER=0 WIDTH=100%>
- <% foreach coll in Collections %>
- <%-- trim out the collections that are not enabled or is not in the default list --%>
- <% if exists( coll.state ) AND 0 = StrComp( coll.state, "Enabled" ) %>
- <% if exists( coll.defaultList ) AND 0 = StrComp( coll.defaultList, "True" ) %>
- <% x = x + 1 %>
- <% if x % 2 %>
- <TR>
- <TD WIDTH=25%></TD>
- <TD><INPUT TYPE="checkbox" NAME="collection" VALUE="$$coll.Alias" CHECKED>$$coll.Name</TD>
- <% else %>
- <TD><INPUT TYPE="checkbox" NAME="collection" VALUE="$$coll.Alias" CHECKED>$$coll.Name</TD>
- </TR>
- <% endif %>
- <% endif %>
- <% endif %>
- <% endfor %>
- <% if x % 2 %>
- </TR>
- <% endif %>
- </TABLE>
- </CENTER>
- <% else %>
- <DD>No collections.
- <% endif %>
- <BR>
- <BR>
- <CENTER>
- <TABLE BORDER=0>
- <TR>
- <TD COLSPAN=2><b>Enter words or phrases, separated by commas:</b></TD>
- </TR>
- <TR>
- <TD COLSPAN=2><TEXTAREA NAME="QueryText" ROWS=2 COLS=50></TEXTAREA></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>
stndrslp.hts, displays the document hits with a score and title on one line, followed by the document's URL and a brief excerpt. For more information on navigation links, including source, see "Navigation Links" above.
stndrslp.hts. It is only a portion of stndrslp.hts and is out of context from the whole file which is required for processing.
- <FONT FACE=Arial SIZE=2>Your Query
- "<B><% PrintHtmlEsc($$QueryText) %></B>"
- matched $$docsFound documents out of $$docsSearched. <BR>
- $$docsCount documents displayed. </FONT>
- <P>
- <TABLE>
- <% Foreach Doc in Result.Documents %>
- <DT>$$doc.Score
- <A HREF="<%$$doc.url_HTML%>ViewTemplate=<% PrintUrlEsc("stndviep.hts") %>&ServerKey=$$ServerKey&AdminImagePath=<% PrintUrlEsc(AdminImagePath) %>&Theme=$$Theme&Company=<%PrintUrlEsc(Company)%>">
- <% If exist(doc.Title) Then %>
- $$doc.Title
- <% Else %>
- No Title
- <% EndIf %>
- </A></B><UL>
- <I>
- <% If exists(doc.Content_Length) Then %>
- $$doc.Content_Length bytes,
- <% EndIf %>
- <% If exists(doc.Modified) AND NOT IsEmpty(doc.Modified) Then %>
- $$doc.Modified,
- <% EndIf %>
- <% If exists(doc.URL) AND NOT IsEmpty(doc.URL) Then %>
- <% len = InStr(doc.URL, "?") %>
- <% If len = 0 Then %>
- $$doc.URL
- <% Else %>
- <% Left(doc.Url, Val(len)-1) %>
- <% EndIf %>
- <% EndIf %>
- </I>
- <% If exists(doc.snippet) AND NOT IsEmpty(doc.snippet) Then %>
- <BR><B>Excerpt: </B> <% Left(doc.snippet,160) %>...<P></UL>
- <% EndIf %>
- </dl>
- <% endfor %>
- </TABLE>
stndviep.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>