当前位置: 网学 > 编程文档 > ASP > 正文

newasp中main类

来源:Http://myeducs.cn 联系QQ:点击这里给我发消息 作者: 用户投稿 来源: 网络 发布时间: 13/06/17
"</a>"
If i Mod CInt(Main_Setting(8)) = 0 Then strContent = strContent & "<br>"
HtmlContent = Replace(HtmlContent, "{$ChannelMenu}", strContent)
Rs.MoveNext
Loop
End If
Rs.Close: Set Rs = Nothing
''Value = strContent
End If
''strContent = Value

ChannelMenu = HtmlContent
End Function
''=============================================================
''函数名:LoadSelectClass
''作 用:载入缓存下拉分类列表
''参 数:ChannelID ----频道ID
''返回值:下拉分类列表
''=============================================================
Public Function LoadSelectClass(ChannelID)
Dim CacheSelClass, SQL, Rs1, i

Name = "SelectClass" & ChannelID
If ObjIsEmpty() Then
SQL = "select ClassID,ClassName,depth,TurnLink,child from NC_Classify where ChannelID = " & ChannelID & " order by rootid,orders"
Set Rs1 = Execute(SQL)
If Rs1.BOF And Rs1.EOF Then
CacheSelClass = CacheSelClass & "<option>没有添加分类</option>"
End If
Do While Not Rs1.EOF
If Rs1("TurnLink") <> 0 Then
CacheSelClass = CacheSelClass & "<option value=""0"""
Else
If Rs1("depth") = 0 And Rs1("child") <> 0 Then
CacheSelClass = CacheSelClass & "<option"
Else
CacheSelClass = CacheSelClass & "<option value=""" & Rs1("ClassID") & """"
End If
End If
CacheSelClass = CacheSelClass & " {ClassID=" & Rs1("ClassID") & "}>"
If Rs1("depth") = 1 Then CacheSelClass = CacheSelClass & " ├ "
If Rs1("depth") > 1 Then
For i = 2 To Rs1("depth")
CacheSelClass = CacheSelClass & " "
Next
CacheSelClass = CacheSelClass & " ├ "
End If
CacheSelClass = CacheSelClass & Rs1("ClassName") & "</option>" & vbCrLf
Rs1.MoveNext
Loop
Rs1.Close
Set Rs1 = Nothing
Value = CacheSelClass
End If
LoadSelectClass = Value
End Function
Public Function ClassJumpMenu(ChannelID)
Dim CacheJumpMenu
Dim Rs1
Dim i
Name = "ClassJumpMenu" & ChannelID
If ObjIsEmpty() Then
Set Rs1 = Execute("select ClassID,ChannelID,ClassName,depth,TurnLink,TurnLinkUrl from [NC_Classify] where ChannelID = " & ChannelID & " order by rootid,orders")
Do While Not Rs1.EOF
If Rs1("TurnLink") <> 0 Then
CacheJumpMenu = CacheJumpMenu & "<option value=""" & Rs1("TurnLinkUrl") & """ {ClassID=" & Rs1("classid") & "}"
Else
CacheJ
  • 上一篇资讯: newasp中下载类
  • 下一篇资讯: 文章列表类别
  • 网学推荐

    免费论文

    原创论文

    浏览:
    设为首页 | 加入收藏 | 论文首页 | 论文专题 | 设计下载 | 网学软件 | 论文模板 | 论文资源 | 程序设计 | 关于网学 | 站内搜索 | 网学留言 | 友情链接 | 资料中心
    版权所有 QQ:3710167 邮箱:3710167@qq.com 网学网 [Myeducs.cn] 您电脑的分辨率是 像素
    Copyright 2008-2015 myeducs.Cn www.myeducs.Cn All Rights Reserved
    湘ICP备09003080号