% strCurrMenu="105" ThisPage=request.ServerVariables("URL") strClassName=GetVariable("classname") if strClassName="" then strClassName="所有產品" end if strQuery="" strClass=GetVariable("class") if strClass<>"" then SourCode=conn.execute("Select c_code From web_product_class Where mn_id=" & strCurrMenu & " and id="&strClass)(0) strQuery=strQuery & " And c_code Like '" & SourCode &"%'" end if strKey=GetVariable("key") if strKey<>"" then strQuery=strQuery & " And (p_name Like '%" & strKey & "%' Or p_detail Like '%" & strKey & "%') " strClassName="搜索:" & strKey end if strPrice1=GetVariable("price1") if strPrice1<>"" then strQuery=strQuery & " And p_price>=" & strPrice1 strClassName=strClassName & " 最低價格" & strPrice1 end if strPrice2=GetVariable("price2") if strPrice2<>"" then strQuery=strQuery & " And p_price<=" & strPrice2 strClassName=strClassName & " 最高價格" & strPrice1 end if %> <% '讀取產品展示的屬性,以確定顯示那個字段 showClass=GetKey("showClass",WebUserID,"product_" & strCurrMenu ) showPrice=GetKey("showPrice",WebUserID,"product_" & strCurrMenu ) showSize=GetKey("showSize",WebUserID,"product_" & strCurrMenu ) showSymbol=GetKey("showSymbol",WebUserID,"product_" & strCurrMenu ) showFace=GetKey("showFace",WebUserID,"product_" & strCurrMenu ) showShop=GetKey("showShop",WebUserID,"product_" & strCurrMenu ) showDetail=GetKey("showDetail",WebUserID,"product_" & strCurrMenu ) %>
產品展示
產品分類:
<%
set rr=server.CreateObject("adodb.recordset")
sql="select * from web_product_class where mn_id=105 order by c_code asc"
rr.open sql,conn,1,1
if rr.eof then
%>
<%
else
do while not rr.eof
%>
&classname=<%=trim(rr("c_name"))%>&mnid=<%=rr("mn_id")%>" class="aBlack"> <%=rr("c_name")%> |
<%
rr.movenext
loop
end if
%>
類 別: 關鍵字:
|