📄 queseditor.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" %><%@ 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.school.*" %><html:html xhtml="true"> <head> <title>Question 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/adminques_big.gif" alt="Questions admin" /> Question Editor</h1> <html:errors/> <html:form action="/admin/saveQuestion" method="post" > <html:hidden property="mode" /> <logic:present name="testId"> <input type="hidden" name="testId" value="<bean:write name="testId" />" /> </logic:present> <html:hidden property="quesId" /> <table width="80%" class="editor" > <tr> <th align="right">Title:</th> <td align="left"> <html:text property="title" size="40" maxlength="40"/><span class="superscript">*</span> </td> </tr> <tr> <th align="right">Question:</th> <td align="left"> <html:textarea property="questionText" cols="40" rows="5" /><span class="superscript">*</span> </td> </tr> <tr> <th align="right">Hint:</th> <td align="left"> <html:textarea property="hintText" cols="40" rows="3" /> </td> </tr> <tr> <th align="right">Explanation:</th> <td align="left"> <html:textarea property="explanationText" cols="40" rows="5" /> </td> </tr> <tr> <th align="right">Difficulty:</th> <td align="left"> <% DifficultyEnum[] diffs = DifficultyEnum.getEnums(); for (int didx=0; didx<diffs.length; didx++) { DifficultyEnum diff = diffs[didx]; %> <div><label><html:radio property="difficultyStr" value="<%= diff.getStr() %>" /><%= diff.getName() %></label></div> <% } %> </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> </table> <table width="80%" class="editor" > <tr><th align="center" colspan="2" >Answer:</th></tr> <tr> <td> <label><html:radio property="answer" value="0" />0</label> </td> <td> <html:textarea property="answerChoice0" cols="40" rows="2" /><span class="superscript">*</span> </td> </tr> <tr> <td> <label><html:radio property="answer" value="1" />1</label> </td> <td> <html:textarea property="answerChoice1" cols="40" rows="2" /><span class="superscript">*</span> </td> </tr> <tr> <td> <label><html:radio property="answer" value="2" />2</label> </td> <td> <html:textarea property="answerChoice2" cols="40" rows="2" /><span class="superscript">*</span> </td> </tr> <tr> <td> <label><html:radio property="answer" value="3" />3</label> </td> <td> <html:textarea property="answerChoice3" cols="40" rows="2" /><span class="superscript">*</span> </td> </tr> </table> <div> <html:submit /> <html:cancel /> </div> </html:form> <p class="footnotes">* Required</p> <p class="footnotes">** Only applicable if this question is assigned to a test with "Multi-Questions mode" disabled.</p> <p class="footnotes"> <b>NOTE</b>: Please insert line breaks if you have long lines of text to ensure proper layout when this question is viewed. </p> </body></html:html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -