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.

501 lines
18 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 properties -->
  9. <%if CiMatchedRecordCount eq 0%>
  10. <TITLE><%CiRestriction%> - no properties matched.</TITLE>
  11. <%else%>
  12. <TITLE><%CiRestriction%> - properties <%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/book08.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 properties from the Microsoft Office property set are currently cached.
  26. <%else%>
  27. Currently cached properties in the Microsoft Office property set:
  28. <%endif%>
  29. </H5>
  30. <!--
  31. This table has a link to a new query page, a previous button, and
  32. a next page button. The buttons are only displayed when appropriate.
  33. -->
  34. <TABLE WIDTH=80%>
  35. <!--
  36. Query.htm set HTMLQueryForm as the name of the page to return to
  37. for a new query.
  38. -->
  39. <!-- Define a "previous" button if this isn't the first page -->
  40. <%if CiContainsFirstRecord eq 0%>
  41. <TD ALIGN=LEFT>
  42. <FORM ACTION="/scripts/samples/search/props.idq" METHOD="GET">
  43. <INPUT TYPE="HIDDEN"
  44. NAME="CiBookMark" VALUE="<%CiBookMark%>" >
  45. <INPUT TYPE="HIDDEN"
  46. NAME="CiBookmarkSkipCount" VALUE="-<%EscapeRAW CiMaxRecordsPerPage%>" >
  47. <INPUT TYPE="HIDDEN"
  48. NAME="CiRestriction" VALUE="<%CiRestriction%>" >
  49. <INPUT TYPE="HIDDEN"
  50. NAME="CiMaxRecordsPerPage" VALUE="<%EscapeRAW CiMaxRecordsPerPage%>" >
  51. <INPUT TYPE="SUBMIT"
  52. VALUE="Previous <%CiMaxRecordsPerPage%> properties">
  53. </FORM>
  54. </TD>
  55. <%endif%>
  56. <!-- Define a "next" button if this isn't the last page -->
  57. <%if CiContainsLastRecord eq 0%>
  58. <TD ALIGN=RIGHT>
  59. <FORM ACTION="/scripts/samples/search/props.idq" METHOD="GET">
  60. <INPUT TYPE="HIDDEN"
  61. NAME="CiBookMark" VALUE="<%CiBookMark%>" >
  62. <INPUT TYPE="HIDDEN"
  63. NAME="CiBookmarkSkipCount" VALUE="<%EscapeRAW CiMaxRecordsPerPage%>" >
  64. <INPUT TYPE="HIDDEN"
  65. NAME="CiRestriction" VALUE="<%CiRestriction%>" >
  66. <INPUT TYPE="HIDDEN"
  67. NAME="CiMaxRecordsPerPage" VALUE="<%EscapeRAW CiMaxRecordsPerPage%>" >
  68. <INPUT TYPE="SUBMIT"
  69. VALUE="Next <%CiRecordsNextPage%> properties">
  70. </FORM>
  71. </TD>
  72. <%endif%>
  73. </TABLE>
  74. <HR>
  75. <!--
  76. The begindetail/enddetail section describes how each row of output
  77. is be formatted. The sample below prints:
  78. - record number
  79. - document title (if one exists) or virtual path of the file
  80. - the abstract for the file
  81. - the url for the file
  82. - the file's size and last write time
  83. -->
  84. <table>
  85. <tr>
  86. <th align="left">Property</th>
  87. <th align="left">Allocation Size</th>
  88. <th align="left">Variant Type</th>
  89. </tr>
  90. <!--
  91. Since only *checked* boxes get sent as parameters, we need (up to) two variables
  92. per root. They are:
  93. NAME: PROOT_<virtual root> VALUE: physical path to root
  94. NAME: INDEX_<virtual root> VALUE: "on". Implies root is indexed.
  95. -->
  96. <%begindetail%>
  97. <tr>
  98. <td><%if MetaPropertyName ne ""%><%MetaPropertyName%>
  99. <%else%>
  100. <%if MetaPropertyDispId eq 2%>Title<%else%>
  101. <%if MetaPropertyDispId eq 3%>Subject<%else%>
  102. <%if MetaPropertyDispId eq 4%>Author<%else%>
  103. <%if MetaPropertyDispId eq 5%>Keywords<%else%>
  104. <%if MetaPropertyDispId eq 6%>Comments<%else%>
  105. <%if MetaPropertyDispId eq 7%>Template<%else%>
  106. <%if MetaPropertyDispId eq 8%>Last Author<%else%>
  107. <%if MetaPropertyDispId eq 9%>Revision Number<%else%>
  108. <%if MetaPropertyDispId eq 10%>Total Editing Time<%else%>
  109. <%if MetaPropertyDispId eq 11%>Last Printed<%else%>
  110. <%if MetaPropertyDispId eq 14%>Page Count<%else%>
  111. <%if MetaPropertyDispId eq 15%>Word Count<%else%>
  112. <%if MetaPropertyDispId eq 16%>Character Count<%else%>
  113. <%if MetaPropertyDispId eq 18%>Application Name<%else%>
  114. <%MetaPropertyDispId%><%endif%><%endif%><%endif%><%endif%><%endif%><%endif%><%endif%><%endif%><%endif%><%endif%><%endif%><%endif%><%endif%><%endif%>
  115. <%endif%>
  116. </td>
  117. <td><%size%></td>
  118. <td><%if StorageType eq 1%>VT_NULL<%endif%>
  119. <%if StorageType eq 2%>VT_I2<%endif%>
  120. <%if StorageType eq 3%>VT_I4<%endif%>
  121. <%if StorageType eq 4%>VT_R4<%endif%>
  122. <%if StorageType eq 5%>VT_R8<%endif%>
  123. <%if StorageType eq 6%>VT_CY<%endif%>
  124. <%if StorageType eq 7%>VT_DATE<%endif%>
  125. <%if StorageType eq 8%>VT_BSTR<%endif%>
  126. <%if StorageType eq 10%>VT_ERROR<%endif%>
  127. <%if StorageType eq 11%>VT_BOOL<%endif%>
  128. <%if StorageType eq 12%>VT_VARIANT<%endif%>
  129. <%if StorageType eq 16%>VT_I1<%endif%>
  130. <%if StorageType eq 17%>VT_UI1<%endif%>
  131. <%if StorageType eq 18%>VT_UI2<%endif%>
  132. <%if StorageType eq 19%>VT_UI4<%endif%>
  133. <%if StorageType eq 20%>VT_I8<%endif%>
  134. <%if StorageType eq 21%>VT_UI8<%endif%>
  135. <%if StorageType eq 22%>VT_INT<%endif%>
  136. <%if StorageType eq 23%>VT_UINT<%endif%>
  137. <%if StorageType eq 30%>VT_LPSTR<%endif%>
  138. <%if StorageType eq 31%>VT_LPWSTR<%endif%>
  139. <%if StorageType eq 64%>VT_FILETIME<%endif%>
  140. <%if StorageType eq 65%>VT_BLOB<%endif%>
  141. <%if StorageType eq 71%>VT_CF<%endif%>
  142. <%if StorageType eq 72%>VT_CLSID<%endif%>
  143. <%if StorageType eq 4098%>VT_VECTOR | VT_I2<%endif%>
  144. <%if StorageType eq 4099%>VT_VECTOR | VT_I4<%endif%>
  145. <%if StorageType eq 4100%>VT_VECTOR | VT_R4<%endif%>
  146. <%if StorageType eq 4101%>VT_VECTOR | VT_R8<%endif%>
  147. <%if StorageType eq 4102%>VT_VECTOR | VT_CY<%endif%>
  148. <%if StorageType eq 4103%>VT_VECTOR | VT_DATE<%endif%>
  149. <%if StorageType eq 4104%>VT_VECTOR | VT_BSTR<%endif%>
  150. <%if StorageType eq 4106%>VT_VECTOR | VT_ERROR<%endif%>
  151. <%if StorageType eq 4107%>VT_VECTOR | VT_BOOL<%endif%>
  152. <%if StorageType eq 4108%>VT_VECTOR | VT_VARIANT<%endif%>
  153. <%if StorageType eq 4112%>VT_VECTOR | VT_I1<%endif%>
  154. <%if StorageType eq 4113%>VT_VECTOR | VT_UI1<%endif%>
  155. <%if StorageType eq 4114%>VT_VECTOR | VT_UI2<%endif%>
  156. <%if StorageType eq 4115%>VT_VECTOR | VT_UI4<%endif%>
  157. <%if StorageType eq 4116%>VT_VECTOR | VT_I8<%endif%>
  158. <%if StorageType eq 4117%>VT_VECTOR | VT_UI8<%endif%>
  159. <%if StorageType eq 4118%>VT_VECTOR | VT_INT<%endif%>
  160. <%if StorageType eq 4119%>VT_VECTOR | VT_UINT<%endif%>
  161. <%if StorageType eq 4126%>VT_VECTOR | VT_LPSTR<%endif%>
  162. <%if StorageType eq 4127%>VT_VECTOR | VT_LPWSTR<%endif%>
  163. <%if StorageType eq 4160%>VT_VECTOR | VT_FILETIME<%endif%>
  164. <%if StorageType eq 4161%>VT_VECTOR | VT_BLOB<%endif%>
  165. <%if StorageType eq 4167%>VT_VECTOR | VT_CF<%endif%>
  166. <%if StorageType eq 4168%>VT_VECTOR | VT_CLSID<%endif%>
  167. </td>
  168. </tr>
  169. <%enddetail%>
  170. </table>
  171. <HR>
  172. Desired caching:
  173. <FORM ACTION="/scripts/samples/search/props.ida" METHOD="POST">
  174. <table>
  175. <tr>
  176. <th align="left">Property</th>
  177. <th align="left">Allocation Size</th>
  178. <th align="left">Variant Type</th>
  179. <th align="left">Property</th>
  180. <th align="left">Allocation Size</th>
  181. <th align="left">Variant Type</th>
  182. </tr>
  183. <tr>
  184. <td>Application Name</td>
  185. <td><input type="TEXT"
  186. name="CACHESIZE_F29F85E0-4FF9-1068-AB91-08002B27B3D9_PROPID_18"
  187. size="4"
  188. maxlength="4"
  189. value="20" >
  190. </td>
  191. <td><SELECT name="CACHETYPE_F29F85E0-4FF9-1068-AB91-08002B27B3D9_PROPID_18">
  192. <OPTION SELECTED VALUE="30">VT_LPSTR
  193. <OPTION VALUE="0">(not cached)
  194. </SELECT>
  195. </td>
  196. <td>Page Count</td>
  197. <td><input type="TEXT"
  198. name="CACHESIZE_F29F85E0-4FF9-1068-AB91-08002B27B3D9_PROPID_14"
  199. size="4"
  200. maxlength="4"
  201. value="4" >
  202. </td>
  203. <td><SELECT name="CACHETYPE_F29F85E0-4FF9-1068-AB91-08002B27B3D9_PROPID_14">
  204. <OPTION SELECTED VALUE="3">VT_I4
  205. <OPTION VALUE="0">(not cached)
  206. </SELECT>
  207. </td>
  208. </tr>
  209. <tr>
  210. <td>Author</td>
  211. <td><input type="TEXT"
  212. name="CACHESIZE_F29F85E0-4FF9-1068-AB91-08002B27B3D9_PROPID_4"
  213. size="4"
  214. maxlength="4"
  215. value="15" >
  216. </td>
  217. <td><SELECT name="CACHETYPE_F29F85E0-4FF9-1068-AB91-08002B27B3D9_PROPID_4">
  218. <OPTION SELECTED VALUE="30">VT_LPSTR
  219. <OPTION VALUE="0">(not cached)
  220. </SELECT>
  221. </td>
  222. <td>Revision Number</td>
  223. <td><input type="TEXT"
  224. name="CACHESIZE_F29F85E0-4FF9-1068-AB91-08002B27B3D9_PROPID_9"
  225. size="4"
  226. maxlength="4"
  227. value="4" >
  228. </td>
  229. <td><SELECT name="CACHETYPE_F29F85E0-4FF9-1068-AB91-08002B27B3D9_PROPID_9">
  230. <OPTION SELECTED VALUE="30">VT_LPSTR
  231. <OPTION VALUE="0">(not cached)
  232. </SELECT>
  233. </td>
  234. </tr>
  235. <tr>
  236. <td>Character Count</td>
  237. <td><input type="TEXT"
  238. name="CACHESIZE_F29F85E0-4FF9-1068-AB91-08002B27B3D9_PROPID_16"
  239. size="4"
  240. maxlength="4"
  241. value="4" >
  242. </td>
  243. <td><SELECT name="CACHETYPE_F29F85E0-4FF9-1068-AB91-08002B27B3D9_PROPID_16">
  244. <OPTION SELECTED VALUE="3">VT_I4
  245. <OPTION VALUE="0">(not cached)
  246. </SELECT>
  247. </td>
  248. <td>Subject</td>
  249. <td><input type="TEXT"
  250. name="CACHESIZE_F29F85E0-4FF9-1068-AB91-08002B27B3D9_PROPID_3"
  251. size="4"
  252. maxlength="4"
  253. value="25" >
  254. </td>
  255. <td><SELECT name="CACHETYPE_F29F85E0-4FF9-1068-AB91-08002B27B3D9_PROPID_3">
  256. <OPTION SELECTED VALUE="30">VT_LPSTR
  257. <OPTION VALUE="0">(not cached)
  258. </SELECT>
  259. </td>
  260. </tr>
  261. <tr>
  262. <td>Comments</td>
  263. <td><input type="TEXT"
  264. name="CACHESIZE_F29F85E0-4FF9-1068-AB91-08002B27B3D9_PROPID_6"
  265. size="4"
  266. maxlength="4"
  267. value="30" >
  268. </td>
  269. <td><SELECT name="CACHETYPE_F29F85E0-4FF9-1068-AB91-08002B27B3D9_PROPID_6">
  270. <OPTION SELECTED VALUE="30">VT_LPSTR
  271. <OPTION VALUE="0">(not cached)
  272. </SELECT>
  273. </td>
  274. <td>Template</td>
  275. <td><input type="TEXT"
  276. name="CACHESIZE_F29F85E0-4FF9-1068-AB91-08002B27B3D9_PROPID_7"
  277. size="4"
  278. maxlength="4"
  279. value="20" >
  280. </td>
  281. <td><SELECT name="CACHETYPE_F29F85E0-4FF9-1068-AB91-08002B27B3D9_PROPID_7">
  282. <OPTION SELECTED VALUE="30">VT_LPSTR
  283. <OPTION VALUE="0">(not cached)
  284. </SELECT>
  285. </td>
  286. </tr>
  287. <tr>
  288. <td>Keywords</td>
  289. <td><input type="TEXT"
  290. name="CACHESIZE_F29F85E0-4FF9-1068-AB91-08002B27B3D9_PROPID_5"
  291. size="4"
  292. maxlength="4"
  293. value="30" >
  294. </td>
  295. <td><SELECT name="CACHETYPE_F29F85E0-4FF9-1068-AB91-08002B27B3D9_PROPID_5">
  296. <OPTION SELECTED VALUE="30">VT_LPSTR
  297. <OPTION VALUE="0">(not cached)
  298. </SELECT>
  299. </td>
  300. <td>Title</td>
  301. <td><input type="TEXT"
  302. name="CACHESIZE_F29F85E0-4FF9-1068-AB91-08002B27B3D9_PROPID_2"
  303. size="4"
  304. maxlength="4"
  305. value="40" >
  306. </td>
  307. <td><SELECT name="CACHETYPE_F29F85E0-4FF9-1068-AB91-08002B27B3D9_PROPID_2">
  308. <OPTION SELECTED VALUE="30">VT_LPSTR
  309. <OPTION VALUE="0">(not cached)
  310. </SELECT>
  311. </td>
  312. </tr>
  313. <tr>
  314. <td>Last Author</td>
  315. <td><input type="TEXT"
  316. name="CACHESIZE_F29F85E0-4FF9-1068-AB91-08002B27B3D9_PROPID_8"
  317. size="4"
  318. maxlength="4"
  319. value="15" >
  320. </td>
  321. <td><SELECT name="CACHETYPE_F29F85E0-4FF9-1068-AB91-08002B27B3D9_PROPID_8">
  322. <OPTION SELECTED VALUE="30">VT_LPSTR
  323. <OPTION VALUE="0">(not cached)
  324. </SELECT>
  325. </td>
  326. <td>Total editing time</td>
  327. <td><input type="TEXT"
  328. name="CACHESIZE_F29F85E0-4FF9-1068-AB91-08002B27B3D9_PROPID_10"
  329. size="4"
  330. maxlength="4"
  331. value="8" >
  332. </td>
  333. <td><SELECT name="CACHETYPE_F29F85E0-4FF9-1068-AB91-08002B27B3D9_PROPID_10">
  334. <OPTION SELECTED VALUE="64">VT_FILETIME
  335. <OPTION VALUE="0">(not cached)
  336. </SELECT>
  337. </td>
  338. </tr>
  339. <tr>
  340. <td>Last Printed</td>
  341. <td><input type="TEXT"
  342. name="CACHESIZE_F29F85E0-4FF9-1068-AB91-08002B27B3D9_PROPID_11"
  343. size="4"
  344. maxlength="4"
  345. value="8" >
  346. </td>
  347. <td><SELECT name="CACHETYPE_F29F85E0-4FF9-1068-AB91-08002B27B3D9_PROPID_11">
  348. <OPTION SELECTED VALUE="64">VT_FILETIME
  349. <OPTION VALUE="0">(not cached)
  350. </SELECT>
  351. </td>
  352. <td>Word Count</td>
  353. <td><input type="TEXT"
  354. name="CACHESIZE_F29F85E0-4FF9-1068-AB91-08002B27B3D9_PROPID_15"
  355. size="4"
  356. maxlength="4"
  357. value="4" >
  358. </td>
  359. <td><SELECT name="CACHETYPE_F29F85E0-4FF9-1068-AB91-08002B27B3D9_PROPID_15">
  360. <OPTION SELECTED VALUE="3">VT_I4
  361. <OPTION VALUE="0">(not cached)
  362. </SELECT>
  363. </td>
  364. </tr>
  365. </table>
  366. <INPUT TYPE="SUBMIT"
  367. VALUE="Submit changes">
  368. </FORM>
  369. <P>
  370. <!-- Only display a line if there were any hits that matched the query -->
  371. <%if CiMatchedRecordCount ne 0%>
  372. <HR>
  373. <%endif%>
  374. <TABLE WIDTH=80%>
  375. <!--
  376. Query.htm set HTMLQueryForm as the name of the page to return to
  377. for a new query.
  378. -->
  379. <TD> <A HREF="/samples/search/admin.htm">Administration Main Menu</A> </TD>
  380. <!-- Define a "previous" button if this isn't the first page -->
  381. <%if CiContainsFirstRecord eq 0%>
  382. <TD ALIGN=LEFT>
  383. <FORM ACTION="/scripts/samples/search/props.idq" METHOD="GET">
  384. <INPUT TYPE="HIDDEN"
  385. NAME="CiBookMark" VALUE="<%CiBookMark%>" >
  386. <INPUT TYPE="HIDDEN"
  387. NAME="CiBookmarkSkipCount" VALUE="-<%EscapeRAW CiMaxRecordsPerPage%>" >
  388. <INPUT TYPE="HIDDEN"
  389. NAME="CiRestriction" VALUE="<%CiRestriction%>" >
  390. <INPUT TYPE="HIDDEN"
  391. NAME="CiMaxRecordsPerPage" VALUE="<%EscapeRAW CiMaxRecordsPerPage%>" >
  392. <INPUT TYPE="SUBMIT"
  393. VALUE="Previous <%CiMaxRecordsPerPage%> properties">
  394. </FORM>
  395. </TD>
  396. <%endif%>
  397. <!-- Define a "next" button if this isn't the last page -->
  398. <%if CiContainsLastRecord eq 0%>
  399. <TD ALIGN=RIGHT>
  400. <FORM ACTION="/scripts/samples/search/props.idq" METHOD="GET">
  401. <INPUT TYPE="HIDDEN"
  402. NAME="CiBookMark" VALUE="<%CiBookMark%>" >
  403. <INPUT TYPE="HIDDEN"
  404. NAME="CiBookmarkSkipCount" VALUE="<%EscapeRAW CiMaxRecordsPerPage%>" >
  405. <INPUT TYPE="HIDDEN"
  406. NAME="CiRestriction" VALUE="<%CiRestriction%>" >
  407. <INPUT TYPE="HIDDEN"
  408. NAME="CiMaxRecordsPerPage" VALUE="<%EscapeRAW CiMaxRecordsPerPage%>" >
  409. <INPUT TYPE="SUBMIT"
  410. VALUE="Next <%CiRecordsNextPage%> properties">
  411. </FORM>
  412. </TD>
  413. <%endif%>
  414. </TABLE>
  415. <P><BR>
  416. <!--
  417. If the index is out of date (for example, if it's still being created
  418. or updated after changes to files in an indexed directory) let the
  419. user know.
  420. -->
  421. <%if CiOutOfDate ne 0%>
  422. <P><BR>
  423. <I><B>The index is out of date.</B></I>
  424. <%endif%>
  425. <!--
  426. If the query was not executed because it needed to enumerate to
  427. resolve the query instead of using the index, but CiForceUseCi
  428. was TRUE, let the user know
  429. -->
  430. <%if CiQueryIncomplete eq 1%>
  431. <P><BR>
  432. <I><B>The query is too expensive to complete.</B></I>
  433. <%endif%>
  434. <!-- Output a page number and count of pages -->
  435. <%if CiTotalNumberPages gt 0%>
  436. <P>
  437. Page <%CiCurrentPageNumber%> of <%CiTotalNumberPages%>
  438. <P>
  439. <%endif%>
  440. </HTML>