📄 add_second_question.jsp
字号:
<%@ page language="java" pageEncoding="GBK"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="/WEB-INF/tld/page.tld" prefix="page" %>
<html>
<head>
<base href="http://localhost:8080/accp_hr/"/>
<title>二级试题==添加页面</title>
</head>
<body bgcolor="#DADEDD" style="background-image: url('images/accphr/main.jpg');background-attachment :fixed ;">
<input type="button" value="返回" onclick="location.href='secondQuestion.do?opsq=toList'" >
<html:form action="secondQuestion" onsubmit="return tijiao();">
<input type="hidden" name="opsq" value="doAdd"/>
<input type="hidden" name="secondQuestion.firstKindName" value="" id="firstqn"/>
<table align="center" width="100%">
<tr>
<td>
<table border="1" cellspacing="0" align="center" width="90%" bordercolor="black" style="font-size: 12px">
<tr>
<th>一级试题</th>
<td>
<html:select property="secondQuestion.firstKindId" styleId="firstqu">
<c:if test="${firstlist!=null}">
<c:forEach var="item" items="${firstlist}">
<html:option value="${item.firstKindId}">${item.firstKindName}</html:option>
</c:forEach>
</c:if>
</html:select>
</td>
</tr>
<tr>
<th>二级试题</th>
<td>
<html:text property="secondQuestion.secondKindName" styleId="secondname"></html:text>
</td>
</tr>
</table></td>
</tr>
<tr>
<td align="center">
<html:submit value="保存"></html:submit> <html:reset value="重置"></html:reset>
</td>
</tr>
</table>
</html:form>
</body>
</html>
<script type="text/javascript">
<!--
function tijiao(){
var kindn=document.getElementById("secondname").value;
if(kindn==''){
alert("试题名称不能为空");
return false;
}
setFirstName();
}
//设置一级试题Name
function setFirstName(){
var temp=document.getElementById("firstqu").options;
for(var i=0;i<temp.length;i++){
if(temp[i].selected)
{
document.getElementById("firstqn").value=temp[i].innerText;
}
}
}
//-->
</script>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -