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

📄 usereditor.jsp

📁 老外的在线考试
💻 JSP
字号:
<%-- * CyberTester - J2EE Web application for creating, delivering and managing tests/exams/surveys.  * Copyright (C) 2003 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 errorPage="/exception.jsp" language="java" %><%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %><%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %><%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %><%@ page import="com.cyberdemia.user.*" %><html:html xhtml="true">	<head>		<title>User Editor</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" />		<html:base/>	</head>	<body>		<%@ include file="/include/header.jsp" %>		<html:errors/>		<h1><html:img page="/images/adminusers_big.gif" alt="Users admin" /> User Editor</h1>		<html:form action="/admin/saveUser" method="post" >			<html:hidden property="id" />			<input type="hidden" name="mode" value="<bean:write name="mode" />" />			<table width="95%" class="editor" >				<tr>					<th align="right">Email:</th>					<td align="left" nowrap="nowrap" >						<logic:equal name="mode" value="new" >							<html:text property="email" size="40" maxlength="40" /> *						</logic:equal>						<logic:notEqual name="mode" value="new" >							<html:text property="email" readonly="true" size="40" maxlength="40" />						</logic:notEqual>					</td>				</tr>				<tr>					<th align="right">Title:</th>					<td align="left">						<html:select property="title">							<html:option value="none" >NONE</html:option>							<html:option value="mr" >Mr</html:option>							<html:option value="mrs" >Mrs</html:option>							<html:option value="miss" >Miss</html:option>							<html:option value="ms" >Ms</html:option>							<html:option value="doc" >Doctor</html:option>						</html:select>					</td>				</tr>				<tr>					<th align="right">First name:</th>					<td align="left" nowrap="nowrap" >						<html:text property="firstName" size="40" maxlength="40" /> *					</td>				</tr>				<tr>					<th align="right">Last name:</th>					<td align="left" nowrap="nowrap" >						<html:text property="lastName" size="40" maxlength="40" /> *					</td>				</tr>				<tr>					<th align="right">Group:</th>					<td align="left">						<html:select property="groups">							<html:option value="student" >Student</html:option>							<html:option value="mgr" >Manager</html:option>						</html:select>					</td>				</tr>				<tr>					<th align="right">Password:</th>					<td align="left" nowrap="nowrap" >						<html:password property="password" size="20" maxlength="20" />						<logic:equal name="mode" value="new" >*</logic:equal>					</td>				</tr>				<tr>					<th align="right">Confirm password:</th>					<td align="left" nowrap="nowrap" >						<html:password property="password2" size="20" maxlength="20" />						<logic:equal name="mode" value="new" >*</logic:equal>					</td>				</tr>			</table>			<p class="footnotes">* required</p>			<logic:equal name="mode" value="edit" >				<table width="95%" class="editor" >					<logic:present name="userTestList" >						<tr>							<th nowrap="nowrap" width="97%">Assigned tests</th>							<th nowrap="nowrap" width="1%">Questions</th>							<th width="1%">Hierarchy</th>							<th nowrap="nowrap" width="1%">Remove</th>						</tr>						<logic:iterate id="assignedTute" name="userTestList" >							<tr>								<td><bean:write name="assignedTute" property="name" /></td>								<td><bean:write name="assignedTute" property="relatedResourcesCount" /></td>								<td><bean:write name="assignedTute" property="ownerHierId" /></td>								<td><input type="checkbox" name="remove_<bean:write name="assignedTute" property="id" />" value="true" /></td>							</tr>						</logic:iterate>					</logic:present>					<logic:present name="notUserTestList" >						<tr>							<th nowrap="nowrap" width="97%">Available tests</th>							<th width="1%">Questions</th>							<th width="1%">Hierarchy</th>							<th nowrap="nowrap" width="1%">Add</th>						</tr>						<logic:iterate id="availableTute" name="notUserTestList" >							<tr>								<td><bean:write name="availableTute" property="name" /></td>								<td><bean:write name="availableTute" property="relatedResourcesCount" /></td>								<td><bean:write name="availableTute" property="ownerHierId" /></td>								<td><input type="checkbox" name="add_<bean:write name="availableTute" property="id" />" value="true" /></td>							</tr>						</logic:iterate>					</logic:present>				</table>			</logic:equal>			<div>				<html:submit />				<html:cancel />			</div>		</html:form>		<%@ include file="/include/footer.jsp" %>	</body></html:html>

⌨️ 快捷键说明

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