<% '请勿改动下面这三行代码 const ChannelID=3 Const ShowRunTime="Yes" MaxPerPage=20 strFileName="Soft_Class.asp?ClassID=" & ClassID Set rsSoft= Server.CreateObject("ADODB.Recordset") Set rsPic= Server.CreateObject("ADODB.Recordset") SkinID=0 %> <%=strPageTitle%> <%call MenuJS()%> onmousemove='HideMenu()'> <% dim sqlRoot,rsRoot,trs,arrClassID,TitleStr sqlRoot="select C.ClassID,C.ClassName,C.RootID,L.LayoutFileName,L.LayoutID,C.Child,C.ParentPath From SoftClass C inner join Layout L on C.LayoutID=L.LayoutID where C.ParentID=" & ClassID & " or C.ParentPath like '%" & ParentPath & "," & ClassID & "%' and C.IsElite=True and C.LinkUrl='' and C.BrowsePurview>=" & UserLevel & " order by C.OrderID" Set rsRoot= Server.CreateObject("ADODB.Recordset") rsRoot.open sqlRoot,conn,1,1 arrClassID=ClassID do while not rsRoot.eof arrClassID=arrClassID & "," & rsRoot(0) rsRoot.movenext loop rsRoot.close set rsRoot=nothing %>
 下载中心通告 <% call ShowAnnounce(2,5) %> 本栏最近更新 本栏推荐下载
<%if Child>0 then%> <%end if%>
<%=ClassName%>分类
<%call ShowChildClass(1)%>
<%=ClassName%>下载Top10
<%call ShowTop(10,200,arrClassID)%>
推荐下载
<% call ShowPicSoft(0,4,20,1,1,130,90,200,false,true) %>
 
软件名称 更新日期 软件大小 下载次数 软件等级
<% sqlSoft="select S.SoftID,S.ClassID,C.ClassName,L.LayoutFileName,S.SoftName,S.SoftVersion,S.Author,S.AuthorEmail,S.Keyword,S.UpdateTime,S.Editor,S.Hits,S.DayHits,S.WeekHits,S.MonthHits,S.SoftSize,S.OnTop,S.Elite,S.Passed,S.Stars,S.SoftLevel,S.SoftPoint,S.SoftIntro,S.OperatingSystem,S.SoftType from Soft S" sqlSoft=sqlSoft & " inner join (SoftClass C inner join Layout L on C.LayoutID=L.LayoutID) on S.ClassID=C.ClassID where S.Deleted=False and S.Passed=True " 'if SpecialID>0 then ' sqlSoft=sqlSoft & " and S.SpecialID=" & SpecialID 'end if if instr(arrClassID,",")>0 then sqlSoft=sqlSoft & " and S.ClassID in (" & arrClassID & ")" else sqlSoft=sqlSoft & " and S.ClassID=" & Clng(arrClassID) end if sqlSoft=sqlSoft & " order by S.OnTop,S.SoftID desc" Set rsSoft= Server.CreateObject("ADODB.Recordset") rsSoft.open sqlSoft,conn,1,1 if rsSoft.bof and rsSoft.eof then totalput=0 response.Write "" else totalput=rsSoft.recordcount if currentpage<1 then currentpage=1 end if if (currentpage-1)*MaxPerPage>totalput then if (totalPut mod MaxPerPage)=0 then currentpage= totalPut \ MaxPerPage else currentpage= totalPut \ MaxPerPage + 1 end if end if if currentPage=1 then call SoftContent2() else if (currentPage-1)*MaxPerPage <% SoftNum=SoftNum+1 if SoftNum>=MaxPerPage then exit do rsSoft.movenext loop end sub %>
没有任何软件
<% if rsSoft("OnTop")=true then response.write "固顶软件 " elseif rsSoft("Elite")=true then response.write "推荐软件 " else response.write "普通软件 " end if %>   <%response.write "" & rsSoft("SoftName") & "  " & rsSoft("SoftVersion") & ""%> <%=FormatDateTime(rsSoft("UpdateTime"),2)%> <%=rsSoft("SoftSize") & " KB"%> <%=rsSoft("Hits")%> <%=string(rsSoft("Stars"),"★")%>
·<%=Left(nohtml(rsSoft("SoftIntro")),200)%>
 运行平台:<%=rsSoft("OperatingSystem")%>  软件性质:<% select case rsSoft("SoftType") case 1 response.write "国产软件" case 2 response.write "国外软件" case 3 response.write "汉化补丁" case 4 response.write "程序源码" case 5 response.write "电影下载" case 6 response.write "FLASH动画" case 7 response.write "其他" end select %>  本日下载:<%=rsSoft("DayHits")%>
<% if totalput>0 then call showpage(strFileName,totalput,MaxPerPage,false,true,"个软件") end if %>
  软件搜索:
<% call ShowSearchForm("Soft_Search.asp",2) %>
<% call Bottom() %> <% call PopAnnouceWindow(400,300) %> <% set rsSoft=nothing set rsPic=nothing call CloseConn() %>