dananadd.asp

来自「欢迎大家分享本系统为bs架构的asp+access版本。<br>包含:员工信息」· ASP 代码 · 共 49 行

ASP
49
字号
<%@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 + =
减小字号Ctrl + -
显示快捷键?