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.

110 lines
2.8 KiB

  1. <% Response.Expires = 0 %>
  2. <HTML>
  3. <HEAD>
  4. <TITLE>Test page 2 for IXSSO tests.</TITLE>
  5. </HEAD>
  6. <BODY BGCOLOR=FFFFFF LINK=0000FF ALINK=00DDDD>
  7. <H2>Test 2 for IXSSO.</H2>
  8. <P>
  9. Create a query object, set query parameters, execute query and instantiate
  10. a recordset.
  11. Use ADO to iterate over all rows in the recordset and print fields from the
  12. storage property set.
  13. </P>
  14. <!--#include virtual="/IXSTest/prolog.inc"-->
  15. <%
  16. set Q=Server.CreateObject("IXSSO.Query")
  17. Q.Columns = "filename, rank, vpath, size, write"
  18. Q.Query = "#filename *.asp*"
  19. Q.SortBy = "rank[d]"
  20. set Util=Server.CreateObject("IXSSO.Util")
  21. Util.AddScopeToQuery Q, "/"
  22. Q.OptimizeFor = "recall"
  23. Q.AllowEnumeration = TRUE
  24. Q.MaxRecords = 20000
  25. %>
  26. <FONT SIZE=3>
  27. <PRE>
  28. Query = <%= Q.Query%>
  29. Columns = <%= Q.Columns%>
  30. CiScope = <%= Q.CiScope%>
  31. CiFlags = <%= Q.CiFlags%>
  32. SortBy = <%= Q.SortBy%>
  33. Catalog = <%= Q.Catalog%>
  34. OptimizeFor = <%= Q.OptimizeFor%>
  35. AllowEnumeration = <%Response.Write(CStr(Q.AllowEnumeration))%>
  36. MaxRecords = <%= Q.MaxRecords%>
  37. </PRE>
  38. <%
  39. set RS=Q.CreateRecordSet( "sequential" )
  40. %>
  41. <PRE>
  42. QueryTimedOut = <%if Q.QueryTimedOut then Response.Write("TRUE") else Response.Write("FALSE") %>
  43. QueryIncomplete = <%if Q.QueryIncomplete then Response.Write("TRUE") else Response.Write("FALSE") %>
  44. OutOfDate = <%if Q.OutOfDate then Response.Write("TRUE") else Response.Write("FALSE") %>
  45. </PRE>
  46. <TABLE COLSPAN=8 CELLPADDING=5 BORDER=0>
  47. <!-- BEGIN column header row -->
  48. <TR>
  49. <TH ALIGN=CENTER BGCOLOR="#800000">
  50. <FONT STYLE="ARIAL NARROW" COLOR="#ffffff" SIZE=1>File name</FONT>
  51. </TH>
  52. <TH ALIGN=CENTER BGCOLOR="#800000">
  53. <FONT STYLE="ARIAL NARROW" COLOR="#ffffff" SIZE=1>Rank</FONT>
  54. </TH>
  55. <TH ALIGN=CENTER WIDTH=150 BGCOLOR="#800000">
  56. <FONT STYLE="ARIAL NARROW" COLOR="#ffffff" SIZE=1>Vpath</FONT>
  57. </TH>
  58. <TH ALIGN=CENTER BGCOLOR="#800000">
  59. <FONT STYLE="ARIAL NARROW" COLOR="#ffffff" SIZE=1>Size</FONT>
  60. </TH>
  61. <TH ALIGN=CENTER BGCOLOR="#800000">
  62. <FONT STYLE="ARIAL NARROW" COLOR="#ffffff" SIZE=1>Write</FONT>
  63. </TH>
  64. </TR>
  65. <!-- BEGIN first row of query results table -->
  66. <% Do While Not RS.EOF %>
  67. <TR>
  68. <TD BGCOLOR="f7efde" ALIGN=CENTER>
  69. <FONT STYLE="ARIAL NARROW" SIZE=1><%=RS("Filename")%></FONT></TD>
  70. <TD BGCOLOR="f7efde" ALIGN=CENTER>
  71. <FONT STYLE="ARIAL NARROW" SIZE=1><%=RS("Rank")%></FONT></TD>
  72. <TD BGCOLOR="f7efde" ALIGN=CENTER>
  73. <FONT STYLE="ARIAL NARROW" SIZE=1><A HREF="http:<%=RS("vpath")%>"><%=RS("vpath")%></A></FONT></TD>
  74. <TD BGCOLOR="f7efde" ALIGN=CENTER>
  75. <FONT STYLE="ARIAL NARROW" SIZE=1><%=RS("Size")%></FONT></TD>
  76. <TD BGCOLOR="f7efde" ALIGN=CENTER>
  77. <FONT STYLE="ARIAL NARROW" SIZE=1><%=RS("Write")%></FONT></TD>
  78. </TR>
  79. <%
  80. RS.MoveNext
  81. Loop
  82. RS.close
  83. Set RS = Nothing
  84. %>
  85. </TABLE>
  86. <BR>
  87. <BR>
  88. <!--#include virtual="/IXSTest/srcform.inc"-->
  89. <BR>
  90. <BR>
  91. </BODY>
  92. </HTML>