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

📄 sshopxpnst.asp

📁 IMPORTANT YOU SHOUD LOAD IT DOWN FOR USING
💻 ASP
字号:
<!--#include file="xp.asp"-->
<%if session("shopxpadmin")="" then
response.Write "<script language='javascript'>alert('网络超时或您还没有登陆!');window.location.href='shopxplogin.asp';</script>"
response.End
else
if session("flag")>1 then
response.Write "<p align=center><font color=red>您没有此项目管理权限!</font></p>"
response.End
end if
end if
%>
<%dim action,shopxpnst_id
shopxpnst_id=request.QueryString("id")
action=request.querystring("action")
select case action
'//添加新数据
case "add" 
set rs=server.CreateObject("adodb.recordset")
rs.open "select * from shopxp_nst",conn,1,3
rs.AddNew
rs("shopxpnst_name")=trim(request("shopxpnst_name"))

rs.Update
rs.Close
set rs=nothing
response.Redirect "shopxpnst.asp"
'//修改数据
case "edit"
set rs=server.CreateObject("adodb.recordset")
rs.open "select * from shopxp_nst where shopxpnst_id="&shopxpnst_id,conn,1,3
rs("shopxpnst_name")=trim(request("shopxpnst_name"))
rs.Update
rs.Close
set rs=nothing
response.Redirect "shopxpnst.asp"
'//删除数据
case "del"
conn.execute ("delete from shopxp_nst where shopxpnst_id="&shopxpnst_id)
conn.execute ("delete from shopxp_news where shopxpnst_id="&shopxpnst_id)
response.Redirect "shopxpnst.asp"
end select
%>

⌨️ 快捷键说明

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