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

📄 userlist.jsp

📁 老外的在线考试
💻 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="16kb" %><%@ 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" %><html:html xhtml="true">	<head>		<title><fmt:message key="title.admin.userlist" /></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" >		<!--						function addUser()			{				self.location.replace("<cyberdemia:encodeUrl>/admin/editUser.do</cyberdemia:encodeUrl>&mode=new&searchTarget="+escape('<c:out value="${searchTarget}" />'));			}							function viewUser(userId)			{				self.location.replace(					"<cyberdemia:encodeUrl>/admin/viewUser.do</cyberdemia:encodeUrl>&searchTarget="+					escape('<c:out value="${searchTarget}" />') + 					"&userId="+userId );			}							function editUser(userId)			{				self.location.replace(					"<cyberdemia:encodeUrl>/admin/editUser.do</cyberdemia:encodeUrl>&mode=edit&searchTarget="+					escape('<c:out value="${searchTarget}" />') + 					"&userId="+userId );			}							function deleteUser(userId, userEmail) 			{				if ( window.confirm("<fmt:message key="jstext.admin.userlist.confirm.deleteUser1" />"+escape(userEmail)+"<fmt:message key="jstext.admin.userlist.confirm.deleteUser2" />")) 				{					self.location.replace( "<cyberdemia:encodeUrl>/admin/deleteUser.do</cyberdemia:encodeUrl>&userId="+userId );				}			}					// -->		</script>		<html:base/>	</head>	<body>		<%@ include file="/include/header.jsp" %>		<h1><html:img page="/images/adminusers_big.gif" alt="Users admin" /> <fmt:message key="h1.admin.userlist" /></h1>		<form name="searchForm" id="searchForm" action="<cyberdemia:encodeUrl>/admin/getUsers.do</cyberdemia:encodeUrl>" >			<table width="90%" >				<tr>					<th colspan="3"><fmt:message key="text.admin.userlist.searchInstructions" /></th>				</tr>				<tr>					<td width="1%"><input type="text" maxlength="30" length="30" name="searchTarget" value="<c:out value="${searchTarget}" />" /></td>					<td width="1%"><input type="submit" value="<fmt:message key="label.button.search" />" /></td>					<td width="98%">&nbsp;</td>				</tr>			</table>		</form>		<table width="90%" class="viewer" >			<thead>				<tr>					<th class="label" width="48%"><fmt:message key="label.admin.userlist.login" /></th>					<th class="label" width="1%"><fmt:message key="label.admin.userlist.title" /></th>					<th class="label" width="48%"><fmt:message key="label.admin.userlist.name" /></th>					<th class="label" width="1%"><fmt:message key="label.admin.userlist.role" /></th>					<th class="label" width="1%"><fmt:message key="label.admin.userlist.edit" /><span class="superscript">*</span></th>					<th class="label" width="1%"><fmt:message key="label.admin.userlist.delete" /></th>				</tr>			</thead>			<tbody>				<c:forEach var="user" items="${userList}">					<tr>						<td class="value">							<a href="javascript:viewUser('<c:out value="${user.id}" />')" >								<c:out value="${user.login}" />							</a>						</td>						<td class="value">							<c:out value="${user.title}" />						</td>						<td class="value">							<span><c:out value="${user.firstName}" /> <c:out value="${user.lastName}" /></span>						</td>						<td class="value">							<c:choose>								<c:when test="${user.admin}" >									<fmt:message key="text.header.administrator" />								</c:when>								<c:when test="${user.testee}" >									<fmt:message key="text.header.testee" />								</c:when>							</c:choose>						</td>						<td class="value">							<a href="javascript:editUser('<c:out value="${user.id}" />')">								<html:img page="/images/pencil.gif" alt="Click to edit" />							</a>						</td>						<td class="value">							<a href="javascript:deleteUser('<c:out value="${user.id}" />','<cyberdemia:jsString><c:out value="${user.email}" /></cyberdemia:jsString>')">								<html:img page="/images/redcross.gif" alt="Click to delete" />							</a>						</td>					</tr>				</c:forEach>			</tbody>		</table>		<div class="footnotes">* <fmt:message key="text.admin.userlist.footnote.editUser" /></div>		<hr />		<p>			<a href="javascript:addUser()" >				<html:img page="/images/plus.gif" alt="Click to add a new User" /> <fmt:message key="label.link.admin.userlist.addUser" />			</a>		</p>		<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 + -