📄 admin_soft.asp
字号:
Case "Batch"
Call Batch
Case "DoBatch"
Call DoBatch
Case "MoveToClass"
Call ShowForm_MoveToClass
Case "MoveToSpecial"
Call ShowForm_MoveToSpecial
Case "AddToSpecial"
Call ShowForm_AddToSpecial
Case "DoMoveToClass"
Call DoMoveToClass
Case "DoMoveToSpecial"
Call DoMoveToSpecial
Case "DoAddToSpecial"
Call DoAddToSpecial
Case "DelFromSpecial"
Call DelFromSpecial
Case "ShowReplace"
Call ShowReplace
Case "DoReplace"
Call DoReplace
Case "Other"
Call Other
Case "SaveOther"
Call SaveOther
Case "Manage"
Call main
Case "DownError"
Call DownError
Case "ModifyDownError"
Call ModifyDownError
Case "SaveModifyDownError"
Call SaveModifyDownError
Case "DelDownError"
Call DelDownError
Case "DelAllDownError"
Call DelAllDownError
End Select
If FoundErr = True Then
Call WriteErrMsg(ErrMsg, ComeUrl)
End If
Response.Write "</body></html>"
Call CloseConn
Sub main()
If ManageType = "HTML" And UseCreateHTML = 0 Then
FoundErr = True
ErrMsg = ErrMsg & "<li>本频道设置了不生成HTML,所以不用进行生成管理!</li>"
Exit Sub
End If
Dim rsSoftList, sql, Querysql
PurviewChecked = False
If ClassID = 0 Then
If strField = "" And AdminPurview = 2 And AdminPurview_Channel = 3 And ManageType <> "My" Then
If ManageType = "Check" Then
If arrClass_Check = "" Then
FoundErr = True
ErrMsg = ErrMsg & "<li>对不起,您没有在此频道审核" & ChannelShortName & "的权限!</li>"
Exit Sub
End If
Set tClass = Conn.Execute("select top 1 ClassID,ClassName,RootID,ParentID,Depth,ParentPath,Child,arrChildID,ClassPurview,ParentDir,ClassDir from PE_Class where ChannelID=" & ChannelID & " and ClassID In (" & DelRightComma(arrClass_Check) & ")")
Else
If arrClass_Manage = "" Then
FoundErr = True
ErrMsg = ErrMsg & "<li>对不起,您没有在此频道管理" & ChannelShortName & "的权限!</li>"
Exit Sub
End If
Set tClass = Conn.Execute("select top 1 ClassID,ClassName,RootID,ParentID,Depth,ParentPath,Child,arrChildID,ClassPurview,ParentDir,ClassDir from PE_Class where ChannelID=" & ChannelID & " and ClassID In (" & DelRightComma(arrClass_Manage) & ")")
End If
If tClass.BOF And tClass.EOF Then
FoundErr = True
ErrMsg = ErrMsg & "<li>对不起,您没有在此频道的管理权限!</li>"
Else
ClassID = tClass(0)
ClassName = tClass(1)
RootID = tClass(2)
ParentID = tClass(3)
Depth = tClass(4)
ParentPath = tClass(5)
Child = tClass(6)
arrChildID = tClass(7)
PurviewChecked = True
ClassPurview = tClass(8)
ParentDir = tClass(9)
ClassDir = tClass(10)
End If
End If
ElseIf ClassID = -1 Then
If AdminPurview = 1 Or (AdminPurview = 2 And AdminPurview_Channel < 3) Then PurviewChecked = True
ElseIf ClassID > 0 Then
Set tClass = Conn.Execute("select ClassName,RootID,ParentID,Depth,ParentPath,Child,arrChildID,ClassPurview,ParentDir,ClassDir from PE_Class where ClassID=" & ClassID)
If tClass.BOF And tClass.EOF Then
FoundErr = True
ErrMsg = ErrMsg & "<li>找不到指定的栏目</li>"
Else
ClassName = tClass(0)
RootID = tClass(1)
ParentID = tClass(2)
Depth = tClass(3)
ParentPath = tClass(4)
Child = tClass(5)
arrChildID = tClass(6)
ClassPurview = tClass(7)
ParentDir = tClass(8)
ClassDir = tClass(9)
End If
Set tClass = Nothing
End If
If FoundErr = True Then Exit Sub
If PurviewChecked = False Then
If ManageType = "Check" Then
If ParentID > 0 Then
PurviewChecked = CheckPurview_Class(arrClass_Check, ParentPath & "," & ClassID)
Else
PurviewChecked = CheckPurview_Class(arrClass_Check, ClassID)
End If
Else
If ParentID > 0 Then
PurviewChecked = CheckPurview_Class(arrClass_Manage, ParentPath & "," & ClassID)
Else
PurviewChecked = CheckPurview_Class(arrClass_Manage, ClassID)
End If
End If
End If
Call ShowJS_Manage(ChannelShortName)
Response.Write "<br><table width='100%' border='0' align='center' cellpadding='2' cellspacing='1' class='border'>"
If ManageType = "Special" Then
Response.Write "<tr class='title'>"
Response.Write " <td height='22'>" & GetSpecialList() & "</td></tr>" & vbCrLf
Else
Response.Write " <tr class='title'>"
Response.Write " <td height='22'>" & GetRootClass() & "</td>"
Response.Write " </tr>" & GetChild_Root() & ""
End If
Response.Write "</table><br>"
Select Case ManageType
Case "Check"
Call ShowContentManagePath(ChannelShortName & "审核")
Case "HTML"
Call ShowContentManagePath(ChannelShortName & "生成")
Case "Recyclebin"
Call ShowContentManagePath(ChannelShortName & "回收站管理")
Case "Special"
Call ShowContentManagePath("专题" & ChannelShortName & "管理")
Case Else
Call ShowContentManagePath(ChannelShortName & "管理")
End Select
Response.Write "<table width='100%' border='0' cellpadding='0' cellspacing='0'><tr>"
Response.Write " <form name='myform' method='Post' action='Admin_Soft.asp' onsubmit='return ConfirmDel();'>"
Response.Write " <td><table class='border' border='0' cellspacing='1' width='100%' cellpadding='0'>"
Response.Write " <tr class='title' height='22'> "
Response.Write " <td height='22' width='30' align='center'><strong>选中</strong></td>"
Response.Write " <td width='25' align='center'><strong>ID</strong></td>"
If ManageType = "Special" Then
Response.Write " <td width='120' align='center'><strong>所属专题</strong></td>"
End If
Response.Write " <td align='center' ><strong>" & ChannelShortName & "名称</strong></td>"
Response.Write " <td width='60' align='center' ><strong>录入</strong></td>"
Response.Write " <td width='40' align='center' ><strong>下载数</strong></td>"
Response.Write " <td width='80' align='center' ><strong>" & ChannelShortName & "属性</strong></td>"
Response.Write " <td width='60' align='center' ><strong>审核状态</strong></td>"
If UseCreateHTML > 0 And ObjInstalled_FSO = True And ManageType <> "Special" Then
Response.Write " <td width='40' align='center' ><strong>已生成</strong></td>"
End If
If ManageType = "Check" Then
Response.Write " <td width='80' align='center' ><strong>审核操作</strong></td>"
ElseIf ManageType = "HTML" Then
Response.Write " <td width='180' align='center' ><strong>生成HTML操作</strong></td>"
ElseIf ManageType = "Recyclebin" Then
Response.Write " <td width='100' align='center' ><strong>回收站操作</strong></td>"
ElseIf ManageType = "Special" Then
Response.Write " <td width='100' align='center' ><strong>专题管理操作</strong></td>"
Else
Response.Write " <td width='180' align='center' ><strong>常规管理操作</strong></td>"
End If
Response.Write " </tr>"
If ManageType = "Special" Then
sql = "select top " & MaxPerPage & " I.InfoID,I.SpecialID,S.SoftID,SP.SpecialName,S.SoftName,S.SoftVersion,S.Keyword,S.Author,S.UpdateTime,S.Inputer,"
sql = sql & "S.SoftPicUrl,S.DownloadUrl,S.SoftSize,S.DecompressPassword,S.Hits,S.OnTop,S.Elite,S.Status,S.Stars,S.InfoPoint,S.VoteID"
sql = sql & " from PE_Soft S right join (PE_InfoS I left join PE_Special SP on I.SpecialID=SP.SpecialID) on S.SoftID=I.ItemID "
Else
If ClassID = -1 Or (ClassID > 0 And Child = 0) Then
sql = "select top " & MaxPerPage & " S.ClassID,S.SoftID,S.SoftName,S.SoftVersion,S.Keyword,S.Author,S.UpdateTime,S.Inputer,"
sql = sql & "S.SoftPicUrl,S.DownloadUrl,S.SoftSize,S.DecompressPassword,S.Hits,S.OnTop,S.Elite,S.Status,S.Stars,S.InfoPoint,S.VoteID"
sql = sql & " from PE_Soft S "
Else
sql = "select top " & MaxPerPage & " S.ClassID,S.SoftID,C.ClassName,C.ParentDir,C.ClassDir,C.ClassPurview,S.SoftName,S.SoftVersion,S.Keyword,S.Author,S.UpdateTime,S.Inputer,"
sql = sql & "S.SoftPicUrl,S.DownloadUrl,S.SoftSize,S.DecompressPassword,S.Hits,S.OnTop,S.Elite,S.Status,S.Stars,S.InfoPoint,S.VoteID"
sql = sql & " from PE_Soft S left join PE_Class C on S.ClassID=C.ClassID "
End If
End If
Querysql = " where S.ChannelID=" & ChannelID
If ManageType = "Special" Then
Querysql = Querysql & " and I.ModuleType=" & ModuleType
End If
If ManageType = "Recyclebin" Then
Querysql = Querysql & " and S.Deleted=" & PE_True & ""
Else
Querysql = Querysql & " and S.Deleted=" & PE_False & ""
End If
If ManageType = "HTML" Then
If Created = "False" Then
Querysql = Querysql & " and (S.CreateTime<=S.UpdateTime or S.CreateTime is Null)"
ElseIf Created = "True" Then
Querysql = Querysql & " and S.CreateTime>S.UpdateTime"
End If
Querysql = Querysql & " and S.Status=3" '当软件为已审核时,才在生成管理中出现
Else
Select Case Status
Case -2 '退稿
Querysql = Querysql & " and S.Status=-2"
Case -1 '草稿
Querysql = Querysql & " and S.Status=-1"
Case 0 '待审核
Querysql = Querysql & " and S.Status>=0 and S.Status<" & MyStatus
Case 1 '已审核
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -