<% <br>Dim HTML <br>Set HTML = New NewaspPublic_Cls <br>Class NewaspPublic_Cls <br><br> Private Sub Class_Initialize() <br> On Error Resume Next <br> Newasp.LoadTemplates 0, 0, 0 <br> End Sub <br> '================================================ <br> '函数名:LoadArticleList <br> '作 用:装载文章列表 <br> '参 数:ClassID ----分类ID <br> ' ChannelID ----频道ID <br> ' SpecialID ----专题ID <br> ' sType ----调用文章类型,0=所有最新文章,1=推荐文章,2=热门文章,3=图文文章,4=分类最新文章 <br> ' TopNum ----显示文章列表数 <br> ' strlen ----显示标题长度 <br> ' ShowClass ----是否显示分类 <br> ' ShowPic ----是否显示图文标题 <br> ' ShowDate ----是否显示日期 <br> ' DateMode ----显示日期模式 <br> ' newindow ----新窗口打开 <br> '================================================ <br> Public Function LoadArticleList(ByVal ChannelID, ByVal ClassID, ByVal SpecialID, _ <br> ByVal stype, ByVal TopNum, ByVal strLen, _ <br> ByVal showclass, ByVal showpic, ByVal showdate, _ <br> ByVal DateMode, ByVal newindow, ByVal styles) <br><br> Dim Rs, SQL, i, strContent, foundstr <br> Dim sTitle, sTopic, ChildStr, ListStyle, BestCode, BestString <br> Dim ArticleTopic, ClassName, HtmlFileUrl, WriteTime, LinkTarget, HtmlFileName <br><br> ChannelID = Newasp.ChkNumeric(ChannelID) <br> ClassID = Newasp.ChkNumeric(ClassID) <br> SpecialID = Newasp.ChkNumeric(SpecialID) <br> stype = Newasp.ChkNumeric(stype) <br><br> On Error Resume Next <br> Newasp.LoadChannel(ChannelID) <br><br> If CInt(stype) >= 4 And CLng(ClassID) <> 0 Then <br> SQL = "SELECT ChildStr FROM [NC_Classify] WHERE ChannelID=" & ChannelID & " And ClassID=" & ClassID <br> Set Rs = Newasp.Execute(SQL) <br> If Rs.BOF And Rs.EOF Then <br> Set Rs = Nothing <br> LoadArticleList = "" <br> Exit Function <br> Else <br> ChildStr = Rs("ChildStr") <br> End If <br> Set Rs = Nothing <br> Else <br> ChildStr = "0" <br> End If <br><br> Select Case CInt(stype) <br> Case 0: foundstr = "Order By A.Writetime Desc ,A.Articleid Desc" < |
|