<%@LANGUAGE="VBSCRIPT"%> <% set rsOffers = Server.CreateObject("ADODB.Recordset") rsOffers.ActiveConnection = MM_connbds_STRING rsOffers.Source = "SELECT * FROM offers WHERE o_publish = True ORDER BY o_date DESC" rsOffers.CursorType = 0 rsOffers.CursorLocation = 2 rsOffers.LockType = 3 rsOffers.Open() rsOffers_numRows = 0 %> <% Dim Repeat1__numRows Repeat1__numRows = -1 Dim Repeat1__index Repeat1__index = 0 rsOffers_numRows = rsOffers_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 %> BDS - Special Offers
Special Offers
<% While ((Repeat1__numRows <> 0) AND (NOT rsOffers.EOF)) %>
<%=(rsOffers.Fields.Item("o_product").Value)%>
<%=(rsOffers.Fields.Item("o_short").Value)%>
£<%=(rsOffers.Fields.Item("o_offer").Value)%> + VAT
RRP £<%=(rsOffers.Fields.Item("o_rrp").Value)%> + VAT
">

<% Repeat1__index=Repeat1__index+1 Repeat1__numRows=Repeat1__numRows-1 rsOffers.MoveNext() Wend %>

 



BDS Computer
1 Rookery Court, Weller Drive, Hogwood Lane Trading Estate, Finchampstead, Wokingham, Berkshire, RG40 4QZ
Tel: 0118 973 7000 Fax: 0118 973 7070 e-mail: info@bds.co.uk

<% rsOffers.Close() %>