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.

298 lines
12 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 documents matched the query "<%SearchString%>".
  26. <%else%>
  27. Documents <%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/newsqry.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="Area" VALUE="<%Area%>" >
  59. <INPUT TYPE="HIDDEN"
  60. NAME="CiMaxRecordsPerPage" VALUE="<%CiMaxRecordsPerPage%>" >
  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/newsqry.idq" METHOD="GET">
  76. <INPUT TYPE="HIDDEN"
  77. NAME="CiBookMark" VALUE="<%CiBookMark%>" >
  78. <INPUT TYPE="HIDDEN"
  79. NAME="CiBookmarkSkipCount" VALUE="<%CiMaxRecordsPerPage%>" >
  80. <INPUT TYPE="HIDDEN"
  81. NAME="CiMaxRecordsInResultSet" VALUE="<%CiMaxRecordsInResultSet%>" >
  82. <INPUT TYPE="HIDDEN"
  83. NAME="SearchString" VALUE="<%SearchString%>" >
  84. <INPUT TYPE="HIDDEN"
  85. NAME="Area" VALUE="<%Area%>" >
  86. <INPUT TYPE="HIDDEN"
  87. NAME="CiMaxRecordsPerPage" VALUE="<%CiMaxRecordsPerPage%>" >
  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. If the hit highlighting is for a news article, prepend the vpath with $cinews to
  110. effect correct behavior from the webhits application.
  111. -->
  112. <dl>
  113. <%begindetail%>
  114. <p>
  115. <dt>
  116. <%CiCurrentRecordNumber%>.
  117. <%if DocTitle isempty%>
  118. <%if NewsSubject isempty%>
  119. <b><a href="<%EscapeURL vpath%>"><%filename%></a></b>
  120. <%else%>
  121. <b><a href="news://<%server_name%>/<%EscapeURL NewsMsgid%>"><%NewsSubject%></a></b>
  122. <%endif%>
  123. <%else%>
  124. <b><a href="<%EscapeURL vpath%>"><%DocTitle%></a></b>
  125. <%endif%>
  126. <dd>
  127. <%if NewsSubject isempty%>
  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="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> /
  135. <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>
  136. <BR>
  137. </cite>
  138. <%else%>
  139. <b><i>Posted to: </i></b><A HREF="news://<%server_name%>/<%NewsGroup%>"><%NewsGroup%></A><br>
  140. <b><i>Cross-Posted to: </i></b><%NewsGroups%><br>
  141. <b><i>By: </i></b><%NewsFrom%><br>
  142. <b><i>Abstract: </i></b><%characterization%>
  143. <cite>
  144. <font size=-1> - <%if size eq ""%>(size and time unknown)<%else%>size <%size%> bytes - <%write%> GMT<%endif%></font>
  145. <BR>
  146. <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>
  147. &nbsp;&nbsp;
  148. <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>
  149. <BR>
  150. </cite>
  151. <%endif%>
  152. <%enddetail%>
  153. </dl>
  154. <P>
  155. <!-- Only display a line if there were any hits that matched the query -->
  156. <%if CiMatchedRecordCount ne 0%>
  157. <HR>
  158. <%endif%>
  159. <TABLE WIDTH=80%>
  160. <!--
  161. Query.htm set HTMLQueryForm as the name of the page to return to
  162. for a new query.
  163. -->
  164. <TD> <A HREF="<%HTMLQueryForm%>">New query</A> </TD>
  165. <!-- Define a "previous" button if this isn't the first page -->
  166. <%if CiContainsFirstRecord eq 0%>
  167. <TD ALIGN=LEFT>
  168. <FORM ACTION="/scripts/samples/search/newsqry.idq" METHOD="GET">
  169. <INPUT TYPE="HIDDEN"
  170. NAME="CiBookMark" VALUE="<%CiBookMark%>" >
  171. <INPUT TYPE="HIDDEN"
  172. NAME="CiBookmarkSkipCount" VALUE="-<%CiMaxRecordsPerPage%>" >
  173. <INPUT TYPE="HIDDEN"
  174. NAME="CiMaxRecordsInResultSet" VALUE="<%CiMaxRecordsInResultSet%>" >
  175. <INPUT TYPE="HIDDEN"
  176. NAME="SearchString" VALUE="<%SearchString%>" >
  177. <INPUT TYPE="HIDDEN"
  178. NAME="Area" VALUE="<%Area%>" >
  179. <INPUT TYPE="HIDDEN"
  180. NAME="CiMaxRecordsPerPage" VALUE="<%CiMaxRecordsPerPage%>" >
  181. <INPUT TYPE="HIDDEN"
  182. NAME="TemplateName" VALUE="<%TemplateName%>" >
  183. <INPUT TYPE="HIDDEN"
  184. NAME="CiSort" VALUE="<%CiSort%>" >
  185. <INPUT TYPE="HIDDEN"
  186. NAME="HTMLQueryForm" VALUE="<%HTMLQueryForm%>" >
  187. <INPUT TYPE="SUBMIT"
  188. VALUE="Previous <%CiMaxRecordsPerPage%> documents">
  189. </FORM>
  190. </TD>
  191. <%endif%>
  192. <!-- Define a "next" button if this isn't the last page -->
  193. <%if CiContainsLastRecord eq 0%>
  194. <TD ALIGN=RIGHT>
  195. <FORM ACTION="/scripts/samples/search/newsqry.idq" METHOD="GET">
  196. <INPUT TYPE="HIDDEN"
  197. NAME="CiBookMark" VALUE="<%CiBookMark%>" >
  198. <INPUT TYPE="HIDDEN"
  199. NAME="CiBookmarkSkipCount" VALUE="<%CiMaxRecordsPerPage%>" >
  200. <INPUT TYPE="HIDDEN"
  201. NAME="CiMaxRecordsInResultSet" VALUE="<%CiMaxRecordsInResultSet%>" >
  202. <INPUT TYPE="HIDDEN"
  203. NAME="SearchString" VALUE="<%SearchString%>" >
  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>