📄 browse_dept.asp
字号:
<!--#include file="../includes/db.asp"-->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>办公自动化系统</title>
</head>
<body>
<table border="0" width="100%" cellspacing="0" cellpadding="0" height="50">
<tr>
<td width="100%"></td>
</tr>
</table>
<center>
<%
sql="SELECT Dept.Dept_name, Dept.Dept_id, Users_info.User_id, " _
&"Users_info.Name " _
&"FROM Dept INNER JOIN " _
&"Users_info ON Dept.Dept_id = Users_info.Dept_id INNER JOIN " _
&"[Position] ON Users_info.Position_id = [Position].Position_id " _
&"WHERE (([Position].Position_id = 4 OR [Position].Position_id = 1) AND Users_info.Fired=0) "
call openDB()
rs.open sql,conn,1,1
%>
<table width="75%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#5A8BCE">
<tr>
<td height="35" align=left bgcolor="#E6F7FF"><div align="center"><b><font color="#000000">部门列表</font></b></div></td>
</tr>
</table>
<table width="75%" border="0" align="center" cellpadding="4" cellspacing="1" bordercolorlight="#C0C0C0" bordercolordark="#FFFFFF" bgcolor="#5A8BCE">
<tr>
<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("Dept_id")&"</td>"
response.write "<td width=""25%"" bgcolor=""#FCFCFC""><a href=""Browse_Dept_Detail.asp?Dept_id=" _
&rs("Dept_id")&"&Dept_name="&rs("Dept_name")&""">"&rs("Dept_name")&"</a></td>"
response.write "<td width=""25%"" bgcolor=""#FCFCFC"">" _
&"<a href=""Read.asp?User_id="&rs("User_id")&""">"&rs("Name")&"</a></td>"
response.write "</tr>"
rs.movenext
wend
call closeDB()
%>
<tr>
<td height=50 colspan=3 align=center bgcolor="#EFEFEF">
[<a href="javaScript:history.back()">返回</a>]
</td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -