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

📄 basic.asp

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

<!-- #include file="../include/config.inc" -->
<!-- #include file="../include/common.inc" -->
<!-- #include file="../include/debug.inc" -->
<!-- #include file="../include/db.inc" -->
<!-- #include file="../include/date.inc" -->
<!-- #include file="../include/datahandle.inc" -->
<!-- #include file="../include/recordlist.inc" -->
<!-- #include file="../include/security.inc" -->

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


<%
'********************************************************************************************************
' 服务器端代码
dim pEmpSerial : pEmpSerial = GetParam("emp_serial")

dim sDepartment, sPositionId

if UCase(Request.ServerVariables("REQUEST_METHOD") = "POST") then
	UpdateBasic()
end if
%>

<html>
<head>
<title>上海信息大楼 Shanghai Information Tower</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="../common/common.css" type="text/css">
<style type="text/css">
input			{color:blue;border-width:0}
td				{overflow:hidden}
</style>
<script language="vbScript" src="hr.vbs"></script>
<script language="javascript">
function CheckInput()
{
	if (frmEmpBasic.department_id.value == "-1")
	{
		alert("对不起,您没有选择部门!");
		frmEmpBasic.department_id.focus();
		return false;
	}
	else if (frmEmpBasic.position_id.value == "-1")
	{
		alert("对不起,您没有选择岗位!");
		frmEmpBasic.position_id.focus();
		return false;
	}
	else if (frmEmpBasic.name.value == "")
	{
		alert("对不起,请输入员工姓名!")
		frmEmpBasic.name.focus();
		return false;
	}
	else
	{
		frmEmpBasic.submit();
	}
}
</script>

</head>

<body>

<form name="frmEmpBasic" method=post action="basic.asp" onsubmit="return(CheckInput());">
<input type="hidden" name="emp_serial" value="<%=pEmpSerial%>">

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

<script language="vbscript">
	'' 选中岗位,要放在结尾,是因为要在<select name=department_id>之后,否则会出错。 
	call onload("<%=sDepartment%>", "<%=sPositionId%>")
</script>
<br>
<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.parent.location.href='emp_op.asp?emp_serial=<%=pEmpSerial%>';">
</center>

</form>

</body>
</html>

⌨️ 快捷键说明

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