成人性生交大片免费看视频r_亚洲综合极品香蕉久久网_在线视频免费观看一区_亚洲精品亚洲人成人网在线播放_国产精品毛片av_久久久久国产精品www_亚洲国产一区二区三区在线播_日韩一区二区三区四区区区_亚洲精品国产无套在线观_国产免费www

主頁 > 知識庫 > 文章列表類別

文章列表類別

熱門標(biāo)簽:怎么在地圖標(biāo)注自己 縣域地圖標(biāo)注打印店 修改地圖標(biāo)注 外呼系統(tǒng)API接口 萊西電子地圖標(biāo)注 武夷山旅游地圖標(biāo)注 個人可以辦理400電話么 金昌電話機器人價格 鳳臺百度地圖標(biāo)注店
%
Dim HTML
Set HTML = New NewaspPublic_Cls
Class NewaspPublic_Cls

    Private Sub Class_Initialize()
        On Error Resume Next
        Newasp.LoadTemplates 0, 0, 0
    End Sub
    '================================================
    '函數(shù)名:LoadArticleList
    '作  用:裝載文章列表
    '參  數(shù):ClassID   ----分類ID
    '        ChannelID   ----頻道ID
    '        SpecialID  ----專題ID
    '        sType   ----調(diào)用文章類型,0=所有最新文章,1=推薦文章,2=熱門文章,3=圖文文章,4=分類最新文章
    '        TopNum   ----顯示文章列表數(shù)
    '        strlen   ----顯示標(biāo)題長度
    '        ShowClass   ----是否顯示分類
    '        ShowPic   ----是否顯示圖文標(biāo)題
    '        ShowDate   ----是否顯示日期
    '        DateMode   ----顯示日期模式
    '        newindow   ----新窗口打開
    '================================================
    Public Function LoadArticleList(ByVal ChannelID, ByVal ClassID, ByVal SpecialID, _
        ByVal stype, ByVal TopNum, ByVal strLen, _
        ByVal showclass, ByVal showpic, ByVal showdate, _
        ByVal DateMode, ByVal newindow, ByVal styles)

        Dim Rs, SQL, i, strContent, foundstr
        Dim sTitle, sTopic, ChildStr, ListStyle, BestCode, BestString
        Dim ArticleTopic, ClassName, HtmlFileUrl, WriteTime, LinkTarget, HtmlFileName

        ChannelID = Newasp.ChkNumeric(ChannelID)
        ClassID = Newasp.ChkNumeric(ClassID)
        SpecialID = Newasp.ChkNumeric(SpecialID)
        stype = Newasp.ChkNumeric(stype)

        On Error Resume Next
        Newasp.LoadChannel(ChannelID)

        If CInt(stype) >= 4 And CLng(ClassID) > 0 Then
            SQL = "SELECT ChildStr FROM [NC_Classify] WHERE ChannelID="  ChannelID  " And ClassID="  ClassID
            Set Rs = Newasp.Execute(SQL)
            If Rs.BOF And Rs.EOF Then
                Set Rs = Nothing
                LoadArticleList = ""
                Exit Function
            Else
                ChildStr = Rs("ChildStr")
            End If
            Set Rs = Nothing
        Else
            ChildStr = "0"
        End If

        Select Case CInt(stype)
            Case 0: foundstr = "Order By A.Writetime Desc ,A.Articleid Desc"
            Case 1: foundstr = "And A.isBest > 0 Order By A.Writetime Desc ,A.Articleid Desc"
            Case 2: foundstr = "Order By A.AllHits Desc ,A.Articleid Desc"
            Case 3: foundstr = "And (A.BriefTopic = 1 Or A.BriefTopic = 2) Order By A.Writetime Desc ,A.Articleid Desc"
            Case 4: foundstr = "And A.ClassID in ("  ChildStr  ") Order By A.Writetime Desc ,A.Articleid Desc"
            Case 5: foundstr = "And A.ClassID in ("  ChildStr  ") And A.isBest > 0 Order By A.Writetime Desc ,A.Articleid Desc"
            Case 6: foundstr = "And A.ClassID in ("  ChildStr  ") Order By A.AllHits Desc ,A.Articleid Desc"
            Case 7: foundstr = "And A.ClassID in ("  ChildStr  ") And (A.BriefTopic = 1 Or A.BriefTopic = 2) Order By A.Writetime Desc ,A.Articleid Desc"
        Case Else
            foundstr = "Order By A.Writetime Desc ,A.Articleid Desc"
        End Select
        If CInt(stype) >= 4 And CLng(ClassID) = 0 Then
            foundstr = "Order By A.Writetime Desc ,A.Articleid Desc"
        End If
        If CLng(SpecialID) > 0 Then
            foundstr = "And A.SpecialID ="  CLng(SpecialID)  " "  foundstr
        End If
        SQL = " A.ArticleID,A.ClassID,A.ColorMode,A.FontMode,A.title,A.BriefTopic,A.AllHits,A.WriteTime,A.HtmlFileDate,A.isBest,"
        SQL = "SELECT Top "  CInt(TopNum)  SQL  " C.ClassName,C.ColorModes,C.FontModes,C.HtmlFileDir,C.UseHtml FROM [NC_Article] A INNER JOIn [NC_Classify] C ON A.ClassID=C.ClassID WHERE A.isAccept>0 And A.ChannelID="  ChannelID  " "  foundstr  ""
        Set Rs = Newasp.Execute(SQL)
        i = 0
        If Rs.BOF And Rs.EOF Then
            strContent = "該分類還沒有添加任何內(nèi)容!"
        Else
            strContent = "table width=""100%"" border=0 cellpadding=2 cellspacing=0>"
            Do While Not Rs.EOF
                If (i Mod 2) = 0 Then
                    ListStyle = Trim(styles)  1
                Else
                    ListStyle = Trim(styles)  2
                End If
                If Rs("isBest") > 0 Then
                    BestCode = 2
                    BestString = "font color='"  Newasp.MainSetting(3)  "'>推薦/font>"
                Else
                    BestCode = 1
                    BestString = ""
                End If

                strContent = strContent  Newasp.MainSetting(13)

                sTitle = Newasp.GotTopic(Rs("title"), CInt(strLen))
                sTitle = Newasp.ReadFontMode(sTitle, Rs("ColorMode"), Rs("FontMode"))
                sTopic = Newasp.ReadPicTopic(Rs("BriefTopic"))

                ClassName = Newasp.ReadFontMode(Rs("ClassName"), Rs("ColorModes"), Rs("FontModes"))
                HtmlFileName = Newasp.ReadFileName(Rs("HtmlFileDate"), Rs("ArticleID"), Newasp.ChannelHtmlExt, Newasp.ChannelPrefix, Newasp.ChannelHtmlForm, "")
                If CInt(Newasp.ChannelUseHtml) > 0 Then
                    HtmlFileUrl = Newasp.ChannelPath  Rs("HtmlFileDir")  Newasp.ShowDatePath(Rs("HtmlFileDate"), Newasp.ChannelHtmlPath)  HtmlFileName
                    ClassName = "a href='"  Newasp.ChannelPath  Rs("HtmlFileDir")  "index"  Newasp.ChannelHtmlExt  "'>"  ClassName  "/a>"
                Else
                    HtmlFileUrl = Newasp.ChannelPath  "show.asp?id="  Rs("ArticleID")
                    ClassName = "a href='"  Newasp.ChannelPath  "list.asp?classid="  Rs("ClassID")  "'>"  ClassName  "/a>"
                End If

                If CInt(showclass) = 0 Then ClassName = ""
                If CInt(showpic) = 0 Then sTopic = ""
                If CInt(showdate) > 0 Then
                    WriteTime = Newasp.ShowDateTime(Rs("WriteTime"), CInt(DateMode))
                Else
                    WriteTime = ""
                End If
                If CInt(newindow) > 0 Then
                    LinkTarget = " target=""_blank"""
                Else
                    LinkTarget = ""
                End If
                ArticleTopic = "a href='"  HtmlFileUrl  "'"  LinkTarget  " title='"  Newasp.ChannelModule  "標(biāo)題:"  Rs("title")  "#13;#10;發(fā)布時間:"  Rs("WriteTime")  "#13;#10;閱覽次數(shù):"  Rs("AllHits")  "' class=showlist>"  sTitle  "/a>"
                strContent = Replace(strContent, "{$ArticleTopic}", ArticleTopic)
                strContent = Replace(strContent, "{$ArticleID}", Rs("ArticleID"))
                strContent = Replace(strContent, "{$InstallDir}", Newasp.InstallDir)
                strContent = Replace(strContent, "{$ArticleTitle}", sTitle)
                strContent = Replace(strContent, "{$Title}", Rs("title"))
                strContent = Replace(strContent, "{$DateAndTitle}", Rs("WriteTime"))
                strContent = Replace(strContent, "{$BriefTopic}", sTopic)
                strContent = Replace(strContent, "{$HtmlFileUrl}", HtmlFileUrl)
                strContent = Replace(strContent, "{$ClassName}", ClassName)
                strContent = Replace(strContent, "[]", "")
                strContent = Replace(strContent, "{$Target}", LinkTarget)
                strContent = Replace(strContent, "{$WriteTime}", WriteTime)
                strContent = Replace(strContent, "{$AticleHits}", Rs("AllHits"))
                strContent = Replace(strContent, "{$ListStyle}", ListStyle)
                strContent = Replace(strContent, "{$BestCode}", BestCode)
                strContent = Replace(strContent, "{$BestString}", BestString)
            Rs.MoveNext
            i = i + 1
            Loop
            strContent = strContent  "/table>"
        End If

        Rs.Close: Set Rs = Nothing
        LoadArticleList = strContent
    End Function
    '================================================
    '函數(shù)名:ReadArticleList
    '作  用:讀取文章列表
    '參  數(shù):str ----原字符串
    '================================================
    Public Function ReadArticleList(ByVal str)
        Dim strTemp, i
        Dim sTempContent, nTempContent
        Dim arrTempContent, arrTempContents, ArrayList
        On Error Resume Next
        strTemp = str
        If InStr(strTemp, "{$ReadArticleList(") > 0 Then
            sTempContent = Newasp.CutMatchContent(strTemp, "{$ReadArticleList(", ")}", 1)
            nTempContent = Newasp.CutMatchContent(strTemp, "{$ReadArticleList(", ")}", 0)
            arrTempContents = Split(sTempContent, "|||")
            arrTempContent = Split(nTempContent, "|||")

            For i = 0 To UBound(arrTempContents)
                ArrayList = Split(arrTempContent(i), ",")
                strTemp = Replace(strTemp, arrTempContents(i), LoadArticleList(ArrayList(0), ArrayList(1), ArrayList(2), ArrayList(3), ArrayList(4), ArrayList(5), ArrayList(6), ArrayList(7), ArrayList(8), ArrayList(9), ArrayList(10), ArrayList(11)))
            Next
        End If
        ReadArticleList = strTemp
    End Function
    '================================================
    '函數(shù)名:LoadSoftList
    '作  用:裝載軟件列表
    '參  數(shù):ClassID   ----分類ID
    '        ChannelID   ----頻道ID
    '        sType   ----調(diào)用類型
    '        TopNum   ----顯示列表數(shù)
    '        strlen   ----顯示標(biāo)題長度
    '        ShowClass   ----是否顯示分類
    '        ShowDate   ----是否顯示日期
    '        DateMode   ----顯示日期模式
    '        newindow   ----新窗口打開
    '================================================
    Public Function LoadSoftList(ByVal ChannelID, ByVal ClassID, ByVal SpecialID, _
        ByVal stype, ByVal TopNum, ByVal strLen, ByVal showclass, _
        ByVal showdate, ByVal DateMode, ByVal newindow, ByVal styles)

        Dim Rs, SQL, i, strContent, foundstr,j
        Dim strSoftName, ChildStr, ListStyle
        Dim HtmlFileName, BestCode, BestString,ChannelPath
        Dim ClassName, HtmlFileUrl, SoftTime, LinkTarget, SoftTopic

        ChannelID = Newasp.ChkNumeric(ChannelID)
        ClassID = Newasp.ChkNumeric(ClassID)
        SpecialID = Newasp.ChkNumeric(SpecialID)
        stype = Newasp.ChkNumeric(stype)

        On Error Resume Next
        Newasp.LoadChannel(ChannelID)

        If CInt(stype) >= 3 And CLng(ClassID) > 0 Then
            SQL = "SELECT ChildStr FROM [NC_Classify] WHERE ChannelID="  ChannelID  " And ClassID = "  ClassID
            Set Rs = Newasp.Execute(SQL)
            If Rs.BOF And Rs.EOF Then
                Set Rs = Nothing
                LoadSoftList = ""
                Exit Function
            Else
                ChildStr = Rs("ChildStr")
            End If
            Rs.Close
        Else
            ChildStr = 0
        End If
        Select Case CInt(stype)
            Case 0: foundstr = "Order By A.SoftTime Desc ,A.SoftID Desc"
            Case 1: foundstr = "And A.isBest > 0 Order By A.SoftTime Desc ,A.SoftID Desc"
            Case 2: foundstr = "Order By A.AllHits Desc ,A.SoftID Desc"
            Case 3: foundstr = "And A.ClassID in ("  ChildStr  ") Order By A.SoftTime Desc ,A.SoftID Desc"
            Case 4: foundstr = "And A.ClassID in ("  ChildStr  ") And A.isBest > 0 Order By A.SoftTime Desc ,A.SoftID Desc"
            Case 5: foundstr = "And A.ClassID in ("  ChildStr  ") Order By A.AllHits Desc ,A.SoftID Desc"
        Case Else
            foundstr = "Order By A.SoftTime Desc ,A.SoftID Desc"
        End Select
        If CInt(stype) >= 3 And CLng(ClassID) = 0 Then
            foundstr = "Order By A.SoftTime Desc ,A.SoftID Desc"
        End If
        If CLng(SpecialID) > 0 Then
            foundstr = "And A.SpecialID ="  CLng(SpecialID)  " "  foundstr
        End If
        SQL = " A.SoftID,A.ClassID,A.ColorMode,A.FontMode,A.SoftName,A.SoftVer,A.AllHits,A.SoftTime,A.HtmlFileDate,A.isBest,"
        SQL = "SELECT TOP "  CInt(TopNum)  SQL  " C.ClassName,C.ColorModes,C.FontModes,C.HtmlFileDir,C.UseHtml FROM [NC_SoftList] A INNER JOIN [NC_Classify] C On A.ClassID=C.ClassID WHERE A.isAccept>0 And A.ChannelID="  ChannelID  " "  foundstr  ""
        Set Rs = Newasp.Execute(SQL)
        j = 0

        If Rs.BOF And Rs.EOF Then
            strContent = "沒有添加任何軟件!"
        Else
            SQL=Rs.GetRows(-1)
            strContent = "table width=""100%"" border=0 cellpadding=2 cellspacing=0>"
            For i=0 To Ubound(SQL,2)
                If (j Mod 2) = 0 Then
                    ListStyle = Trim(styles)  1
                Else
                    ListStyle = Trim(styles)  2
                End If
                If CInt(SQL(9,i)) > 0 Then
                    BestCode = 2
                    BestString = "font color='"  Newasp.MainSetting(3)  "'>推薦/font>"
                Else
                    BestCode = 1
                    BestString = ""
                End If
                strContent = strContent  Newasp.MainSetting(14)
                strSoftName = Newasp.GotTopic(SQL(4,i)  " "  SQL(5,i), CInt(strLen))
                strSoftName = Newasp.ReadFontMode(strSoftName, SQL(2,i), SQL(3,i))
                ClassName = Newasp.ReadFontMode(SQL(10,i), SQL(11,i), SQL(12,i))
                HtmlFileName = Newasp.ReadFileName(SQL(8,i), SQL(0,i), Newasp.ChannelHtmlExt, Newasp.ChannelPrefix, Newasp.ChannelHtmlForm, "")
                If CInt(Newasp.ChannelUseHtml) > 0 Then
                    HtmlFileUrl = Newasp.ChannelPath  SQL(13,i)  Newasp.ShowDatePath(SQL(8,i), Newasp.ChannelHtmlPath)  HtmlFileName
                    ClassName = "a href='"  Newasp.ChannelPath  SQL(13,i)  "index"  Newasp.ChannelHtmlExt  "'>"  ClassName  "/a>"
                Else
                    HtmlFileUrl = Newasp.ChannelPath  "show.asp?id="  SQL(0,i)
                    ClassName = "a href='"  Newasp.ChannelPath  "list.asp?classid="  SQL(1,i)  "'>"  ClassName  "/a>"
                End If
                If CInt(showclass) = 0 Then ClassName = ""
                If CInt(showdate) > 0 Then
                    SoftTime = Newasp.ShowDateTime(SQL(7,i), CInt(DateMode))
                Else
                    SoftTime = ""
                End If
                If CInt(newindow) > 0 Then
                    LinkTarget = " target=""_blank"""
                Else
                    LinkTarget = ""
                End If
                SoftTopic = "a href='"  HtmlFileUrl  "'"  LinkTarget  " title='"  Newasp.ChannelModule  "名稱:"  Trim(SQL(4,i)  " "  SQL(5,i))  "#13;#10;發(fā)布時間:"  SQL(7,i)  "#13;#10;下載次數(shù):"  SQL(6,i)  "' class=showlist>"  strSoftName  "/a>"
                strContent = Replace(strContent, "{$SoftTopic}", SoftTopic)
                strContent = Replace(strContent, "{$SoftID}", Rs("softid"))
                strContent = Replace(strContent, "{$InstallDir}", Newasp.InstallDir)
                strContent = Replace(strContent, "{$SoftName}", strSoftName)
                strContent = Replace(strContent, "{$Title}", SQL(4,i))
                strContent = Replace(strContent, "{$DateAndTitle}", SQL(7,i))
                strContent = Replace(strContent, "{$HtmlFileUrl}", HtmlFileUrl)
                strContent = Replace(strContent, "{$ClassName}", ClassName)
                strContent = Replace(strContent, "[]", "")
                strContent = Replace(strContent, "{$Target}", LinkTarget)
                strContent = Replace(strContent, "{$SoftTime}", SoftTime)
                strContent = Replace(strContent, "{$SoftHits}", SQL(6,i))
                strContent = Replace(strContent, "{$ListStyle}", ListStyle)
                strContent = Replace(strContent, "{$BestCode}", BestCode)
                strContent = Replace(strContent, "{$BestString}", BestString)
            j = j + 1
            Next
            SQL=Null
            strContent = strContent  "/table>"
        End If
        Rs.Close: Set Rs = Nothing
        LoadSoftList = strContent
    End Function
    '================================================
    '函數(shù)名:ReadSoftList
    '作  用:讀取軟件列表
    '參  數(shù):str ----原字符串
    '================================================
    Public Function ReadSoftList(ByVal str)
        Dim strTemp, i
        Dim sTempContent, nTempContent
        Dim arrTempContent, arrTempContents, ArrayList
        On Error Resume Next
        strTemp = str
        If InStr(strTemp, "{$ReadSoftList(") > 0 Then
            sTempContent = Newasp.CutMatchContent(strTemp, "{$ReadSoftList(", ")}", 1)
            nTempContent = Newasp.CutMatchContent(strTemp, "{$ReadSoftList(", ")}", 0)
            arrTempContents = Split(sTempContent, "|||")
            arrTempContent = Split(nTempContent, "|||")
            For i = 0 To UBound(arrTempContents)
                ArrayList = Split(arrTempContent(i), ",")
                strTemp = Replace(strTemp, arrTempContents(i), LoadSoftList(ArrayList(0), ArrayList(1), ArrayList(2), ArrayList(3), ArrayList(4), ArrayList(5), ArrayList(6), ArrayList(7), ArrayList(8), ArrayList(9), ArrayList(10)))
            Next
        End If
        ReadSoftList = strTemp
    End Function

    '================================================
    '函數(shù)名:LoadFlashList
    '作  用:裝載動畫列表
    '參  數(shù):ClassID   ----分類ID
    '        ChannelID   ----頻道ID
    '        sType   ----調(diào)用類型
    '        TopNum   ----顯示列表數(shù)
    '        strlen   ----顯示標(biāo)題長度
    '        ShowClass   ----是否顯示分類
    '        ShowDate   ----是否顯示日期
    '        DateMode   ----顯示日期模式
    '        newindow   ----新窗口打開
    '================================================
    Public Function LoadFlashList(ByVal ChannelID, ByVal ClassID, ByVal SpecialID, _
        ByVal stype, ByVal TopNum, ByVal strLen, ByVal showclass, _
        ByVal showdate, ByVal DateMode, ByVal newindow, ByVal styles)

        Dim Rs, SQL, i, strContent, foundstr,j
        Dim strTitle, ChildStr, ListStyle
        Dim HtmlFileName, BestCode, BestString,ChannelPath
        Dim ClassName, HtmlFileUrl, addTime, LinkTarget, FlashTopic

        ChannelID = Newasp.ChkNumeric(ChannelID)
        ClassID = Newasp.ChkNumeric(ClassID)
        SpecialID = Newasp.ChkNumeric(SpecialID)
        stype = Newasp.ChkNumeric(stype)

        On Error Resume Next
        Newasp.LoadChannel(ChannelID)

        If CInt(stype) >= 3 And CLng(ClassID) > 0 Then
            SQL = "SELECT ChildStr FROM [NC_Classify] WHERE ChannelID="  ChannelID  " And ClassID = "  ClassID
            Set Rs = Newasp.Execute(SQL)
            If Rs.BOF And Rs.EOF Then
                Set Rs = Nothing
                LoadFlashList = ""
                Exit Function
            Else
                ChildStr = Rs("ChildStr")
            End If
            Rs.Close
        Else
            ChildStr = 0
        End If
        Select Case CInt(stype)
            Case 0: foundstr = "Order By A.addTime Desc ,A.flashid Desc"
            Case 1: foundstr = "And A.isBest > 0 Order By A.addTime Desc ,A.flashid Desc"
            Case 2: foundstr = "Order By A.AllHits Desc ,A.flashid Desc"
            Case 3: foundstr = "And A.ClassID in ("  ChildStr  ") Order By A.addTime Desc ,A.flashid Desc"
            Case 4: foundstr = "And A.ClassID in ("  ChildStr  ") And A.isBest > 0 Order By A.addTime Desc ,A.flashid Desc"
            Case 5: foundstr = "And A.ClassID in ("  ChildStr  ") Order By A.AllHits Desc ,A.flashid Desc"
        Case Else
            foundstr = "Order By A.addTime Desc ,A.flashid Desc"
        End Select
        If CInt(stype) >= 3 And CLng(ClassID) = 0 Then
            foundstr = "Order By A.addTime Desc ,A.flashid Desc"
        End If
        If CLng(SpecialID) > 0 Then
            foundstr = "And A.SpecialID ="  CLng(SpecialID)  " "  foundstr
        End If
        SQL = " A.flashid,A.ClassID,A.ColorMode,A.FontMode,A.title,A.Author,A.AllHits,A.addTime,A.HtmlFileDate,A.isBest,"
        SQL = "SELECT TOP "  CInt(TopNum)  SQL  " C.ClassName,C.ColorModes,C.FontModes,C.HtmlFileDir,C.UseHtml FROM [NC_FlashList] A INNER JOIN [NC_Classify] C On A.ClassID=C.ClassID WHERE A.isAccept>0 And A.ChannelID="  ChannelID  " "  foundstr  ""
        Set Rs = Newasp.Execute(SQL)
        j = 0

        If Rs.BOF And Rs.EOF Then
            strContent = "沒有添加任何信息!"
        Else
            SQL=Rs.GetRows(-1)
            strContent = "table width=""100%"" border=0 cellpadding=2 cellspacing=0>"
            For i=0 To Ubound(SQL,2)
                If (j Mod 2) = 0 Then
                    ListStyle = Trim(styles)  1
                Else
                    ListStyle = Trim(styles)  2
                End If
                If CInt(SQL(9,i)) > 0 Then
                    BestCode = 2
                    BestString = "font color='"  Newasp.MainSetting(3)  "'>推薦/font>"
                Else
                    BestCode = 1
                    BestString = ""
                End If
                strContent = strContent  Newasp.MainSetting(22)
                strTitle = Newasp.GotTopic(SQL(4,i), CInt(strLen))
                strTitle = Newasp.ReadFontMode(strTitle, SQL(2,i), SQL(3,i))
                ClassName = Newasp.ReadFontMode(SQL(10,i), SQL(11,i), SQL(12,i))
                HtmlFileName = Newasp.ReadFileName(SQL(8,i), SQL(0,i), Newasp.ChannelHtmlExt, Newasp.ChannelPrefix, Newasp.ChannelHtmlForm, "")
                If CInt(Newasp.ChannelUseHtml) > 0 Then
                    HtmlFileUrl = Newasp.ChannelPath  SQL(13,i)  Newasp.ShowDatePath(SQL(8,i), Newasp.ChannelHtmlPath)  HtmlFileName
                    ClassName = "a href='"  Newasp.ChannelPath  SQL(13,i)  "index"  Newasp.ChannelHtmlExt  "'>"  ClassName  "/a>"
                Else
                    HtmlFileUrl = Newasp.ChannelPath  "show.asp?id="  SQL(0,i)
                    ClassName = "a href='"  Newasp.ChannelPath  "list.asp?classid="  SQL(1,i)  "'>"  ClassName  "/a>"
                End If
                If CInt(showclass) = 0 Then ClassName = ""
                If CInt(showdate) > 0 Then
                    addTime = Newasp.ShowDateTime(SQL(7,i), CInt(DateMode))
                Else
                    addTime = ""
                End If
                If CInt(newindow) > 0 Then
                    LinkTarget = " target=""_blank"""
                Else
                    LinkTarget = ""
                End If
                FlashTopic = "a href='"  HtmlFileUrl  "'"  LinkTarget  " title='"  Newasp.ChannelModule  "名稱:"  SQL(4,i)  "#13;#10;發(fā)布時間:"  SQL(7,i)  "#13;#10;下載次數(shù):"  SQL(6,i)  "' class=showlist>"  strTitle  "/a>"
                strContent = Replace(strContent, "{$FlashTopic}", FlashTopic)
                strContent = Replace(strContent, "{$FlashID}", Rs("flashid"))
                strContent = Replace(strContent, "{$InstallDir}", Newasp.InstallDir)
                strContent = Replace(strContent, "{$FlashTopic}", strTitle)
                strContent = Replace(strContent, "{$Title}", SQL(4,i))
                strContent = Replace(strContent, "{$DateAndTime}", SQL(7,i))
                strContent = Replace(strContent, "{$HtmlFileUrl}", HtmlFileUrl)
                strContent = Replace(strContent, "{$ClassName}", ClassName)
                strContent = Replace(strContent, "[]", "")
                strContent = Replace(strContent, "{$Target}", LinkTarget)
                strContent = Replace(strContent, "{$addTime}", addTime)
                strContent = Replace(strContent, "{$FlashHits}", SQL(6,i))
                strContent = Replace(strContent, "{$ListStyle}", ListStyle)
                strContent = Replace(strContent, "{$BestCode}", BestCode)
                strContent = Replace(strContent, "{$BestString}", BestString)
            j = j + 1
            Next
            SQL=Null
            strContent = strContent  "/table>"
        End If
        Rs.Close: Set Rs = Nothing
        LoadFlashList = strContent
    End Function
    '================================================
    '函數(shù)名:ReadFlashList
    '作  用:讀取動畫列表
    '參  數(shù):str ----原字符串
    '================================================
    Public Function ReadFlashList(ByVal str)
        Dim strTemp, i
        Dim sTempContent, nTempContent
        Dim arrTempContent, arrTempContents, ArrayList
        On Error Resume Next
        strTemp = str
        If InStr(strTemp, "{$ReadFlashList(") > 0 Then
            sTempContent = Newasp.CutMatchContent(strTemp, "{$ReadFlashList(", ")}", 1)
            nTempContent = Newasp.CutMatchContent(strTemp, "{$ReadFlashList(", ")}", 0)
            arrTempContents = Split(sTempContent, "|||")
            arrTempContent = Split(nTempContent, "|||")
            For i = 0 To UBound(arrTempContents)
                ArrayList = Split(arrTempContent(i), ",")
                strTemp = Replace(strTemp, arrTempContents(i), LoadFlashList(ArrayList(0), ArrayList(1), ArrayList(2), ArrayList(3), ArrayList(4), ArrayList(5), ArrayList(6), ArrayList(7), ArrayList(8), ArrayList(9), ArrayList(10)))
            Next
        End If
        ReadFlashList = strTemp
    End Function
    '================================================
    '函數(shù)名:LoadAnnounceContent
    '作  用:裝載內(nèi)容公告
    '參  數(shù):str ----原字符串
    '================================================
    Public Function LoadAnnounceContent(ByVal sTopic, ByVal ChannelID)
        Dim SQL, Rs, strTemp
        strTemp = ""
        sTopic = Newasp.CheckStr(sTopic)
        If sTopic > "" And sTopic > "0" Then
            SQL = "Select AnnounceID,Content,PostTime,writer From NC_Announce where AnnounceType=1 And title = '"  sTopic  "' Order By PostTime Desc,AnnounceID Desc"
        Else
            SQL = "Select AnnounceID,Content From NC_Announce where AnnounceType=1 And ChannelID in ("  ChannelID  ",999) Order By PostTime Desc,AnnounceID Desc"
        End If
        Set Rs = Newasp.Execute(SQL)
        If Not (Rs.BOF And Rs.EOF) Then
            strTemp = Rs("Content")
        End If
        Rs.Close: Set Rs = Nothing
        LoadAnnounceContent = strTemp
    End Function
    '================================================
    '函數(shù)名:ReadAnnounceContent
    '作  用:讀取內(nèi)容公告
    '參  數(shù):str ----原字符串
    '================================================
    Public Function ReadAnnounceContent(ByVal str, ByVal ChannelID)
        Dim strTemp, i, sTempContent, nTempContent, strValue
        Dim arrTempContent, arrTempContents
        On Error Resume Next
        strTemp = str
        If InStr(strTemp, "{$AnnounceContent(") > 0 Then
            sTempContent = Newasp.CutMatchContent(strTemp, "{$AnnounceContent(", ")}", 1)
            nTempContent = Newasp.CutMatchContent(strTemp, "{$AnnounceContent(", ")}", 0)
            If nTempContent = "" Then nTempContent = "0"
            arrTempContents = Split(sTempContent, "|||")
            arrTempContent = Split(nTempContent, "|||")
            For i = 0 To UBound(arrTempContents)
                strValue = arrTempContent(i)
                strTemp = Replace(strTemp, arrTempContents(i), LoadAnnounceContent(strValue, ChannelID))
            Next
        End If
        ReadAnnounceContent = strTemp
    End Function
    '================================================
    '函數(shù)名:LoadAnnounceList
    '作  用:裝載公告列表
    '參  數(shù):maxnum ----最多公告數(shù)
    '        maxlen ----字符長度
    '        newindow ----是否新窗口打開 1=是,0=否
    '        showdate ----是否顯示時間 1=是,0=否
    '        DateMode ----時間模式
    '        showtree ----樹型顯示
    '================================================
    Public Function LoadAnnounceList(ByVal ChannelID, ByVal maxnum, ByVal maxlen, _
        ByVal newindow, ByVal showdate, ByVal DateMode, ByVal showtree)

        Dim Rs, SQL, strContent
        Dim AnnounceTopic, LinkTarget
        Dim PostTime

        ChannelID = Newasp.ChkNumeric(ChannelID)
        maxnum = Newasp.ChkNumeric(maxnum)
        If maxnum = 0 Then maxnum = 10

        On Error Resume Next
        Set Rs = Newasp.Execute("SELECT TOP "  CInt(maxnum)  " AnnounceID,title,Content,PostTime,writer,hits FROM NC_Announce WHERE (ChannelID="  ChannelID  " Or ChannelID=999) And AnnounceType>1 ORDER BY PostTime DESC,AnnounceID DESC")
        If Rs.BOF And Rs.EOF Then
            LoadAnnounceList = ""
            Set Rs = Nothing
            Exit Function
        Else
            Do While Not Rs.EOF
                If CInt(newindow) > 0 Then
                    LinkTarget = " target=""_blank"""
                Else
                    LinkTarget = ""
                End If
                If CInt(showdate) > 0 Then
                    PostTime = Newasp.ShowDateTime(Rs("PostTime"), CInt(DateMode))
                Else
                    PostTime = ""
                End If
                AnnounceTopic = Newasp.GotTopic(Rs("title"), CInt(maxlen))
                AnnounceTopic = "a href="""  Newasp.InstallDir  "Announce.Asp?AnnounceID="  Rs("AnnounceID")  """ title="""  Rs("title")  """"  LinkTarget  ">"  AnnounceTopic  "/a>"
                If CInt(showtree) = 1 Then
                    strContent = strContent  "div>· "  AnnounceTopic  "/div>div align=""right"" class=""dottedline"">"  PostTime  "/div>"  vbNewLine
                Else
                    strContent = strContent  "· "  AnnounceTopic  "nbsp;nbsp;"  PostTime  vbNewLine
                End If
                Rs.MoveNext
            Loop
        End If
        LoadAnnounceList = strContent
    End Function
    '================================================
    '函數(shù)名:ReadAnnounceList
    '作  用:讀取公告列表
    '參  數(shù):str ----原字符串
    '================================================
    Public Function ReadAnnounceList(ByVal str)
        Dim strTemp, i
        Dim sTempContent, nTempContent, ArrayList
        Dim arrTempContent, arrTempContents
        On Error Resume Next
        strTemp = str
        If InStr(strTemp, "{$ReadAnnounceList(") > 0 Then
            sTempContent = Newasp.CutMatchContent(strTemp, "{$ReadAnnounceList(", ")}", 1)
            nTempContent = Newasp.CutMatchContent(strTemp, "{$ReadAnnounceList(", ")}", 0)
            arrTempContents = Split(sTempContent, "|||")
            arrTempContent = Split(nTempContent, "|||")
            For i = 0 To UBound(arrTempContents)
                ArrayList = Split(arrTempContent(i), ",")
                strTemp = Replace(strTemp, arrTempContents(i), LoadAnnounceList(ArrayList(0), ArrayList(1), ArrayList(2), ArrayList(3), ArrayList(4), ArrayList(5), ArrayList(6)))
            Next
        End If
        ReadAnnounceList = strTemp
    End Function
    '================================================
    '函數(shù)名:LoadArticlePic
    '作  用:裝載文章圖片列表
    '參  數(shù):ClassID   ----分類ID
    '        ChannelID   ----頻道ID
    '        sType   ----調(diào)用文章類型,0=所有最新文章,1=推薦文章,2=熱門文章,3=圖文文章,4=分類最新文章
    '        TopNum   ----顯示文章列表數(shù)
    '        strlen   ----顯示標(biāo)題長度
    '        ShowClass   ----是否顯示分類
    '        ShowPic   ----是否顯示圖文標(biāo)題
    '        ShowDate   ----是否顯示日期
    '        DateMode   ----顯示日期模式
    '        newindow   ----新窗口打開
    '================================================
    Public Function LoadArticlePic(ChannelID, ClassID, SpecialID, stype, TopNum, PerRowNum, strLen, newindow, width, height, showtopic)
        Dim Rs, SQL, i, strContent, foundstr
        Dim sTitle, ChildStr, ImageUrl, HtmlFileName
        Dim HtmlFileUrl, WriteTime, LinkTarget

        ChannelID = Newasp.ChkNumeric(ChannelID)
        ClassID = Newasp.ChkNumeric(ClassID)
        SpecialID = Newasp.ChkNumeric(SpecialID)
        stype = Newasp.ChkNumeric(stype)

        On Error Resume Next
        Newasp.LoadChannel(ChannelID)

        If CInt(stype) >= 3 And CLng(ClassID) > 0 Then
            SQL = "SELECT ChildStr FROM [NC_Classify] WHERE ChannelID="  ChannelID  " And ClassID="  ClassID
            Set Rs = Newasp.Execute(SQL)
            If Rs.BOF And Rs.EOF Then
                Set Rs = Nothing
                LoadArticlePic = ""
                Exit Function
            Else
                ChildStr = Rs("ChildStr")
            End If
            Set Rs = Nothing
        Else
            ChildStr = 0
        End If
        Select Case CInt(stype)
            Case 0: foundstr = "Order By A.Writetime Desc ,A.Articleid Desc"
            Case 1: foundstr = "And A.isBest > 0 Order By A.Writetime Desc ,A.Articleid Desc"
            Case 2: foundstr = "Order By A.AllHits Desc ,A.Articleid Desc"
            Case 3: foundstr = "And A.ClassID in ("  ChildStr  ") Order By A.Writetime Desc ,A.Articleid Desc"
            Case 4: foundstr = "And A.ClassID in ("  ChildStr  ") And A.isBest > 0 Order By A.Writetime Desc ,A.Articleid Desc"
            Case 5: foundstr = "And A.ClassID in ("  ChildStr  ") Order By A.AllHits Desc ,A.Articleid Desc"
        Case Else
            foundstr = "Order By A.Writetime Desc ,A.Articleid Desc"
        End Select
        If CInt(stype) >= 4 And CLng(ClassID) = 0 Then
            foundstr = "Order By A.Writetime Desc ,A.Articleid Desc"
        End If
        If CLng(SpecialID) > 0 Then
            foundstr = "And A.SpecialID ="  CLng(SpecialID)  " "  foundstr
        End If
        SQL = " A.ArticleID,A.ClassID,A.title,A.AllHits,A.WriteTime,A.HtmlFileDate,A.isBest,A.ImageUrl,"
        SQL = "select Top "  CInt(TopNum)  SQL  " C.ClassName,C.HtmlFileDir,C.UseHtml from [NC_Article] A inner join [NC_Classify] C On A.ClassID=C.ClassID where A.isAccept > 0 And A.ImageUrl>'' And A.ChannelID="  ChannelID  " "  foundstr  ""
        Set Rs = Newasp.Execute(SQL)
        If Rs.BOF And Rs.EOF Then
            strContent = "img src='"  Newasp.InstallDir  "images/no_pic.gif' width="  width  " height="  height  " border=0>"
        Else
            strContent = "table width=""100%"" border=0 cellpadding=1 cellspacing=5>"  vbCrLf
            Do While Not Rs.EOF

                strContent = strContent  "tr>"  vbCrLf
                For i = 1 To CInt(PerRowNum)
                    strContent = strContent  "td align=""center"" class=""imagelist"">"
                    If Not Rs.EOF Then
                        sTitle = Newasp.GotTopic(Rs("title"), CInt(strLen))
                        ImageUrl = Newasp.GetImageUrl(Rs("ImageUrl"), Newasp.ChannelData(1))
                        ImageUrl = Newasp.GetFlashAndPic(ImageUrl, height, width)

                        HtmlFileName = Newasp.ReadFileName(Rs("HtmlFileDate"), Rs("ArticleID"), Newasp.ChannelHtmlExt, Newasp.ChannelPrefix, Newasp.ChannelHtmlForm, "")
                        If CInt(Newasp.ChannelUseHtml) > 0 Then
                            HtmlFileUrl = Newasp.ChannelPath  Rs("HtmlFileDir")  Newasp.ShowDatePath(Rs("HtmlFileDate"), Newasp.ChannelHtmlPath)  HtmlFileName
                        Else
                            HtmlFileUrl = Newasp.ChannelPath  "show.asp?id="  Rs("ArticleID")
                        End If

                        If CInt(newindow) > 0 Then
                            LinkTarget = " target=""_blank"""
                        Else
                            LinkTarget = ""
                        End If
                        strContent = strContent  Newasp.MainSetting(18)
                        strContent = Replace(strContent, "{$ArticlePicture}", "a href='"  HtmlFileUrl  "' title='"  Rs("title")  "'"  LinkTarget  ">"  ImageUrl  "/a>")
                        If CInt(showtopic) = 1 Then
                            strContent = Replace(strContent, "{$ArticleTopic}", "a href='"  HtmlFileUrl  "' title='"  Rs("title")  "'"  LinkTarget  ">"  sTitle  "/a>")
                        Else
                            strContent = Replace(strContent, "{$ArticleTopic}", vbNullString)
                        End If
                        strContent = strContent  "/td>"  vbCrLf
                    Rs.MoveNext
                End If
            Next
            strContent = strContent  "/tr>"  vbCrLf
            Loop
            strContent = strContent  "/table>"  vbCrLf
        End If
        Rs.Close: Set Rs = Nothing
        LoadArticlePic = strContent
    End Function
    '================================================
    '函數(shù)名:ReadArticlePic
    '作  用:讀取文章圖片列表
    '參  數(shù):str ----原字符串
    '================================================
    Public Function ReadArticlePic(ByVal str)
        Dim strTemp, i
        Dim sTempContent, nTempContent, ArrayList
        Dim arrTempContent, arrTempContents
        On Error Resume Next
        strTemp = str
        If InStr(strTemp, "{$ReadArticlePic(") > 0 Then
            sTempContent = Newasp.CutMatchContent(strTemp, "{$ReadArticlePic(", ")}", 1)
            nTempContent = Newasp.CutMatchContent(strTemp, "{$ReadArticlePic(", ")}", 0)
            arrTempContents = Split(sTempContent, "|||")
            arrTempContent = Split(nTempContent, "|||")
            For i = 0 To UBound(arrTempContents)
                ArrayList = Split(arrTempContent(i), ",")
                strTemp = Replace(strTemp, arrTempContents(i), LoadArticlePic(ArrayList(0), ArrayList(1), ArrayList(2), ArrayList(3), ArrayList(4), ArrayList(5), ArrayList(6), ArrayList(7), ArrayList(8), ArrayList(9), ArrayList(10)))
            Next
        End If
        ReadArticlePic = strTemp
    End Function
    '================================================
    '函數(shù)名:LoadSoftPic
    '作  用:裝載軟件圖片列表
    '參  數(shù):ClassID   ----分類ID
    '        ChannelID   ----頻道ID
    '        sType   ----調(diào)用軟件類型,0=所有最新軟件,1=推薦軟件,2=熱門軟件
    '        TopNum   ----顯示軟件列表數(shù)
    '        strlen   ----顯示標(biāo)題長度
    '        newindow   ----新窗口打開
    '================================================
    Public Function LoadSoftPic(ChannelID, ClassID, SpecialID, stype, TopNum, PerRowNum, strLen, newindow, width, height, showtopic)
        Dim Rs, SQL, i, strContent, foundstr
        Dim strSoftName, ChildStr, SoftImage, HtmlFileName
        Dim HtmlFileUrl, SoftTime, LinkTarget

        ChannelID = Newasp.ChkNumeric(ChannelID)
        ClassID = Newasp.ChkNumeric(ClassID)
        SpecialID = Newasp.ChkNumeric(SpecialID)
        stype = Newasp.ChkNumeric(stype)

        On Error Resume Next
        Newasp.LoadChannel(ChannelID)

        If CInt(stype) >= 3 And CLng(ClassID) > 0 Then
            SQL = "select ChildStr from [NC_Classify] where ChannelID = "  ChannelID  " And ClassID = "  ClassID
            Set Rs = Newasp.Execute(SQL)
            If Rs.BOF And Rs.EOF Then
                Set Rs = Nothing
                LoadSoftPic = ""
                Exit Function
            Else
                ChildStr = Rs("ChildStr")
            End If
            Rs.Close
        Else
            ChildStr = 0
        End If
        Select Case CInt(stype)
            Case 0: foundstr = "Order By A.SoftTime Desc ,A.SoftID Desc"
            Case 1: foundstr = "And A.isBest > 0 Order By A.SoftTime Desc ,A.SoftID Desc"
            Case 2: foundstr = "Order By A.AllHits Desc ,A.SoftID Desc"
            Case 3: foundstr = "And A.ClassID in ("  ChildStr  ") Order By A.SoftTime Desc ,A.SoftID Desc"
            Case 4: foundstr = "And A.ClassID in ("  ChildStr  ") And A.isBest > 0 Order By A.SoftTime Desc ,A.SoftID Desc"
            Case 5: foundstr = "And A.ClassID in ("  ChildStr  ") Order By A.AllHits Desc ,A.SoftID Desc"
        Case Else
            foundstr = "Order By A.SoftTime Desc ,A.SoftID Desc"
        End Select
        If CInt(stype) >= 3 And CLng(ClassID) = 0 Then
            foundstr = "Order By A.SoftTime Desc ,A.SoftID Desc"
        End If
        If CLng(SpecialID) > 0 Then
            foundstr = "And A.SpecialID ="  CLng(SpecialID)  " "  foundstr
        End If
        SQL = " A.SoftID,A.ClassID,A.SoftName,A.SoftVer,A.AllHits,A.SoftTime,A.HtmlFileDate,A.isBest,A.SoftImage,"
        SQL = "select Top "  CInt(TopNum)  SQL  " C.ClassName,C.HtmlFileDir,C.UseHtml from [NC_SoftList] A inner join [NC_Classify] C On A.ClassID=C.ClassID where A.isAccept>0 And A.SoftImage>'' And A.ChannelID="  ChannelID  " "  foundstr  ""
        Set Rs = Newasp.Execute(SQL)
        If Rs.BOF And Rs.EOF Then
            strContent = "img src='"  Newasp.InstallDir  "images/no_pic.gif' width="  width  " height="  height  " border=0>"
        Else
            strContent = "table width=""100%"" border=""0"" cellpadding=""1"" cellspacing=""3"">"  vbCrLf
            Do While Not Rs.EOF
                strContent = strContent  "tr>"  vbCrLf
                For i = 1 To CInt(PerRowNum)
                    strContent = strContent  "td align=""center"" class=""imagelist"">"
                    If Not Rs.EOF Then
                        strSoftName = Newasp.GotTopic(Rs("SoftName")  " "  Rs("SoftVer"), CInt(strLen))
                        SoftImage = Newasp.GetImageUrl(Rs("SoftImage"), Newasp.ChannelData(1))
                        SoftImage = Newasp.GetFlashAndPic(SoftImage, height, width)
                        HtmlFileName = Newasp.ReadFileName(Rs("HtmlFileDate"), Rs("SoftID"), Newasp.ChannelHtmlExt, Newasp.ChannelPrefix, Newasp.ChannelHtmlForm, "")
                        If CInt(Newasp.ChannelUseHtml) > 0 Then
                            HtmlFileUrl = Newasp.ChannelPath  Rs("HtmlFileDir")  Newasp.ShowDatePath(Rs("HtmlFileDate"), Newasp.ChannelHtmlPath)  HtmlFileName
                        Else
                            HtmlFileUrl = Newasp.ChannelPath  "show.asp?id="  Rs("SoftID")
                        End If
                        If CInt(newindow) > 0 Then
                            LinkTarget = " target=""_blank"""
                        Else
                            LinkTarget = ""
                        End If
                        strContent = strContent  Newasp.MainSetting(19)
                        strContent = Replace(strContent, "{$SoftPicture}", "a href='"  HtmlFileUrl  "' title='"  Rs("SoftName")  "'"  LinkTarget  ">"  SoftImage  "/a>")
                        If CInt(showtopic) = 1 Then
                            strContent = Replace(strContent, "{$SoftTopic}", "a href='"  HtmlFileUrl  "' title='"  Rs("SoftName")  "'"  LinkTarget  ">"  strSoftName  "/a>")
                        Else
                            strContent = Replace(strContent, "{$SoftTopic}", vbNullString)
                        End If
                        strContent = strContent  "/td>"  vbCrLf
                    Rs.MoveNext
                End If
            Next
            strContent = strContent  "/tr>"  vbCrLf
            Loop
            strContent = strContent  "/table>"  vbCrLf
        End If
        Rs.Close: Set Rs = Nothing
        LoadSoftPic = strContent
    End Function
    '================================================
    '函數(shù)名:ReadSoftPic
    '作  用:讀取軟件圖片列表
    '參  數(shù):str ----原字符串
    '================================================
    Public Function ReadSoftPic(ByVal str)
        Dim strTemp, i
        Dim sTempContent, nTempContent, ArrayList
        Dim arrTempContent, arrTempContents
        On Error Resume Next
        strTemp = str
        If InStr(strTemp, "{$ReadSoftPic(") > 0 Then
            sTempContent = Newasp.CutMatchContent(strTemp, "{$ReadSoftPic(", ")}", 1)
            nTempContent = Newasp.CutMatchContent(strTemp, "{$ReadSoftPic(", ")}", 0)
            arrTempContents = Split(sTempContent, "|||")
            arrTempContent = Split(nTempContent, "|||")
            For i = 0 To UBound(arrTempContents)
                ArrayList = Split(arrTempContent(i), ",")
                strTemp = Replace(strTemp, arrTempContents(i), LoadSoftPic(ArrayList(0), ArrayList(1), ArrayList(2), ArrayList(3), ArrayList(4), ArrayList(5), ArrayList(6), ArrayList(7), ArrayList(8), ArrayList(9), ArrayList(10)))
            Next
        End If
        ReadSoftPic = strTemp
    End Function
    '================================================
    '函數(shù)名:LoadFlashPic
    '作  用:裝載動畫圖片列表
    '參  數(shù):ClassID   ----分類ID
    '        ChannelID   ----頻道ID
    '        sType   ----調(diào)用動畫類型,0=所有最新動畫,1=推薦動畫,2=熱門動畫
    '        TopNum   ----顯示動畫列表數(shù)
    '        strlen   ----顯示標(biāo)題長度
    '        newindow   ----新窗口打開
    '================================================
    Public Function LoadFlashPic(ByVal ChannelID, ByVal ClassID, ByVal SpecialID, _
        ByVal stype, ByVal TopNum, ByVal PerRowNum, ByVal strLen, ByVal newindow, _
        ByVal width, ByVal height, ByVal showtopic)

        Dim Rs, SQL, i, strContent, foundstr
        Dim strtitle, ChildStr, miniature, HtmlFileName
        Dim HtmlFileUrl, addTime, LinkTarget

        ChannelID = Newasp.ChkNumeric(ChannelID)
        ClassID = Newasp.ChkNumeric(ClassID)
        SpecialID = Newasp.ChkNumeric(SpecialID)
        stype = Newasp.ChkNumeric(stype)

        On Error Resume Next
        Newasp.LoadChannel(ChannelID)

        If CInt(stype) >= 3 And CLng(ClassID) > 0 Then
            SQL = "SELECT ChildStr FROM [NC_Classify] WHERE ChannelID = "  ChannelID  " And ClassID = "  ClassID
            Set Rs = Newasp.Execute(SQL)
            If Rs.BOF And Rs.EOF Then
                Set Rs = Nothing
                LoadFlashPic = ""
                Exit Function
            Else
                ChildStr = Rs("ChildStr")
            End If
            Rs.Close
        Else
            ChildStr = 0
        End If

        Select Case CInt(stype)
            Case 0: foundstr = "ORDER BY A.addTime DESC ,A.flashid DESC"
            Case 1: foundstr = "And A.isBest > 0 ORDER BY A.addTime DESC ,A.flashid DESC"
            Case 2: foundstr = "ORDER BY A.AllHits DESC ,A.flashid DESC"
            Case 3: foundstr = "And A.ClassID in ("  ChildStr  ") ORDER BY A.addTime DESC ,A.flashid DESC"
            Case 4: foundstr = "And A.ClassID in ("  ChildStr  ") And A.isBest > 0 ORDER BY A.addTime DESC ,A.flashid DESC"
            Case 5: foundstr = "And A.ClassID in ("  ChildStr  ") ORDER BY A.AllHits DESC ,A.flashid DESC"
        Case Else
            foundstr = "ORDER BY A.addTime DESC ,A.flashid DESC"
        End Select
        If CInt(stype) >= 3 And CLng(ClassID) = 0 Then
            foundstr = "ORDER BY A.addTime DESC ,A.flashid DESC"
        End If
        If CLng(SpecialID) > 0 Then
            foundstr = "And A.SpecialID ="  CLng(SpecialID)  " "  foundstr
        End If
        SQL = " A.flashid,A.ClassID,A.title,A.AllHits,A.addTime,A.HtmlFileDate,A.isBest,A.miniature,"
        SQL = "SELECT TOP "  CInt(TopNum)  SQL  " C.ClassName,C.HtmlFileDir,C.UseHtml FROM [NC_FlashList] A INNER JOIN [NC_Classify] C On A.ClassID=C.ClassID WHERE A.isAccept>0 And A.miniature>'' And A.ChannelID="  ChannelID  " "  foundstr  ""
        Set Rs = Newasp.Execute(SQL)
        If Rs.BOF And Rs.EOF Then
            strContent = "img src='"  Newasp.InstallDir  "images/no_pic.gif' width="  width  " height="  height  " border=0>"
        Else
            strContent = "table width=""100%"" border=""0"" cellpadding=""0"" cellspacing=""3"">"  vbCrLf
            Do While Not Rs.EOF
                strContent = strContent  "tr>"  vbCrLf
                For i = 1 To CInt(PerRowNum)
                    strContent = strContent  "td align=""center"" class=""imagelist"">"
                    If Not Rs.EOF Then
                        strtitle = Newasp.GotTopic(Rs("title"), CInt(strLen))
                        miniature = Newasp.GetImageUrl(Rs("miniature"), Newasp.ChannelData(1))
                        miniature = Newasp.GetFlashAndPic(miniature, height, width)
                        HtmlFileName = Newasp.ReadFileName(Rs("HtmlFileDate"), Rs("flashid"), Newasp.ChannelHtmlExt, Newasp.ChannelPrefix, Newasp.ChannelHtmlForm, "")
                        If CInt(Newasp.ChannelUseHtml) > 0 Then
                            HtmlFileUrl = Newasp.ChannelPath  Rs("HtmlFileDir")  Newasp.ShowDatePath(Rs("HtmlFileDate"), Newasp.ChannelHtmlPath)  HtmlFileName
                        Else
                            HtmlFileUrl = Newasp.ChannelPath  "show.asp?id="  Rs("flashid")
                        End If
                        If CInt(newindow) > 0 Then
                            LinkTarget = " target=""_blank"""
                        Else
                            LinkTarget = ""
                        End If
                        strContent = strContent  Newasp.MainSetting(21)
                        strContent = Replace(strContent, "{$Miniature}", "a href='"  HtmlFileUrl  "' title='"  Rs("title")  "'"  LinkTarget  ">"  miniature  "/a>")
                        If CInt(showtopic) = 1 Then
                            strContent = Replace(strContent, "{$FlashTopic}", "a href='"  HtmlFileUrl  "' title='"  Rs("title")  "'"  LinkTarget  ">"  strtitle  "/a>")
                        Else
                            strContent = Replace(strContent, "{$FlashTopic}", vbNullString)
                        End If
                        strContent = strContent  "/td>"  vbCrLf
                    Rs.MoveNext
                    End If
                Next
            strContent = strContent  "/tr>"  vbCrLf
            Loop
            strContent = strContent  "/table>"  vbCrLf
        End If
        Rs.Close: Set Rs = Nothing
        LoadFlashPic = strContent
    End Function
    '================================================
    '函數(shù)名:ReadFlashPic
    '作  用:讀取動畫圖片列表
    '參  數(shù):str ----原字符串
    '================================================
    Public Function ReadFlashPic(ByVal str)
        Dim strTemp, i
        Dim sTempContent, nTempContent, ArrayList
        Dim arrTempContent, arrTempContents
        On Error Resume Next
        strTemp = str
        If InStr(strTemp, "{$ReadFlashPic(") > 0 Then
            sTempContent = Newasp.CutMatchContent(strTemp, "{$ReadFlashPic(", ")}", 1)
            nTempContent = Newasp.CutMatchContent(strTemp, "{$ReadFlashPic(", ")}", 0)
            arrTempContents = Split(sTempContent, "|||")
            arrTempContent = Split(nTempContent, "|||")
            For i = 0 To UBound(arrTempContents)
                ArrayList = Split(arrTempContent(i), ",")
                strTemp = Replace(strTemp, arrTempContents(i), LoadFlashPic(ArrayList(0), ArrayList(1), ArrayList(2), ArrayList(3), ArrayList(4), ArrayList(5), ArrayList(6), ArrayList(7), ArrayList(8), ArrayList(9), ArrayList(10)))
            Next
        End If
        ReadFlashPic = strTemp
    End Function
    '================================================
    '函數(shù)名:LoadFriendLink
    '作  用:裝載友情連接
    '參  數(shù):str ----原字符串
    '================================================
    Public Function LoadFriendLink(ByVal TopNum, ByVal PerRowNum, ByVal isLogo, ByVal orders)
        Dim Rs, SQL, i, strContent
        Dim strOrder, LinkAddress

        strContent = ""
        If Not IsNumeric(TopNum) Then Exit Function
        If Not IsNumeric(PerRowNum) Then Exit Function
        If Not IsNumeric(isLogo) Then Exit Function
        If Not IsNumeric(orders) Then Exit Function
        On Error Resume Next
        If CInt(orders) = 1 Then
            '-- 首頁顯示按時間升序排列
            strOrder = "And isIndex > 0 Order By LinkTime Desc,LinkID Desc"
        ElseIf CInt(orders) = 2 Then
            '-- 首頁顯示按點擊數(shù)升序排列
            strOrder = "And isIndex > 0 Order By LinkHist Desc,LinkID Desc"
        ElseIf CInt(orders) = 3 Then
            '-- 首頁顯示按點擊數(shù)降序排列
            strOrder = "And isIndex > 0 Order By LinkHist Desc,LinkID Asc"
        ElseIf CInt(orders) = 4 Then
            '-- 所有按升序排列
            strOrder = "Order By LinkID Desc"
        ElseIf CInt(orders) = 5 Then
            '-- 所有按降序排列
            strOrder = "Order By LinkID Asc"
        ElseIf CInt(orders) = 6 Then
            '-- 所有按點擊數(shù)升序排列
            strOrder = "Order By LinkHist Desc,LinkID Desc"
        ElseIf CInt(orders) = 7 Then
            '-- 所有按點擊數(shù)降序排列
            strOrder = "Order By LinkHist Desc,LinkID Asc"
        ElseIf CInt(orders) = 8 Then
            '-- 首頁顯示按名稱排列
            strOrder = "And isIndex > 0 Order By LinkName Desc,LinkID Desc"
        ElseIf CInt(orders) = 9 Then
            '-- 所有按名稱排列
            strOrder = "Order By LinkName Desc,LinkID Desc"
        Else
            '-- 首頁顯示按時間降序排列
            strOrder = "And isIndex > 0 Order By LinkTime Asc,LinkID Asc"
        End If
        If CInt(isLogo) = 1 Or CInt(isLogo) = 3 Then
            SQL = "Select Top "  CInt(TopNum)  " LinkID,LinkName,LinkUrl,LogoUrl,Readme,LinkHist,isLogo from [NC_Link] where isLock = 0 And isLogo > 0 "  strOrder  ""
        Else
            SQL = "Select Top "  CInt(TopNum)  " LinkID,LinkName,LinkUrl,LogoUrl,Readme,LinkHist,isLogo from [NC_Link] where isLock = 0 And isLogo = 0 "  strOrder  ""
        End If
        Set Rs = Newasp.Execute(SQL)
        If Not (Rs.BOF And Rs.EOF) Then
            strContent = "table width=""100%"" border=0 cellpadding=1 cellspacing=3 class=FriendLink1>"  vbCrLf
            Do While Not Rs.EOF
                strContent = strContent  "tr>"  vbCrLf
                For i = 1 To CInt(PerRowNum)
                    strContent = strContent  "td align=center class=FriendLink2>"
                    If Not Rs.EOF Then
                        If CInt(isLogo)  2 Then
                            LinkAddress = Newasp.InstallDir  "link/link.asp?id="  Rs("LinkID")  "url="  Trim(Rs("LinkUrl"))
                        Else
                            LinkAddress = Trim(Rs("LinkUrl"))
                        End If
                        If Rs("isLogo") = 1 Or CInt(isLogo) = 3 Then
                            strContent = strContent  "a href='"  LinkAddress  "' target=_blank title='主頁名稱:"  Rs("LinkName")  "#13;#10;點擊次數(shù):"  Rs("LinkHist")  "'>img src='"  Newasp.ReadFileUrl(Rs("LogoUrl"))  "' width=88 height=31 border=0>/a>"
                        Else
                            strContent = strContent  "a href='"  LinkAddress  "' target=_blank title='主頁名稱:"  Rs("LinkName")  "#13;#10;點擊次數(shù):"  Rs("LinkHist")  "'>"  Rs("LinkName")  "/a>"
                        End If
                        strContent = strContent  "/td>"  vbCrLf
                        Rs.MoveNext
                    Else
                        If CInt(isLogo) = 1 Or CInt(isLogo) = 3 Then
                            strContent = strContent  "a href='"  Newasp.InstallDir  "link/addlink.asp' target=_blank>img src='"  Newasp.InstallDir  "images/link.gif' width=88 height=31 border=0>/a>"
                        Else
                            strContent = strContent  "a href='"  Newasp.InstallDir  "link/' target=_blank>更多連接/a>"
                        End If
                        strContent = strContent  "/td>"  vbCrLf
                    End If
                Next
                strContent = strContent  "/tr>"  vbCrLf
            Loop
            strContent = strContent  "/table>"  vbCrLf
        End If
        LoadFriendLink = strContent
    End Function
    '================================================
    '函數(shù)名:ReadFriendLink
    '作  用:讀取友情連接
    '參  數(shù):str ----原字符串
    '================================================
    Public Function ReadFriendLink(ByVal str)
        Dim strTemp, i
        Dim sTempContent, nTempContent, ArrayList
        Dim arrTempContent, arrTempContents
        On Error Resume Next
        strTemp = str
        If InStr(strTemp, "{$ReadFriendLink(") > 0 Then
            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
    '================================================
    '函數(shù)名:PageRunTime
    '作  用:頁面執(zhí)行時間
    '================================================
    Public Function ExecutionTime()
        Dim Endtime
        ExecutionTime = ""
        If CInt(Newasp.IsRunTime) = 1 Then
            Endtime = Timer()
            ExecutionTime = "頁面執(zhí)行時間:"  FormatNumber((((Endtime - startime) * 5000) + 0.5) / 10, 3, -1)  "毫秒"
        Else
            ExecutionTime = ""
        End If
    End Function

    '================================================
    '函數(shù)名:CurrentStation
    '作  用:當(dāng)前位置
    '參  數(shù):...
    '================================================
    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 = strContent  "a href='"  ChannelDir  HtmlFileDir  "'>"  ClassName  "/a>"
        Else
            strContent = strContent  "a href='"  ChannelDir  "list.asp?classid="  ClassID  "'>"  ClassName  "/a>"
        End If
        CurrentStation = strContent
    End Function
    '================================================
    '函數(shù)名:ReadCurrentStation
    '作  用:讀取當(dāng)前位置
    '參  數(shù):str ----原字符串
    '================================================
    Public Function ReadCurrentStation(ByVal str, ByVal ChannelID, ByVal ClassID, _
        ByVal ClassName, ByVal ParentID, ByVal strParent, ByVal HtmlFileDir)

        Dim strTemp, i
        Dim sTempContent, nTempContent
        Dim arrTempContent, arrTempContents
        On Error Resume Next
        strTemp = str
        If InStr(strTemp, "{$CurrentStation(") > 0 Then
            sTempContent = Newasp.CutMatchContent(strTemp, "{$CurrentStation(", ")}", 1)
            nTempContent = Newasp.CutMatchContent(strTemp, "{$CurrentStation(", ")}", 0)
            arrTempContents = Split(sTempContent, "|||")
            arrTempContent = Split(nTempContent, "|||")
            For i = 0 To UBound(arrTempContents)
                strTemp = Replace(strTemp, arrTempContents(i), CurrentStation(ChannelID, ClassID, ClassName, ParentID, strParent, HtmlFileDir, arrTempContent(i)))
            Next
        End If
        ReadCurrentStation = strTemp
    End Function
    '================================================
    '函數(shù)名:NewsPictureAndText
    '作  用:圖文混排列表
    '================================================
    Public Function NewsPictureAndText(ByVal chanid, ByVal ClassID, ByVal specid, _
        ByVal stype, ByVal height, ByVal width, ByVal maxlen, _
        ByVal maxline, ByVal hspace, ByVal vspace, ByVal align, _
        ByVal divcss, ByVal target, ByVal start, ByVal showpic, _
        ByVal showclass, ByVal showdate, ByVal dateformat)

        Dim Rs, SQL, i, strContent, foundstr
        Dim ChildStr, HtmlFileUrl, HtmlFileName, strPicture
        Dim PicTopic, NewsTitle, ClassName, ArticleTitle, WriteTime

        chanid = Newasp.ChkNumeric(chanid)
        ClassID = Newasp.ChkNumeric(ClassID)
        specid = Newasp.ChkNumeric(specid)
        stype = Newasp.ChkNumeric(stype)

        On Error Resume Next
        Newasp.LoadChannel(chanid)

        If CInt(stype) >= 3 And CLng(ClassID) > 0 Then
            SQL = "SELECT ChildStr FROM [NC_Classify] WHERE ChannelID = "  chanid  " And ClassID = "  ClassID
            Set Rs = Newasp.Execute(SQL)
            If Rs.BOF And Rs.EOF Then
                Set Rs = Nothing
                NewsPictureAndText = ""
                Exit Function
            Else
                ChildStr = Rs("ChildStr")
            End If
            Rs.Close
        Else
            ChildStr = "0"
        End If
        Select Case CInt(stype)
            Case 0: foundstr = "ORDER BY A.Writetime DESC ,A.Articleid DESC"
            Case 1: foundstr = "And A.isBest > 0 ORDER BY A.Writetime DESC ,A.Articleid DESC"
            Case 2: foundstr = " ORDER BY A.AllHits DESC ,A.Articleid DESC"
            Case 3: foundstr = "And A.ClassID in ("  ChildStr  ") ORDER BY A.Writetime DESC ,A.Articleid DESC"
            Case 4: foundstr = "And A.ClassID in ("  ChildStr  ") And A.isBest > 0 ORDER BY A.Writetime DESC ,A.Articleid DESC"
            Case 5: foundstr = "And A.ClassID in ("  ChildStr  ") And A.AllHits > B.LeastHotHist ORDER BY A.AllHits DESC ,A.Articleid DESC"
            Case 6: foundstr = "And A.ClassID in ("  ChildStr  ") ORDER BY A.Writetime DESC ,A.Articleid DESC"
        Case Else
            foundstr = "ORDER BY A.Writetime DESC ,A.Articleid DESC"
        End Select
        If CInt(stype) >= 3 And CLng(ClassID) = 0 Then
            foundstr = "ORDER BY A.Writetime DESC ,A.Articleid DESC"
        End If
        If CLng(specid) > 0 Then
            foundstr = "And A.SpecialID ="  CLng(specid)  " "  foundstr
        End If
        SQL = " A.ArticleID,A.ClassID,A.ColorMode,A.FontMode,A.title,A.BriefTopic,A.AllHits,A.WriteTime,A.HtmlFileDate,A.isBest,"
        SQL = "SELECT TOP "  CInt(maxline)  SQL  " C.ClassName,C.ColorModes,C.FontModes,C.HtmlFileDir FROM [NC_Article] A INNER JOIN [NC_Classify] C ON A.ClassID=C.ClassID WHERE A.isAccept>0 And A.ChannelID="  chanid  " "  foundstr  ""
        Set Rs = Newasp.Execute(SQL)
        i = 0
        strContent = ""
        If Rs.BOF And Rs.EOF Then
            strContent = "還沒有添加任何內(nèi)容!"
        Else
            Do While Not Rs.EOF
                NewsTitle = Newasp.ReadTopic(Rs("title"), CInt(maxlen))
                NewsTitle = Newasp.ReadFontMode(NewsTitle, Rs("ColorMode"), Rs("FontMode"))
                PicTopic = Newasp.ReadPicTopic(Rs("BriefTopic"))
                ClassName = Newasp.ReadFontMode(Rs("ClassName"), Rs("ColorModes"), Rs("FontModes"))
                HtmlFileName = Newasp.ReadFileName(Rs("HtmlFileDate"), Rs("ArticleID"), Newasp.ChannelHtmlExt, Newasp.ChannelPrefix, Newasp.ChannelHtmlForm, "")
                If CInt(Newasp.ChannelUseHtml) > 0 Then
                    HtmlFileUrl = Newasp.ChannelPath  Rs("HtmlFileDir")  Newasp.ShowDatePath(Rs("HtmlFileDate"), Newasp.ChannelHtmlPath)  HtmlFileName
                    ClassName = "[a href='"  Newasp.ChannelPath  Rs("HtmlFileDir")  "index"  Newasp.ChannelHtmlExt  "'>"  ClassName  "/a>]"
                Else
                    HtmlFileUrl = Newasp.ChannelPath  "show.asp?id="  Rs("ArticleID")
                    ClassName = "[a href='"  Newasp.ChannelPath  "list.asp?classid="  Rs("ClassID")  "'>"  ClassName  "/a>]"
                End If
                If CInt(showclass) = 1 Then
                    ClassName = ClassName
                Else
                    ClassName = ""
                End If
                If CInt(showdate) = 1 Then
                    WriteTime = Newasp.ShowDateTime(Rs("WriteTime"), CInt(dateformat))
                Else
                    WriteTime = ""
                End If
                ArticleTitle = "div "  divcss  ">"  start  ClassName  " a href="""  HtmlFileUrl  """ target="""  target  """ title="""  Newasp.ChannelModule  "標(biāo)題:"  Rs("title")  "#13;#10;發(fā)布時間:"  Rs("WriteTime")  "#13;#10;閱覽次數(shù):"  Rs("AllHits")  """ class=showlist>"  NewsTitle  "/a>  "  WriteTime  "/div>"
                strContent = strContent  ArticleTitle
                Rs.MoveNext
                i = i + 1
            Loop
        End If
        Rs.Close: Set Rs = Nothing
        Dim sExtName, ExtName, ImageUrl
        If CInt(showpic) = 1 Then
            SQL = " A.ArticleID,A.ClassID,A.title,A.AllHits,A.WriteTime,A.HtmlFileDate,A.ImageUrl,"
            SQL = "SELECT "  SQL  " C.HtmlFileDir,B.ChannelDir,B.StopChannel,B.ModuleName,B.BindDomain,B.DomainName,B.IsCreateHtml,B.HtmlExtName,B.HtmlPath,B.HtmlForm,B.HtmlPrefix,B.LeastHotHist FROM ([NC_Article] A INNER JOIN [NC_Classify] C ON A.ClassID=C.ClassID) INNER JOIN [NC_Channel] B On A.ChannelID=B.ChannelID WHERE A.isAccept>0 And A.ChannelID="  CInt(chanid)  " And A.ImageUrl>'' "  foundstr  ""
            Set Rs = Newasp.Execute(SQL)
            If Rs.BOF And Rs.EOF Then
                strPicture = "img src='"  Newasp.SiteUrl  Newasp.InstallDir  "images/no_pic.gif' width="""  width  """ height="""  height  """  hspace="""  hspace  """ vspace="""  vspace  """ align="""  align  """ border=""0"">"
            Else
                HtmlFileName = Newasp.ReadFileName(Rs("HtmlFileDate"), Rs("ArticleID"), Newasp.ChannelHtmlExt, Newasp.ChannelPrefix, Newasp.ChannelHtmlForm, "")
                If CInt(Newasp.ChannelUseHtml) > 0 Then
                    HtmlFileUrl = Newasp.ChannelPath  Rs("HtmlFileDir")  Newasp.ShowDatePath(Rs("HtmlFileDate"), Newasp.ChannelHtmlPath)  HtmlFileName
                Else
                    HtmlFileUrl = Newasp.ChannelPath  "show.asp?id="  Rs("ArticleID")
                End If
                ImageUrl = Newasp.GetImageUrl(Rs("ImageUrl"), Newasp.ChannelData(1))
                sExtName = Split(Rs("ImageUrl"), ".")
                ExtName = sExtName(UBound(sExtName))
                Select Case LCase(ExtName)
                Case "swf", "swi"
                    strPicture = "object classid=""clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"" codebase=""http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0"" width="""  width  """ height="""  height  """ hspace="""  hspace  """ vspace="""  vspace  """ align="""  align  """>"  vbNewLine
                    strPicture = strPicture  "     param name=""movie"" value="""  ImageUrl  """>"  vbNewLine
                    strPicture = strPicture  "     param name=""quality"" value=""high"">"  vbNewLine
                    strPicture = strPicture  "     embed src="""  ImageUrl  """ width="""  width  """ height="""  height  """ hspace="""  hspace  """ vspace="""  vspace  """ align="""  align  """ quality=""high"" pluginspage=""http://www.macromedia.com/go/getflashplayer"" type=""application/x-shockwave-flash"">/embed>"  vbNewLine
                    strPicture = strPicture  "/object>"  vbNewLine
                Case Else
                    strPicture = "a href="""  HtmlFileUrl  """  target="""  target  """ title="""  Newasp.ChannelModule  "標(biāo)題:"  Rs("title")  "#13;#10;發(fā)布時間:"  Rs("WriteTime")  "#13;#10;閱覽次數(shù):"  Rs("AllHits")  """>img src="""  ImageUrl  """ width="""  width  """ height="""  height  """ hspace="""  hspace  """ vspace="""  vspace  """ align="""  align  """ border=""0"">/a>"
                End Select
            End If
            Rs.Close: Set Rs = Nothing
        Else
            strPicture = ""
        End If
        NewsPictureAndText = strPicture  strContent
    End Function
    '================================================
    '函數(shù)名:ReadNewsPicAndText
    '作  用:讀取圖文混排列表
    '參  數(shù):str ----原字符串
    '================================================
    Public Function ReadNewsPicAndText(ByVal str)
        Dim strTemp, i, sTempContent
        Dim nTempContent, ArrayList
        Dim arrTempContent, arrTempContents
        On Error Resume Next
        strTemp = str
        If InStr(strTemp, "{$NewsPictureAndText(") > 0 Then
            sTempContent = Newasp.CutMatchContent(strTemp, "{$NewsPictureAndText(", ")}", 1)
            nTempContent = Newasp.CutMatchContent(strTemp, "{$NewsPictureAndText(", ")}", 0)
            arrTempContents = Split(sTempContent, "|||")
            arrTempContent = Split(nTempContent, "|||")
            For i = 0 To UBound(arrTempContents)
                ArrayList = Split(arrTempContent(i), ",")
                strTemp = Replace(strTemp, arrTempContents(i), NewsPictureAndText(ArrayList(0), ArrayList(1), ArrayList(2), ArrayList(3), ArrayList(4), ArrayList(5), ArrayList(6), ArrayList(7), ArrayList(8), ArrayList(9), ArrayList(10), ArrayList(11), ArrayList(12), ArrayList(13), ArrayList(14), ArrayList(15), ArrayList(16), ArrayList(17)))
            Next
        End If
        ReadNewsPicAndText = strTemp
    End Function
    '================================================
    '函數(shù)名:SoftPictureAndText
    '作  用:軟件圖文混排列表
    '================================================
    Public Function SoftPictureAndText(ByVal chanid, ByVal ClassID, ByVal specid, _
        ByVal stype, ByVal height, ByVal width, ByVal maxlen, _
        ByVal maxline, ByVal hspace, ByVal vspace, ByVal align, _
        ByVal divcss, ByVal target, ByVal start, ByVal showpic, _
        ByVal showclass, ByVal showdate, ByVal dateformat)

        Dim Rs, SQL, i, strContent, foundstr
        Dim ChildStr, HtmlFileUrl, HtmlFileName, strPicture
        Dim SoftTopic, ClassName, softname, SoftTime

        chanid = Newasp.ChkNumeric(chanid)
        ClassID = Newasp.ChkNumeric(ClassID)
        specid = Newasp.ChkNumeric(specid)
        stype = Newasp.ChkNumeric(stype)

        On Error Resume Next
        Newasp.LoadChannel(chanid)

        If CInt(stype) >= 3 And CLng(ClassID) > 0 Then
            SQL = "SELECT ChildStr FROM [NC_Classify] WHERE ChannelID = "  chanid  " And ClassID = "  ClassID
            Set Rs = Newasp.Execute(SQL)
            If Rs.BOF And Rs.EOF Then
                Set Rs = Nothing
                SoftPictureAndText = ""
                Exit Function
            Else
                ChildStr = Rs("ChildStr")
            End If
            Rs.Close
        Else
            ChildStr = "0"
        End If
        Select Case CInt(stype)
            Case 0: foundstr = "ORDER BY A.SoftTime DESC ,A.softid DESC"
            Case 1: foundstr = "And A.isBest > 0 ORDER BY A.SoftTime DESC ,A.softid DESC"
            Case 2: foundstr = "ORDER BY A.AllHits DESC ,A.softid DESC"
            Case 3: foundstr = "And A.ClassID in ("  ChildStr  ") ORDER BY A.SoftTime DESC ,A.softid DESC"
            Case 4: foundstr = "And A.ClassID in ("  ChildStr  ") And A.isBest > 0 ORDER BY A.SoftTime DESC ,A.softid DESC"
            Case 5: foundstr = "And A.ClassID in ("  ChildStr  ") ORDER BY A.AllHits DESC ,A.softid DESC"
        Case Else
            foundstr = "ORDER BY A.SoftTime DESC ,A.softid DESC"
        End Select
        If CInt(stype) >= 3 And CLng(ClassID) = 0 Then
            foundstr = "ORDER BY A.SoftTime DESC ,A.softid DESC"
        End If
        If CLng(specid) > 0 Then
            foundstr = "And A.SpecialID ="  CLng(specid)  " "  foundstr
        End If
        SQL = " A.softid,A.ClassID,A.ColorMode,A.FontMode,A.SoftName,A.SoftVer,A.AllHits,A.SoftTime,A.HtmlFileDate,A.isBest,"
        SQL = "SELECT TOP "  CInt(maxline)  SQL  " C.ClassName,C.ColorModes,C.FontModes,C.HtmlFileDir FROM [NC_SoftList] A INNER JOIN [NC_Classify] C ON A.ClassID=C.ClassID WHERE A.isAccept>0 And A.ChannelID="  chanid  " "  foundstr  ""
        Set Rs = Newasp.Execute(SQL)
        i = 0
        strContent = ""
        If Rs.BOF And Rs.EOF Then
            strContent = "還沒有添加任何軟件!"
        Else
            Do While Not Rs.EOF
                SoftTopic = Newasp.ReadTopic(Trim(Rs("SoftName")  " "  Rs("SoftVer")), CInt(maxlen))
                SoftTopic = Newasp.ReadFontMode(SoftTopic, Rs("ColorMode"), Rs("FontMode"))
                ClassName = Newasp.ReadFontMode(Rs("ClassName"), Rs("ColorModes"), Rs("FontModes"))
                HtmlFileName = Newasp.ReadFileName(Rs("HtmlFileDate"), Rs("softid"), Newasp.ChannelHtmlExt, Newasp.ChannelPrefix, Newasp.ChannelHtmlForm, "")
                If CInt(Newasp.ChannelUseHtml) > 0 Then
                    HtmlFileUrl = Newasp.ChannelPath  Rs("HtmlFileDir")  Newasp.ShowDatePath(Rs("HtmlFileDate"), Newasp.ChannelHtmlPath)  HtmlFileName
                    ClassName = "[a href='"  Newasp.ChannelPath  Rs("HtmlFileDir")  "index"  Newasp.ChannelHtmlExt  "'>"  ClassName  "/a>]"
                Else
                    HtmlFileUrl = Newasp.ChannelPath  "show.asp?id="  Rs("softid")
                    ClassName = "[a href='"  Newasp.ChannelPath  "list.asp?classid="  Rs("ClassID")  "'>"  ClassName  "/a>]"
                End If
                If CInt(showclass) = 1 Then
                    ClassName = ClassName
                Else
                    ClassName = ""
                End If
                If CInt(showdate) = 1 Then
                    SoftTime = Newasp.ShowDateTime(Rs("SoftTime"), CInt(dateformat))
                Else
                    SoftTime = ""
                End If
                softname = "div "  divcss  ">"  start  ClassName  " a href="""  HtmlFileUrl  """ target="""  target  """ title="""  Newasp.ChannelModule  "標(biāo)題:"  Rs("SoftName")  " "  Rs("SoftVer")  "#13;#10;發(fā)布時間:"  Rs("SoftTime")  "#13;#10;閱覽次數(shù):"  Rs("AllHits")  """ class=showlist>"  SoftTopic  "/a>  "  SoftTime  "/div>"
                strContent = strContent  softname
                Rs.MoveNext
                i = i + 1
            Loop
        End If
        Rs.Close: Set Rs = Nothing
        Dim sExtName, ExtName, SoftImage
        If CInt(showpic) = 1 Then
            SQL = " A.softid,A.ClassID,A.SoftName,A.SoftVer,A.AllHits,A.SoftTime,A.HtmlFileDate,A.SoftImage,"
            SQL = "SELECT "  SQL  " C.HtmlFileDir,B.ChannelDir,B.ModuleName,B.BindDomain,B.DomainName,B.IsCreateHtml,B.HtmlExtName,B.HtmlPath,B.HtmlForm,B.HtmlPrefix,B.LeastHotHist FROM ([NC_SoftList] A INNER JOIN [NC_Classify] C ON A.ClassID=C.ClassID) INNER JOIN [NC_Channel] B On A.ChannelID=B.ChannelID WHERE A.isAccept>0 And A.ChannelID="  CInt(chanid)  " And A.SoftImage>'' "  foundstr  ""
            Set Rs = Newasp.Execute(SQL)
            If Rs.BOF And Rs.EOF Then
                strPicture = "img src='"  Newasp.SiteUrl  Newasp.InstallDir  "images/no_pic.gif' width="""  width  """ height="""  height  """  hspace="""  hspace  """ vspace="""  vspace  """ align="""  align  """ border=""0"">"
            Else
                HtmlFileName = Newasp.ReadFileName(Rs("HtmlFileDate"), Rs("softid"), Newasp.ChannelHtmlExt, Newasp.ChannelPrefix, Newasp.ChannelHtmlForm, "")
                If CInt(Newasp.ChannelUseHtml) > 0 Then
                    HtmlFileUrl = Newasp.ChannelPath  Rs("HtmlFileDir")  Newasp.ShowDatePath(Rs("HtmlFileDate"), Newasp.ChannelHtmlPath)  HtmlFileName
                Else
                    HtmlFileUrl = Newasp.ChannelPath  "show.asp?id="  Rs("softid")
                End If
                SoftImage = Newasp.GetImageUrl(Rs("SoftImage"), Newasp.ChannelData(1))
                sExtName = Split(Rs("SoftImage"), ".")
                ExtName = sExtName(UBound(sExtName))
                Select Case LCase(ExtName)
                Case "swf", "swi"
                    strPicture = "object classid=""clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"" codebase=""http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0"" width="""  width  """ height="""  height  """ hspace="""  hspace  """ vspace="""  vspace  """ align="""  align  """>"  vbNewLine
                    strPicture = strPicture  "     param name=""movie"" value="""  SoftImage  """>"  vbNewLine
                    strPicture = strPicture  "     param name=""quality"" value=""high"">"  vbNewLine
                    strPicture = strPicture  "     embed src="""  SoftImage  """ width="""  width  """ height="""  height  """ hspace="""  hspace  """ vspace="""  vspace  """ align="""  align  """ quality=""high"" pluginspage=""http://www.macromedia.com/go/getflashplayer"" type=""application/x-shockwave-flash"">/embed>"  vbNewLine
                    strPicture = strPicture  "/object>"  vbNewLine
                Case Else
                    strPicture = "a href="""  HtmlFileUrl  """  target="""  target  """ title="""  Newasp.ChannelModule  "標(biāo)題:"  Rs("SoftName")  " "  Rs("SoftVer")  "#13;#10;發(fā)布時間:"  Rs("SoftTime")  "#13;#10;閱覽次數(shù):"  Rs("AllHits")  """>img src="""  SoftImage  """ width="""  width  """ height="""  height  """ hspace="""  hspace  """ vspace="""  vspace  """ align="""  align  """ border=""0"">/a>"
                End Select
            End If
            Rs.Close: Set Rs = Nothing
        Else
            strPicture = ""
        End If
        SoftPictureAndText = strPicture  strContent
    End Function
    '================================================
    '函數(shù)名:ReadSoftPicAndText
    '作  用:讀取軟件圖文混排列表
    '參  數(shù):str ----原字符串
    '================================================
    Public Function ReadSoftPicAndText(ByVal str)
        On Error Resume Next
        Dim strTemp, i, sTempContent
        Dim nTempContent, ArrayList
        Dim arrTempContent, arrTempContents

        strTemp = str
        If InStr(strTemp, "{$SoftPictureAndText(") > 0 Then
            sTempContent = Newasp.CutMatchContent(strTemp, "{$SoftPictureAndText(", ")}", 1)
            nTempContent = Newasp.CutMatchContent(strTemp, "{$SoftPictureAndText(", ")}", 0)
            arrTempContents = Split(sTempContent, "|||")
            arrTempContent = Split(nTempContent, "|||")
            For i = 0 To UBound(arrTempContents)
                ArrayList = Split(arrTempContent(i), ",")
                strTemp = Replace(strTemp, arrTempContents(i), SoftPictureAndText(ArrayList(0), ArrayList(1), ArrayList(2), ArrayList(3), ArrayList(4), ArrayList(5), ArrayList(6), ArrayList(7), ArrayList(8), ArrayList(9), ArrayList(10), ArrayList(11), ArrayList(12), ArrayList(13), ArrayList(14), ArrayList(15), ArrayList(16), ArrayList(17)))
            Next
        End If
        ReadSoftPicAndText = strTemp
    End Function
    '================================================
    '函數(shù)名:LoadGuestList
    '作  用:裝載留言列表
    '參  數(shù):maxnum ----最多留言數(shù)
    '        maxlen ----字符長度
    '        newindow ----是否新窗口打開 1=是,0=否
    '        showdate ----是否顯示時間 1=是,0=否
    '        DateMode ----時間模式
    '        styles ----風(fēng)格名稱
    '================================================
    Public Function LoadGuestList(ByVal maxnum, ByVal maxlen, ByVal newindow, _
        ByVal showdate, ByVal DateMode, ByVal styles)

        Dim Rs, SQL, strContent
        Dim i, ListStyle, GuestTopic, LinkTarget
        Dim WriteTime, lastime, GuestTitle,strChannelDir

        On Error Resume Next
        Set Rs = Newasp.Execute("SELECT TOP "  CInt(maxnum)  " guestid,Topicformat,title,username,WriteTime,lastime,ReplyNum FROM NC_GuestBook WHERE isAccept>0 ORDER BY isTop DESC,lastime DESC,guestid DESC")
        If Rs.BOF And Rs.EOF Then
            LoadGuestList = "沒有任何留言!"
            Set Rs = Nothing
            Exit Function
        Else
            i = 0
            strContent = "table width=""100%"" border=0 cellpadding=2 cellspacing=0>"
            strChannelDir = Newasp.GetChannelDir(4)
            Do While Not Rs.EOF
                If (i Mod 2) = 0 Then
                    ListStyle = Trim(styles)  1
                Else
                    ListStyle = Trim(styles)  2
                End If
                If CInt(newindow) > 0 Then
                    LinkTarget = " target=""_blank"""
                Else
                    LinkTarget = ""
                End If
                If CInt(showdate) > 0 Then
                    WriteTime = Newasp.ShowDateTime(Rs("WriteTime"), CInt(DateMode))
                    lastime = Newasp.ShowDateTime(Rs("lastime"), CInt(DateMode))
                Else
                    WriteTime = ""
                    lastime = ""
                End If
                GuestTitle = Newasp.HTMLEncode(Rs("title"))
                GuestTopic = "span "  Rs("Topicformat")  ">"  Newasp.GotTopic(GuestTitle, CInt(maxlen))  "/span>"
                GuestTopic = "a href="""  strChannelDir  "showreply.asp?guestid="  Rs("guestid")  """ title=""主題:"  GuestTitle  "#13;#10;時間:"  Rs("WriteTime")  "#13;#10;作者:"  Newasp.HTMLEncode(Rs("username"))  """"  LinkTarget  ">"  GuestTopic  "/a>"
                strContent = strContent  Newasp.MainSetting(16)
                strContent = Replace(strContent, "{$GuestID}", Rs("guestid"))
                strContent = Replace(strContent, "{$UserName}", Newasp.HTMLEncode(Rs("username")))
                strContent = Replace(strContent, "{$GuestTopic}", GuestTopic)
                strContent = Replace(strContent, "{$ListStyle}", ListStyle)
                strContent = Replace(strContent, "{$Number}", i)
                strContent = Replace(strContent, "{$WriteTime}", WriteTime)
                strContent = Replace(strContent, "{$lastime}", lastime)
                Rs.MoveNext
                i = i + 1
            Loop
            strContent = strContent  "/table>"
        End If
        LoadGuestList = strContent
    End Function
    '================================================
    '函數(shù)名:ReadGuestList
    '作  用:讀取留言列表
    '參  數(shù):str ----原字符串
    '================================================
    Public Function ReadGuestList(ByVal str)
        Dim strTemp, i, sTempContent
        Dim nTempContent, ArrayList
        Dim arrTempContent, arrTempContents

        strTemp = str
        If InStr(strTemp, "{$ReadGuestList(") > 0 Then
            sTempContent = Newasp.CutMatchContent(strTemp, "{$ReadGuestList(", ")}", 1)
            nTempContent = Newasp.CutMatchContent(strTemp, "{$ReadGuestList(", ")}", 0)
            arrTempContents = Split(sTempContent, "|||")
            arrTempContent = Split(nTempContent, "|||")
            For i = 0 To UBound(arrTempContents)
                ArrayList = Split(arrTempContent(i), ",")
                strTemp = Replace(strTemp, arrTempContents(i), LoadGuestList(ArrayList(0), ArrayList(1), ArrayList(2), ArrayList(3), ArrayList(4), ArrayList(5)))
            Next
        End If
        ReadGuestList = strTemp
    End Function
    '================================================
    '函數(shù)名:LoadPopularSoft
    '作  用:裝載排行軟件列表
    '參  數(shù):ClassID   ----分類ID
    '        chanid   ----頻道ID
    '        stype   ----調(diào)用類型
    '        maxline   ----顯示列表數(shù)
    '        maxlen   ----顯示標(biāo)題長度
    '        showhits   ----是否顯示下載數(shù)
    '        target   ----連接目標(biāo)
    '        start   ----標(biāo)題頭標(biāo)記
    '        styles   ----樣式名稱
    '================================================
    Public Function LoadPopularSoft(ByVal chanid, ByVal ClassID, ByVal stype, _
        ByVal maxlen, ByVal maxline, ByVal showhits, _
        ByVal target, ByVal start, ByVal styles)

        Dim SQL, Rs, foundsql, strHits
        Dim ChildStr, i, strContent
        Dim HtmlFileName, HtmlFileUrl
        Dim NewsTitle, AllHits, strSoftName
        Dim divstyle

        chanid = Newasp.ChkNumeric(chanid)
        ClassID = Newasp.ChkNumeric(ClassID)
        stype = Newasp.ChkNumeric(stype)
        If chanid = 0 Then chanid = 1

        On Error Resume Next
        Newasp.LoadChannel(chanid)

        If CLng(ClassID) > 0 And Trim(ClassID) > "" Then
            SQL = "SELECT ChildStr FROM [NC_Classify] WHERE ChannelID="  chanid  " And classid="  ClassID
            Set Rs = Newasp.Execute(SQL)
            If Rs.BOF And Rs.EOF Then
                Set Rs = Nothing
                LoadPopularSoft = ""
                Exit Function
            Else
                ChildStr = Rs("ChildStr")
                foundsql = "And A.ClassID in ("  ChildStr  ")"
            End If
            Rs.Close
        Else
            ChildStr = "0"
            foundsql = ""
        End If

        Select Case CInt(stype)
        Case 1
            foundsql = foundsql  " ORDER BY A.DayHits DESC ,A.softid DESC"
            strHits = "DayHits"
        Case 2
            foundsql = foundsql  " ORDER BY A.WeekHits DESC ,A.softid DESC"
            strHits = "WeekHits"
        Case 3
            foundsql = foundsql  " ORDER BY A.MonthHits DESC ,A.softid DESC"
            strHits = "MonthHits"
        Case 4
            foundsql = foundsql  " And A.isBest>0 ORDER BY A.AllHits DESC ,A.softid DESC"
            strHits = "AllHits"
        Case Else
            foundsql = foundsql  "ORDER BY A.AllHits DESC ,A.softid DESC"
            strHits = "AllHits"
        End Select
        SQL = " A.softid,A.ClassID,A.ColorMode,A.FontMode,A.SoftName,A.SoftVer,A.AllHits,A.SoftTime,A.HtmlFileDate,A.isBest,A.DayHits,A.WeekHits,A.MonthHits,"
        SQL = "SELECT TOP "  CInt(maxline)  SQL  " C.ClassName,C.ColorModes,C.FontModes,C.HtmlFileDir FROM [NC_SoftList] A INNER JOIN [NC_Classify] C ON A.ClassID=C.ClassID WHERE A.isAccept>0 And A.ChannelID="  chanid  " "  foundsql
        Set Rs = Newasp.Execute(SQL)
        i = 0
        strContent = ""
        If Rs.BOF And Rs.EOF Then
            strContent = "還沒有找到任何內(nèi)容!"
        Else
            Do While Not Rs.EOF
                If Trim(styles) > "" And Trim(styles) > "0" Then
                    If (i Mod 2) = 0 Then
                        divstyle = " class="""  Trim(styles)  "1"""
                    Else
                        divstyle = " class="""  Trim(styles)  "2"""
                    End If
                End If

                NewsTitle = Newasp.GotTopic(Rs("SoftName")  " "  Rs("SoftVer"), CInt(maxlen))
                NewsTitle = Newasp.ReadFontMode(NewsTitle, Rs("ColorMode"), Rs("FontMode"))
                HtmlFileName = Newasp.ReadFileName(Rs("HtmlFileDate"), Rs("SoftID"), Newasp.ChannelHtmlExt, Newasp.ChannelPrefix, Newasp.ChannelHtmlForm, "")
                If CInt(Newasp.ChannelUseHtml) > 0 Then
                    HtmlFileUrl = Newasp.ChannelPath  Rs("HtmlFileDir")  Newasp.ShowDatePath(Rs("HtmlFileDate"), Newasp.ChannelHtmlPath)  HtmlFileName
                Else
                    HtmlFileUrl = Newasp.ChannelPath  "show.asp?id="  Rs("softid")
                End If
                If CInt(showhits) > 0 Then
                    AllHits = Rs(strHits)
                Else
                    AllHits = ""
                End If
                strSoftName = "div"  divstyle  ">"  start  " a href="""  HtmlFileUrl  """ target="""  target  """ title="""  Newasp.ChannelModule  "名稱:"  Rs("SoftName")  " "  Rs("SoftVer")  "#13;#10;發(fā)布時間:"  Rs("SoftTime")  "#13;#10;下載總數(shù):"  Rs("AllHits")  """ class=popular>"  NewsTitle  "/a>  "  AllHits  "/div>"
                strContent = strContent  strSoftName

                Rs.MoveNext
                i = i + 1
            Loop
        End If
        Rs.Close: Set Rs = Nothing
        LoadPopularSoft = strContent
    End Function
    '================================================
    '函數(shù)名:ReadPopularSoft
    '作  用:讀取軟件排行列表
    '參  數(shù):str ----原字符串
    '================================================
    Public Function ReadPopularSoft(ByVal str)
        On Error Resume Next
        Dim strTemp, i, sTempContent
        Dim nTempContent, ArrayList
        Dim arrTempContent, arrTempContents

        strTemp = str
        If InStr(strTemp, "{$ReadPopularSoft(") > 0 Then
            sTempContent = Newasp.CutMatchContent(strTemp, "{$ReadPopularSoft(", ")}", 1)
            nTempContent = Newasp.CutMatchContent(strTemp, "{$ReadPopularSoft(", ")}", 0)
            arrTempContents = Split(sTempContent, "|||")
            arrTempContent = Split(nTempContent, "|||")
            For i = 0 To UBound(arrTempContents)
                ArrayList = Split(arrTempContent(i), ",")
                strTemp = Replace(strTemp, arrTempContents(i), LoadPopularSoft(ArrayList(0), ArrayList(1), ArrayList(2), ArrayList(3), ArrayList(4), ArrayList(5), ArrayList(6), ArrayList(7), ArrayList(8)))
            Next
        End If
        ReadPopularSoft = strTemp
    End Function
    '================================================
    '函數(shù)名:LoadPopularArticle
    '作  用:裝載排行文章列表
    '參  數(shù):ClassID   ----分類ID
    '        chanid   ----頻道ID
    '        stype   ----調(diào)用類型
    '        maxline   ----顯示列表數(shù)
    '        maxlen   ----顯示標(biāo)題長度
    '        showhits   ----是否顯示下載數(shù)
    '        target   ----連接目標(biāo)
    '        start   ----標(biāo)題頭標(biāo)記
    '        styles   ----樣式名稱
    '================================================
    Public Function LoadPopularArticle(ByVal chanid, ByVal ClassID, ByVal stype, _
        ByVal maxlen, ByVal maxline, ByVal showhits, ByVal target, _
        ByVal start, ByVal styles)

        Dim SQL, Rs, foundsql, strHits
        Dim ChildStr, i, strContent
        Dim HtmlFileName, HtmlFileUrl
        Dim NewsTitle, AllHits, ArticleTitle
        Dim divstyle

        chanid = Newasp.ChkNumeric(chanid)
        ClassID = Newasp.ChkNumeric(ClassID)
        stype = Newasp.ChkNumeric(stype)

        If chanid = 0 Then chanid = 2

        On Error Resume Next
        Newasp.LoadChannel(chanid)

        If CLng(ClassID) > 0 And Trim(ClassID) > "" Then
            SQL = "SELECT ChildStr FROM [NC_Classify] WHERE ChannelID="  chanid  " And classid="  CLng(ClassID)
            Set Rs = Newasp.Execute(SQL)
            If Rs.BOF And Rs.EOF Then
                Set Rs = Nothing
                LoadPopularArticle = ""
                Exit Function
            Else
                ChildStr = Rs("ChildStr")
                foundsql = "And A.ClassID in ("  ChildStr  ")"
            End If
            Rs.Close
        Else
            ChildStr = "0"
            foundsql = ""
        End If
        Select Case CInt(stype)
        Case 1
            foundsql = foundsql  " ORDER BY A.DayHits DESC ,A.Articleid DESC"
            strHits = "DayHits"
        Case 2
            foundsql = foundsql  " ORDER BY A.WeekHits DESC ,A.Articleid DESC"
            strHits = "WeekHits"
        Case 3
            foundsql = foundsql  " ORDER BY A.MonthHits DESC ,A.Articleid DESC"
            strHits = "MonthHits"
        Case 4
            foundsql = foundsql  " And A.isBest>0 ORDER BY A.AllHits DESC ,A.Articleid DESC"
            strHits = "AllHits"
        Case Else
            foundsql = foundsql  "ORDER BY A.AllHits DESC ,A.Articleid DESC"
            strHits = "AllHits"
        End Select
        SQL = " A.ArticleID,A.ClassID,A.ColorMode,A.FontMode,A.title,A.BriefTopic,A.AllHits,A.WriteTime,A.HtmlFileDate,A.isBest,A.DayHits,A.WeekHits,A.MonthHits,"
        SQL = "SELECT TOP "  CInt(maxline)  SQL  " C.ClassName,C.ColorModes,C.FontModes,C.HtmlFileDir FROM [NC_Article] A INNER JOIN [NC_Classify] C ON A.ClassID=C.ClassID WHERE A.isAccept>0 And A.ChannelID="  chanid  " "  foundsql
        Set Rs = Newasp.Execute(SQL)
        i = 0
        strContent = ""
        If Rs.BOF And Rs.EOF Then
            strContent = "還沒有找到任何軟件!"
        Else
            Do While Not Rs.EOF
                If Trim(styles) > "" And Trim(styles) > "0" Then
                    If (i Mod 2) = 0 Then
                        divstyle = " class="""  Trim(styles)  "1"""
                    Else
                        divstyle = " class="""  Trim(styles)  "2"""
                    End If
                End If
                NewsTitle = Newasp.GotTopic(Rs("title"), CInt(maxlen))
                NewsTitle = Newasp.ReadFontMode(NewsTitle, Rs("ColorMode"), Rs("FontMode"))
                HtmlFileName = Newasp.ReadFileName(Rs("HtmlFileDate"), Rs("ArticleID"), Newasp.ChannelHtmlExt, Newasp.ChannelPrefix, Newasp.ChannelHtmlForm, "")
                If CInt(Newasp.ChannelUseHtml) > 0 Then
                    HtmlFileUrl = Newasp.ChannelPath  Rs("HtmlFileDir")  Newasp.ShowDatePath(Rs("HtmlFileDate"), Newasp.ChannelHtmlPath)  HtmlFileName
                Else
                    HtmlFileUrl = Newasp.ChannelPath  "show.asp?id="  Rs("ArticleID")
                End If
                If CInt(showhits) > 0 Then
                    AllHits = Rs(strHits)
                Else
                    AllHits = ""
                End If
                ArticleTitle = "div"  divstyle  ">"  start  " a href="""  HtmlFileUrl  """ target="""  target  """ title="""  Newasp.ChannelModule  "標(biāo)題:"  Rs("title")  "#13;#10;發(fā)布時間:"  Rs("WriteTime")  "#13;#10;閱覽次數(shù):"  Rs("AllHits")  """ class=popular>"  NewsTitle  "/a>  "  AllHits  "/div>"
                strContent = strContent  ArticleTitle
                Rs.MoveNext
                i = i + 1
            Loop
        End If
        Rs.Close: Set Rs = Nothing
        LoadPopularArticle = strContent
    End Function
    '================================================
    '函數(shù)名:ReadPopularSoft
    '作  用:讀取軟件排行列表
    '參  數(shù):str ----原字符串
    '================================================
    Public Function ReadPopularArticle(ByVal str)
        On Error Resume Next
        Dim strTemp, i, sTempContent
        Dim nTempContent, ArrayList
        Dim arrTempContent, arrTempContents

        strTemp = str
        If InStr(strTemp, "{$ReadPopularArticle(") > 0 Then
            sTempContent = Newasp.CutMatchContent(strTemp, "{$ReadPopularArticle(", ")}", 1)
            nTempContent = Newasp.CutMatchContent(strTemp, "{$ReadPopularArticle(", ")}", 0)
            arrTempContents = Split(sTempContent, "|||")
            arrTempContent = Split(nTempContent, "|||")
            For i = 0 To UBound(arrTempContents)
                ArrayList = Split(arrTempContent(i), ",")
                strTemp = Replace(strTemp, arrTempContents(i), LoadPopularArticle(ArrayList(0), ArrayList(1), ArrayList(2), ArrayList(3), ArrayList(4), ArrayList(5), ArrayList(6), ArrayList(7), ArrayList(8)))
            Next
        End If
        ReadPopularArticle = strTemp
    End Function
    '================================================
    '函數(shù)名:LoadPopularFlash
    '作  用:裝載排行動畫列表
    '參  數(shù):ClassID   ----分類ID
    '        chanid   ----頻道ID
    '        stype   ----調(diào)用類型
    '        maxline   ----顯示列表數(shù)
    '        maxlen   ----顯示標(biāo)題長度
    '        showhits   ----是否顯示下載數(shù)
    '        target   ----連接目標(biāo)
    '        start   ----標(biāo)題頭標(biāo)記
    '        styles   ----樣式名稱
    '================================================
    Public Function LoadPopularFlash(ByVal chanid, ByVal ClassID, ByVal stype, _
        ByVal maxlen, ByVal maxline, ByVal showhits, _
        ByVal target, ByVal start, ByVal styles)

        Dim SQL, Rs, foundsql, strHits
        Dim ChildStr, i, strContent
        Dim HtmlFileName, HtmlFileUrl
        Dim NewsTitle, AllHits, strtitle
        Dim divstyle

        chanid = Newasp.ChkNumeric(chanid)
        ClassID = Newasp.ChkNumeric(ClassID)
        stype = Newasp.ChkNumeric(stype)
        If chanid = 0 Then chanid = 1

        On Error Resume Next
        Newasp.LoadChannel(chanid)

        If CLng(ClassID) > 0 And Trim(ClassID) > "" Then
            SQL = "SELECT ChildStr FROM [NC_Classify] WHERE ChannelID="  chanid  " And classid="  ClassID
            Set Rs = Newasp.Execute(SQL)
            If Rs.BOF And Rs.EOF Then
                Set Rs = Nothing
                LoadPopularFlash = ""
                Exit Function
            Else
                ChildStr = Rs("ChildStr")
                foundsql = "And A.ClassID in ("  ChildStr  ")"
            End If
            Rs.Close
        Else
            ChildStr = "0"
            foundsql = ""
        End If

        Select Case CInt(stype)
        Case 1
            foundsql = foundsql  " ORDER BY A.DayHits DESC ,A.flashid DESC"
            strHits = "DayHits"
        Case 2
            foundsql = foundsql  " ORDER BY A.WeekHits DESC ,A.flashid DESC"
            strHits = "WeekHits"
        Case 3
            foundsql = foundsql  " ORDER BY A.MonthHits DESC ,A.flashid DESC"
            strHits = "MonthHits"
        Case 4
            foundsql = foundsql  " And A.isBest>0 ORDER BY A.AllHits DESC ,A.flashid DESC"
            strHits = "AllHits"
        Case Else
            foundsql = foundsql  "ORDER BY A.AllHits DESC ,A.flashid DESC"
            strHits = "AllHits"
        End Select
        SQL = " A.flashid,A.ClassID,A.ColorMode,A.FontMode,A.title,A.AllHits,A.addTime,A.HtmlFileDate,A.isBest,A.DayHits,A.WeekHits,A.MonthHits,"
        SQL = "SELECT TOP "  CInt(maxline)  SQL  " C.ClassName,C.ColorModes,C.FontModes,C.HtmlFileDir FROM [NC_FlashList] A INNER JOIN [NC_Classify] C ON A.ClassID=C.ClassID WHERE A.isAccept>0 And A.ChannelID="  chanid  " "  foundsql
        Set Rs = Newasp.Execute(SQL)
        i = 0
        strContent = ""
        If Rs.BOF And Rs.EOF Then
            strContent = "還沒有找到任何內(nèi)容!"
        Else
            Do While Not Rs.EOF
                If Trim(styles) > "" And Trim(styles) > "0" Then
                    If (i Mod 2) = 0 Then
                        divstyle = " class="""  Trim(styles)  "1"""
                    Else
                        divstyle = " class="""  Trim(styles)  "2"""
                    End If
                End If

                NewsTitle = Newasp.GotTopic(Rs("title"), CInt(maxlen))
                NewsTitle = Newasp.ReadFontMode(NewsTitle, Rs("ColorMode"), Rs("FontMode"))
                HtmlFileName = Newasp.ReadFileName(Rs("HtmlFileDate"), Rs("flashid"), Newasp.ChannelHtmlExt, Newasp.ChannelPrefix, Newasp.ChannelHtmlForm, "")
                If CInt(Newasp.ChannelUseHtml) > 0 Then
                    HtmlFileUrl = Newasp.ChannelPath  Rs("HtmlFileDir")  Newasp.ShowDatePath(Rs("HtmlFileDate"), Newasp.ChannelHtmlPath)  HtmlFileName
                Else
                    HtmlFileUrl = Newasp.ChannelPath  "show.asp?id="  Rs("flashid")
                End If
                If CInt(showhits) > 0 Then
                    AllHits = Rs(strHits)
                Else
                    AllHits = ""
                End If
                strtitle = "div"  divstyle  ">"  start  " a href="""  HtmlFileUrl  """ target="""  target  """ title="""  Newasp.ChannelModule  "名稱:"  Rs("title")  "#13;#10;發(fā)布時間:"  Rs("addTime")  "#13;#10;下載總數(shù):"  Rs("AllHits")  """ class=popular>"  NewsTitle  "/a>  "  AllHits  "/div>"
                strContent = strContent  strtitle

                Rs.MoveNext
                i = i + 1
            Loop
        End If
        Rs.Close: Set Rs = Nothing
        LoadPopularFlash = strContent
    End Function
    '================================================
    '函數(shù)名:ReadPopularFlash
    '作  用:讀取動畫排行列表
    '參  數(shù):str ----原字符串
    '================================================
    Public Function ReadPopularFlash(ByVal str)
        On Error Resume Next
        Dim strTemp, i, sTempContent
        Dim nTempContent, ArrayList
        Dim arrTempContent, arrTempContents

        strTemp = str
        If InStr(strTemp, "{$ReadPopularFlash(") > 0 Then
            sTempContent = Newasp.CutMatchContent(strTemp, "{$ReadPopularFlash(", ")}", 1)
            nTempContent = Newasp.CutMatchContent(strTemp, "{$ReadPopularFlash(", ")}", 0)
            arrTempContents = Split(sTempContent, "|||")
            arrTempContent = Split(nTempContent, "|||")
            For i = 0 To UBound(arrTempContents)
                ArrayList = Split(arrTempContent(i), ",")
                strTemp = Replace(strTemp, arrTempContents(i), LoadPopularFlash(ArrayList(0), ArrayList(1), ArrayList(2), ArrayList(3), ArrayList(4), ArrayList(5), ArrayList(6), ArrayList(7), ArrayList(8)))
            Next
        End If
        ReadPopularFlash = strTemp
    End Function
    '================================================
    '函數(shù)名:LoadSoftType
    '作  用:裝載軟件類型列表
    '參  數(shù):chanid   ----頻道ID
    '        SoftType   ----軟件類型
    '        maxline   ----顯示列表數(shù)
    '        maxlen   ----顯示標(biāo)題長度
    '        showclass   ----是否顯示分類
    '        showdate   ----是否顯示日期
    '        DateMode   ----顯示日期模式
    '        newindow  ----是否新窗口打開連接
    '        styles   ----樣式名稱
    '================================================
    Public Function LoadSoftType(ByVal chanid, ByVal SoftType, ByVal maxlen, _
        ByVal maxline, ByVal showclass, ByVal showdate, _
        ByVal DateMode, ByVal newindow, ByVal styles)

        Dim SQL, Rs, foundsql, strContent, i
        Dim strSoftName, ChildStr, ListStyle, HtmlFileName, BestCode, BestString
        Dim ClassName, HtmlFileUrl, SoftTime, LinkTarget, SoftTopic

        SoftType = Newasp.CheckStr(SoftType)
        chanid = Newasp.ChkNumeric(chanid)
        maxline = Newasp.ChkNumeric(maxline)
        If chanid = 0 Then chanid = 2
        If maxline = 0 Then maxline = 10

        On Error Resume Next
        Newasp.LoadChannel(chanid)

        If Trim(SoftType) > "" Then
            foundsql = "And A.SoftType='"  SoftType  "' Order By A.SoftTime Desc ,A.SoftID Desc"
        Else
            foundsql = "Order By A.SoftTime Desc ,A.SoftID Desc"
        End If

        SQL = " A.SoftID,A.ClassID,A.ColorMode,A.FontMode,A.SoftName,A.SoftVer,A.SoftType,A.AllHits,A.SoftTime,A.HtmlFileDate,A.isBest,"
        SQL = "SELECT TOP "  maxline  SQL  " C.ClassName,C.ColorModes,C.FontModes,C.HtmlFileDir,C.UseHtml FROM [NC_SoftList] A INNER JOIN [NC_Classify] C ON A.ClassID=C.ClassID WHERE A.isAccept>0 And A.ChannelID="  chanid  " "  foundsql
        Set Rs = Newasp.Execute(SQL)
        i = 0
        strContent = ""
        If Rs.BOF And Rs.EOF Then
            strContent = "還沒有找到任何軟件!"
        Else
            strContent = "table width=""100%"" border=0 cellpadding=2 cellspacing=0>"
            Do While Not Rs.EOF
                If (i Mod 2) = 0 Then
                    ListStyle = Trim(styles)  1
                Else
                    ListStyle = Trim(styles)  2
                End If
                If Rs("isBest") > 0 Then
                    BestCode = 2
                    BestString = "font color='"  Newasp.MainSetting(3)  "'>推薦/font>"
                Else
                    BestCode = 1
                    BestString = ""
                End If
                strContent = strContent  Newasp.MainSetting(14)
                strSoftName = Newasp.GotTopic(Rs("SoftName")  " "  Rs("SoftVer"), CInt(maxlen))
                strSoftName = Newasp.ReadFontMode(strSoftName, Rs("ColorMode"), Rs("FontMode"))

                ClassName = Newasp.ReadFontMode(Rs("ClassName"), Rs("ColorModes"), Rs("FontModes"))
                HtmlFileName = Newasp.ReadFileName(Rs("HtmlFileDate"), Rs("SoftID"), Newasp.ChannelHtmlExt, Newasp.ChannelPrefix, Newasp.ChannelHtmlForm, "")
                If CInt(Newasp.ChannelUseHtml) > 0 Then
                    HtmlFileUrl = Newasp.ChannelPath  Rs("HtmlFileDir")  Newasp.ShowDatePath(Rs("HtmlFileDate"), Newasp.ChannelHtmlPath)  HtmlFileName
                    ClassName = "a href='"  Newasp.ChannelPath  Rs("HtmlFileDir")  "index"  Newasp.ChannelHtmlExt  "'>"  ClassName  "/a>"
                Else
                    HtmlFileUrl = Newasp.ChannelPath  "show.asp?id="  Rs("SoftID")
                    ClassName = "a href='"  Newasp.ChannelPath  "list.asp?classid="  Rs("ClassID")  "'>"  ClassName  "/a>"
                End If
                If CInt(showclass) = 0 Then ClassName = ""
                If CInt(showdate) > 0 Then
                    SoftTime = Newasp.ShowDateTime(Rs("SoftTime"), CInt(DateMode))
                Else
                    SoftTime = ""
                End If
                If CInt(newindow) > 0 Then
                    LinkTarget = " target=""_blank"""
                Else
                    LinkTarget = ""
                End If

                SoftTopic = "a href='"  HtmlFileUrl  "'"  LinkTarget  " title='"  Newasp.ChannelModule  "名稱:"  Rs("SoftName")  "#13;#10;發(fā)布時間:"  Rs("SoftTime")  "#13;#10;下載次數(shù):"  Rs("AllHits")  "' class=showlist>"  strSoftName  "/a>"
                strContent = Replace(strContent, "{$SoftTopic}", SoftTopic)
                strContent = Replace(strContent, "{$InstallDir}", Newasp.InstallDir)
                strContent = Replace(strContent, "{$SoftName}", strSoftName)
                strContent = Replace(strContent, "{$Title}", Rs("SoftName"))
                strContent = Replace(strContent, "{$DateAndTitle}", Rs("SoftTime"))
                strContent = Replace(strContent, "{$HtmlFileUrl}", HtmlFileUrl)
                strContent = Replace(strContent, "{$ClassName}", ClassName)
                strContent = Replace(strContent, "[]", "")
                strContent = Replace(strContent, "{$Target}", LinkTarget)
                strContent = Replace(strContent, "{$SoftTime}", SoftTime)
                strContent = Replace(strContent, "{$SoftHits}", Rs("AllHits"))
                strContent = Replace(strContent, "{$ListStyle}", ListStyle)
                strContent = Replace(strContent, "{$BestCode}", BestCode)
                strContent = Replace(strContent, "{$BestString}", BestString)
                Rs.MoveNext
                i = i + 1
            Loop
            strContent = strContent  "/table>"
        End If
        Set Rs = Nothing
        LoadSoftType = strContent
    End Function
    '================================================
    '函數(shù)名:ReadSoftType
    '作  用:讀取軟件類型列表
    '參  數(shù):str ----原字符串
    '================================================
    Public Function ReadSoftType(ByVal str)
        On Error Resume Next
        Dim strTemp, i, sTempContent
        Dim nTempContent, ArrayList
        Dim arrTempContent, arrTempContents

        strTemp = str
        If InStr(strTemp, "{$ReadSoftType(") > 0 Then
            sTempContent = Newasp.CutMatchContent(strTemp, "{$ReadSoftType(", ")}", 1)
            nTempContent = Newasp.CutMatchContent(strTemp, "{$ReadSoftType(", ")}", 0)
            arrTempContents = Split(sTempContent, "|||")
            arrTempContent = Split(nTempContent, "|||")
            For i = 0 To UBound(arrTempContents)
                ArrayList = Split(arrTempContent(i), ",")
                strTemp = Replace(strTemp, arrTempContents(i), LoadSoftType(ArrayList(0), ArrayList(1), ArrayList(2), ArrayList(3), ArrayList(4), ArrayList(5), ArrayList(6), ArrayList(7), ArrayList(8)))
            Next
        End If
        ReadSoftType = strTemp
    End Function
    '================================================
    '函數(shù)名:LoadUserRank
    '作  用:裝用戶排行列表
    '================================================
    Public Function LoadUserRank(ByVal stype,ByVal grade,ByVal maxline,ByVal styles)
        Dim SQL, Rs, foundsql, strContent, i
        Dim ListStyle,username

        stype = Newasp.CheckNumeric(stype)
        grade = Newasp.CheckNumeric(grade)
        maxline = Newasp.CheckNumeric(maxline)
        If maxline = 0 Then maxline = 10
        If stype = 1 Then
            foundsql = "ORDER BY JoinTime DESC,userid DESC"
        ElseIf stype = 2 Then
            foundsql = "ORDER BY LastTime DESC,userid DESC"
        ElseIf stype = 3 Then
            foundsql = "ORDER BY userpoint DESC,userid DESC"
        Else
            foundsql = "ORDER BY userlogin DESC,userid DESC"
        End If
        If grade > 0 Then
            SQL = "SELECT TOP "  maxline  " userid,username,userpoint,userlogin FROM [NC_User] WHERE UserGrade="  grade  " "  foundsql
        Else
            SQL = "SELECT TOP "  maxline  " userid,username,userpoint,userlogin FROM [NC_User] "  foundsql
        End If
        Set Rs = Newasp.Execute(SQL)
        i = 0
        strContent = ""
        If Not (Rs.BOF And Rs.EOF) Then
            strContent = "table width=""100%"" border=0 cellpadding=2 cellspacing=0>"
            Do While Not Rs.EOF
                If (i Mod 2) = 0 Then
                    ListStyle = Trim(styles)  1
                Else
                    ListStyle = Trim(styles)  2
                End If
                username = "a href="""  Newasp.InstallDir  "user/userlist.asp?userid="  Rs("userid")  """ target=""_blank"">"  Rs("username")  "/a>"
                strContent = strContent  Newasp.MainSetting(23)
                strContent = Replace(strContent, "{$ListStyle}", ListStyle)
                strContent = Replace(strContent, "{$InstallDir}", Newasp.InstallDir)
                strContent = Replace(strContent, "{$UserName}", username)
                strContent = Replace(strContent, "{$username}", Rs("username"))
                strContent = Replace(strContent, "{$UserID}", Rs("userid"))
                strContent = Replace(strContent, "{$UserLogin}", Rs("userlogin"))
                strContent = Replace(strContent, "{$UserPoint}", Rs("userpoint"))
                Rs.MoveNext
                i = i + 1
                strContent = Replace(strContent, "{$OrderID}", i)
            Loop
            strContent = strContent  "/table>"
        End If
        Rs.Close: Set Rs = Nothing

        LoadUserRank = strContent
    End Function
    '================================================
    '函數(shù)名:ReadUserRank
    '作  用:讀取用戶排行列表
    '參  數(shù):str ----原字符串
    '================================================
    Public Function ReadUserRank(ByVal str)
        On Error Resume Next
        Dim strTemp, i, sTempContent
        Dim nTempContent, ArrayList
        Dim arrTempContent, arrTempContents

        strTemp = str
        If InStr(strTemp, "{$ReadUserRank(") > 0 Then
            sTempContent = Newasp.CutMatchContent(strTemp, "{$ReadUserRank(", ")}", 1)
            nTempContent = Newasp.CutMatchContent(strTemp, "{$ReadUserRank(", ")}", 0)
            arrTempContents = Split(sTempContent, "|||")
            arrTempContent = Split(nTempContent, "|||")
            For i = 0 To UBound(arrTempContents)
                ArrayList = Split(arrTempContent(i), ",")
                strTemp = Replace(strTemp, arrTempContents(i), LoadUserRank(ArrayList(0), ArrayList(1), ArrayList(2), ArrayList(3)))
            Next
        End If
        ReadUserRank = strTemp
    End Function
    '================================================
    '函數(shù)名:LoadStatistic
    '作  用:裝載頻道統(tǒng)計
    '參  數(shù):moduleid ----所屬模塊
    '        ChannelID ----頻道ID
    '        strClass ----所調(diào)用的分類ID或者軟件類型
    '        stype ----統(tǒng)計類型,0=全部統(tǒng)計,1=今日更新統(tǒng)計,2=點擊數(shù)統(tǒng)計,3=軟件容量統(tǒng)計
    '================================================
    Public Function LoadStatistic(ByVal moduleid, ByVal ChannelID, ByVal strClass, ByVal stype)

        moduleid = Newasp.CheckNumeric(moduleid)
        ChannelID = Newasp.CheckNumeric(ChannelID)
        stype = Newasp.CheckNumeric(stype)

        Dim Rs, SQL, StatCount
        Dim foundsql, ClassID, ChildStr

        ClassID = Newasp.CheckNumeric(strClass)
        On Error Resume Next
        LoadStatistic = 0
        If ClassID > 0 Then
            SQL = "SELECT ChildStr FROM [NC_Classify] WHERE ChannelID = "  ChannelID  " And ClassID="  ClassID
            Set Rs = Newasp.Execute(SQL)
            If Rs.BOF And Rs.EOF Then
                ChildStr = 0
            Else
                ChildStr = Rs("ChildStr")
            End If
            Rs.Close: Set Rs = Nothing
            foundsql = "And ChannelID="  ChannelID  " And ClassID in ("  ChildStr  ")"
        Else
            foundsql = "And ChannelID="  ChannelID
        End If
        Select Case moduleid
        Case 1
            If stype = 1 Then
                If isSqlDataBase = 1 Then
                    SQL = "SELECT COUNT(ArticleID) FROM NC_Article WHERE isAccept>0 "  foundsql  " And Datediff(d,WriteTime,GetDate())=0"
                Else
                    SQL = "SELECT COUNT(ArticleID) FROM NC_Article WHERE isAccept>0 "  foundsql  " And WriteTime>=Date()"
                End If
            ElseIf stype = 2 Then
                SQL = "SELECT SUM(AllHits) FROM NC_Article WHERE isAccept>0 "  foundsql
            ElseIf stype = 4 Then
                SQL = "SELECT SUM(DayHits) FROM NC_Article WHERE isAccept>0 "  foundsql
            Else
                SQL = "SELECT COUNT(ArticleID) FROM NC_Article WHERE isAccept>0 "  foundsql
            End If
        Case 2
            If Not IsNumeric(strClass) Then
                foundsql = foundsql  " And SoftType='"  Newasp.CheckStr(strClass)  "'"
            End If
            If stype = 1 Then
                If isSqlDataBase = 1 Then
                    SQL = "SELECT COUNT(softid) FROM NC_SoftList WHERE isAccept>0 "  foundsql  " And Datediff(d,SoftTime,GetDate())=0"
                Else
                    SQL = "SELECT COUNT(softid) FROM NC_SoftList WHERE isAccept>0 "  foundsql  " And SoftTime>=Date()"
                End If
            ElseIf stype = 2 Then
                SQL = "SELECT SUM(AllHits) FROM NC_SoftList WHERE isAccept>0 "  foundsql
            ElseIf stype = 3 Then
                SQL = "SELECT SUM(SoftSize) FROM NC_SoftList WHERE isAccept>0 "  foundsql
            ElseIf stype = 4 Then
                SQL = "SELECT SUM(DayHits) FROM NC_SoftList WHERE isAccept>0 "  foundsql
            Else
                SQL = "SELECT COUNT(softid) FROM NC_SoftList WHERE isAccept>0 "  foundsql
            End If
        Case 4
            If stype = 1 Then
                If isSqlDataBase = 1 Then
                    SQL = "SELECT COUNT(GuestID) FROM NC_GuestBook WHERE isAccept>0 And Datediff(d,WriteTime,GetDate())=0"
                Else
                    SQL = "SELECT COUNT(GuestID) FROM NC_GuestBook WHERE isAccept>0 And WriteTime>=Date()"
                End If
            Else
                SQL = "SELECT COUNT(GuestID) FROM NC_GuestBook WHERE isAccept>0"
            End If
        Case 5
            If stype = 1 Then
                If isSqlDataBase = 1 Then
                    SQL = "SELECT COUNT(flashid) FROM NC_FlashList WHERE isAccept>0 "  foundsql  " And Datediff(d,addTime,GetDate())=0"
                Else
                    SQL = "SELECT COUNT(flashid) FROM NC_FlashList WHERE isAccept>0 "  foundsql  " And addTime>=Date()"
                End If
            ElseIf stype = 2 Then
                SQL = "SELECT SUM(AllHits) FROM NC_FlashList WHERE isAccept>0 "  foundsql
            ElseIf stype = 3 Then
                SQL = "SELECT SUM(filesize) FROM NC_FlashList WHERE isAccept>0 "  foundsql
            ElseIf stype = 4 Then
                SQL = "SELECT SUM(DayHits) FROM NC_FlashList WHERE isAccept>0 "  foundsql
            Else
                SQL = "SELECT COUNT(flashid) FROM NC_FlashList WHERE isAccept>0 "  foundsql
            End If
        Case Else
            If stype = 1 Then
                If isSqlDataBase = 1 Then
                    SQL = "SELECT COUNT(userid) FROM NC_User WHERE Datediff(d,JoinTime,GetDate())=0"
                Else
                    SQL = "SELECT COUNT(userid) FROM NC_User WHERE JoinTime>=Date()"
                End If
            Else
                SQL = "SELECT COUNT(userid) FROM NC_User"
            End If
        End Select
        Set Rs = Newasp.Execute(SQL)
        If Rs.BOF And Rs.EOF Then
            StatCount = 0
        Else
            StatCount = CCur(Rs(0))
            If (moduleid = 2 And stype = 3) Or (moduleid = 5 And stype = 3) Then
                StatCount = Round(StatCount / 1024 / 1024, 3)
                StatCount = FormatNumber(StatCount, 3, -1)
            End If
        End If
        Rs.Close: Set Rs = Nothing
        LoadStatistic = StatCount
    End Function
    '================================================
    '函數(shù)名:ReadStatistic
    '作  用:讀取頻道統(tǒng)計
    '參  數(shù):str ----原字符串
    '================================================
    Public Function ReadStatistic(ByVal str)
        On Error Resume Next
        Dim strTemp, i, sTempContent
        Dim nTempContent, ArrayList
        Dim arrTempContent, arrTempContents

        strTemp = str
        On Error Resume Next
        If InStr(strTemp, "{$ReadStatistic(") > 0 Then
            sTempContent = Newasp.CutMatchContent(strTemp, "{$ReadStatistic(", ")}", 1)
            nTempContent = Newasp.CutMatchContent(strTemp, "{$ReadStatistic(", ")}", 0)
            arrTempContents = Split(sTempContent, "|||")
            arrTempContent = Split(nTempContent, "|||")
            For i = 0 To UBound(arrTempContents)
                ArrayList = Split(arrTempContent(i), ",")
                strTemp = Replace(strTemp, arrTempContents(i), LoadStatistic(ArrayList(0), ArrayList(1), ArrayList(2), ArrayList(3)))
            Next
        End If
        ReadStatistic = strTemp
    End Function

    Public Function ShowIndex(ByVal isHtml)
        Dim HtmlContent
        Newasp.LoadTemplates 0, 1, 0
        HtmlContent = Newasp.HtmlContent
        HtmlContent = Replace(HtmlContent, "{$ChannelRootDir}", Newasp.InstallDir)
        HtmlContent = Replace(HtmlContent, "{$InstallDir}", Newasp.InstallDir)
        If Len(Newasp.HtmlSetting(1))  2 Then
            HtmlContent = Replace(HtmlContent, "{$PageTitle}", "首頁")
        Else
            HtmlContent = Replace(HtmlContent, "{$PageTitle}", Newasp.HtmlSetting(1))
        End If
        HtmlContent = Replace(HtmlContent, "{$ChannelID}", 0)
        HtmlContent = ReadAnnounceContent(HtmlContent, 0)
        HtmlContent = ReadClassMenu(HtmlContent)
        HtmlContent = ReadClassMenubar(HtmlContent)
        HtmlContent = ReadArticlePic(HtmlContent)
        HtmlContent = ReadSoftPic(HtmlContent)
        HtmlContent = ReadArticleList(HtmlContent)
        HtmlContent = ReadSoftList(HtmlContent)
        HtmlContent = ReadFlashList(HtmlContent)
        HtmlContent = ReadFlashPic(HtmlContent)
        HtmlContent = ReadFriendLink(HtmlContent)
        HtmlContent = ReadNewsPicAndText(HtmlContent)
        HtmlContent = ReadSoftPicAndText(HtmlContent)
        HtmlContent = ReadGuestList(HtmlContent)
        HtmlContent = ReadAnnounceList(HtmlContent)
        HtmlContent = ReadPopularArticle(HtmlContent)
        HtmlContent = ReadPopularSoft(HtmlContent)
        HtmlContent = ReadPopularFlash(HtmlContent)
        HtmlContent = ReadSoftType(HtmlContent)
        HtmlContent = ReadStatistic(HtmlContent)
        HtmlContent = ReadUserRank(HtmlContent)
        HtmlContent = Replace(HtmlContent, "{$SkinPath}", Newasp.SkinPath)
        HtmlContent = Replace(HtmlContent, "{$InstallDir}", Newasp.InstallDir)
        If isHtml Then
            ShowIndex = HtmlContent
        Else
            Response.Write HtmlContent
        End If
    End Function

End Class
%>

標(biāo)簽:涼山 通遼 邢臺 赤峰 清遠(yuǎn) 南京 楚雄 上海

巨人網(wǎng)絡(luò)通訊聲明:本文標(biāo)題《文章列表類別》,本文關(guān)鍵詞  文章,列表,類別,文章,列表,;如發(fā)現(xiàn)本文內(nèi)容存在版權(quán)問題,煩請?zhí)峁┫嚓P(guān)信息告之我們,我們將及時溝通與處理。本站內(nèi)容系統(tǒng)采集于網(wǎng)絡(luò),涉及言論、版權(quán)與本站無關(guān)。
  • 相關(guān)文章
  • 下面列出與本文章《文章列表類別》相關(guān)的同類信息!
  • 本頁收集關(guān)于文章列表類別的相關(guān)信息資訊供網(wǎng)民參考!
  • 推薦文章

    上一篇:newasp中main類

    下一篇:[ASP]精華代碼

    欧美成人做性视频在线播放| 蜜桃专区在线| 特大黑人娇小亚洲女mp4| 中文字幕另类日韩欧美亚洲嫩草| 亚洲人视频在线| 日韩av图片| 在线观看岛国片| 91精品天堂福利在线观看| 999精彩视频| 女女百合国产免费网站| 末成年女av片一区二区下载| 亚洲精品国产成人| 日本一区二区免费看| 国产酒店精品激情| 青青操在线观看视频| 又骚又黄的视频| 色婷婷久久一区二区三区麻豆| 久久黄色免费看| 台湾av在线二三区观看| 久久久天堂国产精品女人| 884aa四虎免费影库4h| 夜夜操夜夜骑| 亚洲精品小区久久久久久| 久久精品蜜桃| 欲色天天网综合久久| 亚洲人成电影院色| 欧美大片大片在线播放| 久久精品国产一区二区三区肥胖| 久久嫩草精品久久久精品| a∨色狠狠一区二区三区| 欧美偷拍自拍| 免费日韩成人| 日本小视频在线免费观看| 中文成人综合网| 日韩一区亚洲二区| 91黄色精品| 在线一区观看| 亚洲人永久免费| 国产精品尤物视频| 国产亚洲欧美日韩一区二区| 五月综合激情日本mⅴ| 欧美激情性做爰免费视频| 最近中文字幕在线中文视频| 亚洲精品小视频在线观看| 激情视频小说图片| 无码精品人妻一区二区| 婷婷成人激情在线网| 99在线免费观看视频| 成人春色在线观看免费网站| 青青草这里只有精品| 欧美人与动牲交xxxxbbbb| 精品电影一区二区三区| 欧美浪妇xxxx高跟鞋交| 六月丁香婷婷在线| 日本在线视频播放| 一级特黄a大片免费| 中文字幕v亚洲ⅴv天堂| 亚洲天堂视频在线观看| 中文字幕在线播放一区| 日本不卡视频在线观看| 麻豆影视国产在线观看| 中文字幕中文在线不卡住| 国产另类图片| 最近中文字幕在线视频| 欧美一区二区播放| 国产丝袜精品第一页| 亚洲综合自拍网| 男人在线观看视频| 欧美福利电影在线观看| 91国产视频在线| 欧美深深色噜噜狠狠yyy| 欧洲精品一区二区三区在线观看| 91popny丨九色丨国产| 日本免费一区二区三区视频观看| 欧美日韩国产高清电影| 久久久这里只有精品视频| 日日夜夜综合网| 男人添女人下部视频免费| 亚洲视频在线免费观看| 国产一区二区三区不卡在线观看| 精品国产18久久久久久| 先锋av资源网| 国产精品久久久午夜夜伦鲁鲁| 免费97视频在线精品国自产拍| 椎名由奈jux491在线播放| 你懂的网站在线| 国产精品91免费在线| 在线观看国产高清视频| 日韩情爱电影在线观看| 日韩精品免费在线观看| 亚洲免费视频在线观看| 黄色片免费在线观看| 丰满岳乱妇dvd日本| 91精选在线观看| 国产精品无码一区二区在线| 亚洲国产97在线精品一区| 不卡视频一区二区| 久久大胆人体| 国产精品成人久久久久| 中文国产字幕在线观看| 在线免费观看黄色| 精品国产一二三| 女人让男人操自己视频在线观看| 午夜爽爽爽男女免费观看| 欧美另类高清videos的特点| av片免费播放| 久久久精品免费免费| 亚洲第一页自拍| 精品999日本久久久影院| 白白色 亚洲乱淫| 自慰无码一区二区三区| 欧美精品久久久久久久小说| 超碰电影在线播放| 欧美成人综合| 欧美最猛黑人xxxx| 欧美高清hd| 日韩三级影视基地| 精品a在线观看| 国产在线拍揄自揄拍无码| 综合电影一区二区三区| 国产美女精彩久久| 国产一区二区三区免费在线观看| 肥婆老bbb肥婆bbbbb| 国产又粗又大又爽视频| 欧美亚洲日本在线| 久久成人在线| 欧美一区三区四区| 亚洲天堂视频在线| 国产黄色免费大片| 国产一区玩具在线观看| 超碰91在线播放| 少妇户外露出[11p]| 亚洲国产精品一区二区三区| 日韩av在线播放网址| 中文字幕国语官网在线视频| 热舞福利精品大尺度视频| 亚洲ⅴ国产v天堂a无码二区| 色噜噜夜夜夜综合网| 91日韩一区二区三区| 老鸭窝一区二区| 久久天堂av综合合色| 中文字幕亚洲综合久久| 不卡影院一区二区| 九色精品高清在线播放| 欧美高清69hd| 日韩三级免费| 日本丰满少妇黄大片在线观看| av在线不卡网| 日本女人一区二区三区| 日韩福利视频在线| 国产传媒久久久| 亚洲成人自拍| av影院在线| 97人人模人人爽人人喊中文字| 国产精品乱子乱xxxx| 欧美不卡福利| 免费av网站大全久久| 国产一级理论片| 美女黄色网址| 午夜性色福利视频| 国产91高潮流白浆在线麻豆| 国产剧情av片巨作醉酒女邻居| 日韩网址在线观看| 日韩精品一区二区三区在线播放| 不卡日本视频| 在线免费看污网站| 亚洲成av人片在线观看香蕉| 国产传媒在线看| 成人亚洲综合天堂| 亚洲精品在线观看91| 亚洲新中文字幕| 在线观看91精品国产入口| 夜夜骚av一区二区三区| 牛牛精品在线视频| 美女日批视频在线观看| 五月婷婷丁香在线| 日本熟妇乱子伦xxxx| 精品卡一卡卡2卡3网站| 青青草这里只有精品| 96av在线| 国产精品亚洲一区二区三区在线观看| 丁香久久五月| 99视频精品全部免费看| 欧美午夜电影在线| 肉大捧一出免费观看网站在线播放| 天干天干啦夜天干天2019| 在线日韩精品视频| 国产一区二区免费在线观看| 91精品久久久久久久久中文字幕| 国产精品视频麻豆| 天天综合天天添夜夜添狠狠添| 美女88av| 2020国产成人综合网| 日韩 欧美 视频| 精品久久久久一区二区国产| 亚洲成人二区| 国产呻吟对白刺激无套视频在线| 国产高清自拍99| 日韩在线观看免费高清完整版| 污污内射在线观看一区二区少妇| 欧美精品久久久久a| 成年人av网站| 欧美精品一区在线| 99久久精品国产亚洲精品| 精品人妻一区二区三区换脸明星| 中文在线字幕观看| 国产精品视频免费一区二区三区| 男女日批视频在线观看| 日韩精品久久久久久久玫瑰园| 日本在线观看网址| 久久精品一区蜜桃臀影院| 中文一区在线观看| 亚洲人成自拍网站| 在线观看黄色片| 成人国产精品一区| 污视频软件在线观看| 国产精品久久国产精品99gif| 亚洲人成啪啪网站| 天天操夜夜操夜夜操| av高清不卡| 亚洲一区二区三区免费观看| 福利影院在线看| 天堂成人在线视频| 欧美在线高清视频| 九九夜夜操妹子| 欧美最顶级丰满的aⅴ艳星| bestiality新另类大全| 欧美日韩亚洲第一页| 中文字幕在线观看免费| 日本免费一级视频| 国产综合精品久久久久成人av| 成人a区在线观看| 午夜成人免费电影| 舔足天天操天天射| 91视频国产高清| 亚洲欧美一区二区不卡| 亚洲精品无amm毛片| 三级一区二区三区| 欧美日韩亚洲国产成人| 国产清纯美女被跳蛋高潮一区二区久久w| 美女视频一区免费观看| 91久久精品午夜一区二区| 久久人体大胆视频| 久久不射中文字幕| 99久久久国产精品免费调教网站| 欧美精品丝袜中出| 国产亚洲毛片| 最新国产中文字幕| 国产一区二区在线视频聊天| 欧美伊人精品成人久久综合97| 亚洲欧美va天堂人熟伦| 中文av一区特黄| 妞干网在线观看视频| 4438国产精品一区二区| 国产69精品久久app免费版| 欧美sm一区| 亚洲电影影音先锋| 欧美白人最猛性xxxxx69交| 欧美日韩一区 二区 三区 久久精品| 久久免费黄色网址| 日韩精品免费在线视频观看| 97视频中文字幕| 操bbb操bbb| 黑人巨大精品欧美一区二区奶水| 亚洲国产精品久久久久久久| 女女互磨互喷水高潮les呻吟| 欧美精品电影在线播放| 久久久久久毛片免费看| 色综合 综合色| 久草视频福利在线| 欧美v亚洲v综合v国产v仙踪林| 久久精品电影网站| 欧美视频第一区| 91伊人久久大香线蕉| 久草在线资源网| 免费97视频在线精品国自产拍| 亚州精品天堂中文字幕| 欧美主播一区二区三区美女 久久精品人| 色婷婷免费视频| 成人ssswww在线播放| 91看片在线播放| 超碰在线观看av| 欧美大波大乳巨大乳| 视频一区国产精品| 日韩av日韩在线观看| 亚洲精品福利免费在线观看| 亚洲aⅴ在线观看| 99精品在线观看视频| 99国产精品一区二区| 国产jk精品白丝av在线观看| 国产无套粉嫩白浆内谢| 超碰成人av| www插插插无码免费视频网站| 国产天堂在线播放| 久久久久久av无码免费网站下载| 久久久久麻豆v国产精华液好用吗| 色综合视频一区二区三区44| 99久久激情视频| 久久精品视频免费观看| 国产亚洲精品v| 国产天堂视频| 一本—道久久a久久精品蜜桃| 国产天堂素人系列在线视频| 99re视频这里只有精品| 天堂www在线а√天堂| 中文字幕欧美色图| 韩国精品在线观看| 尤物yw午夜国产精品视频明星| 国产乱人伦精品一区二区三区| 午夜国产精品理论片久久影院| 国产精品极品美女在线观看免费| 国产精品毛片久久久久久久av| 精品亚洲乱码一区二区| 欧美日韩在线成人| 北岛玲精品视频在线观看| 日韩欧美中文字幕一区| 亚洲综合在线第一页| 日韩成人免费在线| 国产在线视频一区| 一区二区三区在线观看免费| 精品伊人久久| 三妻四妾的电影电视剧在线观看| 日本国产精品视频| a视频在线播放| caoporen国产精品视频| 国产一区二区美女视频| 国产一区二区黑人欧美xxxx| 成人免费在线视频播放|