|
|
|
<%
' Pagination from Parameter Table
'set rsParameter = Server.CreateObject("ADODB.Recordset")
'sqlParameter = "Select * from parameter where parametercode='PAG'"
'Set rsParameter = objConn.execute(sqlParameter)
'varpagesize=Cint(rsParameter("parametervalue"))
varpagesize = Application("NumRecords")
'ON Error Resume Next
Set objQuery = Server.CreateObject("ixsso.query")
Set objUtil = Server.CreateObject("ixsso.util")
my_keyword=request("keyword3")
' keyword search
'myquery=myquery & "$CONTENTS " & my_keyword
myquery = myquery & my_keyword
'Exclude specific folders
%>
<%
' Exclude specific filenames
myquery=myquery & " and not #filename indexmaster.asp"
myquery=myquery & " and not #filename index.asp"
myquery=myquery & " and not #filename indexold.asp"
' Exclude specific extensions ' UnComment This Line After Incorporating .gif,.jpeg, .avi etc
myquery=myquery & " and not #filename *.|(txt|,inc|,jpg|,avi|,jpeg|,gif|,mdb|,cnt|,class|,toc|,css|)"
'myquery="$CONTENTS dsn"
objQuery.Query=myQuery
objQuery.Columns = "vpath, Path, DocTitle, Filename, Characterization, Contents,DocKeyWords, Rank"
'objquery.Columns = "DocTitle, vpath, filename, size, write, characterization, rank"
objQuery.SortBy = "Rank [d]"
objQuery.MaxRecords = 200
objquery.catalog="ITPO_USER" ' Change The Catalogue Name
'objUtil.AddScopeToQuery objQuery, "/", "deep"
objquery.LocaleID = objutil.ISOToLocaleID("EN-US")
Set rstemp = objQuery.CreateRecordSet("nonsequential")
'
if Err <> 0 then
response.redirect "/inc/commoninc/error.asp?section=" & EncodedSectionName & "&errortype=" & "err_record"
end if
'On error goto 0%>
|
|