📄 roleeditsave.asp
字号:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<link rel="stylesheet" type="text/css" href="css.css">
<!--#include file="conn.inc"-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
</head>
<%
v_name=trim(request("rolename"))
v_patch=trim(request("patch"))
if v_path="角色路径" or v_path="" then
v_path="default.asp"
end if
sucess=0
v_right = trim(request("roleright"))
if v_right ="角色权限" or v_right="" then
v_right="一般用户"
end if
sql = "select count(*) as no from role_info where RoleName='"&v_name&"'and Roleright='"&v_right&"' and RoleAddress='"&v_path&"'"
set rs = server.CreateObject("adodb.recordset")
rs.open sql,conn,3,2
n = rs("no")
rs.close
set rs=nothing
if n<1 then
sql = "select * from role_info where RoleID="&request("rid")
set rs = server.CreateObject("adodb.recordset")
rs.open sql,conn,3,2
rs("RoleName")=v_name
rs("Roleright")=v_right
rs("RoleAddress")=v_path
rs.update
conn.close
set conn = nothing
Response.Write("<script>alert(""修改角色成功"");location.href=""managerrole.asp"";</script>")
else
conn.close
set conn = nothing
Response.Write("<script>alert(""修改角色重复"");location.href=""managerrole.asp"";</script>")
end if
%>
<body>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -