📄 dept.asp
字号:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file=DataBase/conn.asp-->
<!--#include file=yan.asp-->
<!--#include file=purview.asp-->
<%
call bumenshezhi
'部门
set rsb=server.CreateObject("adodb.recordset")
sqlb="select level from tb_Dept group by level"
rsb.open sqlb,conn,1,1
max=rsb.recordcount
rsb.close
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
<style type="text/css">
<!--
body,td,th {
font-size: 12px;
}
a:link {
color: #0000FF;
}
a:visited {
color: #0000FF;
}
a:hover {
color: #0000FF;
}
.style2 {color: #0000FF}
.style3 {color: #FF0000}
-->
</style>
</head>
<body topmargin="0">
<table width="550" border="0" align="center">
<tr>
<td width="55%" height="30"> -<span class="style3">人事管理</span>→<span class="style2">人力规划</span>→<font color="#FF0000">部门设置</font> </td>
</tr>
</table>
<table width="550" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="54%">
<table width="100%" border="0" cellpadding="0" cellspacing="0" align="center">
<tr>
<td bgcolor="#EFEFEF">
<table width="96%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="10" colspan="2"></td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="51%" height="360" valign="top" bgcolor="#FFFFFF" >
<%
set rs=server.CreateObject("adodb.recordset")
sql="select * from tb_Dept order by up"
rs.open sql,conn,1,1
do while not rs.EOF
xian=""
for i=1 to rs("level")-1
xian = xian&"├"
next
xian = xian&"〖<a href=deptopen.asp?id="&trim(rs("id"))&" target='xian'>"&trim(rs("title"))&"</a>〗<br>"
%>
<%=xian%>
<%
rs.movenext
loop
%></td>
<td width="49%" valign="top" bgcolor="#FFFFFF" style="BORDER-LEFT: #8A8A8A 1px solid; LINE-HEIGHT: 20px"><iframe src="deptadd.asp" width="100%" height="100%" name=xian scrolling="no" frameborder="no"></iframe></td>
</tr>
<tr>
<td height="10" colspan="2"></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -