📄 d049dc729630001d1f81bebe3c68a6df
字号:
<%@ page language="java" import="java.util.*" pageEncoding="gb2312"%>
<%@ include file="/commons/taglibs.jsp" %>
<html>
<head>
<title>My JSP 'clientList.jsp' starting page</title>
<%@ include file="/commons/meta.jsp" %>
<script Language="JavaScript">
function CheckForm()
{
if(document.form1.USER_PRIV.value=="1")
{ if(!window.confirm("本角色为内置的‘超级系统管理员’角色,确定要改其名称吗?"))
return (false);
}
if(document.form1.description.value=="")
{ alert("角色描述不能为空!");
return (false);
}
if(document.form1.roleName.value=="")
{ alert("角色称谓不能为空!");
return (false);
}
}
</script>
</head>
<body class="bodycolor" topmargin="5" onload="document.form1.PRIV_NO.focus();">
<table class="title1">
<tr>
<td class="Big"><img src="${ctx }/images/edit.gif" WIDTH="16" HEIGHT="16" align="absmiddle"><span class="big3"> 新建角色</span>
</td>
</tr>
</table>
<form action="role.do" method="post" name="form1" onsubmit="return CheckForm();">
<html:hidden property="p" value="save"/>
<html:hidden property="id" value="${roleForm.id }"/>
<table class="tablestyle1">
<tr>
<td nowrap class="TableData" width="25%">角色名称:</td>
<td nowrap class="TableData">
<input type="text" name="roleName" class="BigInput" size="20" maxlength="100" value="${roleForm.roleName }">
<html:text property="roleName" class="BigInput" size="20" maxlength="100"/>
<font color="red"><html:errors property="roleName"/></font>
</td>
</tr>
<tr>
<td nowrap class="TableData">角色描述:</td>
<td nowrap class="TableData">
<input type="text" name="description" class="BigInput" size="60" maxlength="100" value="${roleForm.description }">
<font color="red"><html:errors property="roleName"/></font>
</td>
</tr>
<td class="TableControl" colspan="2" align="center">
<input type="hidden" value="" name="USER_PRIV">
<input type="submit" value="确定" class="BigButton">
<input type="button" value="返回" class="BigButton" onclick="history.back(-1)">
</td>
</table>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -