📄 work_add.asp
字号:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>人力资源管理系统≡技能添加≡</title>
<link href="../Include/type.css" rel="stylesheet" type="text/css">
</head>
<body>
<!--#include file="../Include/conn.asp"-->
<!--#include file="../Include/Head.asp"-->
<!--#include file="../Include/Syscheck.asp"-->
<div id="content" style="position:absolute; width:90%; height:115px; z-index:3; left: 48px; top: 190px;">
<!--内容开始-->
<%
call checkin_sys(session("UsersId"),session("PerId"),21)
id=request.querystring("id")
Set res=server.CreateObject("adodb.recordset")
res.open"select * from work",conn,1,1
%>
<script type="text/javascript" src="date/date.js"></script>
<script type="text/javascript">
</script>
<form name="form1" method="post" action="Work_add.asp?id=<%response.write id%>" onSubmit="return Validator.Validate(this,3)">
<table width="60%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td colspan="2"class="td1">
<img src="../images/sub01_05.jpg" height="25" align="middle">
<a href="Search_emly.asp?id=<%response.write id%>">员工档案搜索</a>-->
<a href="Search.asp?id=<%response.write id%>">员工档案维护</a>-->
<a href="Work_list.asp?id=<%response.write id%>">工作档案维护</a>-->
工作档案添加
</td>
</tr>
<tr>
<td width="24%"><div align="right">员工编号:</div></td>
<td width="76%"><%response.write id%></td>
</tr>
<tr>
<td><div align="right">公司名称:</div></td>
<td><input name="cname" type="text" size="15" datetype="CEN" msg="请输入正确的中英文!"></td>
</tr>
<tr>
<td><div align="right">开始工作时间:</div></td>
<td><input name="times" type="text" size="15" onFocus="javascript:ShowCalendar(this.name)">
</td>
</tr>
<tr>
<td height="16"><div align="right">离职时间:</div></td>
<td><input type="text" name="timel" onFocus="javascript:ShowCalendar(this.name)">
</td>
</tr>
<tr>
<td height="16"><div align="right">离职原因:</div></td>
<td><input type="text" name="lreason"></td>
</tr>
<tr>
<td height="16"><div align="right">薪酬待遇:</div></td>
<td>
<select name="money">
<option value="selected">-请选择-</option>
<option>1000以下</option>
<option>1000--1500</option>
<option>1500--2500</option>
<option>2500--3500</option>
<option>3500以上</option>
</select>
</td>
</tr>
<tr>
<td valign="top"><div align="right">备注: </div></td>
<td><textarea name="remark" cols="40" rows="10"></textarea></td>
</tr>
<tr>
<td colspan="2"><div align="center">
<input type="submit" name="Submit" value="提交" class="button">
<input type="reset" name="Submit22" value="重置" class="button">
</div></td>
</tr>
<tr>
<td colspan="2" class="td1"><div align="center"><a href="Work_list.asp?id=<%response.write id%>">返回</a></div></td>
</tr>
</table>
</form>
<%
If request.Form("Submit")<>"" then
id=request.QueryString("id")
cname = Trim(Request.form("cname"))
sdate = Trim(Request.Form ("times"))
ldate = Trim(Request.Form ("timel"))
lreason = Trim(Request.Form ("lreason"))
money = Trim(Request.Form ("money"))
remark = Trim(Request.Form ("remark"))
If cname<>"" and sdate<>"" and ldate<>"" Then
Set res=server.CreateObject("adodb.recordset")
res.open "insert into work (personnel_id,work_cpname,work_sdate,work_ldate,work_lreason,work_money,work_remark) values ("&id&",'"&cname&"','"&sdate&"','"&ldate&"','"&lreason&"','"&money&"','"&remark&"')",conn,3,3
response.redirect("work_list.asp?id="&id&"")
Else
response.write "<script>alert('公司名称不能为空');window.location.href('work_add.asp?id="&id&"');</script>"
End If
End If
%>
<!--#include file="../Include/bottom.asp"-->
<!--内容结束-->
</div>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -