指引网

当前位置: 主页 > 编程开发 > ASP >

asp 无限级分类 代码

来源:网络 作者:佚名 点击: 时间:2017-08-23 21:43
[摘要] 指引教程为您提供asp 无限级分类 代码等资源,欢迎您收藏本站,我们将为您提供最新的asp 无限级分类 代码资源
<script>ec(2);</script>
<table width="620" align="center" border="0" cellpadding="1" cellspacing="1" style="background:#FB7"> <tr> <td width="464" height="27" bgcolor="#FFE7CE"> 代码如下</td> <td width="109" align="center" bgcolor="#FFE7CE" style="cursor:pointer;" onclick="doCopy('copy9516')">复制代码</td> </tr> <tr> <td height="auto" colspan="2" valign="top" bgcolor="#FFFFFF" style="padding:10px;" class="copyclass" id=copy9516>

Response.Write " <select name=""classType"">"
        Response.Write "<option value=""0"">做为一级分类</option>"
        Set Rsp=Conn.Execute("SELECT Classid,depth,ClassName FROM Zjc_ClassInfo ORDER BY ChannelId,Orders,RootId")
        If Not (Rsp.Eof And Rsp.Bof) Then
        Do While Not Rsp.EOF
                Response.Write "<option value=""" & Rsp("classid") & """ "
                Response.Write ">"
                If Rsp("depth") = 1 Then Response.Write "&nbsp;&nbsp;├ "
                If Rsp("depth") > 1 Then
                        For i = 2 To Rsp("depth")
                                Response.Write "&nbsp;&nbsp;│"
                        Next
                        Response.Write "&nbsp;&nbsp;├ "
                End If
                Response.Write Rsp("ClassName") & "</option>" & vbCrLf
                Rsp.movenext
            Loop
        Rsp.Close
        Set Rsp = Nothing
        End If
        Response.Write "</select>"

</td> </tr> </table></td> </tr> </table>

------分隔线----------------------------