📄 a100.jsp
字号:
<%@ page language="java" import="java.util.*" contentType="text/html; charset=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://struts.apache.org/tags-tiles" prefix="tiles" %>
<html:html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
<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 sub(id){
document.u04A100Form.action="/a100.do?method=sear&id="+id;
document.u04A100Form.submit();
}
function doSubmit1(start) {
document.u04A100Form.action="/a100.do?method=find&start="+start;
document.u04A100Form.submit();
}
function add(id){
document.u04A100Form.action="/a100.do?method=add&id="+id;
document.u04A100Form.submit();
}
</Script>
</head>
<body>
<table width="80%" border="0" align="center" cellpadding="4" cellspacing="0">
<tr>
<td><span class="font_title">试题添加</span></td>
</tr>
</table>
<html:form action="/a100.do">
<center>
学科:
<html:select property="cSubject.SSid" size="1">
<html:option value="0">请选择</html:option>
<html:options collection="info" property="SSid" labelProperty="SSbname"/>
</html:select>
题型:
<html:select property="tQtype.tqtId" size="1">
<option value="1">请选择</option>
<html:options collection="type" property="tqtId" labelProperty="tqtName"/>
</html:select>
<html:button property="" styleClass="inputstyle2" value="查询" onclick="sub(${param.id});"/>
<center>
<br>
<html:errors property="tqId"/>
<table width="80%" height="20" border="0" align="center" cellpadding="1" cellspacing="1" bgcolor="#7AA1E6">
<tr bordercolor="1" bgcolor="#FFFFFF">
<logic:present name="con">
<logic:notEmpty name="con" property="rs">
<tr>
<td>
本题型:共<bean:write name="con" property="count" />题
</td>
</tr>
</tr>
<logic:iterate id="lists" name="con" property="rs">
<tr bordercolor="1" bgcolor="#FFFFFF">
<td>
第<bean:write name="lists" property="tqId"/>题
</td>
</tr>
<tr bordercolor="1" bgcolor="#FFFFFF">
<td height="100">
<bean:write name="lists" property="tqName" filter="false"/>
</tr>
<tr>
<td>
选择<input name="edit_checkbox" type="checkbox" value="${lists.tqId}">
该题分数:
<input type="text" value="" styleClass="input-text" name="<bean:write name="lists" property="tqId"/>"/>
</td>
</tr>
</logic:iterate>
</table>
<table width="80%" height="20" border="0" align="center" cellpadding="1" cellspacing="">
<td>
<tr bordercolor="0" >
<td>
<div align="left">
页数:
<bean:write name="con" property="currentPage" />
/
<bean:write name="con" property="totalPage" />
每页:
<bean:write name="con" property="range" />
总数:
<bean:write name="con" property="count" />
</td>
<td align="right">
<bean:write name="con" property="fenye" filter="false" />
</td>
</tr>
</div></td>
</tr>
</table>
<table width="80%" height="20" border="0" align="center" cellpadding="1 cellspacing="" bgcolor="#7AA1E6">
<tr bordercolor="1" bgcolor="#FFFFFF">
<td width="33%" align="center">
<html:button property="" styleClass="inputstyle2" value="添加" onclick="add(${param.id});"/>
</td>
<td width="33%" align="center">
<html:reset property="" value="重选" styleClass="inputstyle2"/>
</td>
</tr>
<tr bordercolor="1" bgcolor="#FFFFFF">
<td colspan="3" align="center"><a href="">返回</a></td>
</tr>
</table>
</logic:notEmpty>
</logic:present>
</html:form>
</body>
</html:html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -