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.

101 lines
2.9 KiB

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