📄 a201.jsp
字号:
<%@ page contentType="text/html; charset=GBK" language="java" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>查看学科内容</title>
<link href="/css/base.css" rel="stylesheet" type="text/css">
<script language="javascript">
function setValue(obj) {
var oA = document.getElementById("tab1").getElementsByTagName("INPUT");
for (var i = 0; i < oA.length; i++) {
if (oA[i].type = "checkBox") {
oA[i].checked = obj.checked;
}
}
}
function doSubmit1(start) {
var x = document.U05A201Form.type.value;
if(x==0){
document.U05A201Form.action = "/U05A201Action.do?method=search&start=" + start;
document.U05A201Form.submit();
}
else{
document.U05A201Form.action = "/U05A201Action.do?method=searchAll&start=" + start;
document.U05A201Form.submit();
}
}
function searchAll() {
document.U05A201Form.method.value = "searchAll";
document.U05A201Form.submit();
}
function back() {
document.U05A201Form.method.value = "back";
document.U05A201Form.submit();
}
function update() {
var x = document.U05A201Form.type.value;
if(x==0){
document.U05A201Form.method.value = "update";
document.U05A201Form.submit();
}
else{
document.U05A201Form.method.value = "updateAll";
document.U05A201Form.submit();
}
}
</script>
</head>
<body>
<p> </p>
<html:html>
<html:form action="/U05A201Action">
<html:hidden property="method" value="search"/>
<table width="80%" border="0" align="center" cellpadding="4" cellspacing="0">
<tr>
<td width="30%"><span class="font_title">选择题型,进行更详细的查询</span></td>
<td width="20%">
题型:<html:select property="type" >
<html:option value="0">请选择</html:option>
<html:options collection="tqtName" property="tqtId" labelProperty="tqtName"/>
</html:select>
</td>
<td width="20%"><html:errors property="selectError"/></td>
<td width="10%"><html:button property="" styleClass="inputstyle2" onclick="searchAll()">查 询</html:button></td>
</tr>
</table>
<hr width="80%">
<br>
<table width="80%" border="0" align="center" cellpadding="4" cellspacing="0">
<tr>
<td><span class="font_title">查看考题</span></td>
</tr>
</table>
<table width="80%" border="0" align="center" cellpadding="4" cellspacing="1" bgcolor="#7AA1E6" id="tab1">
<tr align="center" bordercolor="1" bgcolor="#FFFFFF">
<td width="10%">题号</td>
<td width="10%">题型</td>
<td width="40%">题目</td>
<td width="10%">使用次数</td>
<td width="10%">
全选
<input type="checkbox" name="checkbox4" value="checkbox" onClick="setValue(this)" class="input-checkbox">
</td>
</tr>
<logic:present name="fenye1">
<logic:iterate id="fenye" name="fenye1" property="rs">
<tr align="center" bordercolor="1" bgcolor="#FFFFFF">
<td><bean:write name="fenye" property="tqId"/></td>
<td><bean:write name="fenye" property="TQtype.tqtName"/></td>
<td>
<html:link href="/U05ForwardA203Action.do?questionID=${fenye.tqId}&method=search">
<bean:write name="fenye" property="tqName"/>
</html:link>
</td>
<td><bean:write name="fenye" property="tqNumber"/></td>
<td width="10%"><input name="aaa" type="checkbox" value="${fenye.tqId}"/></td>
</tr>
</logic:iterate>
</logic:present>
</table>
<logic:present name="fenye1">
<table width="80%" align="center">
<tr>
<td height="20" align="left">
页数:
<bean:write name="fenye1" property="currentPage" />
/
<bean:write name="fenye1" property="totalPage" />
页 每页:
<bean:write name="fenye1" property="range" />
总数:
<bean:write name="fenye1" property="count" />
</td>
<td align="right">
<bean:write name="fenye1" property="fenye" filter="false" />
</td>
</tr>
</table>
</logic:present>
<br>
<table width="80%" border="0" align="center" cellpadding="4" cellspacing="1">
<tr>
<td align="center" colspan="3">
<html:errors property="deleteError"/>
</td>
</tr>
<tr>
<td width="35%" align="right">
<html:button property="" styleClass="inputstyle2" onclick="update()">删 除</html:button>
</td>
<td width="10%" align="center"></td>
<td width="35%" align="left">
<html:button property="" styleClass="inputstyle2" onclick="back()">返 回</html:button>
</td>
</tr>
</table>
</html:form>
</body>
</html:html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -