📄 adminuser_modify.jsp.svn-base
字号:
<%@ page contentType="text/html;charset=utf-8" %>
<%@ include file="../../include/include.jsp"%>
<html>
<head>
<title></title>
<link rel="stylesheet" type="text/css" href="css/pub.css">
<script>
function checkform() {
if(adminUserActionForm.userName.value=="") {
window.alert("<bean:message key="admin.authority.list.username.limit"/>");
adminUserActionForm.userName.focus();
return false;
}
if(adminUserActionForm.loginName.value.length<4) {
window.alert("<bean:message key="admin.authority.list.username.length"/>");
adminUserActionForm.loginName.focus();
return false;
}
if(!check_name(adminUserActionForm.loginName.value)) {
window.alert("<bean:message key="admin.authority.list.username.code"/>");
adminUserActionForm.loginName.focus();
return false;
}
if(adminUserActionForm.password.value.length<4 || adminUserActionForm.password.value.length>15) {
window.alert("<bean:message key="admin.authority.list.password.length"/>");
adminUserActionForm.password.focus();
return false;
}
return true;
}
function sel(tt) {
var t = eval(tt);
var r = window.event.srcElement.checked
if(t) {
for(i=0;i<t.childNodes.length;i++) {
cc = t.childNodes[i];
if(cc) {
if(cc.tagName=="INPUT" && cc.type=="checkbox") cc.checked = r;
}
}
}
}
function check_name(check_obj){
var i,j,strTemp;
strTemp="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";
if ( check_obj.length== 0)
return false;
for (i=0;i<check_obj.length;i++)
{
j=strTemp.indexOf(check_obj.charAt(i));
if (j==-1)
{
return false;
}
}
return true;
}
</script>
</head>
<body topmargin="2" leftmargin="2">
<table width="450" align="center">
<tr>
<td>
<b><bean:message key="admin.authority.list.user.manage"/> >> <bean:write name="adminUserActionForm" property="result" /></b>
</td>
</tr>
<tr>
<td>
<table width="100%" bgcolor="#6DB1DE" cellpadding="4" cellspacing="1">
<html:form action="adminUserAction" onsubmit="return checkform();">
<html:hidden property="method" />
<html:hidden property="userId" />
<tr>
<td align="right" bgcolor="#EFF8FF" class="ajc3" width="120"><bean:message key="admin.authority.list.user.login"/>:</td>
<td bgcolor="white" width="330"><logic:equal name="adminUserActionForm" property="method" value="addAdminUserResult">
<html:text property="loginName" size="20" maxlength="20" />
</logic:equal><logic:equal name="adminUserActionForm" property="method" value="modifyAdminUserResult">
<bean:write name="adminUserActionForm" property="loginName" /><html:hidden property="loginName" />
</logic:equal></td>
</tr>
<tr>
<td align="right" bgcolor="#EFF8FF" class="ajc3"><bean:message key="admin.login.password"/>:</td>
<td bgcolor="white"><html:password property="password" size="20" maxlength="15" /></td>
</tr>
<tr>
<td align="right" bgcolor="#EFF8FF" class="ajc3"><bean:message key="admin.authority.list.username"/>:</td>
<td bgcolor="white"><html:text property="userName" size="20" maxlength="20" /></td>
</tr>
<tr>
<td align="right" bgcolor="#EFF8FF" class="ajc3"><bean:message key="admin.authority.list.department"/>:</td>
<td bgcolor="white"><html:text property="department" size="20" maxlength="20" /></td>
</tr>
<tr>
<td bgcolor="#F8FAFF" class="ajc3" colspan=2 style="padding-left:50px">用户角色</td>
</tr>
<logic:notEmpty name="adminUserActionForm" property="roleList">
<tr>
<td bgcolor="white" colspan=2 style="padding-left:15px" >
<logic:iterate id="role" name="adminUserActionForm" property="roleList">
<html:multibox property="roles">
<bean:write name="role" property="roleId" />
</html:multibox>
<bean:write name="role" property="roleName" />
</logic:iterate>
</td>
</tr>
</logic:notEmpty>
<tr>
<td bgcolor="white" colspan=2 height="10"></td>
</tr>
<tr>
<td colspan=2 align=center bgcolor="white"><input type="submit" value="<bean:message key="admin.modul.modify.submit"/>"> <input type="reset" value="<bean:message key="admin.modul.modify.reset"/>"></td>
</tr>
</html:form>
</table>
</td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -