?? findfunctionbyrole.jsp
字號:
<%@ page language="java" pageEncoding="UTF-8"%>
<%@ include file="/common/jsp/common.jsp"%>
<html:html locale="true">
<head>
<link title=Style href="../../common/css/style.css" type=text/css rel=stylesheet>
<script language="JavaScript" type="text/javascript">
<!--
function confirmDelete()
{
return con = confirm("確定要刪除嗎?");
}
function selAll(){
chk = document.getElementById("checkbox");
allSel = document.getElementsByName("strArray");
if(!chk.checked)
for(i=0;i<allSel.length;i++)
{
allSel[i].checked=false;
}
else
for(i=0;i<allSel.length;i++)
{
allSel[i].checked=true;
}
}
function deleteAction()
{
//獲取選擇的記錄集合
selAry = document.getElementsByName("strArray");
count = 0;
selValue = "";
for(i=0;i<selAry.length;i++)
{
if(selAry[i].checked)
{
count++;
selValue = selAry[i].value;
}
}
if(count<1)
{
window.alert('刪除時至少選中一條記錄!');
}
else
{
if( confirmDelete()){
document.forms[0].action="../../member/right/deletePermissionByRoleId.do";
document.forms[0].submit();
return true ;
}else{
return false ;
}
}
return false;
}
//-->
</script>
<title>權限列表</title>
</head>
<body>
<%
int offset=1;
%>
<br>
<br>
<html:form action="/member/right/listFunction.do">
<input type="hidden" name="roleId" value="<bean:write name="role" property="id"/>">
<table width="900" border="0" align="center" class="tableBorder">
<tr>
<th height="29" colspan="9" scope="col">角色 <bean:write name="role" property="name"/> 權限列表</th>
</tr>
<logic:present name="list" scope="request">
<tr>
<td align="center" class="forumRow"><input name="checkbox" type=checkbox id=checkbox onClick="javascript:selAll();" value=checkbox>全選</td>
<td align="center" class="forumRow">name</td>
<td align="center" class="forumRow">parentName</td>
<td align="center" class="forumRow">url</td>
<td align="center" class="forumRow">protectFunction</td>
<td align="center" class="forumRow">note</td>
</tr>
<logic:iterate id="function" name="list">
<logic:present name="function">
<tr>
<td align="center" class="forumRow"><html:multibox property="strArray"><bean:write name="function" property="id"/></html:multibox> <%=offset++%></td>
<td align="center" class="forumRow"><bean:write name="function" property="name"/></td>
<td align="center" class="forumRow"><bean:write name="function" property="parentName"/></td>
<td align="center" class="forumRow"><bean:write name="function" property="url"/></td>
<td align="center" class="forumRow"><bean:write name="function" property="protectFunction"/></td>
<td align="center" class="forumRow"><bean:write name="function" property="note"/></td>
</logic:present>
</logic:iterate>
</logic:present>
</table>
<div align="center">
<P><html:submit value="刪除" property="submit" onclick="return deleteAction();"></html:submit> <p>
<!-- <INPUT type="image" src="../../common/images/b_delete.gif" alt="刪除" onClick="return deleteAction();" name="刪除"/> -->
<html:link page="/member/right/findOtherFunctionByHql.do" paramId="roleId" paramName="role" paramProperty="id" > 增加</html:link>
</div>
</html:form>
</body>
</html:html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -