⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ad_softmodify.asp

📁 该软件是帮助大学生更好的生活
💻 ASP
📖 第 1 页 / 共 2 页
字号:
<%@language=vbscript codepage=936 %>
<%
option explicit
response.buffer=true	
Const PurviewLevel=2
Const CheckChannelID=3
Const PurviewLevel_Soft=3
%>
<!--#include file="inc/conn.asp"-->
<!--#include file="inc/config.asp"-->
<!--#include file="ad_ChkPurview.asp"-->
<!--#include file="inc/func.asp"-->
<!--#include file="inc/ad_code_soft.asp"-->
<%
dim SoftID,rsSoft,sql,FoundErr,ErrMsg,PurviewChecked
dim ClassID,tClass,ClassName,RootID,ParentID,Depth,ParentPath,ClassMaster
dim SkinID,LayoutID,SkinCount,LayoutCount,BrowsePurview,AddPurview
PurviewChecked=False
FoundErr=False
SoftID=trim(request("SoftID"))
if SoftID="" then
	FoundErr=True
	ErrMsg=ErrMsg & "<br><li>请指定要修改的软件ID</li>"
	call WriteErrMsg()
	call CloseConn()
	response.end
else
	SoftID=CLng(SoftID)
end if
sql="select * from Soft where SoftID=" & SoftID & ""
Set rsSoft= Server.CreateObject("ADODB.Recordset")
rsSoft.open sql,conn,1,1
if rsSoft.bof and rsSoft.eof then
	FoundErr=True
	ErrMsg=ErrMsg & "<br><li>找不到软件</li>"
	call WriteErrMsg()
else
	ClassID=rsSoft("ClassID")
	set tClass=conn.execute("select ClassName,RootID,ParentID,Depth,ParentPath,ClassMaster From SoftClass where ClassID=" & ClassID)
	if tClass.bof and tClass.eof then
		founderr=True
		ErrMsg=ErrMsg & "<br><li>找不到指定的栏目</li>"
	else
		ClassName=tClass(0)
		RootID=tClass(1)
		ParentID=tClass(2)
		Depth=tClass(3)
		ParentPath=tClass(4)
		ClassMaster=tClass(5)
	end if
	if rsSoft("Editor")=AdminName and rsSoft("Passed")=False then
		PurviewChecked=True
	else
		if AdminPurview=1 or AdminPurview_Soft<=2 then
			PurviewChecked=True
		else
			PurviewChecked=CheckClassMaster(ClassMaster,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
		if PurviewChecked=False then
			FoundErr=True
			ErrMsg=ErrMsg & "<br><li>对不起,您的权限不够,不能修改此软件!</li>"
		end if
	end if
end if
if FoundErr=True then
	call WriteErrMsg()
else
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 3.0">
<title>修改软件</title>
<link rel="stylesheet" type="text/css" href="ad_Style.css">
<script language = "JavaScript">
function CheckForm()
{
  if (document.myform.ClassID.value=="")
  {
    alert("软件所属栏目不能指定为含有子栏目的栏目!");
	document.myform.ClassID.focus();
	return false;
  }
  if (document.myform.ClassID.value==0)
  {
    alert("软件所属栏目不能指定为外部栏目!");
	document.myform.ClassID.focus();
	return false;
  }

  if (document.myform.SoftName.value=="")
  {
    alert("软件名称不能为空!");
	document.myform.SoftName.focus();
	return false;
  }
  if (document.myform.SoftVersion.value=="")
  {
    alert("软件版本不能为空!");
	document.myform.SoftVersion.focus();
	return false;
  }
  if (document.myform.Author.value=="")
  {
    alert("软件作者/开发商不能为空!");
	document.myform.SoftVersion.focus();
	return false;
  }
  if (document.myform.OperatingSystem.value=="")
  {
    alert("系统平台不能为空!");
	document.myform.SoftVersion.focus();
	return false;
  }
  if (document.myform.Keyword.value=="")
  {
    alert("关键字不能为空!");
	document.myform.Keyword.focus();
	return false;
  }
  if (document.myform.SoftIntro.value=="")
  {
    alert("软件简介不能为空!");
	document.myform.SoftIntro.focus();
	return false;
  }
  if (document.myform.DownloadUrl1.value=="")
  {
    alert("软件下载地址1不能为空!");
	document.myform.DownloadUrl1.focus();
	return false;
  }
}
function ToSystem(addTitle)
{ 
	document.myform.OperatingSystem.value=document.myform.OperatingSystem.value+addTitle;
	document.myform.OperatingSystem.focus(); 
	return; 
}
</script>
</head>
<body leftmargin="2" topmargin="0" marginwidth="0" marginheight="0">
<form method="POST" name="myform" onSubmit="return CheckForm();" action="ad_SoftSave.asp" target="_self">
  <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="border">
    <tr class="title">
      <td height="22" align="center"><b>修 改 软 件</b></td>
    </tr>
    <tr align="center">
      <td>
	<table width="100%" border="0" cellpadding="2" cellspacing="1">
          <tr class="tdbg"> 
            <td width="100" align="right"><strong>所属栏目:</strong></td>
            <td colspan="3"><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td><%
			if AdminPurview=1 or AdminPurview_Soft<=2 then
			 	response.write "<select name='ClassID'>"	
				call Admin_ShowClass_Option(3,rsSoft("ClassID"))
				response.write "</select></td><td>"
				response.write "<font color='#FF0000'><strong>注意:</strong></font><font color='#0000FF'>1、不能指定为含有子栏目的栏目,或者外部栏目"
			 else
			 	call Admin_ShowPath2(ParentPath,ClassName,Depth)
				response.write "<input type='hidden' name='ClassID' value='" & rsSoft("ClassID") & "'>"
			 end if
			 %>
                </td>
                <td>&nbsp;</td>
              </tr>
            </table></td>
          </tr>
          <tr class="tdbg"> 
            <td width="100" align="right"><strong>软件名称:</strong></td>
            <td colspan="2"><input name="SoftName" type="text" id="SoftName" value="<%=rsSoft("SoftName")%>" size="50" maxlength="255"> 
              <font color="#FF0000">*</font></td>
            <td><strong>软件版本:</strong> <input name="SoftVersion" type="text" id="SoftVersion3" value="<%=rsSoft("SoftVersion")%>" size="30" maxlength="100"> 
              <font color="#FF0000">*</font></td>
          </tr>
          <tr class="tdbg"> 
            <td width="100" align="right"><strong>软件类别:</strong></td>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -