📄 role.jsp
字号:
<%@ page language="java" pageEncoding="GBK"%>
<%@include file="../inc.jsp" %>
<%@taglib prefix="display" uri="/WEB-INF/displaytag.tld"%>
<style type="text/css">
<!--
#Layer1 {
position:absolute;
width:400px;
height:115px;
z-index:1;
left: 39px;
top: 34px;
}
-->
</style>
<SCRIPT LANGUAGE="JavaScript">
<!--
function CheckBox_SeleAll(obj)
{
if(obj.type =="checkbox"&&obj.checked ==true)
{
for(i=0;i<document.all.length;i++)
{
if(document.all.item(i).type=="checkbox")
{
document.all.item(i).checked = false;
}
}
}
else
{
for(i=0;i<document.all.length;i++)
{
if(document.all.item(i).type=="checkbox")
{
document.all.item(i).checked = true;
}
}
}
// alert(document.all.length);
}
function ConfirmDel()
{
if(confirm("如果删除,将会删除使用此角色的相关用户,同时会导致该用户录入的咨询信息丢失!确定要删除此角色吗?"))
return true;
else
return false;
}
</SCRIPT>
<html>
<head>
<title>JSP for RoleForm form</title>
</head>
<body>
<div id="Layer1">
<html:form action="/role?method=create">
角色名 : <html:text property="rolename" />
<html:errors property="rolename" />
<br /><br />
权限分配 : <INPUT TYPE="button" onclick="CheckBox_SeleAll(this);" value="全选">
<display:table name="${requestScope.jurisdictionlist}" export="false" id="currentRowObject" cellpadding="1" cellspacing="1"
requestURI="role.do?method=read" class="simple">
<display:column title="id">${pageScope.currentRowObject.jid}</display:column>
<display:column title="权限名称">${pageScope.currentRowObject.jname}</display:column>
<display:column title="内部代码">${pageScope.currentRowObject.jremark}</display:column>
<display:column title="操作"><INPUT TYPE="checkbox" NAME="jid" value=${pageScope.currentRowObject.jid}></display:column>
</display:table>
说明 : <html:text property="rremark" />
<html:errors property="rremark" />
<br />
<html:submit value="添加角色" />
<html:cancel />
</html:form>
</div>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -