📄 add.jsp
字号:
<%@ page contentType="text/html; charset=GBK"%>
<%@include file="/common/common.jsp"%>
<%@ page import="com.dc.common.*"%>
<html>
<%
String RenCode = (String) session.getAttribute(SysConstant.RETCODE);
%>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=GBK">
<link rel="stylesheet" href="<%=request.getContextPath()%>/css/style.css" type="text/css">
<script language="javaScript" src="<%=request.getContextPath()%>/scripts/check.js"></script>
<script language="javaScript" src="<%=request.getContextPath()%>/scripts/ajax.js"></script>
<title>角色信息添加</title>
</head>
<body class="navtree">
<form name="addRole" method="POST" action="" target="suibian">
<input type="hidden" name="roleflag" value="1"/>
<input type="hidden" name="optmode" value="add"/>
<html:errors />
<script>
window.name="suibian";
</script>
<%
if (RenCode !=null){
if (SysConstant.SUCRETCODE.equals(RenCode)) {
%>
<script language="javascript">
alert("角色信息增加成功!");
</script>
<%
}else{
%>
<script language="javascript">
alert("角色信息增加失败,请联系管理员!");
</script>
<%
}
session.removeAttribute(SysConstant.RETCODE);
}
%>
<table class="content01">
<tr class="listHead">
<td align=left colspan=4>
角色信息增加
</td>
</tr>
<tr class="listContent">
<td align=right>角色名称:</td>
<td align="left" >
<input type="text" name="rolename" maxlength=30/>
</td>
<td align="right">角色角色描述:</td>
<td align="left">
<input type="text" name="roledesc" maxlength=255/>
</td>
</tr>
<tr class="listContent">
<td align=left colspan=4>
<input type=button class=add onClick="doAdd();" />
<input type=button class=close onClick="window.close();" />
</td>
</tr>
</table>
</form>
</body>
</html>
<script language="javaScript">
function doAdd(){
var items = new CheckItem();
items.add("0|1|rolename|角色名称|-1");
items.add("0|1|roledesc|角色角色描述|-1");
if(!checkForm(document.forms[0],items))
return false;
addRole.action = "systemMgr.do?method=roleAdd";
addRole.submit();
}
</script>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -