📄 browse_dept_detail.asp
字号:
<!--#include file="../includes/db.asp"-->
<html>
<head>
<%
call insureID()
%>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>办公自动化系统</title>
<style type="text/css">
<!--
.style1 {
color: #000000;
font-weight: bold;
}
-->
</style>
</head>
<body>
<table border="0" width="100%" cellspacing="0" cellpadding="0" height="50">
<tr>
<td width="100%"></td>
</tr>
</table>
<center>
<%
dim Dept_id
Dept_id=request("Dept_id")
Dept_name=request("Dept_name")
if Dept_id="" then
call trigErr()
end if
if Dept_name="" then
call trigErr()
end if
sql="SELECT Users_info.User_id, Users_info.Name, " _
&"Users_info.sex, [Position].Position_name " _
&"FROM Users_info INNER JOIN " _
&"[Position] ON Users_info.Position_id = [Position].Position_id " _
&"WHERE (Users_info.Dept_id = "&Dept_id&" AND Fired=0) "
call openDB()
rs.open sql,conn,1,1
%>
<table width="80%" border="0" cellpadding="4" cellspacing="1" bordercolorlight="#FCFCFC" bordercolordark="#EFEFEF" bgcolor="#5A8BCE">
<tr bgcolor="#E6F7FF">
<td height=35 colspan=4 align=center>
<span class="style1"><%=Dept_name%>部门人员列表</span></td>
</tr>
<tr>
<td width="25%" bgcolor="#FCFCFC"><div align="center">员工ID</div></td>
<td width="25%" bgcolor="#FCFCFC"><div align="center">姓名</div></td>
<td width="25%" bgcolor="#FCFCFC"><div align="center">性别</div></td>
<td width="25%" bgcolor="#FCFCFC"><div align="center">职位</div></td>
</tr>
<%
while not rs.eof
response.write "<tr>"
response.write "<td width=""25%"" bgcolor=""#FCFCFC"">"&rs("User_id")&"</td>"
response.write "<td width=""25%"" bgcolor=""#FCFCFC""><a href=""Read.asp?User_id="&rs("User_id")&""">"&rs("Name")&"</a></td>"
response.write "<td width=""25%"" bgcolor=""#FCFCFC"">"&rs("Sex")&"</td>"
response.write "<td width=""25%"" bgcolor=""#FCFCFC"">"&rs("Position_name")&"</td>"
response.write "</tr>"
rs.movenext
wend
call closeDB()
%>
<tr>
<td height=50 colspan=4 align=center bgcolor="#EFEFEF">
<font>
[<a href="javaScript:history.back()">返回</a>]
</td>
</tr>
</table>
</center>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -