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

文章列表类别

来源:Http://myeducs.cn 联系QQ:点击这里给我发消息 作者: 用户投稿 来源: 网络 发布时间: 13/06/17

sTempContent = Newasp.CutMatchContent(strTemp, "{$ReadFriendLink(", ")}", 1)
nTempContent = Newasp.CutMatchContent(strTemp, "{$ReadFriendLink(", ")}", 0)
arrTempContents = Split(sTempContent, "|||")
arrTempContent = Split(nTempContent, "|||")
For i = 0 To UBound(arrTempContents)
ArrayList = Split(arrTempContent(i), ",")
strTemp = Replace(strTemp, arrTempContents(i), LoadFriendLink(ArrayList(0), ArrayList(1), ArrayList(2), ArrayList(3)))
Next
End If
ReadFriendLink = strTemp
End Function
''================================================
''函数名:PageRunTime
''作 用:页面执行时间
''================================================
Public Function ExecutionTime()
Dim Endtime
ExecutionTime = ""
If CInt(Newasp.IsRunTime) = 1 Then
Endtime = Timer()
ExecutionTime = "页面执行时间:" & FormatNumber((((Endtime - startime) * 5000) + 0.5) / 10, 3, -1) & "毫秒"
Else
ExecutionTime = ""
End If
End Function

''================================================
''函数名:CurrentStation
''作 用:当前位置
''参 数:...
''================================================
Public Function CurrentStation(ByVal ChannelID, ByVal ClassID, ByVal ClassName, _
ByVal ParentID, ByVal strParent, ByVal HtmlFileDir, ByVal Compart)

Dim rsCurrent, SQL, strContent, ChannelDir

CurrentStation = ""
ChannelID = Newasp.ChkNumeric(ChannelID)
ClassID = Newasp.ChkNumeric(ClassID)
ParentID = Newasp.ChkNumeric(ParentID)

On Error Resume Next
Newasp.LoadChannel(ChannelID)

ChannelDir = Newasp.ChannelPath

strContent = "<a href=''" & ChannelDir & "''>" & Newasp.ChannelName & "</a>" & Compart & ""
If ParentID <> 0 And Len(strParent) <> 0 Then
SQL = "SELECT ClassID,ClassName,HtmlFileDir,UseHtml FROM [NC_Classify] WHERE ChannelID = " & ChannelID & " And ClassID in(" & strParent & ")"
Set rsCurrent = Newasp.Execute(SQL)
If Not (rsCurrent.EOF And rsCurrent.BOF) Then
Do While Not rsCurrent.EOF

If CInt(Newasp.IsCreateHtml) <> 0 Then
strContent = strContent & "<a href=''" & ChannelDir & rsCurrent("HtmlFileDir") & "''>" & rsCurrent("ClassName") & "</a>" & Compart & ""
Else
strContent = strContent & "<a href=''" & ChannelDir & "list.asp?classid=" & rsCurrent("ClassID") & "''>" & rsCurrent("ClassName") & "</a>" & Compart & ""
End If
rsCurrent.MoveNext
Loop
End If
rsCurrent.Close
Set rsCurrent = Nothing
End If
If CInt(Newasp.IsCreateHtml) <> 0 Then
strContent = strCon
  • 上一篇资讯: newasp中main类
  • 下一篇资讯: [ASP]精华代码
  • 网学推荐

    免费论文

    原创论文

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