📄 work_list.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"-->
<%
call checkin_sys(session("UsersId"),session("PerId"),21)
datadel=request.QueryString("del")
id=request.QueryString("id")
if datadel<>"" then
set del=server.CreateObject("adodb.recordset")
del.open "delete from work where work_id="&datadel&"",conn,3,3
response.Write "<script>alert('删除成功!');window.location.href('Work_list.asp?id="&id&"');</script>"
end if
%>
<div id="content" style="position:absolute; width:90%; height:115px; z-index:3; left: 48px; top: 190px;">
<!--内容开始-->
<%
id=request.QueryString("id")
set res=server.CreateObject("adodb.recordset")
res.open "select * from work where personnel_id="&id&"",conn,1,1
%>
<table width="95%" border="1" align="center" cellpadding="0" cellspacing="0" class="table1">
<tr>
<td width="10%" class="td1"><div align="center">员工编号</div></td>
<td width="10%" class="td1"><div align="center">公司名称</div></td>
<td width="12%" class="td1"><div align="center">开始工作时间</div></td>
<td width="10%" class="td1"><div align="center">离职时间</div></td>
<td width="10%" class="td1"><div align="center">离职原因</div></td>
<td width="10%" class="td1"><div align="center">薪酬待遇</div></td>
<td class="td1"><div align="center">备注</div></td>
<td width="10%" class="td1"><div align="center">操作</div></td>
</tr>
<%while not res.eof%>
<tr>
<td width="18%"><div align="center"><%=res("personnel_id")%></div></td>
<td><div align="center"><%=res("work_cpname")%></div></td>
<td><div align="center"><%=res("work_sdate")%></div></td>
<td><div align="center"> <%=res("work_ldate")%></div></td>
<td><div align="center"><%=res("work_lreason")%></div></td>
<td><div align="center"><%=res("work_money")%></div></td>
<td><div align="center"><%=res("work_remark")%></div></td>
<td><div align="center"><a href="Work.asp?Wid=<%=res("work_id")%>">修改</a>/<a href="Work_list.asp?del=<%=res("work_id")%>&id=<%=res("personnel_id")%>">删除</a></div></td>
</tr>
<%
res.movenext
wend
%>
<tr>
<td colspan="8"><div align="center"><a href="Search.asp?id=<%response.Write id%>">返回</a> | <a href="Work_add.asp?id=<%response.Write id%>">新增档案</a></div></td>
</tr>
</table>
<%res.close
set res=nothing%>
<!--内容结束-->
</div>
<!--#include file="../Include/bottom.asp"-->
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -