📄 read.asp
字号:
<!--#include file="../includes/keepHouse.asp"-->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>WebOffice</title>
</head>
<body>
<center>
<%
call insureID()
dim PERSONNEL_ID
PERSONNEL_ID=request("PERSONNEL_ID")
if PERSONNEL_ID="" then
call trigErr()
end if
sql= "SELECT Personnel.*, Department.DEPARTMENT AS Department, Department.DEPT_ID AS DeptId, " _
&"[Position].POSITION_NAME AS Position " _
&"FROM Personnel INNER JOIN Department " _
&"ON Personnel.DEPT_ID = Department.DEPT_ID INNER JOIN [Position] " _
&"ON Personnel.POSITION_ID = [Position].POSITION_ID " _
&"WHERE PERSONNEL_ID="&PERSONNEL_ID&" AND FIRED=0"
call openDB()
rs.open sql,conn,1,1
if rs.eof then
call trigErr()
end if
%>
<table border="0" width="100%" cellspacing="0" cellpadding="0" height="50">
<tr>
<td width="100%"> </td>
</tr>
</table>
<table border="0" width="75%" cellspacing="0" cellpadding="0">
<tr>
<td width="5%" bgcolor="#0000FF" height="35" align=left><img border="0" src="../images/back.gif"></td>
<td width="65%" bgcolor="#0000FF" height="35" align=center><b><font color="#FFFFFF">员工详细情况</font></b></td>
<td width="5%" bgcolor="#0000FF" height="35" align=right><img border="0" src="../images/Close2.gif"></td>
</tr>
</table>
<table border="1" width="75%" bordercolorlight="#C0C0C0" bordercolordark="#FFFFFF" cellspacing="0" cellpadding="0">
<tr>
<td width="30%" bgcolor="#FCFCFC">员工号</td>
<td width="45%" bgcolor="#FCFCFC" colspan="2"><%=rs("PERSONNEL_ID")%></td>
</tr>
<tr>
<td width="30%" bgcolor="#FCFCFC">姓名</td>
<td width="45%" bgcolor="#FCFCFC" colspan="2"><%=rs("PERSON_NAME")%></td>
</tr>
<tr>
<td width="30%" bgcolor="#FCFCFC">性别</td>
<td width="45%" bgcolor="#FCFCFC" colspan="2"><%=rs("PERSON_GENDER")%></td>
</tr>
<tr>
<td width="30%" bgcolor="#FCFCFC">部门</td>
<td width="45%" bgcolor="#FCFCFC" colspan="2"><%=rs("Department")%></td>
</tr>
<tr>
<td width="30%" bgcolor="#FCFCFC">职位</td>
<td width="45%" bgcolor="#FCFCFC" colspan="2"><%=rs("Position")%></td>
</tr>
<tr>
<td width="30%" height=50 colspan=3 bgcolor="#EFEFEF" align=center>
[<a href="javaScript:history.back()">返回</a>]
<%
if session("POSITION_ID")=1 and rs("POSITION_ID")<>1 then
response.write " [<a href=""ModifyPosition.asp?PERSONNEL_ID="&rs("PERSONNEL_ID")&""">变更其职位</a>]"
end if
if ((session("POSITION_ID")=4 AND session("DEPT_ID")=rs("DeptId") AND rs("POSITION_ID")<>4) _
or session("POSITION_ID")=1 AND rs("POSITION_ID")<>1) then
response.write " [<a href=""Fire.asp?PERSONNEL_ID="&PERSONNEL_ID&"&PERSON_NAME=" _
&rs("PERSON_NAME")&"""><font color=#FF0000>辞退本员工</font></a>]"
end if
call closeDB()
%>
</td>
</tr>
</table>
</center>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -