📄 employeeedit.asp
字号:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file=DataBase/conn.asp-->
<!--#include file=yan.asp-->
<!--#include file=purview.asp-->
<%
call renshishezhi
if request("post")<>"" then
end if
'员工
set rs=server.CreateObject("adodb.recordset")
sql="select * from tb_Employee where kong=0"
rs.open sql,conn,1,1
'部门
set rsb=server.CreateObject("adodb.recordset")
sqlb="Select * from tb_dept order by up"
rsb.Open sqlb,conn,1,3
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
<style type="text/css">
<!--
body,td,th {
font-size: 12px;
}
-->
</style>
<link href="CSS/css.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.style1 {color: #000000}
.style3 {color: #FF0000}
.style4 {color: #0000FF}
-->
</style>
</head>
<body topmargin="0">
<form name="form1" method="post" action="employeesave.asp">
<table width="550" border="0" align="center">
<tr>
<td width="55%" height="30"> - <span class="style3">人事设置<span class="style1">-</span></span><span class="style1"><span class="style4">人力规划</span>-</span><font color="#FF0000">添加职位</font> </td>
</tr>
</table>
<p> </p>
<table width="507" height="116" border="1" align="center" cellspacing="0" bordercolordark="#666699" bgcolor="#FFFFFF" bordercolorlight="#FFFFFF">
<tr>
<td height="36" align="center" bgcolor="#FFFFFF">人员名称:</td>
<td bgcolor="#FFFFFF">
<select name="nameid" id="nameid">
<%
do while not rs.eof
%>
<option value="<%=rs("id")%>"><%=rs("name")%></option>
<%
rs.movenext
loop
%>
</select>
<input name="post" type="hidden" id="post3" value="true"></td></tr>
<tr>
<td height="35" align="center" bgcolor="#FFFFFF">所属部门职位:</td>
<td bgcolor="#FFFFFF">
<select name="zhiwei" id="select3">
<%
do while not rsb.EOF
set rsz=server.CreateObject("adodb.recordset")
sqlz="select * from tb_ZhiWei where suoshu="&rsb("id")
rsz.open sqlz,conn,1,1
xian=""
for i=1 to rsb("level")-1
xian= xian&"├"
next
xian = xian&"〖"&trim(rsb("title"))&"〗"
do while not rsz.eof
%>
<option value="<%=rsz("id")%>"><%=xian&rsz("zhiwei")%> </option>
<%
rsz.movenext
loop
rsb.movenext
loop
%>
</select></td></tr>
<tr bgcolor="#FFFFFF">
<td colspan="2"><div align="center">
<input name="Submit" type="submit" class="botton" value="提交">
<input name="Submit2" type="reset" class="botton" value="重置">
<input name="Submit3" type="button" class="botton" onClick="location='javascript:history.go(-1)'" value="返回">
</div></td>
</tr>
</table>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -