📄 testeditor.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 language="java" import="com.cyberdemia.cybertester.admin.*,com.cyberdemia.school.*" %><%@ 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" %><html:html xhtml="true"> <head> <title>Test 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 onload="parent.disableHierarchyTree()"> <%@ include file="/include/header.jsp" %> <h1><html:img page="/images/admintests_big.gif" alt="Tests admin" /> Test Editor</h1> <html:errors/> <html:form action="/admin/saveTest" method="post"> <input type="hidden" name="mode" value="<%= pageContext.findAttribute(AdminConstants.MODE_KEY) %>" /> <html:hidden property="id" /> <table width="100%" class="editor" > <tr> <th align="right">Hierarchy path:</th> <td align="left"> <html:text property="ownerHierId" readonly="true" size="20" /> </td> </tr> <tr> <th align="right">Name:</th> <td align="left"> <html:text property="name" size="40" maxlength="40"/> </td> </tr> <tr> <th align="right">Passing percentage:</th> <td align="left"> <html:text property="passPercentage" size="2" maxlength="3"/>% </td> </tr> <tr> <th align="right">Time limit (seconds):</th> <td align="left"> <html:text property="timeLimitSeconds" size="4" maxlength="6" /><span class="superscript">*</span> </td> </tr> <tr> <th align="right" >Multi-Questions mode:</th> <td align="left"> <html:checkbox property="multiQuestionsMode" /> </td> </tr> <tr> <th align="right" >Suppress Questions feedback:</th> <td align="left"> <html:checkbox property="suppressQuestionFeedback" /><span class="superscript">**</span> </td> </tr> <tr> <th align="right">Suppress Test end feedback:</th> <td align="left"> <html:checkbox property="suppressTestEndFeedback" /> </td> </tr> </table> <div class="footnotes">* Only applicable if "Multi-Questions mode" is enabled.</div> <div class="footnotes">** Only applicable if "Multi-Questions mode" is disabled.</div> <logic:equal name="mode" value="edit"> <hr /> <h2>Questions</h2> <table width="100%" class="editor" > <logic:greaterThan name="testData" property="relatedResourcesCount" value="0" > <tr><th colspan="2">Associated</th></tr> <tr><td colspan="2">Tick checkbox to deassociate Question from Test.</td></tr> <logic:iterate id="relResource" name="testData" property="relatedResources" > <tr> <td width="1%"> <% ResourceListData relRes = (ResourceListData)pageContext.findAttribute("relResource"); %> <input type="checkbox" name="<%= AdminConstants.DEASSOC_PARAM_PREFIX+relRes.getId() %>" value="true" /> </td> <td width="99%"> <bean:write name="relResource" property="name" /> </td> </tr> </logic:iterate> </logic:greaterThan> <logic:greaterThan name="testData" property="unrelatedResourcesCount" value="0" > <tr><th colspan="2">Available</th></tr> <tr><td colspan="2">Tick checkbox to associate Question with Test.</td></tr> <logic:iterate id="unrelResource" name="testData" property="unrelatedResources"> <tr> <td width="1%"> <% ResourceListData unrelRes = (ResourceListData)pageContext.findAttribute("unrelResource"); %> <input type="checkbox" name="<%= AdminConstants.ASSOC_PARAM_PREFIX+unrelRes.getId() %>" value="true" /> </td> <td width="99%"> <bean:write name="unrelResource" property="name" /> </td> </tr> </logic:iterate> </logic:greaterThan> </table> </logic:equal> <div style="margin-top:10px;"> <html:submit /> <html:cancel /> </div> </html:form> <p> <html:link page="/admin/goAdmin.do"><html:img page="/images/home.gif" alt="Click to return to Admin Home" />Admin Home</html:link> </p> <%@ include file="/include/footer.jsp" %> </body></html:html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -