📄 adduser.jsp
字号:
<jsp:include page="/include/global.jsp"/>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ page contentType="text/html; charset=GBK" %>
<html:html>
<head>
<title><bean:message key="global.productCode"/> <bean:message key="global.version"/></title>
<base target="_self">
<meta http-equiv="Pragma" content="no-cache">
<link rel="stylesheet" type="text/css" href="../../common/olstyle.css">
<script language="JavaScript" src="../../common/meizzDate.js"></script>
<script language="Javascript1.1" src="../../staticJavascript.jsp"></script>
<script language="JavaScript">
function validate(theForm) {
if (theForm.username.value.length<1) {
alert("请填入用户名!");
return false;
}
else if (theForm.password.value.length<1){
alert("请填入密码!");
return false;
}
else if (theForm.name.value.length<1){
alert("请填入姓名!");
return false;
}
else if (theForm.departID.value.length<1){
alert("请选择部门!");
return false;
}
else if (theForm.position.value.length<1){
alert("请填入职务!");
return false;
}
else if (theForm.permission.value.length<1){
alert("请填入权限范围!");
return false;
}
else if (theForm.email.value.length<1){
alert("请填入邮件地址!");
return false;
}
else if (theForm.phone.value.length<1){
alert("请填入联系电话!");
return false;
}
else if (theForm.mobile.value.length<1){
alert("请填入手机号码!");
return false;
}
return true;
}
</script>
</head>
<body >
<html:form action="/pages/sa/user/saveUser.do" onsubmit="return validate(this);">
<table width="90%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td align="center" valign="top">
</td>
</tr>
<tr>
<td align="center" valign="top">
<table width="100%" height="25" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="20" bgcolor="#669999"><div align="center"><font color="#FFFF99">添加用户</font></div></td>
</tr>
</table>
<table width="100%" border="0" align="center" cellpadding="2" cellspacing="2">
<tr class="inputRow">
<td align="right" width="100"><bean:message key="global.red_asterisk"/> 用户名 </td>
<td><html:text property="username" maxlength="32" title="32个字符以内" style="width:160"/></td>
</tr>
<tr class="inputRow">
<td align="right" width="100"><bean:message key="global.red_asterisk"/> 用户密码 </td>
<td><html:password property="password" maxlength="32" title="32个字符以内" style="width:160"/></td>
</tr>
<tr class="inputRow">
<td align="right" width="100"><bean:message key="global.red_asterisk"/> 姓名 </td>
<td><html:text property="name" maxlength="32" title="32个字符以内" style="width:160"/></td>
</tr>
<tr class="inputRow">
<td align="right" width="100"><bean:message key="global.red_asterisk"/> 所属部门 </td>
<td>
<html:select property="departID" style="width:160" size="1">
<html:option value="">--------请选择---------</html:option>
<jsp:include page="/getcategories?type=depart"/>
<html:options collection="departments" property="departID" labelProperty="departName"/>
</html:select></td>
</tr>
<tr class="inputRow">
<td align="right" width="100"><bean:message key="global.red_asterisk"/> 职务职称 </td>
<td><html:text property="position" maxlength="32" title="32个字符以内" style="width:160"/></td>
</tr>
<tr class="inputRow">
<td align="right" width="100"><bean:message key="global.red_asterisk"/> 权限范围 </td>
<td><html:select property="permission" style="width:160" size="1">
<html:option value="">--------请选择---------</html:option>
<html:option value="SA">系统管理员</html:option>
<html:option value="projectMember">普通用户</html:option>
</html:select></td>
</tr>
<tr class="inputRow">
<td align="right" width="100"><bean:message key="global.red_asterisk"/> Email </td>
<td><html:text property="email" maxlength="32" title="32个字符以内" style="width:160"/></td>
</tr>
<tr class="inputRow">
<td align="right" width="100"><bean:message key="global.red_asterisk"/> 联系电话 </td>
<td><html:text property="phone" maxlength="12" title="12个字符以内" style="width:160"/></td>
</tr>
<tr class="inputRow">
<td align="right" width="100"><bean:message key="global.red_asterisk"/> 手机号码 </td>
<td><html:text property="mobile" maxlength="11" title="11个字符以内" style="width:160"/></td>
</tr>
</table>
<hr>
<jsp:include page="/pages/include/savebuttons.jsp"/>
</table>
<br>
</td>
</tr>
</table>
</html:form>
<iframe width=174 height=189 name="gToday:normal:agenda.js" id="gToday:normal:agenda.js" src="../../common/ipopeng.htm" scrolling="no" frameborder="0" style="visibility:visible; z-index:999; position:absolute; left:-500px; top:0px;"></iframe>
</body>
</html:html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -