关 健 字
查找方式
var selects111=[];
set rs=server.createobject("adodb.recordset")
rs.open "select * from pingpai order by pingpaiorder",conn,1,1
'有大类
%>
selects111['2']=new Array(
if rs.recordcount>0 then
for i=1 to rs.recordcount
if i=rs.recordcount then
%>
new Option('',''));
%>
new Option('',''),
end if
rs.movenext
next
else
%>
new Option('',''));
end if
rs.close
set rs=nothing
set rs=server.createobject("adodb.recordset")
rs.open "select * from shihe order by shiheorder",conn,1,1
'有大类
%>
selects111['3']=new Array(
if rs.recordcount>0 then
for i=1 to rs.recordcount
if i=rs.recordcount then
%>
new Option('',''));
%>
new Option('',''),
end if
rs.movenext
next
else
%>
new Option('',''));
end if
rs.close
set rs=nothing
%>
function showselect()
{
if (document.form2.action.value=="2") {
T_select.style.display = "";
//加入内容
with (document.form2){
if(action.value) {
selectname.options.length=0;
for(var i=0;i selectname.add(selects111[action.value][i]);
}
}
}
}else{
T_select.style.display = "none";
}
}
商品名称
内容简介
价格范围
20元以下
30元以下
50元以下
100元以下
500元以下
1000元以下
10000元以下
商品分类
rs.open "select * from wq_sort order by anclassidorder",conn,1,1
%>
查讯所有分类
loop
rs.close
set rs=nothing%>