<!--#include file="conn.asp" -->
<!--#include file="ConnUser.asp"-->
<!--#include file="config.asp" -->
<!--#include file="char.inc"-->
<!--#include file="chkuser.asp" -->
<%dim action,id
id=request.QueryString("id")
action=request.querystring("action")
select case action
'//添加新数据
case "add" 
set rs=server.CreateObject("adodb.recordset")
rs.open "select * from wygkzhuanye",conn,1,3
rs.AddNew
rs("menuname")=request("menuname2")
rs.Update
rs.Close
set rs=nothing
response.Redirect "zhuanye.asp"
'//修改数据
case "edit"
set rs=server.CreateObject("adodb.recordset")
rs.open "select * from wygkzhuanye where id="&id,conn,1,3
rs("menuname")=request("menuname")
rs.Update
rs.Close
set rs=nothing
response.Redirect "zhuanye.asp"

case "del"
conn.execute ("delete from wygkzhuanye where id="&id)

response.Redirect "zhuanye.asp"
end select
%> 
