%
' Comersus BackOffice Lite
' e-commerce ASP Open Source
' Comersus Open Technologies LC
' 2005
' http://www.comersus.com
%>
<%
on error resume next
dim mySQL, conntemp, rstemp
' get settings
pDefaultLanguage = getSettingKey("pDefaultLanguage")
pStoreFrontDemoMode = getSettingKey("pStoreFrontDemoMode")
pCurrencySign = getSettingKey("pCurrencySign")
pDecimalSign = getSettingKey("pDecimalSign")
pCompany = getSettingKey("pCompany")
pStoreLocation = getSettingKey("pStoreLocation")
pKey = getUserInput(request("key"),20)
pKey = replace(pKey,"'","")
if (trim(pKey)="") then
response.redirect "comersus_backoffice_message.asp?message="& Server.Urlencode("Please enter search criteria")
end if
mySQL = "SELECT * FROM products WHERE details LIKE '%" &pKey& "%' OR description LIKE '%" &pKey& "%'"
call getFromDatabase(mySQL, rstemp, "comersus_backoffice_searchItemExec.asp")
if rstemp.eof then
response.redirect "comersus_backoffice_message.asp?message="& Server.Urlencode("There are no items under your search")
end if
%>
Product selection
Search key: <%=pKey%>
SKU | Description | Price | Cost | Active | Clearance | In Home | Actions |
<%=pSku%> | <%=pDescription%> | <%=pCurrencySign & money(pPrice)%> | <%=pCurrencySign & money(pCost)%> | <% if pActive="-1" then response.write "Yes" else response.write "No" end if %> | <% if pHotDeal="-1" then response.write "Yes" else response.write "No" end if %> | <% if pShowInHome="-1" then response.write "Yes" else response.write "No" end if %> | Edit Delete |