Source code of Windows XP (NT5)
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.

284 lines
10 KiB

  1. <HTML>
  2. <!--
  3. <%CiTemplate%>
  4. This is the formatting page for query results. This file defines
  5. how the result page header, rows, and footer will appear.
  6. -->
  7. <HEAD>
  8. <!-- The title lists the # of documents -->
  9. <%if CiMatchedRecordCount eq 0%>
  10. <TITLE><%CiRestriction%> - no documents matched.</TITLE>
  11. <%else%>
  12. <TITLE><%CiRestriction%> - documents <%CiFirstRecordNumber%> to <%CiLastRecordNumber%></TITLE>
  13. <%endif%>
  14. </HEAD>
  15. <BODY BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#000066" VLINK="#808080" ALINK="#FF0000" TOPMARGIN=0>
  16. <TABLE>
  17. <TR>
  18. <TD><IMG SRC ="/samples/search/64x_book.jpg" ALIGN=Middle></TD>
  19. <TD VALIGN=MIDDLE><H1>Index Server</H1><br><center><h2>Search Results</h2></center></TD>
  20. </TR>
  21. </TABLE>
  22. <!-- Print a header that lists the query and the number of hits -->
  23. <H5>
  24. <%if CiMatchedRecordCount eq 0%>
  25. No documents matched the query "<%CiRestriction%>".
  26. <%else%>
  27. Documents <%CiFirstRecordNumber%> to <%CiLastRecordNumber%> of
  28. <%if CiMatchedRecordCount eq CiMaxRecordsInResultSet%>
  29. the best
  30. <%endif%>
  31. <%CiMatchedRecordCount%> matching the query
  32. "<%CiRestriction%>".
  33. <%endif%>
  34. </H5>
  35. <!--
  36. This table has a link to a new query page, a previous button, and
  37. a next page button. The buttons are only displayed when appropriate.
  38. -->
  39. <TABLE WIDTH=80%>
  40. <!--
  41. Query.htm set HTMLQueryForm as the name of the page to return to
  42. for a new query.
  43. -->
  44. <TD> <A HREF="<%HTMLQueryForm%>">New query</A> </TD>
  45. <!-- Define a "previous" button if this isn't the first page -->
  46. <%if CiContainsFirstRecord eq 0%>
  47. <TD ALIGN=LEFT>
  48. <FORM ACTION="/scripts/samples/search/queryhit.idq" METHOD="GET">
  49. <INPUT TYPE="HIDDEN"
  50. NAME="CiBookMark" VALUE="<%CiBookMark%>" >
  51. <INPUT TYPE="HIDDEN"
  52. NAME="CiBookmarkSkipCount" VALUE="-<%EscapeRAW CiMaxRecordsPerPage%>" >
  53. <INPUT TYPE="HIDDEN"
  54. NAME="CiMaxRecordsInResultSet" VALUE="<%EscapeRAW CiMaxRecordsInResultSet%>" >
  55. <INPUT TYPE="HIDDEN"
  56. NAME="CiRestriction" VALUE="<%CiRestriction%>" >
  57. <INPUT TYPE="HIDDEN"
  58. NAME="CiMaxRecordsPerPage" VALUE="<%EscapeRAW CiMaxRecordsPerPage%>" >
  59. <INPUT TYPE="HIDDEN"
  60. NAME="CiScope" VALUE="<%CiScope%>" >
  61. <INPUT TYPE="HIDDEN"
  62. NAME="TemplateName" VALUE="<%TemplateName%>" >
  63. <INPUT TYPE="HIDDEN"
  64. NAME="CiSort" VALUE="<%CiSort%>" >
  65. <INPUT TYPE="HIDDEN"
  66. NAME="HTMLQueryForm" VALUE="<%HTMLQueryForm%>" >
  67. <INPUT TYPE="SUBMIT"
  68. VALUE="Previous <%CiMaxRecordsPerPage%> documents">
  69. </FORM>
  70. </TD>
  71. <%endif%>
  72. <!-- Define a "next" button if this isn't the last page -->
  73. <%if CiContainsLastRecord eq 0%>
  74. <TD ALIGN=RIGHT>
  75. <FORM ACTION="/scripts/samples/search/queryhit.idq" METHOD="GET">
  76. <INPUT TYPE="HIDDEN"
  77. NAME="CiBookMark" VALUE="<%CiBookMark%>" >
  78. <INPUT TYPE="HIDDEN"
  79. NAME="CiBookmarkSkipCount" VALUE="<%EscapeRAW CiMaxRecordsPerPage%>" >
  80. <INPUT TYPE="HIDDEN"
  81. NAME="CiMaxRecordsInResultSet" VALUE="<%EscapeRAW CiMaxRecordsInResultSet%>" >
  82. <INPUT TYPE="HIDDEN"
  83. NAME="CiRestriction" VALUE="<%CiRestriction%>" >
  84. <INPUT TYPE="HIDDEN"
  85. NAME="CiMaxRecordsPerPage" VALUE="<%EscapeRAW CiMaxRecordsPerPage%>" >
  86. <INPUT TYPE="HIDDEN"
  87. NAME="CiScope" VALUE="<%CiScope%>" >
  88. <INPUT TYPE="HIDDEN"
  89. NAME="TemplateName" VALUE="<%TemplateName%>" >
  90. <INPUT TYPE="HIDDEN"
  91. NAME="CiSort" VALUE="<%CiSort%>" >
  92. <INPUT TYPE="HIDDEN"
  93. NAME="HTMLQueryForm" VALUE="<%HTMLQueryForm%>" >
  94. <INPUT TYPE="SUBMIT"
  95. VALUE="Next <%CiRecordsNextPage%> documents">
  96. </FORM>
  97. </TD>
  98. <%endif%>
  99. </TABLE>
  100. <HR>
  101. <!--
  102. The begindetail/enddetail section describes how each row of output
  103. is be formatted. The sample below prints:
  104. - record number
  105. - document title (if one exists) or virtual path of the file
  106. - the abstract for the file
  107. - the url for the file
  108. - the file's size and last write time
  109. - an HREF to the file for the hit highlighter.
  110. The parameters the hit highlighter include the CiQueryFile and
  111. CiTemplateFile. The CiQueryFile is not really needed as long as
  112. you don't have any custom properties. However, if you add custom
  113. properties, make sure the .idq file you use for queries is same
  114. as the one specified for CiQueryFile. The CiTemplateFile is used
  115. by webhits to format the output text.
  116. -->
  117. <dl>
  118. <%begindetail%>
  119. <p>
  120. <dt>
  121. <%CiCurrentRecordNumber%>.
  122. <%if DocTitle isempty%>
  123. <b><a href="<%EscapeURL vpath%>"><%filename%></a></b>
  124. <%else%>
  125. <b><a href="<%EscapeURL vpath%>"><%DocTitle%></a></b>
  126. <%endif%>
  127. <dd>
  128. <b><i>Abstract: </i></b><%characterization%>
  129. <br>
  130. <cite>
  131. <a href="<%EscapeURL vpath%>">http://<%server_name%><%vpath%></a>
  132. <font size=-1> - <%if size eq ""%>(size and time unknown)<%else%>size <%size%> bytes - <%write%> GMT<%endif%></font>
  133. <BR>
  134. <a href="/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> /
  135. <a href="/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>
  136. <BR>
  137. </cite>
  138. <%enddetail%>
  139. </dl>
  140. <P>
  141. <!-- Only display a line if there were any hits that matched the query -->
  142. <%if CiMatchedRecordCount ne 0%>
  143. <HR>
  144. <%endif%>
  145. <TABLE WIDTH=80%>
  146. <!--
  147. Query.htm set HTMLQueryForm as the name of the page to return to
  148. for a new query.
  149. -->
  150. <TD> <A HREF="<%HTMLQueryForm%>">New query</A> </TD>
  151. <!-- Define a "previous" button if this isn't the first page -->
  152. <%if CiContainsFirstRecord eq 0%>
  153. <TD ALIGN=LEFT>
  154. <FORM ACTION="/scripts/samples/search/queryhit.idq" METHOD="GET">
  155. <INPUT TYPE="HIDDEN"
  156. NAME="CiBookMark" VALUE="<%CiBookMark%>" >
  157. <INPUT TYPE="HIDDEN"
  158. NAME="CiBookmarkSkipCount" VALUE="-<%EscapeRAW CiMaxRecordsPerPage%>" >
  159. <INPUT TYPE="HIDDEN"
  160. NAME="CiMaxRecordsInResultSet" VALUE="<%EscapeRAW CiMaxRecordsInResultSet%>" >
  161. <INPUT TYPE="HIDDEN"
  162. NAME="CiRestriction" VALUE="<%CiRestriction%>" >
  163. <INPUT TYPE="HIDDEN"
  164. NAME="CiMaxRecordsPerPage" VALUE="<%EscapeRAW CiMaxRecordsPerPage%>" >
  165. <INPUT TYPE="HIDDEN"
  166. NAME="CiScope" VALUE="<%CiScope%>" >
  167. <INPUT TYPE="HIDDEN"
  168. NAME="TemplateName" VALUE="<%TemplateName%>" >
  169. <INPUT TYPE="HIDDEN"
  170. NAME="CiSort" VALUE="<%CiSort%>" >
  171. <INPUT TYPE="HIDDEN"
  172. NAME="HTMLQueryForm" VALUE="<%HTMLQueryForm%>" >
  173. <INPUT TYPE="SUBMIT"
  174. VALUE="Previous <%CiMaxRecordsPerPage%> documents">
  175. </FORM>
  176. </TD>
  177. <%endif%>
  178. <!-- Define a "next" button if this isn't the last page -->
  179. <%if CiContainsLastRecord eq 0%>
  180. <TD ALIGN=RIGHT>
  181. <FORM ACTION="/scripts/samples/search/queryhit.idq" METHOD="GET">
  182. <INPUT TYPE="HIDDEN"
  183. NAME="CiBookMark" VALUE="<%CiBookMark%>" >
  184. <INPUT TYPE="HIDDEN"
  185. NAME="CiBookmarkSkipCount" VALUE="<%EscapeRAW CiMaxRecordsPerPage%>" >
  186. <INPUT TYPE="HIDDEN"
  187. NAME="CiMaxRecordsInResultSet" VALUE="<%EscapeRAW CiMaxRecordsInResultSet%>" >
  188. <INPUT TYPE="HIDDEN"
  189. NAME="CiRestriction" VALUE="<%CiRestriction%>" >
  190. <INPUT TYPE="HIDDEN"
  191. NAME="CiMaxRecordsPerPage" VALUE="<%EscapeRAW CiMaxRecordsPerPage%>" >
  192. <INPUT TYPE="HIDDEN"
  193. NAME="CiScope" VALUE="<%CiScope%>" >
  194. <INPUT TYPE="HIDDEN"
  195. NAME="TemplateName" VALUE="<%TemplateName%>" >
  196. <INPUT TYPE="HIDDEN"
  197. NAME="CiSort" VALUE="<%CiSort%>" >
  198. <INPUT TYPE="HIDDEN"
  199. NAME="HTMLQueryForm" VALUE="<%HTMLQueryForm%>" >
  200. <INPUT TYPE="SUBMIT"
  201. VALUE="Next <%CiRecordsNextPage%> documents">
  202. </FORM>
  203. </TD>
  204. <%endif%>
  205. </TABLE>
  206. <P><BR>
  207. <!--
  208. If the index is out of date (for example, if it's still being created
  209. or updated after changes to files in an indexed directory) let the
  210. user know.
  211. -->
  212. <%if CiOutOfDate ne 0%>
  213. <P>
  214. <I><B>The index is out of date.</B></I><BR>
  215. <%endif%>
  216. <!--
  217. If the query was not executed because it needed to enumerate to
  218. resolve the query instead of using the index, but CiForceUseCi
  219. was TRUE, let the user know
  220. -->
  221. <%if CiQueryIncomplete ne 0%>
  222. <P>
  223. <I><B>The query is too expensive to complete.</B></I><BR>
  224. <%endif%>
  225. <!--
  226. If the query took too long to execute (for example, if too much work
  227. was required to resolve the query), let the user know
  228. -->
  229. <%if CiQueryTimedOut ne 0%>
  230. <P>
  231. <I><B>The query took too long to complete.</B></I><BR>
  232. <%endif%>
  233. <!-- Output a page number and count of pages -->
  234. <%if CiTotalNumberPages gt 0%>
  235. <P>
  236. Page <%CiCurrentPageNumber%> of <%CiTotalNumberPages%>
  237. <P>
  238. <%endif%>
  239. </HTML>