📄 dananadd.asp
字号:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="CP_ACP"%>
<!--#include file="Connections/EmpMain.asp" -->
<!--#include file="EmpMain_CheckRight.asp"-->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
</head>
<body><%Set rs1= Server.CreateObject ("ADODB.RecordSet")
rs1.open "select * from EmpGeneralInfo where ID="&request("userid")&" ",MM_EmpMain_STRING,3,3
if not rs1.eof then
xx=rs1("EmpName")
else %>
<script>
if(!confirm("员工编号不以为空?")){
window.location.history.back()
}
</script>
<% end if
Set rs= Server.CreateObject ("ADODB.RecordSet")
rs.open "select * from danan ",MM_EmpMain_STRING,1,3
rs.addnew
rs("name")=xx
rs("overdate")=request("overdate")
rs("user")=request("user")
rs("denjidate")=request("denjidate")
rs("content")=request("content")
rs("where")=request("where")
rs("dananid")=request("dananid")
rs.update
rs.close
%><script>
if(!confirm("新增档案成功.\n您是否要继续添加新档案?")){
window.location.href="Empmain_danan_info.asp?id=<%=request("id")%>"
}
else{
window.location.href="Empmain_danan_info.asp?id=<%=request("id")%>"
}
</script>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -