| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 591 人关注过本帖
标题:二级分类首次显示不出来
只看楼主 加入收藏
icemaple_2008
Rank: 1
等 级:新手上路
帖 子:2
专家分:0
注 册:2008-4-3
收藏
 问题点数:0 回复次数:0 
二级分类首次显示不出来
<%
Set b_news=Conn.Execute("Select * From [BigClass]")
Response.Write "<select name=BigClassName onChange='changelocation(document.myform.BigClassName.options[document.myform.BigClassName.selectedIndex].value)'>"
If b_news.Eof and b_news.Bof Then
Response.Write "产品大类!"
Else
Response.Write "<option value='" &Trim(b_news("BigClassName"))& "|" &b_news("EnBigClassName")& "'>" &Trim(b_news("BigClassName"))& "(" &Trim(b_news("EnBigClassName"))& ")</option>"
Dim selclass
selclass= b_news("BigClass")
b_news.MoveNext
Do until b_news.Eof
Response.Write "<option "
Response.Write " value='" &Trim(b_news("BigClassName"))& "|" &b_news("EnBigClassName")& "'>" &Trim(b_news("BigClassName"))& "(" &Trim(b_news("EnBigClassName"))& ")</option>"
b_news.MoveNext
Loop
End if
Response.Write "</select>"

Set s_news=Conn.Execute("Select * From [SmallClass] Where BigClassName='" &selclass& "'")
Response.Write "<select name=SmallClassName>"
If s_news.Eof Then
Response.Write "产品小类"
Else
Response.Write "<option value='0' selected>产品小类</option>"
Do until s_news.Eof
Response.Write "<option value='"&Trim(s_news("SmallClassName"))&"|"&s_news("EnSmallClassName")&"'>" &Trim(s_news("SmallClassName"))& "(" &Trim(s_news("EnSmallClassName"))& ")</option>"
s_news.MoveNext
Loop
End if
Response.Write "</select>"
Response.Write "(请先选择产品小类)"
%>
搜索更多相关主题的帖子: 分类 
2008-04-04 11:51
快速回复:二级分类首次显示不出来
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.038273 second(s), 7 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved