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

📄 admin_edit_save.asp

📁 1.手机浏览2.手机发布3.手机搜索4.栏目二级分类5.中文/英语操作支持
💻 ASP
字号:
<%
'┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
'┃ 奇网天下·7WAP企业(移动)信息系统                                 ┃
'┃                                                                    ┃
'┃ Copyright All Rights Reserved.                                     ┃
'┃ 官方: www.7wap.cn                                                 ┃
'┃ 作者: 孙岩清                                                      ┃
'┃ 授权: BEAT版 未经授权不得商业使用。                               ┃
'┣━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┫
'┃ Version   1.0                                                      ┃
'┃ Description   开发建议/使用问题/扔砖头:BBS.7WAP.CN                ┃
'┃ Create 2005.11.18    beat3                                         ┃
'┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛
%>
<!--#include file=conn.asp-->
<!--#include file=admin_chkpass.asp-->
<!--#include file=inc/function.asp-->
<%
dim id
id=request("n_id")
If not isnumeric(id) then
response.write"<script>alert('"&ewap_(32)&"');window.document.location.href='admin_index.asp'</script>"
response.end
end if
If request("n_title")="" OR request("n_detail")="" then
response.write"<script>alert('"&ewap_(33)&"');window.document.location.href='admin_index.asp'</script>"
response.end
end if
If request("class")="" then
response.write"<script>alert('"&ewap_(34)&"');window.document.location.href='admin_index.asp'</script>"
response.end
end if
dim rs,sql
set rs=server.createobject("adodb.recordset")
sql="select ntitle,ndetail,ntime,nclass from news where nid="&id
rs.open sql,cn,3,3
rs("ntitle")=HTMLEncode(request("n_title"))
rs("ndetail")=HTMLEncode(request("n_detail"))
rs("ntime")=now()
rs("nclass")=request("class")
rs.update

%>
<%
If err then

response.write"<script>alert('"&ewap_(34)&"');window.document.location.href='admin_index.asp'</script>"

else
response.write"<script>alert('"&ewap_(30)&"');window.document.location.href='admin_index.asp'</script>"
end if
rs.close
set rs=nothing
cn.close


%>

⌨️ 快捷键说明

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