mirror of https://github.com/tongzx/nt5src
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
298 lines
12 KiB
298 lines
12 KiB
<HTML>
|
|
|
|
<!--
|
|
<%CiTemplate%>
|
|
|
|
This is the formatting page for query results. This file defines
|
|
how the result page header, rows, and footer will appear.
|
|
-->
|
|
|
|
<HEAD>
|
|
<!-- The title lists the # of documents -->
|
|
|
|
<%if CiMatchedRecordCount eq 0%>
|
|
<TITLE><%SearchString%> - no documents matched.</TITLE>
|
|
<%else%>
|
|
<TITLE><%SearchString%> - documents <%CiFirstRecordNumber%> to <%CiLastRecordNumber%></TITLE>
|
|
<%endif%>
|
|
</HEAD>
|
|
|
|
<BODY BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#000066" VLINK="#808080" ALINK="#FF0000" TOPMARGIN=0>
|
|
|
|
<TABLE>
|
|
<TR>
|
|
<TD><IMG SRC ="/samples/search/64x_book.jpg" ALIGN=Middle></TD>
|
|
<TD VALIGN=MIDDLE><H1>Index Server</H1><br><center><h2>Search Results</h2></center></TD>
|
|
</TR>
|
|
</TABLE>
|
|
|
|
<!-- Print a header that lists the query and the number of hits -->
|
|
|
|
<H5>
|
|
<%if CiMatchedRecordCount eq 0%>
|
|
No documents matched the query "<%SearchString%>".
|
|
<%else%>
|
|
Documents <%CiFirstRecordNumber%> to <%CiLastRecordNumber%> of
|
|
<%if CiMatchedRecordCount eq CiMaxRecordsInResultSet%>
|
|
the best
|
|
<%endif%>
|
|
<%CiMatchedRecordCount%> matching the query
|
|
"<%SearchString%>".
|
|
<%endif%>
|
|
</H5>
|
|
|
|
<!--
|
|
This table has a link to a new query page, a previous button, and
|
|
a next page button. The buttons are only displayed when appropriate.
|
|
-->
|
|
|
|
<TABLE WIDTH=80%>
|
|
|
|
<!--
|
|
Query.htm set HTMLQueryForm as the name of the page to return to
|
|
for a new query.
|
|
-->
|
|
|
|
<TD> <A HREF="<%HTMLQueryForm%>">New query</A> </TD>
|
|
|
|
<!-- Define a "previous" button if this isn't the first page -->
|
|
|
|
<%if CiContainsFirstRecord eq 0%>
|
|
<TD ALIGN=LEFT>
|
|
<FORM ACTION="/scripts/samples/search/newsqry.idq" METHOD="GET">
|
|
<INPUT TYPE="HIDDEN"
|
|
NAME="CiBookMark" VALUE="<%CiBookMark%>" >
|
|
<INPUT TYPE="HIDDEN"
|
|
NAME="CiBookmarkSkipCount" VALUE="-<%CiMaxRecordsPerPage%>" >
|
|
<INPUT TYPE="HIDDEN"
|
|
NAME="CiMaxRecordsInResultSet" VALUE="<%CiMaxRecordsInResultSet%>" >
|
|
<INPUT TYPE="HIDDEN"
|
|
NAME="SearchString" VALUE="<%SearchString%>" >
|
|
<INPUT TYPE="HIDDEN"
|
|
NAME="Area" VALUE="<%Area%>" >
|
|
<INPUT TYPE="HIDDEN"
|
|
NAME="CiMaxRecordsPerPage" VALUE="<%CiMaxRecordsPerPage%>" >
|
|
<INPUT TYPE="HIDDEN"
|
|
NAME="TemplateName" VALUE="<%TemplateName%>" >
|
|
<INPUT TYPE="HIDDEN"
|
|
NAME="CiSort" VALUE="<%CiSort%>" >
|
|
<INPUT TYPE="HIDDEN"
|
|
NAME="HTMLQueryForm" VALUE="<%HTMLQueryForm%>" >
|
|
<INPUT TYPE="SUBMIT"
|
|
VALUE="Previous <%CiMaxRecordsPerPage%> documents">
|
|
</FORM>
|
|
</TD>
|
|
<%endif%>
|
|
|
|
<!-- Define a "next" button if this isn't the last page -->
|
|
|
|
<%if CiContainsLastRecord eq 0%>
|
|
<TD ALIGN=RIGHT>
|
|
<FORM ACTION="/scripts/samples/search/newsqry.idq" METHOD="GET">
|
|
<INPUT TYPE="HIDDEN"
|
|
NAME="CiBookMark" VALUE="<%CiBookMark%>" >
|
|
<INPUT TYPE="HIDDEN"
|
|
NAME="CiBookmarkSkipCount" VALUE="<%CiMaxRecordsPerPage%>" >
|
|
<INPUT TYPE="HIDDEN"
|
|
NAME="CiMaxRecordsInResultSet" VALUE="<%CiMaxRecordsInResultSet%>" >
|
|
<INPUT TYPE="HIDDEN"
|
|
NAME="SearchString" VALUE="<%SearchString%>" >
|
|
<INPUT TYPE="HIDDEN"
|
|
NAME="Area" VALUE="<%Area%>" >
|
|
<INPUT TYPE="HIDDEN"
|
|
NAME="CiMaxRecordsPerPage" VALUE="<%CiMaxRecordsPerPage%>" >
|
|
<INPUT TYPE="HIDDEN"
|
|
NAME="TemplateName" VALUE="<%TemplateName%>" >
|
|
<INPUT TYPE="HIDDEN"
|
|
NAME="CiSort" VALUE="<%CiSort%>" >
|
|
<INPUT TYPE="HIDDEN"
|
|
NAME="HTMLQueryForm" VALUE="<%HTMLQueryForm%>" >
|
|
<INPUT TYPE="SUBMIT"
|
|
VALUE="Next <%CiRecordsNextPage%> documents">
|
|
</FORM>
|
|
</TD>
|
|
<%endif%>
|
|
</TABLE>
|
|
|
|
<HR>
|
|
|
|
<!--
|
|
The begindetail/enddetail section describes how each row of output
|
|
is be formatted. The sample below prints:
|
|
|
|
- record number
|
|
- document title (if one exists) or virtual path of the file
|
|
- the abstract for the file
|
|
- the url for the file
|
|
- the file's size and last write time
|
|
|
|
If the hit highlighting is for a news article, prepend the vpath with $cinews to
|
|
effect correct behavior from the webhits application.
|
|
-->
|
|
|
|
<dl>
|
|
|
|
<%begindetail%>
|
|
|
|
<p>
|
|
<dt>
|
|
<%CiCurrentRecordNumber%>.
|
|
<%if DocTitle isempty%>
|
|
<%if NewsSubject isempty%>
|
|
<b><a href="<%EscapeURL vpath%>"><%filename%></a></b>
|
|
<%else%>
|
|
<b><a href="news://<%server_name%>/<%EscapeURL NewsMsgid%>"><%NewsSubject%></a></b>
|
|
<%endif%>
|
|
<%else%>
|
|
<b><a href="<%EscapeURL vpath%>"><%DocTitle%></a></b>
|
|
<%endif%>
|
|
<dd>
|
|
<%if NewsSubject isempty%>
|
|
<b><i>Abstract: </i></b><%characterization%>
|
|
<br>
|
|
<cite>
|
|
<a href="<%EscapeURL vpath%>">http://<%server_name%><%vpath%></a>
|
|
<font size=-1> - <%if size eq ""%>(size and time unknown)<%else%>size <%size%> bytes - <%write%> GMT<%endif%></font>
|
|
<BR>
|
|
<a href="http://<%server_name%>/scripts/samples/search/webhits.exe<%escapeURL vpath%>?CiRestriction=<%escapeURL CiRestriction%>&CiTemplateFile=/scripts/samples/search/qsumrhit.htw&CiQueryFile=/scripts/samples/search/queryhit.idq&CiBeginHilite=<%escapeURL <font color="#FF0000"><b><em>%>&CiEndHilite=<%escapeURL </em></b></font>%>&CiUserParam3=<%escapeURL HTMLQueryForm%>"><b>Show Highlights (condensed)</b></a> /
|
|
<a href="http://<%server_name%>/scripts/samples/search/webhits.exe<%escapeURL vpath%>?CiRestriction=<%escapeURL CiRestriction%>&CiTemplateFile=/scripts/samples/search/qfullhit.htw&CiQueryFile=/scripts/samples/search/queryhit.idq&CiBeginHilite=<%escapeURL <font color="#FF0000"><b><em>%>&CiEndHilite=<%escapeURL </em></b></font>%>&CiUserParam3=<%escapeURL HTMLQueryForm%>&CiHiliteType=Full"><b>Show Highlights (full text)</b></a>
|
|
<BR>
|
|
</cite>
|
|
<%else%>
|
|
<b><i>Posted to: </i></b><A HREF="news://<%server_name%>/<%NewsGroup%>"><%NewsGroup%></A><br>
|
|
<b><i>Cross-Posted to: </i></b><%NewsGroups%><br>
|
|
<b><i>By: </i></b><%NewsFrom%><br>
|
|
<b><i>Abstract: </i></b><%characterization%>
|
|
<cite>
|
|
<font size=-1> - <%if size eq ""%>(size and time unknown)<%else%>size <%size%> bytes - <%write%> GMT<%endif%></font>
|
|
<BR>
|
|
<a href="http://<%server_name%>/scripts/samples/search/webhits.exe/$cinews<%escapeURL vpath%>?CiRestriction=<%escapeURL SearchString%>&CiTemplateFile=/scripts/samples/search/news2.htw&CiQueryFile=/scripts/samples/search/queryhit.idq&CiUserParam1=<%EscapeURL NewsMsgid%>&CiUserParam2=<%EscapeURL NewsSubject%>&CiUserParam3=<%escapeURL HTMLQueryForm%>&CiUserParam4=<%escapeURL newsfrom%>&CiUserParam5=<%escapeURL server_name%>&CiUserParam6=<%escapeURL newsgroup%>"><b>Show highlights (summary)</b></a>
|
|
|
|
<a href="http://<%server_name%>/scripts/samples/search/webhits.exe/$cinews<%escapeURL vpath%>?CiRestriction=<%escapeURL SearchString%>&CiHiliteType=Full&CiTemplateFile=/scripts/samples/search/news1.htw&CiQueryFile=/scripts/samples/search/queryhit.idq&CiBeginHilite=<%escapeURL <font color="#FF0000"><b><em>%>&CiEndHilite=<%escapeURL </em></b></font>%>&CiUserParam1=<%EscapeURL NewsMsgid%>&CiUserParam2=<%EscapeURL NewsSubject%>&CiUserParam3=<%escapeURL HTMLQueryForm%>&CiUserParam4=<%escapeURL newsfrom%>&CiUserParam5=<%escapeURL server_name%>&CiUserParam6=<%escapeURL newsgroup%>"><b>Show highlights (full text)</b></a>
|
|
<BR>
|
|
</cite>
|
|
<%endif%>
|
|
|
|
<%enddetail%>
|
|
|
|
</dl>
|
|
<P>
|
|
|
|
<!-- Only display a line if there were any hits that matched the query -->
|
|
|
|
<%if CiMatchedRecordCount ne 0%>
|
|
<HR>
|
|
<%endif%>
|
|
|
|
<TABLE WIDTH=80%>
|
|
|
|
<!--
|
|
Query.htm set HTMLQueryForm as the name of the page to return to
|
|
for a new query.
|
|
-->
|
|
|
|
<TD> <A HREF="<%HTMLQueryForm%>">New query</A> </TD>
|
|
|
|
<!-- Define a "previous" button if this isn't the first page -->
|
|
|
|
<%if CiContainsFirstRecord eq 0%>
|
|
<TD ALIGN=LEFT>
|
|
<FORM ACTION="/scripts/samples/search/newsqry.idq" METHOD="GET">
|
|
<INPUT TYPE="HIDDEN"
|
|
NAME="CiBookMark" VALUE="<%CiBookMark%>" >
|
|
<INPUT TYPE="HIDDEN"
|
|
NAME="CiBookmarkSkipCount" VALUE="-<%CiMaxRecordsPerPage%>" >
|
|
<INPUT TYPE="HIDDEN"
|
|
NAME="CiMaxRecordsInResultSet" VALUE="<%CiMaxRecordsInResultSet%>" >
|
|
<INPUT TYPE="HIDDEN"
|
|
NAME="SearchString" VALUE="<%SearchString%>" >
|
|
<INPUT TYPE="HIDDEN"
|
|
NAME="Area" VALUE="<%Area%>" >
|
|
<INPUT TYPE="HIDDEN"
|
|
NAME="CiMaxRecordsPerPage" VALUE="<%CiMaxRecordsPerPage%>" >
|
|
<INPUT TYPE="HIDDEN"
|
|
NAME="TemplateName" VALUE="<%TemplateName%>" >
|
|
<INPUT TYPE="HIDDEN"
|
|
NAME="CiSort" VALUE="<%CiSort%>" >
|
|
<INPUT TYPE="HIDDEN"
|
|
NAME="HTMLQueryForm" VALUE="<%HTMLQueryForm%>" >
|
|
<INPUT TYPE="SUBMIT"
|
|
VALUE="Previous <%CiMaxRecordsPerPage%> documents">
|
|
</FORM>
|
|
</TD>
|
|
<%endif%>
|
|
|
|
<!-- Define a "next" button if this isn't the last page -->
|
|
|
|
<%if CiContainsLastRecord eq 0%>
|
|
<TD ALIGN=RIGHT>
|
|
<FORM ACTION="/scripts/samples/search/newsqry.idq" METHOD="GET">
|
|
<INPUT TYPE="HIDDEN"
|
|
NAME="CiBookMark" VALUE="<%CiBookMark%>" >
|
|
<INPUT TYPE="HIDDEN"
|
|
NAME="CiBookmarkSkipCount" VALUE="<%CiMaxRecordsPerPage%>" >
|
|
<INPUT TYPE="HIDDEN"
|
|
NAME="CiMaxRecordsInResultSet" VALUE="<%CiMaxRecordsInResultSet%>" >
|
|
<INPUT TYPE="HIDDEN"
|
|
NAME="SearchString" VALUE="<%SearchString%>" >
|
|
<INPUT TYPE="HIDDEN"
|
|
NAME="Area" VALUE="<%Area%>" >
|
|
<INPUT TYPE="HIDDEN"
|
|
NAME="CiMaxRecordsPerPage" VALUE="<%CiMaxRecordsPerPage%>" >
|
|
<INPUT TYPE="HIDDEN"
|
|
NAME="TemplateName" VALUE="<%TemplateName%>" >
|
|
<INPUT TYPE="HIDDEN"
|
|
NAME="CiSort" VALUE="<%CiSort%>" >
|
|
<INPUT TYPE="HIDDEN"
|
|
NAME="HTMLQueryForm" VALUE="<%HTMLQueryForm%>" >
|
|
<INPUT TYPE="SUBMIT"
|
|
VALUE="Next <%CiRecordsNextPage%> documents">
|
|
</FORM>
|
|
</TD>
|
|
<%endif%>
|
|
</TABLE>
|
|
|
|
<P><BR>
|
|
|
|
<!--
|
|
If the index is out of date (for example, if it's still being created
|
|
or updated after changes to files in an indexed directory) let the
|
|
user know.
|
|
-->
|
|
|
|
<%if CiOutOfDate ne 0%>
|
|
<P>
|
|
<I><B>The index is out of date.</B></I><BR>
|
|
<%endif%>
|
|
|
|
<!--
|
|
If the query was not executed because it needed to enumerate to
|
|
resolve the query instead of using the index, but CiForceUseCi
|
|
was TRUE, let the user know
|
|
-->
|
|
|
|
<%if CiQueryIncomplete ne 0%>
|
|
<P>
|
|
<I><B>The query is too expensive to complete.</B></I><BR>
|
|
<%endif%>
|
|
|
|
<!--
|
|
If the query took too long to execute (for example, if too much work
|
|
was required to resolve the query), let the user know
|
|
-->
|
|
|
|
<%if CiQueryTimedOut ne 0%>
|
|
<P>
|
|
<I><B>The query took too long to complete.</B></I><BR>
|
|
<%endif%>
|
|
|
|
|
|
<!-- Output a page number and count of pages -->
|
|
|
|
<%if CiTotalNumberPages gt 0%>
|
|
<P>
|
|
Page <%CiCurrentPageNumber%> of <%CiTotalNumberPages%>
|
|
<P>
|
|
<%endif%>
|
|
|
|
</HTML>
|