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

📄 xgadmin.asp

📁 超级购物网站 支持支付宝 比原来的时代商城好多了 界面美观大方 随拿随用
💻 ASP
字号:
<!--#include file="const.asp"-->


<!--#include file="conn.asp"-->
<%'On Error Resume Next
set rs=server.createobject("adodb.recordset")
id=request("D1")
if id=0 then
id=1
end if
sql="select * from admin where id="&id
rs.open sql,conn,3,2
if rs.recordcount<>0 then
if request("UserPassword")<>"" then
rs("pwd")=request("UserPassword")
end if
if request("qx")<>0 then
rs("qx")=int(request("qx"))
end if
if request("UserPassword")<>"" or request("qx")<>0 then
rs.update
end if
rs.close
set rs=nothing
conn.close
set conn=nothing
response.write "<script>alert('管理员修改成功');</script>"
response.write "<script>location.href='admin_admin.asp';</script>"
else
response.write "<script>alert('你选择的操作对象不存在');</script>"
response.write "<script>location.href='admin_admin.asp';</script>"
end if
'Response.Write Err.description%>

⌨️ 快捷键说明

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