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.

297 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><%SearchString%> - no documents matched.</TITLE>
  11. <%else%>
  12. <TITLE><%SearchString%> - 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 articles matched the query "<%SearchString%>".
  26. <%else%>
  27. Articles <%CiFirstRecordNumber%> to <%CiLastRecordNumber%> of
  28. <%if CiMatchedRecordCount eq CiMaxRecordsInResultSet%>
  29. the best
  30. <%endif%>
  31. <%CiMatchedRecordCount%> matching the query
  32. "<%SearchString%>".
  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/news2.idq" METHOD="GET">
  49. <INPUT TYPE="HIDDEN"
  50. NAME="CiBookMark" VALUE="<%CiBookMark%>" >
  51. <INPUT TYPE="HIDDEN"
  52. NAME="CiBookmarkSkipCount" VALUE="-<%CiMaxRecordsPerPage%>" >
  53. <INPUT TYPE="HIDDEN"
  54. NAME="CiMaxRecordsInResultSet" VALUE="<%CiMaxRecordsInResultSet%>" >
  55. <INPUT TYPE="HIDDEN"
  56. NAME="SearchString" VALUE="<%SearchString%>" >
  57. <INPUT TYPE="HIDDEN"
  58. NAME="NGroup" VALUE="<%NGroup%>" >
  59. <INPUT TYPE="HIDDEN"
  60. NAME="DTIME" VALUE="<%DTime%>" >
  61. <INPUT TYPE="HIDDEN"
  62. NAME="DUNIT" VALUE="<%DUnit%>" >
  63. <INPUT TYPE="HIDDEN"
  64. NAME="Area" VALUE="<%Area%>" >
  65. <INPUT TYPE="HIDDEN"
  66. NAME="CiMaxRecordsPerPage" VALUE="<%CiMaxRecordsPerPage%>" >
  67. <INPUT TYPE="HIDDEN"
  68. NAME="TemplateName" VALUE="<%TemplateName%>" >
  69. <INPUT TYPE="HIDDEN"
  70. NAME="CiSort" VALUE="<%CiSort%>" >
  71. <INPUT TYPE="HIDDEN"
  72. NAME="HTMLQueryForm" VALUE="<%HTMLQueryForm%>" >
  73. <INPUT TYPE="SUBMIT"
  74. VALUE="Previous <%CiMaxRecordsPerPage%> documents">
  75. </FORM>
  76. </TD>
  77. <%endif%>
  78. <!-- Define a "next" button if this isn't the last page -->
  79. <%if CiContainsLastRecord eq 0%>
  80. <TD ALIGN=RIGHT>
  81. <FORM ACTION="/scripts/samples/search/news2.idq" METHOD="GET">
  82. <INPUT TYPE="HIDDEN"
  83. NAME="CiBookMark" VALUE="<%CiBookMark%>" >
  84. <INPUT TYPE="HIDDEN"
  85. NAME="CiBookmarkSkipCount" VALUE="<%CiMaxRecordsPerPage%>" >
  86. <INPUT TYPE="HIDDEN"
  87. NAME="CiMaxRecordsInResultSet" VALUE="<%CiMaxRecordsInResultSet%>" >
  88. <INPUT TYPE="HIDDEN"
  89. NAME="SearchString" VALUE="<%SearchString%>" >
  90. <INPUT TYPE="HIDDEN"
  91. NAME="NGroup" VALUE="<%NGroup%>" >
  92. <INPUT TYPE="HIDDEN"
  93. NAME="DTIME" VALUE="<%DTime%>" >
  94. <INPUT TYPE="HIDDEN"
  95. NAME="DUNIT" VALUE="<%DUnit%>" >
  96. <INPUT TYPE="HIDDEN"
  97. NAME="Area" VALUE="<%Area%>" >
  98. <INPUT TYPE="HIDDEN"
  99. NAME="CiMaxRecordsPerPage" VALUE="<%CiMaxRecordsPerPage%>" >
  100. <INPUT TYPE="HIDDEN"
  101. NAME="TemplateName" VALUE="<%TemplateName%>" >
  102. <INPUT TYPE="HIDDEN"
  103. NAME="CiSort" VALUE="<%CiSort%>" >
  104. <INPUT TYPE="HIDDEN"
  105. NAME="HTMLQueryForm" VALUE="<%HTMLQueryForm%>" >
  106. <INPUT TYPE="SUBMIT"
  107. VALUE="Next <%CiRecordsNextPage%> documents">
  108. </FORM>
  109. </TD>
  110. <%endif%>
  111. </TABLE>
  112. <HR>
  113. <!--
  114. The begindetail/enddetail section describes how each row of output
  115. is be formatted. The sample below prints:
  116. - record number
  117. - document title (if one exists) or virtual path of the file
  118. - the abstract for the file
  119. - the url for the file
  120. - the file's size and last write time
  121. If the hit highlighting is for a news article, prepend the vpath with $cinews to
  122. effect correct behavior from the webhits application.
  123. -->
  124. <dl>
  125. <TABLE>
  126. <TR>
  127. <TH align="left">#</TH>
  128. <TH align="left">Subject</TH>
  129. <TH align="left">Newsgroup</TH>
  130. <TH align="left">Author</TH>
  131. </TR>
  132. <%begindetail%>
  133. <TR>
  134. <TD><%CiCurrentRecordNumber%></TD>
  135. <TD><a href="news://<%server_name%>/<%EscapeURL NewsMsgid%>"><%NewsSubject%></a></TD>
  136. <TD><A HREF="news://<%server_name%>/<%NewsGroup%>"><%NewsGroup%></A></TD>
  137. <TD><%NewsFrom%></TD>
  138. </TR>
  139. <%enddetail%>
  140. </TABLE>
  141. </dl>
  142. <P>
  143. <!-- Only display a line if there were any hits that matched the query -->
  144. <%if CiMatchedRecordCount ne 0%>
  145. <HR>
  146. <%endif%>
  147. <TABLE WIDTH=80%>
  148. <!--
  149. Query.htm set HTMLQueryForm as the name of the page to return to
  150. for a new query.
  151. -->
  152. <TD> <A HREF="<%HTMLQueryForm%>">New query</A> </TD>
  153. <!-- Define a "previous" button if this isn't the first page -->
  154. <%if CiContainsFirstRecord eq 0%>
  155. <TD ALIGN=LEFT>
  156. <FORM ACTION="/scripts/samples/search/news2.idq" METHOD="GET">
  157. <INPUT TYPE="HIDDEN"
  158. NAME="CiBookMark" VALUE="<%CiBookMark%>" >
  159. <INPUT TYPE="HIDDEN"
  160. NAME="CiBookmarkSkipCount" VALUE="-<%CiMaxRecordsPerPage%>" >
  161. <INPUT TYPE="HIDDEN"
  162. NAME="CiMaxRecordsInResultSet" VALUE="<%CiMaxRecordsInResultSet%>" >
  163. <INPUT TYPE="HIDDEN"
  164. NAME="SearchString" VALUE="<%SearchString%>" >
  165. <INPUT TYPE="HIDDEN"
  166. NAME="NGroup" VALUE="<%NGroup%>" >
  167. <INPUT TYPE="HIDDEN"
  168. NAME="DTIME" VALUE="<%DTime%>" >
  169. <INPUT TYPE="HIDDEN"
  170. NAME="DUNIT" VALUE="<%DUnit%>" >
  171. <INPUT TYPE="HIDDEN"
  172. NAME="Area" VALUE="<%Area%>" >
  173. <INPUT TYPE="HIDDEN"
  174. NAME="CiMaxRecordsPerPage" VALUE="<%CiMaxRecordsPerPage%>" >
  175. <INPUT TYPE="HIDDEN"
  176. NAME="TemplateName" VALUE="<%TemplateName%>" >
  177. <INPUT TYPE="HIDDEN"
  178. NAME="CiSort" VALUE="<%CiSort%>" >
  179. <INPUT TYPE="HIDDEN"
  180. NAME="HTMLQueryForm" VALUE="<%HTMLQueryForm%>" >
  181. <INPUT TYPE="SUBMIT"
  182. VALUE="Previous <%CiMaxRecordsPerPage%> documents">
  183. </FORM>
  184. </TD>
  185. <%endif%>
  186. <!-- Define a "next" button if this isn't the last page -->
  187. <%if CiContainsLastRecord eq 0%>
  188. <TD ALIGN=RIGHT>
  189. <FORM ACTION="/scripts/samples/search/news2.idq" METHOD="GET">
  190. <INPUT TYPE="HIDDEN"
  191. NAME="CiBookMark" VALUE="<%CiBookMark%>" >
  192. <INPUT TYPE="HIDDEN"
  193. NAME="CiBookmarkSkipCount" VALUE="<%CiMaxRecordsPerPage%>" >
  194. <INPUT TYPE="HIDDEN"
  195. NAME="CiMaxRecordsInResultSet" VALUE="<%CiMaxRecordsInResultSet%>" >
  196. <INPUT TYPE="HIDDEN"
  197. NAME="SearchString" VALUE="<%SearchString%>" >
  198. <INPUT TYPE="HIDDEN"
  199. NAME="NGroup" VALUE="<%NGroup%>" >
  200. <INPUT TYPE="HIDDEN"
  201. NAME="DTIME" VALUE="<%DTime%>" >
  202. <INPUT TYPE="HIDDEN"
  203. NAME="DUNIT" VALUE="<%DUnit%>" >
  204. <INPUT TYPE="HIDDEN"
  205. NAME="Area" VALUE="<%Area%>" >
  206. <INPUT TYPE="HIDDEN"
  207. NAME="CiMaxRecordsPerPage" VALUE="<%CiMaxRecordsPerPage%>" >
  208. <INPUT TYPE="HIDDEN"
  209. NAME="TemplateName" VALUE="<%TemplateName%>" >
  210. <INPUT TYPE="HIDDEN"
  211. NAME="CiSort" VALUE="<%CiSort%>" >
  212. <INPUT TYPE="HIDDEN"
  213. NAME="HTMLQueryForm" VALUE="<%HTMLQueryForm%>" >
  214. <INPUT TYPE="SUBMIT"
  215. VALUE="Next <%CiRecordsNextPage%> documents">
  216. </FORM>
  217. </TD>
  218. <%endif%>
  219. </TABLE>
  220. <P><BR>
  221. <!--
  222. If the index is out of date (for example, if it's still being created
  223. or updated after changes to files in an indexed directory) let the
  224. user know.
  225. -->
  226. <%if CiOutOfDate ne 0%>
  227. <P>
  228. <I><B>The index is out of date.</B></I><BR>
  229. <%endif%>
  230. <!--
  231. If the query was not executed because it needed to enumerate to
  232. resolve the query instead of using the index, but CiForceUseCi
  233. was TRUE, let the user know
  234. -->
  235. <%if CiQueryIncomplete ne 0%>
  236. <P>
  237. <I><B>The query is too expensive to complete.</B></I><BR>
  238. <%endif%>
  239. <!--
  240. If the query took too long to execute (for example, if too much work
  241. was required to resolve the query), let the user know
  242. -->
  243. <%if CiQueryTimedOut ne 0%>
  244. <P>
  245. <I><B>The query took too long to complete.</B></I><BR>
  246. <%endif%>
  247. <!-- Output a page number and count of pages -->
  248. <%if CiTotalNumberPages gt 0%>
  249. <P>
  250. Page <%CiCurrentPageNumber%> of <%CiTotalNumberPages%>
  251. <P>
  252. <%endif%>
  253. </HTML>