📄 rolelist.vm
字号:
<html>
<head>
<title>单位角色列表</title>
<link rel="stylesheet" href="$request.getContextPath()/csslib/style.css" type="text/css">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<script language="javascript" src="$request.getContextPath()/jslib/function.js">
</script>
<script language="javascript">
function update_onclick(roleID){
window.navigate("editrole.jsp?roleId=" + roleID);
}
function del_onclick(canDel){
if(canDel>0){
alert("本角色已有人员使用,无法删除!");
return false;
}
if (!confirm("确实要删除该角色吗?")){
return false ;
}
return true ;
}
function newRole(){
thisForm.action = "$request.getContextPath()/roleAction.do?method=editRole&roleId=";
thisForm.submit();
}
</script>
</head>
<body scroll="no" oncontextmenu="window.event.returnValue=null">
<br>
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" background="$request.getContextPath()/image/4_bar.gif">
<tr height=30>
<td> </td>
<td width="160" colspan=2><font face="宋体, 新宋体">单位角色列表</font></td>
<td align="right">
<button onclick="newRole()" accesskey="Q">新建角色(Q)</button>
</td>
</tr>
<tr><td height=1 bgcolor="#FFFFFF" colspan=10> </td></tr>
</table>
<table width="98%" border="1" align="center" cellpadding="0" cellspacing="0" border="1" bordercolordark="#BEC3ED" bordercolorlight="#BEC3ED">
<tr height=26 style="background:url($request.getContextPath()/image/table_title.gif)" align="center">
<td nowrap width=10%><font color=white>编号</font></td>
<td nowrap width=30%><font color=white>角色名称</font></td>
<td nowrap width=35%><font color=white>角色描述</font></td>
<td nowrap width=25%><font color=white>操作 </font></td>
</tr>
#set ($i=1)
#foreach ($role in $page.getList())
<tr height=23 bgcolor="$page.getOddRowColor()" align="center" >
<td >$!i</td>
<td ><a href="$request.getContextPath()/roleAction.do?method=viewRole&roleId=$!role.getRoleId()" title="$!role.getRoleName()">$!role.getRoleName()</a></td>
<td title="$!role.getMemo()"> $!role.getMemo()</td>
<td >
<a href="$request.getContextPath()/roleAction.do?method=editRole&roleId=$!role.getRoleId()">修改角色</a>
<a href="javascript:if(del_onclick('$role.getCanDelete()')) location='$request.getContextPath()/roleAction.do?method=deleteRole&roleId=$role.getRoleId()'">删除角色</a>
</td>
</tr>
#set ($i=$i+1)
#end
</table>
<br>
<table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td align=right>
<form id=thisForm action="$request.getContextPath()/roleList.do" method="post">
<input type=hidden name=unitId value="$!userinfo.getUnit().getUnitId()">
<input type=hidden name=start value="1">
<input type=hidden name=where value="">
<input type=hidden name=method value="roleList">
</form>
$!page.getPageHeader()
</td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -