?? 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("如果刪除,將會刪除使用此角色的相關(guān)用戶,同時會導(dǎo)致該用戶錄入的咨詢信息丟失!確定要刪除此角色嗎?"))
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 />
權(quán)限分配 : <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="權(quán)限名稱">${pageScope.currentRowObject.jname}</display:column>
<display:column title="內(nèi)部代碼">${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>
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -