📄 employeesave.asp
字号:
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<!--#include file=DataBase/conn.asp-->
<!--#include file=yan.asp-->
<!--#include file=purview.asp-->
<%
call renshishezhi
if request("post")<>"" then
if request("nameid")="" then
response.Write("<script language=javascript>alert('员工不能为空,请先添加员工');location='javascript:history.go(-1)'</script>")
response.End()
end if
'获取部门id
set rsb=server.CreateObject("adodb.recordset")
sqlb="select * from tb_ZhiWei where id="&request("zhiwei")
rsb.open sqlb,conn,1,1
bumen=rsb("suoshu")
'职位设置
set rs=server.CreateObject("adodb.recordset")
sql="select * from tb_Employee where id="&request("nameid")
rs.open sql,conn,1,3
rs("zhiwei")=request("zhiwei")
rs("suoshu")=bumen
rs("kong")=1
rs.update
rs.close
response.Write("<script language=javascript>alert('提交成功');location='employeeedit.asp'</script>")
end if
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -