%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%> <% 'Basic CDO Mail from Web-Shorts.com If Request.Form("Submit") <> "" Then Const ws_Subject = "Enquiry from the Icenta Website" Const ws_ToEmail = "sales@icenta.co.uk" 'Const ws_ToEmail = "test@webbyfoot.com" Const ws_Redir = "thanks.asp" Dim ws_From ws_From = Request.Form("email") Dim ws_Body, ws_fieldName, ws_fieldValue, ws_i For ws_i = 1 to Request.Form.Count ws_fieldName = Replace(Request.Form.Key(ws_i),"_"," ") ws_fieldValue = Request.Form.Item(ws_i) ws_Body = ws_Body & ws_fieldName & ": " & ws_fieldValue & VbCrLf Next Dim objCDO Set objCDO = Server.CreateObject("CDONTS.NewMail") objCDO.From = ws_From objCDO.To = ws_ToEmail objCDO.Subject = ws_Subject objCDO.Body = ws_Body objCDO.Send() Set objCDO = Nothing Response.Redirect(ws_Redir) End If %> <% Dim Recordset2__MMColParam Recordset2__MMColParam = "1" If (Request("MM_EmptyValue") <> "") Then Recordset2__MMColParam = Request("MM_EmptyValue") End If %> <% Dim Recordset2 Dim Recordset2_numRows Set Recordset2 = Server.CreateObject("ADODB.Recordset") Recordset2.ActiveConnection = MM_icenta_STRING Recordset2.Source = "SELECT category, category_description, category_picture, heading, catorder, subcats, colour, displayorder FROM paper_categorydetails WHERE displayorder = " + Replace(Recordset2__MMColParam, "'", "''") + " ORDER BY catorder ASC" Recordset2.CursorType = 0 Recordset2.CursorLocation = 2 Recordset2.LockType = 1 Recordset2.Open() Recordset2_numRows = 0 %> <% Dim Recordset1__MMColParam Recordset1__MMColParam = "1" If (Request("MM_EmptyValue") <> "") Then Recordset1__MMColParam = Request("MM_EmptyValue") End If %> <% Dim Recordset1 Dim Recordset1_numRows Set Recordset1 = Server.CreateObject("ADODB.Recordset") Recordset1.ActiveConnection = MM_icenta_STRING Recordset1.Source = "SELECT category, category_description, category_picture, heading, catorder, subcats, colour, displayorder FROM paper_categorydetails WHERE displayorder = " + Replace(Recordset1__MMColParam, "'", "''") + " ORDER BY catorder ASC" Recordset1.CursorType = 0 Recordset1.CursorLocation = 2 Recordset1.LockType = 1 Recordset1.Open() Recordset1_numRows = 0 %> <% Dim Repeat3__numRows Dim Repeat3__index Repeat3__numRows = -1 Repeat3__index = 0 Recordset2_numRows = Recordset2_numRows + Repeat3__numRows %> <% Dim Repeat2__numRows Dim Repeat2__index Repeat2__numRows = -1 Repeat2__index = 0 Recordset1_numRows = Recordset1_numRows + Repeat2__numRows %>
| category.asp?category=<%=(Recordset1.Fields.Item("category").Value)%><% End If %><% If (Recordset1.Fields.Item("subcats").Value) = "NO" Then %>detail.asp?cat=<%=(Recordset1.Fields.Item("category").Value)%>&subcat=none<% End If %>'" onMouseOver="BGNew(this,'buttonover','flow products')" onMouseOut="BGNew(this,'button','')"> | ||