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.

272 lines
9.1 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/query.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/query.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. -->
  110. <dl>
  111. <%begindetail%>
  112. <p>
  113. <dt>
  114. <%CiCurrentRecordNumber%>.
  115. <%if DocTitle isempty%>
  116. <b><a href="<%EscapeURL vpath%>"><%filename%></a></b>
  117. <%else%>
  118. <b><a href="<%EscapeURL vpath%>"><%DocTitle%></a></b>
  119. <%endif%>
  120. <dd>
  121. <b><i>Abstract: </i></b><%characterization%>
  122. <br>
  123. <cite>
  124. <a href="<%EscapeURL vpath%>">http://<%server_name%><%vpath%></a>
  125. <font size=-1> - <%if size eq ""%>(size and time unknown)<%else%>size <%size%> bytes - <%write%> GMT<%endif%></font>
  126. </cite>
  127. <%enddetail%>
  128. </dl>
  129. <P>
  130. <!-- Only display a line if there were any hits that matched the query -->
  131. <%if CiMatchedRecordCount ne 0%>
  132. <HR>
  133. <%endif%>
  134. <TABLE WIDTH=80%>
  135. <!--
  136. Query.htm set HTMLQueryForm as the name of the page to return to
  137. for a new query.
  138. -->
  139. <TD> <A HREF="<%HTMLQueryForm%>">New query</A> </TD>
  140. <!-- Define a "previous" button if this isn't the first page -->
  141. <%if CiContainsFirstRecord eq 0%>
  142. <TD ALIGN=LEFT>
  143. <FORM ACTION="/scripts/samples/search/query.idq" METHOD="GET">
  144. <INPUT TYPE="HIDDEN"
  145. NAME="CiBookMark" VALUE="<%CiBookMark%>" >
  146. <INPUT TYPE="HIDDEN"
  147. NAME="CiBookmarkSkipCount" VALUE="-<%EscapeRAW CiMaxRecordsPerPage%>" >
  148. <INPUT TYPE="HIDDEN"
  149. NAME="CiMaxRecordsInResultSet" VALUE="<%EscapeRAW CiMaxRecordsInResultSet%>" >
  150. <INPUT TYPE="HIDDEN"
  151. NAME="CiRestriction" VALUE="<%CiRestriction%>" >
  152. <INPUT TYPE="HIDDEN"
  153. NAME="CiMaxRecordsPerPage" VALUE="<%EscapeRAW CiMaxRecordsPerPage%>" >
  154. <INPUT TYPE="HIDDEN"
  155. NAME="CiScope" VALUE="<%CiScope%>" >
  156. <INPUT TYPE="HIDDEN"
  157. NAME="TemplateName" VALUE="<%TemplateName%>" >
  158. <INPUT TYPE="HIDDEN"
  159. NAME="CiSort" VALUE="<%CiSort%>" >
  160. <INPUT TYPE="HIDDEN"
  161. NAME="HTMLQueryForm" VALUE="<%HTMLQueryForm%>" >
  162. <INPUT TYPE="SUBMIT"
  163. VALUE="Previous <%CiMaxRecordsPerPage%> documents">
  164. </FORM>
  165. </TD>
  166. <%endif%>
  167. <!-- Define a "next" button if this isn't the last page -->
  168. <%if CiContainsLastRecord eq 0%>
  169. <TD ALIGN=RIGHT>
  170. <FORM ACTION="/scripts/samples/search/query.idq" METHOD="GET">
  171. <INPUT TYPE="HIDDEN"
  172. NAME="CiBookMark" VALUE="<%CiBookMark%>" >
  173. <INPUT TYPE="HIDDEN"
  174. NAME="CiBookmarkSkipCount" VALUE="<%EscapeRAW CiMaxRecordsPerPage%>" >
  175. <INPUT TYPE="HIDDEN"
  176. NAME="CiMaxRecordsInResultSet" VALUE="<%EscapeRAW CiMaxRecordsInResultSet%>" >
  177. <INPUT TYPE="HIDDEN"
  178. NAME="CiRestriction" VALUE="<%CiRestriction%>" >
  179. <INPUT TYPE="HIDDEN"
  180. NAME="CiMaxRecordsPerPage" VALUE="<%EscapeRAW CiMaxRecordsPerPage%>" >
  181. <INPUT TYPE="HIDDEN"
  182. NAME="CiScope" VALUE="<%CiScope%>" >
  183. <INPUT TYPE="HIDDEN"
  184. NAME="TemplateName" VALUE="<%TemplateName%>" >
  185. <INPUT TYPE="HIDDEN"
  186. NAME="CiSort" VALUE="<%CiSort%>" >
  187. <INPUT TYPE="HIDDEN"
  188. NAME="HTMLQueryForm" VALUE="<%HTMLQueryForm%>" >
  189. <INPUT TYPE="SUBMIT"
  190. VALUE="Next <%CiRecordsNextPage%> documents">
  191. </FORM>
  192. </TD>
  193. <%endif%>
  194. </TABLE>
  195. <P><BR>
  196. <!--
  197. If the index is out of date (for example, if it's still being created
  198. or updated after changes to files in an indexed directory) let the
  199. user know.
  200. -->
  201. <%if CiOutOfDate ne 0%>
  202. <P>
  203. <I><B>The index is out of date.</B></I><BR>
  204. <%endif%>
  205. <!--
  206. If the query was not executed because it needed to enumerate to
  207. resolve the query instead of using the index, but CiForceUseCi
  208. was TRUE, let the user know
  209. -->
  210. <%if CiQueryIncomplete ne 0%>
  211. <P>
  212. <I><B>The query is too expensive to complete.</B></I><BR>
  213. <%endif%>
  214. <!--
  215. If the query took too long to execute (for example, if too much work
  216. was required to resolve the query), let the user know
  217. -->
  218. <%if CiQueryTimedOut ne 0%>
  219. <P>
  220. <I><B>The query took too long to complete.</B></I><BR>
  221. <%endif%>
  222. <!-- Output a page number and count of pages -->
  223. <%if CiTotalNumberPages gt 0%>
  224. <P>
  225. Page <%CiCurrentPageNumber%> of <%CiTotalNumberPages%>
  226. <P>
  227. <%endif%>
  228. </HTML>