asavewanbaip.asp

来自「视频点播系统」· ASP 代码 · 共 66 行

ASP
66
字号
<!--#include file="security.asp"-->
<!--#include file="articleconn.asp"-->
<%if session("flag")>1 then
    response.write "<br><p align=center>您的操作权限不够!</p>"
    response.end
end if
%>
<%
   newpin=LCase(Request("newpin"))
   flag=Request("flag")
   manager=LCase(Request("manager"))
startimes=LCase(Request("startimes"))
endtimes=LCase(Request("endtimes"))
   
   submit=Trim(Request("submit"))
   
'//进行修改操作
   set rs = server.createobject("adodb.recordset")
   if submit="修改" then

'//修改用户密码      
	sql="select * from okip where id="&request("id")
	 rs.open sql,conn,1,3
	 rs("okip")=manager
	 rs("testok")=newpin
         rs("startimes")=startimes
	 rs("endtimes")=endtimes
	 rs.update
	 rs.close
	 set rs=nothing
   
         conn.Close
         set conn=Nothing        

         response.redirect "wanba.asp"
   
    end if
    
'//进行删除操作

   if submit="删除" then
      
      sql="delete from okip where id="&request("id")
      
      conn.Execute sql
      
      conn.Close
      set conn=Nothing      
     
   response.redirect "wanba.asp"
   
   end if
%>
<html>

<head>
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
</head>

<body>

</body>

</html>

⌨️ 快捷键说明

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