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

📄 down_cx_add_save.asp

📁 很好的企业网站管理系统!可以适应各种不同的小型企业!
💻 ASP
字号:
<%Admin="DownAdd"%>
<!--#include file="check.asp"-->
<!--#include file="mdb_path_down.asp"-->
<!--#include file="Downconfig.asp"-->
<!--#include file="char.inc"-->
<%
'#################################################################
'#  晓宇听幽网站内容管理系统(xoYu CMS)
'# 
'#  版权所有: 晓宇听幽工作室
'#
'#  制作人  :  xoyu(晓宇)            
'#           
'#  主页地址: http://www.xoYu.com	    晓宇听幽工作室
'#  论坛地址: http://www.xoYu.com/bbs/	晓宇听幽讨论区
'#
'#【版权声明】
'#################################################################
'# 本软体为共享软体(shareware)提供个人网站免费使用,请勿非法修改,
'# 转载,散播,或用于其他图利行为,并请勿删除版权声明。
'# 如果您的网站正式起用了这个脚本,请您通知我们,以便我们能够知晓!
'# 如果可能,请在您的网站做上我们的链接,希望能给予合作。谢谢!
'#################################################################
'# 程序名称:晓宇听幽网站内容管理系统·软件下载管理系统
'# 英文名称:xoYu News 2004 Professional For xoYu CMS
'# 程序创建时间:2003-7-10
'# 程序完成时间:2003-9-11
'# 最后修改时间:2003-11-15
'#################################################################
'# 请您尊重我们的劳动和版权,不要删除以上的版权声明部分,谢谢合作
'# 如有任何问题请到我们的论坛(http://www.xoyu.com/bbs/)告诉我们。 
'#################################################################
savetime=Now()+webtime/24
set rs=server.CreateObject("ADODB.RecordSet")             
if request.form("tid")="" then errmsg=errmsg & ""程序类别"必选! \n"                
if request.form("cxn")="" then errmsg=errmsg & ""程序名称"不能为空! \n"
if request("cxn")<>"" and request("cxv")<>"" and request("tid")<>"" then
rs.open "select * from down where cxn='"&request("cxn")&"' and cxv='"&request("cxv")&"' and tid="&request("tid"),conn,1,1
if not rs.eof then errmsg=errmsg & "本类别内已经有相同的程序了! \n"
rs.close
end if

if errmsg<>"" then
   set rs=nothing
   conn.close
   set conn=nothing
   response.write("<script>alert('" & errmsg & "');history.go(-1)</script>") 
else
		sql="select * from down where (id is null)"
		rs.open sql,conn,1,3
		rs.addnew
		rs("tid")=request("tid")
		rs("cxn")=request("cxn")
		rs("cxv")=request("cxv")
		rs("yy")=request("yy")
		rs("cd")=request("cd")
		rs("sq")=request("sq")
		rs("size")=request("size")
		rs("hot")=request("hot")
		rs("hy")=request("hy")
		rs("user")=xoYuStudioAdminName
		rs("gs")=request("gs")
		if request("show")=1 then
		  rs("show")=1
		end if
		  if request("system2")<>"" then
		    rs("system")=request("system2")
		  else
		    rs("system")=request("system")
		  end if
		  if request("zd_date_yes")="yes" then
		    rs("date")=request("zd_date")
		  else
		    rs("date")=savetime
		  end if
		rs("reg")=request("reg")
		rs("ln")=request("ln")
		rs("lu")=request("lu")
		    if request("pic")<>"softimg/" then
		      rs("pic")=request("pic")
		    end if
			if request("html")="yes" then
			  rs("body")=request("body")
			else
			  rs("body")=htmlencode(request("body"))
			end if
			if request("pwdyes")="yes" then
			  rs("pwd")=request("pwd")
			end if
		rs.update
		if request("makehtml")="yes" then
		temp = rs.bookmark
		rs.bookmark = temp
		newid=rs.Fields("ID")
		end if
		rs.close
		sql="select * from down order by id desc"
		rs.open sql,conn,1,1
		if not rs.eof then
		newid=rs("id")
		end if
		rs.close
		if request("no")<>"" and newid<>"" then
		 for i=1 to request("no")
		 if request("file"&i&"")<>"" then
		   sql="select * from downfile where (id is null)"
		   rs.open sql,conn,1,3
		   rs.addnew
		   rs("downid")=newid
		   rs("downno")=i
		   rs("filename")=request("filename"&i&"")
		   rs("file")=request("file"&i&"")
		   rs.update
		   rs.close
		  end if
		 next
		end if
		
set rs=nothing
conn.close
set conn=nothing
if request("makehtml")="yes" then
response.write("<script>window.open(""down_makesoft.asp?type=page&id="&newid&""","""",""width=200,height=100,resizable=yes,scrollbars=yes,status=yes,toolbar=no,menubar=no,location=no"")</script>")
end if
response.write("<script>alert('成功:添加完成,请继续添加!');location.href='down_cx_add.asp?id="&request("id")&"'</script>") 
response.end

end if
%>

⌨️ 快捷键说明

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