📄 q_show_single.jsp
字号:
<%@page contentType="text/html; charset=GBK"%>
<%@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>
<head>
<title>
<bean:message key="question.title.details"/>
</title>
<meta http-equiv="Content-Type" content="text/html; charset=GBK">
<link href="../../css/main.css" rel="stylesheet" type="text/css">
<script language="javascript" type="text/javascript">
<!--
function load_img(p_src,write_id){
var t_html;
if(p_src!=''){
t_html="<img src=\'"+p_src+"\' onLoad=\'javascript:if(this.width>240){this.width=240;}if(this.height>240){this.height=240;}\'>";
} else {
t_html="";
}
write_id.innerHTML=t_html;
}
//-->
</script>
</head>
<body>
<table width="600" border="0" align="center" cellpadding="0" cellspacing="0" class="tabletoolbar">
<tr>
<td class="tabletitletext">
<div align="center" class="tabletitletext">
<bean:message key="question.title.single"/>
</div>
</td>
</tr>
</table>
<!--DWLayoutTable-->
<html:form action="/admin/question/AUD_QuestionAction.do?action=single&method=updateQuestion" method="post" enctype="multipart/form-data">
<table width="600" border="0" align="center" cellpadding="7" cellspacing="0" class="InputFrameMain">
<bean:message key="question.baseinfo"/>
<tr>
<td width="3%" nowrap> </td>
<td width="11%" nowrap>
<strong>
<bean:message key="question.class"/>
</strong>
</td>
<td width="22%" nowrap>
<html:select styleClass="input" name="questionActionForm" property="question.q_class">
<html:optionsCollection name="q_classOpts"/>
</html:select>
</td>
<td width="11%" nowrap>
<div align="center">
<strong>
<bean:message key="question.knowledge"/>
</strong>
</div>
</td>
<td nowrap>
<html:select styleClass="input" name="questionActionForm" property="question.q_knowledge">
<html:optionsCollection name="q_knowledgeOpts"/>
</html:select>
</td>
<td width="10%" nowrap>
<div align="center">
<strong>
<bean:message key="question.value"/>
</strong>
</div>
</td>
<td width="18%" nowrap>
<span class="InputAreaCell">
<html:text styleClass="input" name="questionActionForm" maxlength="10" property="question.q_value" size="10"/>
</span>
</td>
<td width="3%" nowrap> </td>
</tr>
<tr>
<td nowrap> </td>
<td nowrap>
<strong>
<bean:message key="question.type"/>
</strong>
</td>
<td nowrap>
<html:select styleClass="input" name="questionActionForm" property="question.q_type" disabled="true">
<html:optionsCollection name="q_typeOpts"/>
</html:select>
</td>
<td nowrap>
<div align="center">
<strong>
<bean:message key="question.difficulty"/>
</strong>
</div>
</td>
<td nowrap>
<html:select styleClass="input" name="questionActionForm" property="question.q_difficulty">
<html:optionsCollection name="q_difficultyOpts"/>
</html:select>
</td>
<td nowrap>
<div align="center"> </div>
</td>
<td nowrap>
<span class="InputAreaCell"> </span>
</td>
<td nowrap> </td>
<td height="30" colspan="8" nowrap>
<div align="center"> </div>
<div align="center">
<tr> </tr>
</div></td></tr> </table>
<br>
<table width="595" border="0" align="center" cellpadding="7" cellspacing="0" class="InputFrameMain">
<bean:message key="question.content"/>
<tr>
<td width="10%" nowrap>
<bean:message key="question.content"/>
<span class="InputAreaCell">
<strong>
<br>
</strong>
</span>
</td>
<td width="90%">
<html:textarea cols="60" rows="5" name="questionActionForm" property="question.q_content"> </html:textarea>
</td>
</tr>
<tr>
<td height="30" colspan="8" nowrap>
<div align="center"> </div>
<div align="center"> </div>
</td>
</tr>
</table>
<br>
<table width="595" border="0" align="center" cellpadding="7" cellspacing="0" class="InputFrameMain">
<bean:message key="question.answer"/>
<tr>
<td width="50%" nowrap>
<span class="InputAreaCell">
<strong>
<bean:message key="question.option"/>
<br>
<html:radio value="A" name="questionActionForm" property="question.q_standard"/>
<html:text name="questionActionForm" property="textfield1"/>
<br>
<html:radio value="B" name="questionActionForm" property="question.q_standard"/>
<html:text name="questionActionForm" property="textfield2"/>
<br>
<html:radio value="C" name="questionActionForm" property="question.q_standard"/>
<html:text name="questionActionForm" property="textfield3"/>
<br>
<html:radio value="D" name="questionActionForm" property="question.q_standard"/>
<html:text name="questionActionForm" property="textfield4"/>
<br>
</strong>
</span>
</td>
<td width="50%">
<span class="InputAreaCell">
<strong>
<bean:message key="question.picture"/>
<br>
<html:file name="questionActionForm" property="file" onchange="load_img(this.value,img);"/>
<br>
<bean:message key="question.preview"/>
<logic:notEmpty name="questionActionForm" property="question.q_picture">
<bean:define id="picture" name="questionActionForm" property="question.q_picture"/>
<html:img align="center" src='<%="../../upload/images/"+picture%>' width="80" height="80"/>
</logic:notEmpty>
<div id="img"></div>
<br>
</strong>
</span>
</td>
</tr>
<tr>
<td nowrap>
<strong> </strong>
</td>
<td nowrap> </td>
</tr>
<tr>
<html:hidden name="questionActionForm" property="question.q_id"/>
<html:hidden name="questionActionForm" property="question.q_picture"/>
<logic:notEqual value="ok" name="questionActionForm" property="submit_reset">
<td height="30" colspan="8" nowrap>
<div align="center"> </div>
<div align="center">
<html:submit styleClass="button">
<bean:message key="question.submit"/>
</html:submit>
<html:reset styleClass="button">
<bean:message key="question.reset"/>
</html:reset>
<html:link action="/admin/question/listQuestionAction" styleClass="button">
<bean:message key="button.back"/>
</html:link>
</div>
</td>
</logic:notEqual>
<td width="33%">
</td>
</tr>
</table>
</html:form>
</body>
</html:html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -