<%@language=vbscript codepage=936 %> <% option explicit response.buffer=true Const PurviewLevel=2 Const CheckChannelID=3 Const PurviewLevel_Soft=3 %> <% dim strFileName,FileName const MaxPerPage=20 dim totalPut,CurrentPage,TotalPages dim i,j dim keyword,strField dim sql,rsSoftList dim ClassID dim PurviewChecked dim strAdmin,arrAdmin dim tClass,ClassName,RootID,ParentID,Depth,ParentPath,Child,ChildID,tID,tChild,ClassMaster dim SkinID,LayoutID,BrowsePurview,AddPurview dim ManageType ManageType=trim(request("ManageType")) PurviewChecked=false FileName="Admin_SoftManage.asp" ClassID=Trim(request("ClassID")) keyword=trim(request("keyword")) if keyword<>"" then keyword=ReplaceBadChar(keyword) end if strField=trim(request("Field")) if ClassID="" then ClassID=0 if strField="" and AdminPurview=2 and AdminPurview_Soft=3 and ManageType<>"MySoft" then set tClass=conn.execute("select ClassName,RootID,ParentID,Depth,ParentPath,Child,ClassMaster,ClassID From SoftClass where ClassMaster like '%" & AdminName & "%'") do while not tClass.eof if CheckClassMaster(tClass(6),AdminName)=true then ClassName=tClass(0) RootID=tClass(1) ParentID=tClass(2) Depth=tClass(3) ParentPath=tClass(4) Child=tClass(5) ClassMaster=tClass(6) ClassID=tClass(7) PurviewChecked=True exit do end if tClass.movenext loop end if else ClassID=CLng(ClassID) end if if ClassID>0 and PurviewChecked=False then set tClass=conn.execute("select ClassName,RootID,ParentID,Depth,ParentPath,Child,ClassMaster From SoftClass where ClassID=" & ClassID) if tClass.bof and tClass.eof then founderr=True ErrMsg=ErrMsg & "
  • 找不到指定的栏目
  • " Call WriteErrMsg() response.end else ClassName=tClass(0) RootID=tClass(1) ParentID=tClass(2) Depth=tClass(3) ParentPath=tClass(4) Child=tClass(5) ClassMaster=tClass(6) PurviewChecked=CheckClassMaster(tClass(6),AdminName) if PurviewChecked=False and ParentID>0 then set tClass=conn.execute("select ClassMaster from SoftClass where ClassID in (" & ParentPath & ")") do while not tClass.eof PurviewChecked=CheckClassMaster(tClass(0),AdminName) if PurviewChecked=True then exit do tClass.movenext loop end if end if end if if request("page")<>"" then currentPage=cint(request("page")) else currentPage=1 end if if ManageType="MySoft" then FileName=FileName & "?ManageType=" & ManageType strFileName=FileName & "&ClassID=" & ClassID & "&strField=" & strField & "&keyword=" & keyword else strFileName=FileName & "?ClassID=" & ClassID & "&strField=" & strField & "&keyword=" & keyword end if %> 软件管理
    软 件 管 理
    管理导航: 软件管理首页 | 添加软件(简洁模式) | 添加软件(高级模式) | 审核软件 <%if AdminPurview=1 or AdminPurview_Soft=1 then %>| 软件回收站管理 | 软件评论管理<%end if%>

    <%call Admin_ShowRootClass()%>

    <%call Admin_ShowPath("软件管理")%>
    <% sql="select S.SoftID,S.ClassID,C.ClassName,S.SoftName,S.SoftVersion,S.Author,S.Keyword,S.UpdateTime,S.Editor,S.Hits,S.SoftSize,S.OnTop,S.Elite,S.Passed,S.Stars,S.SoftLevel,S.SoftPoint from Soft S" sql=sql & " inner join SoftClass C on S.ClassID=C.ClassID where S.Deleted=False" if ClassID>0 then if Child>0 then ChildID="" set tClass=conn.execute("select ClassID from SoftClass where ParentID=" & ClassID & " or ParentPath like '" & ParentPath & "," & ClassID & ",%'") do while not tClass.eof if ChildID="" then ChildID=tClass(0) else ChildID=ChildID & "," & tClass(0) end if tClass.movenext loop sql=sql & " and S.ClassID in (" & ChildID & ")" else sql=sql & " and S.ClassID=" & ClassID end if end if if ManageType="MySoft" then sql=sql & " and S.Editor='" & AdminName & "' " else if keyword<>"" then select case strField case "SoftName" sql=sql & " and S.SoftName like '%" & keyword & "%' " case "SoftIntro" sql=sql & " and S.SoftIntro like '%" & keyword & "%' " case "Author" sql=sql & " and S.Author like '%" & keyword & "%' " case "Editor" sql=sql & " and S.Editor like '%" & keyword & "%' " case else sql=sql & " and S.SoftName like '%" & keyword & "%' " end select end if end if sql=sql & " order by S.SoftID desc" 'response.write sql 'response.end Set rsSoftList= Server.CreateObject("ADODB.Recordset") rsSoftList.open sql,conn,1,1 if rsSoftList.eof and rsSoftList.bof then totalPut=0 if Child=0 then response.write "


    没有任何软件!

    " else response.write "


    此栏目的下一级子栏目中没有任何软件!

    " end if else totalPut=rsSoftList.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 showContent showpage strFileName,totalput,MaxPerPage,true,true,"个软件" else if (currentPage-1)*MaxPerPage
    <%do while not rsSoftList.eof%> <% SoftNum=SoftNum+1 if SoftNum>=MaxPerPage then exit do rsSoftList.movenext loop %>
    选中 ID 软件名称及版本 软件大小 下载次数 软件属性 已审核 操作
    <%=rsSoftList("Softid")%> <% if rsSoftList("ClassID")<>ClassID then response.write "[" & rsSoftList("ClassName") & "] " end if response.write "" & rsSoftList("SoftName") & "  " & rsSoftList("SoftVersion") & "" %> <%=rsSoftList("SoftSize") & " K"%> <%= rsSoftList("Hits") %> <% if rsSoftList("OnTop")=true then response.Write " " else response.write "   " end if if rsSoftList("Hits")>=HitsOfHot then response.write "热 " else response.write "   " end if if rsSoftList("Elite")=true then response.write "荐" else response.write "  " end if %> <% if rsSoftList("Passed")=true then response.write "是" else response.write "否" end if%> <% if AdminPurview=1 or AdminPurview_Soft<=2 or PurviewChecked=true or AdminName=rsSoftList("Editor") then response.write "修改 " response.write "删除 " end if if AdminPurview=1 or AdminPurview_Soft<=2 then response.write "移动 " end if if AdminPurview=1 or AdminPurview_Soft<=2 or PurviewChecked=true then if rsSoftList("OnTop")=False then response.write "固顶 " else response.write "解固 " end if if rsSoftList("Elite")=False then response.write "设为推荐" else response.write "取消推荐" end if end if %>
    选中本页显示的所有软件 =3 then response.write "disabled"%>> <% if AdminPurview=1 or AdminPurview_Soft<=2 then %>     <%end if%>
    <% end sub if ClassID>0 and Child>0 then %>
    【<%response.write "" & ClassName & ""%>】子栏目导航: <%call Admin_ShowChild()%>
    <% end if %>
    软件搜索: <%call Admin_ShowSearchForm(FileName,2)%>
    <% call CloseConn() %>