%@LANGUAGE="VBSCRIPT"%>
<%
Dim rsProducts__MMColParam
rsProducts__MMColParam = "1002"
if (Request("MM_EmptyValue") <> "") then rsProducts__MMColParam = Request("MM_EmptyValue")
%>
<%
set rsProducts = Server.CreateObject("ADODB.Recordset")
rsProducts.ActiveConnection = MM_intertelecom2_STRING
rsProducts.Source = "SELECT * FROM rsproducts WHERE CatID = '" + Replace(rsProducts__MMColParam, "'", "''") + "'"
rsProducts.CursorType = 2
rsProducts.CursorLocation = 2
rsProducts.LockType = 3
rsProducts.Open()
rsProducts_numRows = 0
%>
<%
Dim rsModels__MMColParam
rsModels__MMColParam = "1"
if (rsProducts.Fields.Item("ID") <> "") then rsModels__MMColParam = rsProducts.Fields.Item("ID")
%>
<%
set rsModels = Server.CreateObject("ADODB.Recordset")
rsModels.ActiveConnection = MM_intertelecom2_STRING
rsModels.Source = "SELECT * FROM rsMods WHERE ProdID = '" + Replace(rsModels__MMColParam, "'", "''") + "'"
rsModels.CursorType = 2
rsModels.CursorLocation = 2
rsModels.LockType = 3
rsModels.Open()
rsModels_numRows = 0
%>
<%
Dim rsCategories__MMColParam
rsCategories__MMColParam = "1002"
if (Request("MM_EmptyValue") <> "") then rsCategories__MMColParam = Request("MM_EmptyValue")
%>
<%
set rsCategories = Server.CreateObject("ADODB.Recordset")
rsCategories.ActiveConnection = MM_intertelecom2_STRING
rsCategories.Source = "SELECT * FROM Categories WHERE CatID = '" + Replace(rsCategories__MMColParam, "'", "''") + "'"
rsCategories.CursorType = 0
rsCategories.CursorLocation = 2
rsCategories.LockType = 3
rsCategories.Open()
rsCategories_numRows = 0
%>
<%
Dim Repeat1__numRows
Repeat1__numRows = -1
Dim Repeat1__index
Repeat1__index = 0
rsProducts_numRows = rsProducts_numRows + Repeat1__numRows
%>
<%
' *** Go To Record and Move To Record: create strings for maintaining URL and Form parameters
' create the list of parameters which should not be maintained
MM_removeList = "&index="
If (MM_paramName <> "") Then MM_removeList = MM_removeList & "&" & MM_paramName & "="
MM_keepURL="":MM_keepForm="":MM_keepBoth="":MM_keepNone=""
' add the URL parameters to the MM_keepURL string
For Each Item In Request.QueryString
NextItem = "&" & Item & "="
If (InStr(1,MM_removeList,NextItem,1) = 0) Then
MM_keepURL = MM_keepURL & NextItem & Server.URLencode(Request.QueryString(Item))
End If
Next
' add the Form variables to the MM_keepForm string
For Each Item In Request.Form
NextItem = "&" & Item & "="
If (InStr(1,MM_removeList,NextItem,1) = 0) Then
MM_keepForm = MM_keepForm & NextItem & Server.URLencode(Request.Form(Item))
End If
Next
' create the Form + URL string and remove the intial '&' from each of the strings
MM_keepBoth = MM_keepURL & MM_keepForm
if (MM_keepBoth <> "") Then MM_keepBoth = Right(MM_keepBoth, Len(MM_keepBoth) - 1)
if (MM_keepURL <> "") Then MM_keepURL = Right(MM_keepURL, Len(MM_keepURL) - 1)
if (MM_keepForm <> "") Then MM_keepForm = Right(MM_keepForm, Len(MM_keepForm) - 1)
' a utility function used for adding additional parameters to these strings
Function MM_joinChar(firstItem)
If (firstItem <> "") Then
MM_joinChar = "&"
Else
MM_joinChar = ""
End If
End Function
%>
Intertelecom Systems - Suppliers of specialised security and automation