⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 useradd.jsp

📁 功能说明: 前台:文章浏览、发表留言、Game、Music 后台:文章相关:发表文章、修改文章、删除文章、批量移动文章 栏目相关:增加栏目、修改栏目、删除栏目、栏目链接、栏目排序 系统栏目分
💻 JSP
字号:
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ include file="/app/inc/taglibs2.jsp"%>
<html:html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title><bean:message key="admin.left.adduser"/></title>
<script language="JavaScript" type="text/javascript">
<!--
	function onAddUser(){
	  if (document.forms[0].password1.value.length>1 && document.forms[0].password1.value.length <6) {
			alert("用户密码长度不能够小于6.");
			document.forms[0].password1.focus();
			return false;
		}
	  if (document.forms[0].password1.value.length>1 && document.forms[0].password2.value.length <6) {
			alert("用户密码长度不能够小于6.");
			document.forms[0].password2.focus();
			return false;
		}
	  
	  if (document.forms[0].password1.value != document.forms[0].password2.value) {
			alert("两次密码不一致,请重新填写.");
			document.forms[0].password1.value='';
			document.forms[0].password2.value='';
			document.forms[0].password1.focus();
			return false;
		}
	  
	}
	//-->
</script>
</head>
<body>
<table class="tab1" align="center" width="780px"  cellSpacing="0" cellPadding="0" >
	<tr><td width="20%" valign="top"><%@ include file="adminleft.jsp"%></td>
	<td valign="top" width="80%" class="td_l"><br><br><br><br>
		<table class="tab1" width="60%" align="center" cellSpacing="0" cellPadding="0">
		<html:form action="/manage/AddUserAction.html" method="post" onsubmit="return onAddUser()" focus="username">
		   <tr class="tr_1" height="28px">
				<td colspan="2" align="center" class="td_b">
					<logic:equal name="action" value="update">
						<bean:message key="admin.user.update"/>
					</logic:equal>
					<logic:notEqual name="action" value="update">
						<bean:message key="admin.left.adduser"/>
					</logic:notEqual>
				</td>
			</tr>
			<tr align="center">
				<td class="td_b"><bean:message key="admin.user.name"/>:</td>
				<td class="td_lb" height="22px">
				<logic:equal name="action" value="update">
					<input type="hidden" name="id" value="<bean:write name="curUser" property="id"/>">
					<input type="hidden" name="username" value="<bean:write name="curUser" property="username"/>">
					<input type="hidden" name="action" value="<bean:write name="action" />">
					<bean:write name="curUser" property="username" />
				</logic:equal>
				<logic:notEqual name="action" value="update">
					<input type="text" name="username" value="<bean:write name="curUser" property="username" />" />
				</logic:notEqual>
				</td>
			</tr>
			<tr align="center">
				<td class="td_b"><bean:message key="admin.user.password1"/>:</td>
				<td class="td_lb"><html:password property="password1"/></td>
			</tr>
			<tr align="center">
				<td class="td_b"><bean:message key="admin.user.password2"/>:</td>
				<td class="td_lb"><html:password property="password2"/></td>
			</tr>
			<tr align="center">
				<td class="td_b"><bean:message key="admin.user.type"/>:</td>
				<td class="td_lb">
					<html:select property="usergroup" value="<%=request.getAttribute("groupid").toString()%>">
					<html:options collection="gList" labelProperty="name" property="id"/>
					</html:select>
				</td>
			</tr>
			<tr>
				<td align="center" colspan="2">
					<input type="submit" value="<bean:message key="all.submit"/>"/>&nbsp;&nbsp;&nbsp;&nbsp;
					<html:cancel><bean:message key="all.cancel"/></html:cancel>
				</td>
			</tr>
			<tr>
				<td colspan="2"><font color="red"><html:errors/></font></td>
			</tr>
			</html:form>
		</table>
	</td>
	</tr>
</table>
</body>
</html:html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -