📄 mb_newsave.asp
字号:
<%Admin="InfoMb"%>
<!--#include file="check.asp"-->
<!--#include file="mdb_path_info.asp"-->
<!--#include file="config.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/)告诉我们。
'#################################################################
set rs=server.CreateObject("ADODB.RecordSet")
if request.form("MbName")="" then errmsg=errmsg & ""模板名称"必填! \n"
if request.form("MbContent")="" then errmsg=errmsg & ""模板内容"不能为空! \n"
if request("MbName")<>"" then
rs.open "select * from mb where MbName='"&request("MbName")&"'",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
mbtype1=request("Mbtype")
sql="select * from mb where (id is null)"
rs.open sql,conn,1,3
rs.addnew
rs("MbName")=request("MbName")
rs("MbContent")=request("MbContent")
rs("Mbtype")=request("Mbtype")
rs.update
rs.close
set rs=nothing
conn.close
set conn=nothing
end if
if mbtype1="1" then
response.write("<script>alert('成功:添加模板完成!');location.href='mb_List.asp?mbtype=1'</script>")
response.end
elseif mbtype1="2" then
response.write("<script>alert('成功:添加模板完成!');location.href='mb_List.asp?mbtype=2'</script>")
response.end
elseif mbtype1="3" then
response.write("<script>alert('成功:添加模板完成!');location.href='mb_List.asp?mbtype=3'</script>")
response.end
end if
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -