<%
'=========Begin of Epilog Tags of Table , Form etc.=======================================
'----------------------------------------------------
'Organize cycle
'----------------------------------------------------
RS5.MoveNext
RowCount5 = RowCount5 - 1
CurrentRecordNumber5 = CurrentRecordNumber5 + 1
Loop
'======================================
%>
<%
'==========End Of Epilog Tags of Form, Table================================
'----------------------------------------------------
'Restore Recordset parameters'----------------------------------------------------
RowCount5=count5
CurrentRecordNumber5=RecordNumber5
Set RS5=temp5
RS5.AbsolutePage = PageNo5 'Page Number
'GetSelected fields
QueryOutput_333 = rs5.fields("QueryOutput_333")
QueryOutput_334 = rs5.fields("QueryOutput_334")
QueryOutput_337 = rs5.fields("QueryOutput_337")
QueryOutput_338 = rs5.fields("QueryOutput_338")
QueryOutput_370 = rs5.fields("QueryOutput_370")
QueryOutput_371 = rs5.fields("QueryOutput_371")
QueryOutput_869 = rs5.fields("QueryOutput_869")
QueryOutput_942 = rs5.fields("QueryOutput_942")
'Clear temp rs object
'---------------------------------------------------------------------
end if
Call RestoreVars()
'======================================
%>
<%Call PopVars()%>
<%Variable_133="Yes"%>
<%'----------------End Repetition Section-------------------------------
RowCount5 = RowCount5 - 1
CurrentRecordNumber5 = CurrentRecordNumber5 + 1
RS5.MoveNext
Loop
%><%
Conn5.Close
set rs5 = nothing
set Conn5 = nothing
%>
<%else%>
<%if(Parameter_331 = "ProductDescription") Then%>
<%
'==============Query_24("shopDB")================
DataSource7 = "Driver={Microsoft Access Driver (*.mdb)}; DBQ= "& DB_Path &"WebStore/Databases/ShopDB.mdb;"
PageSize7 = 1
Parameter_18_A=escape_symbols(Parameter_18)
Variable_403_A=escape_symbols(Variable_403)
Variable_404_A=escape_symbols(Variable_404)
GeneratedSQL= "SELECT [Products].[ProductID] as QueryOutput_19,[Products].[ProductName] as QueryOutput_47,[Products].[ProductImageURL] as QueryOutput_55,[Products].[TypeID] as QueryOutput_56,[Products].[UnitPrice] as QueryOutput_372,[Products].[ProductDescription] as QueryOutput_373,[Products].[ProductCode] as QueryOutput_868,[Products].[Orientation] as QueryOutput_943"_
&" FROM [Products]"_
&" WHERE [Products].[ProductDescription] LIKE '%"&Parameter_18_A&"%' AND [Products].[UnitPrice] >= "&Variable_403_A&" AND [Products].[UnitPrice] <= "&Variable_404_A&""
%>
<%'===============Execute Query And Get Total Count========================
Set Conn7 = Server.CreateObject("ADODB.Connection")
Set RS7 = Server.CreateObject("ADODB.RecordSet")
RS7.CursorType = adOpenStatic
Conn7.Open DataSource7
RS7.Open GeneratedSQL,Conn7,adOpenKeyset,adLockReadOnly 'both keys are to be variables
TotalCount7=RS7.RecordCount
if(TotalCount7 > 0) then
RS7.PageSize = TotalCount7 'All records
PageSize7 = TotalCount7 'All records
end if
ScrollAction = Request("_NavAction7")
if ScrollAction <> "" Then
PageNo7 = mid(ScrollAction, 5)
if PageNo7 < 1 Then
PageNo7 = 1
end if
else
PageNo7 = 1
end if
'set the page number on which the current record is located.
if(TotalCount7 <> 0) then
RS7.AbsolutePage = PageNo7 'Page Number
end if
FromRec7=(PageNo7-1)*PageSize7 +1
if PageNo7*PageSize7 > TotalCount7 Then
ToRec7 = TotalCount7
else
ToRec7 = PageNo7*PageSize7
end if
URLTail7 = "&keyword="& Parameter_18 &"&Field="& Parameter_331 &"&Operator="& Parameter_332 &"&Min="& Parameter_399 &"&Max="& Parameter_400 &"&Price="& Parameter_401
FNavAhead7 = "Next"
FNavBack7 = "Previous"
FLinkAhead7 = FormAction & "?_NavAction7=Page" & (PageNo7+1)& URLTail7
FLinkBack7 = FormAction & "?_NavAction7=Page" & (PageNo7-1)& URLTail7
%><%if (bHeaderFired = FALSE) then%>
SearchNow
<%
bHeaderFired = TRUE
end if
%>
<%Call PushVars()%>
There were <%=TotalCount7%> items found
with Product Description containing "<%=Parameter_18%>"
<%
'=========Begin of Epilog Tags of Table , Form etc.=======================================
'----------------------------------------------------
'Organize cycle
'----------------------------------------------------
RS7.MoveNext
RowCount7 = RowCount7 - 1
CurrentRecordNumber7 = CurrentRecordNumber7 + 1
Loop
'======================================
%>
<%
'==========End Of Epilog Tags of Form, Table================================
'----------------------------------------------------
'Restore Recordset parameters'----------------------------------------------------
RowCount7=count7
CurrentRecordNumber7=RecordNumber7
Set RS7=temp7
RS7.AbsolutePage = PageNo7 'Page Number
'GetSelected fields
QueryOutput_19 = rs7.fields("QueryOutput_19")
QueryOutput_47 = rs7.fields("QueryOutput_47")
QueryOutput_55 = rs7.fields("QueryOutput_55")
QueryOutput_56 = rs7.fields("QueryOutput_56")
QueryOutput_372 = rs7.fields("QueryOutput_372")
QueryOutput_373 = rs7.fields("QueryOutput_373")
QueryOutput_868 = rs7.fields("QueryOutput_868")
QueryOutput_943 = rs7.fields("QueryOutput_943")
'Clear temp rs object
'---------------------------------------------------------------------
end if
Call RestoreVars()
'======================================
%>
<%Call PopVars()%>
<%Variable_133="Yes"%>
<%'----------------End Repetition Section-------------------------------
RowCount7 = RowCount7 - 1
CurrentRecordNumber7 = CurrentRecordNumber7 + 1
RS7.MoveNext
Loop
%><%
Conn7.Close
set rs7 = nothing
set Conn7 = nothing
%>
<%else%>
<%end if%><%end if%><%else%>
<%if(Parameter_332 = "Equals") Then%>
<%if(Parameter_331 = "ProductName") Then%>
<%
'==============Query_36("shopDB")================
DataSource7 = "Driver={Microsoft Access Driver (*.mdb)}; DBQ= "& DB_Path &"WebStore/Databases/ShopDB.mdb;"
PageSize7 = 1
Parameter_18_A=escape_symbols(Parameter_18)
Variable_404_A=escape_symbols(Variable_404)
Variable_403_A=escape_symbols(Variable_403)
GeneratedSQL= "SELECT [Products].[ProductID] as QueryOutput_374,[Products].[ProductImageURL] as QueryOutput_375,[Products].[ProductName] as QueryOutput_376,[Products].[UnitPrice] as QueryOutput_377,[Products].[TypeID] as QueryOutput_378,[Products].[ProductDescription] as QueryOutput_405,[Products].[ProductCode] as QueryOutput_867,[Products].[Orientation] as QueryOutput_944"_
&" FROM [Products]"_
&" WHERE [Products].[ProductName] = '"&Parameter_18_A&"' AND [Products].[UnitPrice] <= "&Variable_404_A&" AND [Products].[UnitPrice] >= "&Variable_403_A&""
%>
<%'===============Execute Query And Get Total Count========================
Set Conn7 = Server.CreateObject("ADODB.Connection")
Set RS7 = Server.CreateObject("ADODB.RecordSet")
RS7.CursorType = adOpenStatic
Conn7.Open DataSource7
RS7.Open GeneratedSQL,Conn7,adOpenKeyset,adLockReadOnly 'both keys are to be variables
TotalCount7=RS7.RecordCount
if(TotalCount7 > 0) then
RS7.PageSize = TotalCount7 'All records
PageSize7 = TotalCount7 'All records
end if
ScrollAction = Request("_NavAction7")
if ScrollAction <> "" Then
PageNo7 = mid(ScrollAction, 5)
if PageNo7 < 1 Then
PageNo7 = 1
end if
else
PageNo7 = 1
end if
'set the page number on which the current record is located.
if(TotalCount7 <> 0) then
RS7.AbsolutePage = PageNo7 'Page Number
end if
FromRec7=(PageNo7-1)*PageSize7 +1
if PageNo7*PageSize7 > TotalCount7 Then
ToRec7 = TotalCount7
else
ToRec7 = PageNo7*PageSize7
end if
URLTail7 = "&keyword="& Parameter_18 &"&Field="& Parameter_331 &"&Operator="& Parameter_332 &"&Min="& Parameter_399 &"&Max="& Parameter_400 &"&Price="& Parameter_401
FNavAhead7 = "Next"
FNavBack7 = "Previous"
FLinkAhead7 = FormAction & "?_NavAction7=Page" & (PageNo7+1)& URLTail7
FLinkBack7 = FormAction & "?_NavAction7=Page" & (PageNo7-1)& URLTail7
%><%if (bHeaderFired = FALSE) then%>
SearchNow
<%
bHeaderFired = TRUE
end if
%>
<%Call PushVars()%>
<%
'=========Begin of Epilog Tags of Table , Form etc.=======================================
'----------------------------------------------------
'Organize cycle
'----------------------------------------------------
RS7.MoveNext
RowCount7 = RowCount7 - 1
CurrentRecordNumber7 = CurrentRecordNumber7 + 1
Loop
'======================================
%>
<%
'==========End Of Epilog Tags of Form, Table================================
'----------------------------------------------------
'Restore Recordset parameters'----------------------------------------------------
RowCount7=count7
CurrentRecordNumber7=RecordNumber7
Set RS7=temp7
RS7.AbsolutePage = PageNo7 'Page Number
'GetSelected fields
QueryOutput_374 = rs7.fields("QueryOutput_374")
QueryOutput_375 = rs7.fields("QueryOutput_375")
QueryOutput_376 = rs7.fields("QueryOutput_376")
QueryOutput_377 = rs7.fields("QueryOutput_377")
QueryOutput_378 = rs7.fields("QueryOutput_378")
QueryOutput_405 = rs7.fields("QueryOutput_405")
QueryOutput_867 = rs7.fields("QueryOutput_867")
QueryOutput_944 = rs7.fields("QueryOutput_944")
'Clear temp rs object
'---------------------------------------------------------------------
end if
Call RestoreVars()
'======================================
%>
<%Call PopVars()%>
<%Variable_133="Yes"%>
<%'----------------End Repetition Section-------------------------------
RowCount7 = RowCount7 - 1
CurrentRecordNumber7 = CurrentRecordNumber7 + 1
RS7.MoveNext
Loop
%><%
Conn7.Close
set rs7 = nothing
set Conn7 = nothing
%>
<%else%>
<%if(Parameter_331 = "ProductDescription") Then%>
<%
'==============Query_37("shopDB")================
DataSource9 = "Driver={Microsoft Access Driver (*.mdb)}; DBQ= "& DB_Path &"WebStore/Databases/ShopDB.mdb;"
PageSize9 = 1
Parameter_18_A=escape_symbols(Parameter_18)
Variable_403_A=escape_symbols(Variable_403)
Variable_404_A=escape_symbols(Variable_404)
GeneratedSQL= "SELECT [Products].[ProductID] as QueryOutput_386,[Products].[ProductImageURL] as QueryOutput_387,[Products].[ProductName] as QueryOutput_388,[Products].[UnitPrice] as QueryOutput_389,[Products].[TypeID] as QueryOutput_390,[Products].[ProductDescription] as QueryOutput_406,[Products].[ProductCode] as QueryOutput_866,[Products].[Orientation] as QueryOutput_945"_
&" FROM [Products]"_
&" WHERE [Products].[ProductDescription] = '"&Parameter_18_A&"' AND [Products].[UnitPrice] >= "&Variable_403_A&" AND [Products].[UnitPrice] <= "&Variable_404_A&""
%>
<%'===============Execute Query And Get Total Count========================
Set Conn9 = Server.CreateObject("ADODB.Connection")
Set RS9 = Server.CreateObject("ADODB.RecordSet")
RS9.CursorType = adOpenStatic
Conn9.Open DataSource9
RS9.Open GeneratedSQL,Conn9,adOpenKeyset,adLockReadOnly 'both keys are to be variables
TotalCount9=RS9.RecordCount
if(TotalCount9 > 0) then
RS9.PageSize = TotalCount9 'All records
PageSize9 = TotalCount9 'All records
end if
ScrollAction = Request("_NavAction9")
if ScrollAction <> "" Then
PageNo9 = mid(ScrollAction, 5)
if PageNo9 < 1 Then
PageNo9 = 1
end if
else
PageNo9 = 1
end if
'set the page number on which the current record is located.
if(TotalCount9 <> 0) then
RS9.AbsolutePage = PageNo9 'Page Number
end if
FromRec9=(PageNo9-1)*PageSize9 +1
if PageNo9*PageSize9 > TotalCount9 Then
ToRec9 = TotalCount9
else
ToRec9 = PageNo9*PageSize9
end if
URLTail9 = "&keyword="& Parameter_18 &"&Field="& Parameter_331 &"&Operator="& Parameter_332 &"&Min="& Parameter_399 &"&Max="& Parameter_400 &"&Price="& Parameter_401
FNavAhead9 = "Next"
FNavBack9 = "Previous"
FLinkAhead9 = FormAction & "?_NavAction9=Page" & (PageNo9+1)& URLTail9
FLinkBack9 = FormAction & "?_NavAction9=Page" & (PageNo9-1)& URLTail9
%><%if (bHeaderFired = FALSE) then%>
SearchNow
<%
bHeaderFired = TRUE
end if
%>
<%Call PushVars()%>
There were items found
with Product Description equal to "<%=Parameter_18%>"