文章列表类别(74)
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"
内容版权声明:除非注明,否则皆为本站原创文章。