<% '请勿改动下面这三行代码 const ChannelID=3 Const ShowRunTime="Yes" MaxPerPage=20 PageTitle="推荐下载" strFileName="Soft_NewElite.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 " if ClassID<>0 then sqlRoot = sqlRoot & " where C.ParentID=" & ClassID & " or C.ParentPath like '%" & ParentPath & "," & ClassID & "%' " else sqlRoot = sqlRoot & " where 1 " end if sqlRoot = sqlRoot & " 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) %>
 
   推荐下载: <% if ClassID=0 then response.write "所有软件" else response.write ClassName end if %>
软件名称 更新日期 软件大小 下载次数 软件等级
<% sqlSoft="select S.SoftID,S.ClassID,C.ClassName,L.LayoutFileName,S.SoftName,S.SoftVersion,S.UpdateTime,S.Hits,S.SoftSize,S.OnTop,S.Elite,S.Passed,S.Stars 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 and S.Elite=True " 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.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 <% 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"),"★")%>
<% 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() %>