📄 level_hide.jsp
字号:
<%--
模块名称:系统管理
模块功能:权限管理
版 本:V1.0
著 作 人:蔡静
著作日期:2001-10-29
该模块所需的文件:
使用说明:
主要技术说明:
参考文献:法律事务设计书
修改历史:= = = = = = = = = = = = = = = = = = = = = = = = = =
修改日期:
修 改 人:
修改理由:
修改出处:
= = = = = = = = = = = = = = = = = = = = = = = = = =
--%>
<%@ page contentType= "text/html; charset=gb2312" %>
<%@ page language="java" import="java.sql.*" %>
<jsp:useBean id="db" class="dbconnection.DbConnection" scope="page" />
<%
String[] nameid = new String[100];
int i = 0;
String tempid = null, tempname = null;
String dept_id = request.getParameter("dept_id");
String sql = "select distinct employee_id, employee_name from t_employee where employee_id<>'system' and active=1 ";
if ((!dept_id.equals("all")) && (dept_id != null)) {
sql = sql + " and dept_id='"+dept_id+"'";
}
ResultSet rs = db.executeQuery(sql);
if(rs!=null) {
while(rs.next()) {
tempid = rs.getString("employee_id");
tempname = rs.getString("employee_name");
nameid[i] = tempid.trim();
nameid[i+1] = tempname.trim();
i = i +2;
}
}
%>
<html>
<head>
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title></title>
<SCRIPT language=JavaScript>
function writeadd(){
var hidelen = formhide.elements.length;
toList = eval('parent.level_main.form1.employee');
var toLen = toList.options.length;
for(j=1; j<toList.options.length;)
{
toList.options[1] = null;
}
for(i=0; i<hidelen; i=i+2)
{
var oOption=parent.level_main.document.createElement("OPTION");
tempid = formhide.elements[i].value;
tempname = formhide.elements[i+1].value;
oOption.text=tempname;
oOption.value=tempid;
parent.level_main.form1.employee.add(oOption);
}
document.close();
}
</SCRIPT>
<body>
<form name="formhide" method="post" action="#">
<%
for (int j=0; j<i ;j++) {
%>
<input type="hidden" name=<%=j%> value="<%=nameid[j]%>">
<%
}
%>
</FORM>
<SCRIPT language=JavaScript>
writeadd();
</script>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -