📄 list_dept_users.jsp
字号:
<%@ page language="java" import="java.util.*" pageEncoding="GBK"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>用户列表</title>
<link href="../../common/defaultFa/css/all.css" rel="stylesheet" type="text/css" />
<link href="../../common/defaultFa/css/css.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
function choose(chk){
if(chk.checked){
window.parent.choose_deptTree.addUser(chk.value);
}
else{
window.parent.choose_deptTree.removeUser(chk.value);
}
}
function init(){
var users=document.getElementsByName("user");
for(var i=0;i<users.length;i++){
if(window.parent.choose_deptTree.checkUser(users[i].value)){
users[i].checked=true;
}
}
}
function checkedall(){
if(document.all("checkAll").checked){
for (i=0;i<document.all("user").length;i++){
document.all("user").item(i).checked=true;
window.parent.choose_deptTree.addUser(document.all("user").item(i).value);
}
}
else{
for (i=0;i<document.all("user").length;i++){
document.all("user").item(i).checked=false;
window.parent.choose_deptTree.removeUser(document.all("user").item(i).value);
}
}
}
</script>
<style type="text/css">
<!--
.style3 {color: #0000FF}
-->
</style>
</head>
<body style="overflow-y:auto" onload="init();">
<table width="100%" border="0" cellpadding="0" cellspacing="1" class="tb_data">
<thead>
<tr>
<td align="center" valign="middle">部门成员</td>
</tr>
</thead>
</table>
<table border="0" cellpadding="0" cellspacing="1" width="100%">
<tr>
<td bgcolor="#DDDDDD"> <input name="checkAll" type="checkbox" onclick="checkedall()"> <span class="style3">全选</span></td>
</tr>
</table>
<table width="100%" border="0" cellpadding="0" cellspacing="1" class="tb_data">
<c:forEach items="${requestScope.users}" var="user" varStatus="status">
<tr>
<td > <input name="user" type="checkbox" value="${user.id}:${user.realName}" onclick="choose(this);"> ${user.realName}</td>
</tr>
</c:forEach>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -