📄 admin_soft.asp
字号:
End If
Response.Write "</td>"
Case "HTML"
Response.Write " <td width='180' align='left'> "
Response.Write "<a href='Admin_CreateSoft.asp?ChannelID=" & ChannelID & "&Action=CreateSoft&SoftID=" & rsSoftList("SoftID") & "' title='生成本" & ChannelShortName & "的HTML页面'>生成文件</a> "
If fso.FileExists(Server.MapPath(SoftPath)) Then
Response.Write "<a href='" & SoftPath & "' target='_blank' title='查看本" & ChannelShortName & "的HTML页面'>查看文件</a> "
Response.Write "<a href='Admin_Soft.asp?ChannelID=" & ChannelID & "&Action=DelFile&SoftID=" & rsSoftList("SoftID") & "' title='删除本" & ChannelShortName & "的HTML页面' onclick=""return confirm('确定要删除此" & ChannelShortName & "的HTML页面吗?');"">删除文件</a> "
End If
Response.Write "</td>"
Case "Recyclebin"
Response.Write "<td width='100' align='center'>"
Response.Write "<a href='Admin_Soft.asp?ChannelID=" & ChannelID & "&Action=ConfirmDel&SoftID=" & rsSoftList("SoftID") & "' onclick=""return confirm('确定要彻底删除此" & ChannelShortName & "吗?彻底删除后将无法还原!');"">彻底删除</a> "
Response.Write "<a href='Admin_Soft.asp?ChannelID=" & ChannelID & "&Action=Restore&SoftID=" & rsSoftList("SoftID") & "'>还原</a>"
Response.Write "</td>"
Case "Special"
Response.Write "<td width='100' align='center'>"
If rsSoftList("SpecialID") > 0 Then
Response.Write "<a href='Admin_Soft.asp?ChannelID=" & ChannelID & "&Action=DelFromSpecial&InfoID=" & rsSoftList("InfoID") & "' onclick=""return confirm('确定要将此" & ChannelShortName & "从其所属专题中删除吗?');"">从所属专题中删除</a> "
End If
Response.Write "</td>"
Case Else
Response.Write " <td width='150' align='left'> "
If AdminPurview = 1 Or AdminPurview_Channel <= 2 Or CheckPurview_Class(arrClass_Input, ParentPath & "," & ClassID) Or UserName = rsSoftList("Inputer") Then
Response.Write "<a href='Admin_Soft.asp?ChannelID=" & ChannelID & "&Action=Modify&SoftID=" & rsSoftList("SoftID") & "'>修改</a> "
Else
Response.Write "<font color='gray'>修改 </font>"
End If
If AdminPurview = 1 Or AdminPurview_Channel <= 2 Or PurviewChecked = True Or UserName = rsSoftList("Inputer") Then
Response.Write "<a href='Admin_Soft.asp?ChannelID=" & ChannelID & "&Action=Del&SoftID=" & rsSoftList("SoftID") & "' onclick=""return confirm('确定要删除此" & ChannelShortName & "吗?删除后你还可以从回收站中还原。');"">删除</a> "
Else
Response.Write "<font color='gray'>删除 </font>"
End If
If AdminPurview = 1 Or AdminPurview_Channel <= 2 Or PurviewChecked = True Then
If rsSoftList("OnTop") = False Then
Response.Write "<a href='Admin_Soft.asp?ChannelID=" & ChannelID & "&Action=SetOnTop&SoftID=" & rsSoftList("SoftID") & "'>固顶</a> "
Else
Response.Write "<a href='Admin_Soft.asp?ChannelID=" & ChannelID & "&Action=CancelOnTop&SoftID=" & rsSoftList("SoftID") & "'>解固</a> "
End If
If rsSoftList("Elite") = False Then
Response.Write "<a href='Admin_Soft.asp?ChannelID=" & ChannelID & "&Action=SetElite&SoftID=" & rsSoftList("SoftID") & "'>设为推荐</a>"
Else
Response.Write "<a href='Admin_Soft.asp?ChannelID=" & ChannelID & "&Action=CancelElite&SoftID=" & rsSoftList("SoftID") & "'>取消推荐</a>"
End If
End If
Response.Write "</td>"
End Select
Response.Write "</tr>"
SoftNum = SoftNum + 1
If SoftNum >= MaxPerPage Then Exit Do
rsSoftList.MoveNext
Loop
End If
rsSoftList.Close
Set rsSoftList = Nothing
Response.Write "</table>"
Response.Write "<table width='100%' border='0' cellpadding='0' cellspacing='0'>"
Response.Write " <tr>"
Response.Write " <td width='200' height='30'><input name='chkAll' type='checkbox' id='chkAll' onclick='CheckAll(this.form)' value='checkbox'>选中本页显示的所有" & ChannelShortName & "</td><td>"
Select Case ManageType
Case "Check"
If AdminPurview = 1 Or AdminPurview_Channel <= 2 Or PurviewChecked = True Then
Response.Write "<input name='submit1' type='submit' value=' 审核通过 ' onClick=""document.myform.Action.value='SetPassed'""> "
Response.Write "<input name='submit2' type='submit' value=' 取消审核 ' onClick=""document.myform.Action.value='CancelPassed'""> "
If AdminPurview = 1 Or AdminPurview_Channel <= 2 Then
Response.Write "<input name='submit3' type='submit' value=' 批量删除 ' onClick=""document.myform.Action.value='Del'"">"
End If
End If
Case "HTML"
If AdminPurview = 1 Or AdminPurview_Channel <= 2 Or PurviewChecked = True Then
Response.Write "<input name='CreateType' type='hidden' id='CreateType' value='1'>"
Response.Write "<input name='ClassID' type='hidden' id='ClassID' value='" & ClassID & "'>"
If ClassID > 0 Then
If UseCreateHTML = 1 Or UseCreateHTML = 3 And ClassPurview < 2 Then
Response.Write "<input name='submit1' type='submit' id='submit1' onClick=""document.myform.Action.value='CreateClass';document.myform.CreateType.value='1';document.myform.action='Admin_CreateSoft.asp';"" value='生成当前栏目列表页'> "
End If
If ClassPurview = 0 Then
Response.Write "<input name='submit1' type='submit' id='submit1' onClick=""document.myform.Action.value='CreateSoft';document.myform.CreateType.value='2';document.myform.action='Admin_CreateSoft.asp';"" value='生成当前栏目的" & ChannelShortName & "'> "
End If
Else
Response.Write "<input name='submit1' type='submit' id='submit1' onClick=""document.myform.Action.value='CreateIndex';document.myform.CreateType.value='1';document.myform.action='Admin_CreateSoft.asp';"" value='生成首页'> "
If UseCreateHTML = 1 Or UseCreateHTML = 3 Then
Response.Write "<input name='submit1' type='submit' id='submit1' onClick=""document.myform.Action.value='CreateClass';document.myform.CreateType.value='2';document.myform.action='Admin_CreateSoft.asp';"" value='生成所有栏目列表页'> "
End If
Response.Write "<input name='submit1' type='submit' id='submit1' onClick=""document.myform.Action.value='CreateSoft';document.myform.CreateType.value='3';document.myform.action='Admin_CreateSoft.asp';"" value='生成所有" & ChannelShortName & "'> "
End If
Response.Write "<input name='submit2' type='submit' id='submit2' onClick=""document.myform.Action.value='CreateSoft';document.myform.action='Admin_CreateSoft.asp';"" value='生成选定的" & ChannelShortName & "'> "
Response.Write "<input name='Submit3' type='submit' id='submit3' onClick=""document.myform.Action.value='DelFile';document.myform.action='Admin_Soft.asp'"" value='删除选定" & ChannelShortName & "的HTML文件'>"
End If
Case "Recyclebin"
If AdminPurview = 1 Or AdminPurview_Channel <= 2 Then
Response.Write "<input name='submit1' type='submit' id='submit1' onClick=""document.myform.Action.value='ConfirmDel'"" value=' 彻底删除 '> "
Response.Write "<input name='Submit2' type='submit' id='Submit2' onClick=""document.myform.Action.value='ClearRecyclebin'"" value='清空回收站'> "
Response.Write "<input name='Submit3' type='submit' id='Submit3' onClick=""document.myform.Action.value='Restore'"" value='还原选定的" & ChannelShortName & "'> "
Response.Write "<input name='Submit4' type='submit' id='Submit4' onClick=""document.myform.Action.value='RestoreAll'"" value='还原所有" & ChannelShortName & "'>"
End If
Case "Special"
If AdminPurview = 1 Or AdminPurview_Channel <= 2 Then
Response.Write "<input name='submit1' type='submit' id='submit1' onClick=""document.myform.Action.value='DelFromSpecial'"" value='从所属专题中移除'> "
Response.Write "<input name='Submit2' type='submit' id='Submit2' onClick=""document.myform.Action.value='AddToSpecial'"" value='添加到其他专题中'> "
Response.Write "<input name='Submit2' type='submit' id='Submit2' onClick=""document.myform.Action.value='MoveToSpecial'"" value='移动到另一专题中'>"
End If
Case Else
If AdminPurview = 1 Or AdminPurview_Channel <= 2 Or PurviewChecked = True Then
Response.Write "<input name='submit1' type='submit' value=' 批量删除 ' onClick=""document.myform.Action.value='Del'""> "
If AdminPurview = 1 Or AdminPurview_Channel <= 2 Then
Response.Write "<input type='submit' name='Submit4' value=' 批量移动 ' onClick=""document.myform.Action.value='MoveToClass'""> "
Response.Write "<input type='submit' name='Submit3' value=' 批量设置 ' onClick=""document.myform.Action.value='Batch'""> "
Response.Write "<input name='submit1' type='submit' value=' 审核通过 ' onClick=""document.myform.Action.value='SetPassed'""> "
Response.Write "<input name='submit2' type='submit' value=' 取消审核 ' onClick=""document.myform.Action.value='CancelPassed'""> "
End If
End If
End Select
Response.Write "<input name='Action' type='hidden' id='Action' value=''>"
Response.Write "<input name='ChannelID' type='hidden' id='ChannelID' value='" & ChannelID & "'>"
Response.Write " </td></tr>"
Response.Write "</table>"
Response.Write "</td>"
Response.Write "</form></tr></table>"
If totalPut > 0 Then
Response.Write ShowPage(strFileName, totalPut, MaxPerPage, CurrentPage, True, True, ChannelItemUnit & ChannelShortName & "", True)
End If
Response.Write "<form method='Get' name='SearchForm' action='" & FileName & "'>"
Response.Write "<table width='100%' border='0' cellpadding='0' cellspacing='0' class='border'>"
Response.Write " <tr class='tdbg'>"
Response.Write " <td width='80' align='right'><strong>" & ChannelShortName & "搜索:</strong></td>"
Response.Write " <td>"
Response.Write "<select name='Field' size='1'>"
Response.Write "<option value='SoftName' selected>" & ChannelShortName & "名称</option>"
Response.Write "<option value='SoftIntro'>" & ChannelShortName & "简介</option>"
Response.Write "<option value='Author'>" & ChannelShortName & "作者</option>"
If AdminPurview = 1 Or AdminPurview_Channel <= 2 Then
Response.Write "<option value='Inputer'>录入者</option>"
End If
Response.Write "<option value='ID'>" & ChannelShortName & "ID</option>"
Response.Write "</select>"
Response.Write "<select name='ClassID'><option value=''>所有栏目</option>" & GetClass_Option(1, 0) & "</select>"
Response.Write "<input type='text' name='keyword' size='20' value='关键字' maxlength='50' onFocus='this.select();'>"
Response.Write "<input type='submit' name='Submit' value='搜索'>"
Response.Write "<input name='ManageType' type='hidden' id='ManageType' value='" & ManageType & "'>"
Response.Write "<input name='ChannelID' type='hidden' id='ChannelID' value='" & ChannelID & "'>"
Response.Write "</td></tr></table></form>"
Response.Write "<br><b>说明:</b><br> " & ChannelShortName & "属性中的各项含义:<font color=blue>顶</font>----固顶" & ChannelShortName & ",<font color=red>热</font>----热门" & ChannelShortName & ",<font color=green>荐</font>----推荐" & ChannelShortName & ",<font color=blue>图</font>----有缩略图,<font color=red>错</font>----" & ChannelShortName & "地址中有错误链接,<font color=black>调</font>----有调查<br><br>"
End Sub
Sub ShowJS_Soft()
Response.Write "<script language = 'JavaScript'>" & vbCrLf
Response.Write "function SelectSoft(){" & vbCrLf
Response.Write " var arr=showModalDialog('Admin_SelectFile.asp?ChannelID=" & ChannelID & "&dialogtype=Softpic', '', 'dialogWidth:820px; dialogHeight:600px; help: no; scroll: yes; status: no');" & vbCrLf
Response.Write " if(arr!=null){" & vbCrLf
Response.Write " var ss=arr.split('|');" & vbCrLf
Response.Write " document.myform.SoftPicUrl.value=ss[0];" & vbCrLf
Response.Write " }" & vbCrLf
Response.Write "}" & vbCrLf
Response.Write "function SelectFile(){" & vbCrLf
Response.Write " var arr=showModalDialog('Admin_SelectFile.asp?ChannelID=" & ChannelID & "&dialogtype=Soft', '', 'dialogWidth:820px; dialogHeight:600px; help: no; scroll: yes; status: no');" & vbCrLf
Response.Write " if(arr!=null){" & vbCrLf
Response.Write " var ss=arr.split('|');" & vbCrLf
Response.Write " strSoftUrl=ss[0];" & vbCrLf
Response.Write " var url='" & XmlText("Soft", "DownloadUrlTip", "下载地址") & "'+(document.myform.DownloadUrl.length+1)+'|'+strSoftUrl;" & vbCrLf
Response.Write " document.myform.DownloadUrl.options[document.myform.DownloadUrl.length]=new Option(url,url);" & vbCrLf
Response.Write " document.myform.SoftSize.value=ss[1];" & vbCrLf
Response.Write " }" & vbCrLf
Response.Write "}" & vbCrLf
Response.Write "function AddUrl(){" & vbCrLf
Response.Write " var thisurl='" & XmlText("Soft", "DownloadUrlTip", "下载地址") & "'+(document.myform.DownloadUrl.length+1)+'|http://'; " & vbCrLf
Response.Write " var url=prompt('请输入下载地址名称和链接,中间用“|”隔开:',thisurl);" & vbCrLf
Response.Write " if(url!=null&&url!=''){document.myform.DownloadUrl.options[document.myform.DownloadUrl.length]=new Option(url,url);}" & vbCrLf
Response.Write "}" & vbCrLf
Response.Write "function ModifyUrl(){" & vbCrLf
Response.Write " if(document.myform.DownloadUrl.length==0) return false;" & vbCrLf
Response.Write " var thisurl=document.myform.DownloadUrl.value; " & vbCrLf
Response.Write " if (thisurl=='') {alert('请先选择一个下载地址,再点修改按钮!');return false;}" & vbCrLf
Response.Write " var url=prompt('请输入下载地址名称和链接,中间用“|”隔开:',thisurl);" & vbCrLf
Response.Write " if(url!=thisurl&&url!=null&&url!=''){document.myform.DownloadUrl.options[document.myform.DownloadUrl.selectedIndex]=new Option(url,url);}" & vbCrLf
Response.Write "}" & vbCrLf
Response.Write "function DelUrl(){" & vbCrLf
Response.Write " if(document.myform.DownloadUrl.length==0) return false;" & vbCrLf
Response.Write " var thisurl=document.myform.DownloadUrl.value; " & vbCrLf
Response.Write " if (thisurl=='') {alert('请先选择一个下载地址,再点删除按钮!');return false;}" & vbCrLf
Response.Write " document.myform.DownloadUrl.options[document.myform.DownloadUrl.selectedIndex]=null;" & vbCrLf
Response.Write "}" & vbCrLf
Response.Write "function CheckForm()" & vbCrLf
Response.Write "{" & vbCrLf
Response.Write " var CurrentMode=editor.CurrentMode;" & vbCrLf
Response.Write " if (CurrentMode==0){" & vbCrLf
Response.Write " document.myform.SoftIntro.value=editor.HtmlEdit.document.body.innerHTML; " & vbCrLf
Response.Write " }" & vbCrLf
Response.Write " else if(CurrentMode==1){" & vbCrLf
Response.Write " document.myform.SoftIntro.value=editor.HtmlEdit.document.body.innerText;" & vbCrLf
Response.Write " }" & vbCrLf
Response.Write " else{" & vbCrLf
Response.Write " alert('预览状态不能保存!请先回到编辑状态后再保存');" & vbCrLf
Response.Write " return false;" & vbCrLf
Response.Write " }" & vbCrLf
Response.Write " if (document.myform.SoftName.value==''){" & vbCrLf
Response.Write " ShowTabs(0);" & vbCrLf
Response.Write " alert('" & ChannelShortName & "名称不能为空!');" & vbCrLf
Response.Write " document.myform.SoftName.focus();" & vbCrLf
Response.Write " return false;" & vbCrLf
Response.Write " }" & vbCrLf
Response.Write " if (document.myform.Keyword.value==''){" & vbCrLf
Response.Write " ShowTabs(0);" & vbCrLf
Response.Write " alert('关键字不能为空!');" & vbCrLf
Response.Write " document.myform.Keyword.focus();" & vbCrLf
Response.Write " return false;" & vbCrLf
Response.Write " }" & vbCrLf
Response.Write " if (document.myform.SoftIntro.value==''){" & vbCrLf
Response.Write " ShowTabs(0);" & vbCrLf
Response.Write " alert('" & ChannelShortName & "简介不能为空!');" & vbCrLf
Response.Write " editor.HtmlEdit.focus();" & vbCrLf
Response.Write " return false;" & vbCrLf
Response.Write " }" & vbCrLf
Response.Write " if(document.myform.DownloadUrl.length==0){" & vbCrLf
Response.Write " ShowTabs(0);" & vbCrLf
Response.Write " alert('" & ChannelShortName & "下载地址不能为空!');" & vbCrLf
Response.Write " document.myform.DownloadUrl.focus();" & vbCrLf
Response.Write " return false;" & vbCrLf
Response.Write " }" & vbCrLf
Response.Write " if(document.myform.SoftAddType.value=='3'&&document.myform.DownloadUrl.value==''){" & vbCrLf
Response.Write " ShowTabs(0);" & vbCrLf
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -