📄 sharefile.jsp
字号:
<%@ page language="java" contentType="text/html; charset=gb2312"
pageEncoding="GBK"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>权限列表</title>
<style type="text/css">
<!--
.ziti {
font-size: 12px;
}
.STYLE1 {color: #FF0000}
body {
background-image: url(../Images/dw.gif);
}
-->
</style>
<script language="javascript">
function selectAll(flag){
var checks =document.getElementsByName("empIds");
for(var i=0;i<checks.length;i++){
if(flag==1){
checks[i].checked=true;
}else{
checks[i].checked=false;
}
}
}
</script>
</head>
<body>
<c:url value="/ShareFileServlet?method=add" var="url" />
<form name="form1" method="post" action="${url}" >
<input type="hidden" name="empIds" value="" />
<input type="hidden" name="fileId" value="${file.fileId}"/>
<table width="100%" border="1" cellpadding="0" cellspacing="0" bordercolor="#00FF99">
<tr bgcolor="#00FF99">
<td height="30" align="left" class="ziti"> 为<span class="STYLE1">[${file.fileName}]</span>分配员工|[<a href="javascript:selectAll(1)">全选</a>]|[<a href="javascript:selectAll(0)">取消全选</a>]</td>
</tr>
<c:forEach items="${emps}" var="emp">
<c:set var="ck" value="" />
<c:forEach items="${sharefiles}" var="sf">
<c:if test="${emp.empId==sf}">
<c:set var="ck" value="checked" />
</c:if>
</c:forEach>
<tr>
<td height="25" align="left" bgcolor="#CCFFFF"> <span class="ziti">
<input type="checkbox" name="empIds" id="empIds" value="${emp.empId}" ${ck}>
${emp.empName}</span>
</td>
</tr>
</c:forEach>
<tr>
<td height="22" align="center" bgcolor="#CCFFFF"><input name="Submit" type="submit" class="ziti" value="确认选择"></td>
</tr>
</table>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -