📄 groupeditor.jsp
字号:
<%-- * CyberTester - J2EE Web application for creating, delivering and managing tests/exams/surveys. * Copyright (C) 2004 CyberDemia Research and Services Pty Ltd * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program (see the file COPYING); if not, write to the * Free Software Foundation, Inc., * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * * See the COPYING file located in the top-level-directory of * the archive of this program for complete text of license.--%><%@ page language="java" buffer="64kb" %><%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %><%@ taglib uri="/WEB-INF/c.tld" prefix="c" %><%@ taglib uri="/WEB-INF/fmt.tld" prefix="fmt" %><%@ taglib uri="/WEB-INF/cd_core.tld" prefix="cyberdemia" %><%@ taglib uri="/WEB-INF/cd_cybertester.tld" prefix="cybertester" %><html:html xhtml="true"> <head> <title><fmt:message key="title.admin.groupeditor" /></title> <meta http-equiv="pragmas" content="no-cache" /> <meta http-equiv="cache-control" content="no-cache" /> <meta http-equiv="expires" content="0" /> <link rel="stylesheet" href="<%= request.getContextPath() %>/cybertester.css" type="text/css" /> <link rel="stylesheet" href="<%= request.getContextPath() %>/admin/admin.css" type="text/css" /> <script type="text/javascript" src="<%= request.getContextPath() %>/utils.js" ></script> <script type="text/javascript" > <!-- var cancelling = false; function cancelClicked() { cancelling = true; } function validateForm(form ) { if (cancelling) { return true; } if (form.elements["name"].value.trim().length ==0) { alert("<cyberdemia:jsString><fmt:message key="jstext.admin.groupeditor.groupForm.error.missingName" /></cyberdemia:jsString>"); form.elements["name"].focus(); return false; } return true; } // --> </script> <html:base/> </head> <body> <%@ include file="/include/header.jsp" %> <h1><html:img page="/images/adminusers_big.gif" alt="Groups admin" /> <fmt:message key="h1.admin.groupeditor" /></h1> <html:errors/> <cybertester:hierarchyNode /> <hr /> <html:form action="/admin/saveGroup" method="post" styleId="groupForm" onsubmit="return validateForm(this);" > <html:hidden property="id" /> <html:hidden property="mode" /> <c:if test="${not adminGroupForm.new}" > <html:hidden property="searchTarget" /> </c:if> <table width="95%" class="editor" > <tr> <th align="right"><fmt:message key="label.admin.groupeditor.groupForm.name" /></th> <td align="left" nowrap="nowrap" > <html:text property="name" size="40" maxlength="40" /> </td> </tr> </table> <c:if test="${not adminGroupForm.new}" > <table width="95%" class="editor" > <c:if test="${adminGroupForm.users != null}" > <tr> <th nowrap="nowrap" colspan="3"><fmt:message key="label.admin.groupeditor.groupForm.userList.assigned" /></th> </tr> <tr> <th nowrap="nowrap" width="50%"><fmt:message key="label.admin.groupeditor.groupForm.userList.login" /></th> <th nowrap="nowrap" width="49%"><fmt:message key="label.admin.groupeditor.groupForm.userList.name" /></th> <th nowrap="nowrap" width="1%"><fmt:message key="label.admin.groupeditor.groupForm.userList.remove" /></th> </tr> <c:forEach var="assignedUser" items="${adminGroupForm.users}" > <tr> <td><c:out value="${assignedUser.login}" /></td> <td><c:out value="${assignedUser.lastName}" />, <c:out value="${assignedUser.firstName}" /></td> <td><input type="checkbox" name="remove_<c:out value="${assignedUser.id}" />" value="true" /></td> </tr> </c:forEach> </c:if> </table> </c:if> <div> <html:submit><fmt:message key="label.button.submit" /></html:submit> </div> </html:form> <hr /> <c:if test="${not adminGroupForm.new}" > <form name="searchUserForm" id="searchUserForm" action="<cyberdemia:encodeUrl>/admin/getUsersForGroupEditor.do</cyberdemia:encodeUrl>" > <input type="hidden" name="mode" value="searchUsers" /> <input type="hidden" name="groupId" value="<c:out value="${adminGroupForm.id}" />" /> <table width="95%" > <tr> <th colspan="3"><fmt:message key="text.admin.groupeditor.searchUsers.searchInstructions" /></th> </tr> <tr> <td width="1%"><input type="text" maxlength="30" length="30" name="searchTarget" value="<c:out value="${adminGroupForm.searchTarget}" />" /></td> <td width="1%"><input type="submit" value="<fmt:message key="label.button.search" />" /></td> <td width="98%"> </td> </tr> </table> </form> <c:if test="${not empty userList}" > <form id="addUserToGroupForm" name="addUserToGroupForm" action="<cyberdemia:encodeUrl>/admin/addUserToGroup.do</cyberdemia:encodeUrl>" method="post" > <input type="hidden" name="mode" value="addUsers" /> <input type="hidden" name="groupId" value="<c:out value="${adminGroupForm.id}" />" /> <input type="hidden" name="searchTarget" value="<c:out value="${adminGroupForm.searchTarget}" />" /> <table width="95%" class="viewer" > <thead> <tr> <th class="label" width="1%" ><fmt:message key="label.admin.groupeditor.userList.addUser" /></th> <th class="label" width="49%" ><fmt:message key="label.admin.userlist.login" /></th> <th class="label" width="50%" ><fmt:message key="label.admin.userlist.name" /></th> </tr> </thead> <tbody> <c:forEach var="user" items="${userList}"> <tr> <td class="value"> <input type="checkbox" name="<c:out value="${addUserParamPrefix}" /><c:out value="${user.id}" />" value="true" /> </td> <td class="value"> <c:out value="${user.login}" /> </td> <td class="value"> <span><c:out value="${user.firstName}" /> <c:out value="${user.lastName}" /></span> </td> </tr> </c:forEach> <tr> <td colspan="3"> <input type="submit" value="<fmt:message key="label.button.admin.groupeditor.userList.addUser" />" /> </td> </tr> </tbody> </table> </form> </c:if> </c:if> <hr /> <p> <html:link page="/admin/goAdmin.do"><html:img page="/images/home.gif" alt="Click to return to Admin Home" /> <fmt:message key="label.link.adminHome" /></html:link> </p> <%@ include file="/include/footer.jsp" %> </body></html:html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -