<%@ Language=VBScript %> <%Response.Buffer=True%> Wades - New Equipment <% OpenConnection1 Set rs=Server.CreateObject("ADODB.Recordset") CatID=Request.QueryString("C") txtMan=Request.QueryString("M") txtMandb=dbReplace(txtMan) txtKey=Trim(dbReplace(Request.QueryString("K"))) %>
<%If Request.QueryString("L")="T" Then Sel="SELECT ProductID,txtProduct,txtTeaser FROM UProducts WHERE nCatID=" & CatID rs.Open Sel,DB,1,3 If rs.EOF then%> <%Else%> <%Else%>

View by Category...    
View by Manufacturer...    
Search by Keyword/Phrase...    

There is currently no Used Equipment available in this category.
Please check back soon!!
<%While Not rs.EOF%> <%rs.MoveNext Wend rs.Close%>
" title="Click here to view the details of <%=rs("txtProduct")%>"> <%=rs("txtProduct")%>
<%=rs("txtTeaser")%>
 
<%End If ElseIf Request.QueryString("LM")="T" Then Sel="SELECT ProductID,txtProduct,txtTeaser FROM UProducts WHERE txtManufacturer='" & txtMandb & "'" rs.Open Sel,DB,1,3 If rs.EOF then%>
There is currently no New Equipment available from this Manufacturer.
Please check back soon!!
<%While Not rs.EOF%> <%rs.MoveNext Wend rs.Close%>
" title="Click here to view the details of <%=rs("txtProduct")%>"> <%=rs("txtProduct")%>
<%=rs("txtTeaser")%>
 
<%End If ElseIf Request.QueryString("LK")="T" Then Sel="SELECT DISTINCT ProductID FROM UProducts WHERE txtProduct LIKE '%" & txtKey & "%' OR txtDescription LIKE '%" & txtKey & "%' OR txtManufacturer LIKE '%" & txtKey & "%' OR txtTeaser LIKE '%" & txtKey & "%' OR ProductID IN (SELECT nProductID FROM UP_Specs WHERE txtSpecification LIKE '%" & txtKey & "%')" rs.Open Sel,DB,1,3 If rs.EOF then%>
Sorry - your search returned 0 results.
Try another keyword or search method.
<%Else%>
<%Set pr=Server.CreateObject("ADODB.Recordset") While Not rs.EOF Sel="SELECT txtProduct,txtTeaser,txtDescription FROM UProducts WHERE ProductID=" & rs("ProductID") pr.Open Sel,DB,1,3%> <%pr.Close rs.MoveNext Wend rs.Close%> <%End If%>
" title="Click here to view the details of <%=pr("txtProduct")%>"> <%=Highlighter(pr("txtProduct"),txtKey)%>
<%=Highlighter(pr("txtTeaser"),txtKey)%>
 
<%End If%>

 

<% Function IsSelected(value,data) If value=data then IsSelected="Selected" Else IsSelected="" End If End Function %> <% Function Highlighter(astring,searchtext) holder = searchtext If Trim(astring) <>"" then astring=Replace(astring,searchtext,"" & holder & "",1,-1,1) End If Highlighter=astring End Function %>