<%@LANGUAGE="VBSCRIPT"%> <% Dim rsListings__varID Dim x__listID, x__vendorID rsListings__varID = "''" if (Request.QueryString("ID") <> "") then rsListings__varID = Request.QueryString("ID") %> <% set rsListings = Server.CreateObject("ADODB.Recordset") rsListings.ActiveConnection = MM_BinderyEquipmentConnection_STRING rsListings.Source = "SELECT customer.ID as CustID, listings.ID, YearMfg, Manufacturer, Model, ItemCost, CompanyName, BillingAddress, City, State, Zip, customer.AcPhone AS Cust_AcPhone, customer.Phone AS Cust_Phone, customer.PhoneExt AS Cust_PhoneExt,customer.AcFax AS Cust_AcFax, customer.Fax AS Cust_Fax, E_mail, ContactFirst, ContactLast, listings.ACPhone, listings.Phone, listings.PhoneExt, Email, PhotoUrl, WebSiteUrl, Size, Description, New, EquipLocationState, EquipLocationCity, ActiveUrl FROM listings, customer WHERE customer.ID = CustomerID AND listings.ID = " + Replace(rsListings__varID, "'", "''") + "" rsListings.CursorType = 0 rsListings.CursorLocation = 2 rsListings.LockType = 3 rsListings.Open() rsListings_numRows = 0 %> <% ' *** 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 %> <% Dim txtNew txtNew = "" If (rsListings.Fields.Item("New").Value) = 1 Then txtNew = "New" Else txtNew = "Used" End If %> - Listing
" align="top" border="1" width="200">
  "<%=txtNew%>"
Listing ID <%=(rsListings.Fields.Item("ID").Value)%>
Year <%=(rsListings.Fields.Item("YearMfg").Value)%>
Manufacturer <%=(rsListings.Fields.Item("Manufacturer").Value)%>
Model <%=(rsListings.Fields.Item("Model").Value)%>
Size <%=(rsListings.Fields.Item("Size").Value)%>
Cost <%= FormatCurrency((rsListings.Fields.Item("ItemCost").Value), -1, -2, -2, -2) %>
Location <%=(rsListings.Fields.Item("EquipLocationCity").Value)%>, <%=(rsListings.Fields.Item("EquipLocationState").Value)%>
Description <%=(rsListings.Fields.Item("Description").Value)%>
Contact the Seller
<%=rsListings.Fields.Item("ContactFirst").Value%> <%=rsListings.Fields.Item("ContactLast").Value%>
<% If rsListings.Fields.Item("ACPhone").Value <> "" And rsListings.Fields.Item("Phone").Value <> "" Then %><%=rsListings.Fields.Item("ACPhone").Value%>-<%=rsListings.Fields.Item("Phone").Value%> <% If rsListings.Fields.Item("PhoneExt").Value <> "" Then %> ext <%=rsListings.Fields.Item("PhoneExt").Value%><% End If %>
<% End If If rsListings.Fields.Item("Email").Value <> "" Then Dim strEmail, intIndex strEmail = rsListings.Fields.Item("Email").Value %> <% End If %>

<% rsListings.Close() %>