⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 emp_oe.asp

📁 物业管理和办公自动化系统
💻 ASP
字号:
<%
'************************************************************************************************
' 文件名: emp_oe.asp
' Copyright(c) 2001-2002 上海阿尔卡特网络支援系统有限公司
'
'  创建人 :weilin
'  日 期 : 2002-11-11
' 修改历史 :
'   ****年**月**日 ****** 修改内容:**************************************************
' 功能描述 : 业主员工信息编辑
'  版 本 :
'*******************************************************************************
option explicit
Response.CacheControl = "no-cache"
Response.AddHeader "Pragma", "no-cache"
Response.Expires = -1
%>


<!-- #include file="../include/common.inc" -->
<!-- #include file="../include/recordlist.inc" -->
<!-- #include file="../include/commonpage.inc" -->
<!-- #include file="emp_oe.inc" -->

<%
call CheckSecurity()

dim iRight:iRight=HasRight(ID_HR)
if iRight=2 then
else
	Response.Clear
	Response.Redirect "../include/error.asp?error=只有人事管理员或具有人事信息查询权限的人员才能访问人事信息页面&"
	Response.End
end if

dim conn:set conn=DBConnection


'*******************************************************************************
' 服务器端代码
dim pEmpid : pEmpid = GetParam("emp_id")
if IsEmpty(pEmpid) then
	Response.Clear()
	Server.Transfer("emp_ol.asp")
	Response.End
end if

'********************************************************************************************************
' 如果是提交,则调用函数UpdateMeeting()更新数据库
if UCase(Request.ServerVariables("REQUEST_METHOD") = "POST") then
	UpdateEmp()
end if

%>

<html>
<head>
<title>上海信息大楼 Shanghai Information Tower</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="../include/common.css" type="text/css">

<style>
.conts	{display:none}
.tab		{border-style:solid; border-width:1px;border-color:white gray silver white;
				color:black; background-color:silver;text-align:center;cursor:hand}
.selTab	{border-style:solid; border-width:1px;border-color:white black white white;
				color:black; background-color:white;text-align:center;cursor:hand;}

input			{color:blue;border-width:1}

</style>

<script language="JavaScript">
function len(str)
{
	var y = 0; // 用于保存字符串的长度
	var s; // 用于暂存临时字符
	y = 0;
	for (j=0; j<str.length; j++)
	{
		s = str.substring(j, j+1)
		if ( s.charCodeAt(0) < 0 || s.charCodeAt(0) > 255 )
		{
			y = y + 2;
		}
		else
		{
			y = y + 1;
		}
	}
	return y;
}

function CheckInput()
{	
		if (frmAddEmp.node.value == "-1")
	{
		alert("对不起,您没有选择部门!");
		frmAddEmp.node.focus();
		return false;
	}
	
	if (frmAddEmp.name.value == "")
	{
		alert("对不起,请输入员工姓名!")
		frmAddEmp.name.focus();
		return false;
	}
	
	      
	if(len(frmAddEmp.achievements.value)>500)
	{
	       alert("对不起,主要业绩输入不能超过500个字符!");
		frmAddEmp.achievements.focus();
		return false;
	}
	if(len(frmAddEmp.training.value)>500)
	{
	       alert("对不起,主要业绩输入不能超过500个字符!");
		frmAddEmp.training.focus();
		return false;
	}
	if(len(frmAddEmp.certificate.value)>500)
	{
	       alert("对不起,主要业绩输入不能超过500个字符!");
		frmAddEmp.certificate.focus();
		return false;
	}
	
	frmAddEmp.submit();
	return true;
}
</script>
</head>

<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" background="../images/bg/bg0.jpg" onclick="changeTabs()" onload="init()">
<br>

<%
Response.Write OuterTableHeader
Response.Write HeaderWithMenu
Response.Write InnerTableHeader
'*******************************************************************************
' 主体从这里开始
'-------------------------------------------------------------------------------

%>
<form name="frmEmp" method=post action="emp_oe.asp" onsubmit="return(CheckInput());">
<input type="hidden" name="emp_id" value="<%=pEmpid%>">

<table cellspacing=1 cellpadding=2 bgcolor="silver" border=0 align=center width=560 style="overflow:hidden">
<%=TableFormEmp%>
</table>

<center>
	<input type="image" border=0 src="../images/button/ok.gif" style="border-width:0">
	&nbsp;&nbsp;
	<img border=0 src="../images/button/return.gif" style="cursor:hand" onclick="window.location.href='emp_op.asp?emp_id=<%=pEmpid%>';">
</center>

</form>
<%
Response.Write TableLink

'-------------------------------------------------------------------------------
' 主体到这里结束
'*******************************************************************************
Response.Write InnerTableTailer
Response.Write Footer
Response.Write OuterTableTailer

Disconnect(conn)
%>


</body>
</html>

⌨️ 快捷键说明

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