📄 list.jsp
字号:
<%@page contentType="text/html;charset=gb2312"%>
<%@ taglib prefix="ww" uri="webwork" %>
<%@ include file="/include/header.inc"%>
<script language="javascript">
<!--
function creatRoleSub(){
if(verify()){
document.createForm.submit();
}
}
function verify(){
var form = document.forms['createForm'];
var obje = form.elements['role.name'];
if (checkIsNull(obje, "权限组")== false) return false;
return true;
}
function delRolesSub(){
if(hasChecked(delForm)==false){
alert("请选择权限组进行删除!");
return;
}
if(confirm("您确定要删除选中的权限组吗?")==true){
document.delForm.submit();
}
}
//-->
</script>
<table cellspacing="0" cellpadding="0" align="center">
<tr><td class="topg"/></tr>
</table>
<table cellspacing="0" cellpadding="0" align="center" class="wukuang" >
<tr>
<form name="createForm" action="Role!add.action" method="POST" >
<td width="1%" align="left" ><img class="img" src="<%= request.getContextPath() %>/images/tleft.gif"></td>
<td>[权限组管理]</td>
<td align="right" width="10%">权限组名称:</td>
<td align="right" width="15%"><input size = "12" class="inputt" maxlength = "12" name="role.name"/></td>
<td align="right" width="10%">权限组描述:</td>
<td align="right" width="15%"><input size = "20" class="inputt" maxlength = "20" name="role.description"/></td>
<td width ="110" align="right">
<a href="javascript:creatRoleSub();"/><img class="imgd" src="<%= request.getContextPath() %>/images/button/add.gif"></a>
<a href="javascript:delRolesSub();"/><img class="imgd" src="<%= request.getContextPath() %>/images/button/del.gif"></a>
</td>
<td width="1%" align="left" ><img class="img" src="<%= request.getContextPath() %>/images/tright.gif"></td>
</form>
</tr>
</table>
<table cellspacing="0" cellpadding="0" align="center">
<tr><td class="topg"/></tr>
</table>
<table align="center" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img class="img" src="<%= request.getContextPath() %>/images/result.gif" align="absmiddle"></td>
</tr>
</table>
<table border="1" cellspacing="1" cellpadding="2" align="center" class="bgtable" style="table-layout:fixed">
<form name="delForm" action="Role!delete.action" method="'POST'">
<tr align="center" class="henglan">
<td width="7%" align="center">操作</td>
<td width="4%" align="center"><input type="checkbox" name="all" onclick="javascrpt:check(delForm,delForm.all);" class="wu"></td>
<td width="34%" align="center">组名称</td>
<td width="55%" align="center">描述</td>
</tr>
<ww:iterator value="roles" status="status">
<ww:if test="#status.odd == true">
<tr class="tabtd1" onMouseOver="MouseMoveIn(this);" onMouseOut="MouseMoveOut(this);">
</ww:if><ww:else>
<tr class="tabtd2" onMouseOver="MouseMoveIn(this);" onMouseOut="MouseMoveOut(this);">
</ww:else>
<td align="center"><a href="<ww:url value="'Role!select.action?selectedRole=' + (#status.count-1)"/>"><img class="img" src="<%= request.getContextPath() %>/images/button/modify.gif" alt="修改"></a></td>
<td align="center"><input type="checkbox" name="selectedRoles[<ww:property value="#status.count-1"/>]" value="<ww:property value="id"/>"></td>
<td title="<ww:property value="name"/>"><ww:property value="name"/></td>
<td title="<ww:property value="description"/>"><ww:property value="description"/></td>
</tr>
</ww:iterator>
</form>
</table>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -