⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 a200.jsp

📁 持久层hibernate技术使用的一个例子
💻 JSP
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ 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"%>
<%@	taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ page import="cn.hope.mana.action.*" %>

<html:html>
<head>
<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) {
        document.U05A200Form.action = "/U05A200Action.do?method=search&start=" + start;
        document.U05A200Form.submit();
      }
     function update() {
        document.U05A200Form.method.value = "update";
        document.U05A200Form.submit();
      }
     function back() {
        document.U05A200Form.method.value = "back";
        document.U05A200Form.submit();
      }
     function search() {
        document.U05A200Form.method.value = "search";
        document.U05A200Form.submit();
      }    
</script>
</head>

<body>
<p>&nbsp;</p>
<html:form action="/U05A200Action">
<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="17%">
		学科:<html:select property="subject" >
				<html:options collection="SSbname" property="SSid" labelProperty="SSbname"/>
			</html:select>
	</td>
	<td width="17%">		
		题型:<html:select property="type" >
				<html:options collection="tqtName" property="tqtId" labelProperty="tqtName"/>
			</html:select>
	</td>
	<td width="10%"><html:errors property="selectError"/></td>
	<td width="5%">
		<html:button property="" styleClass="inputstyle2" onclick="search()">查 询</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="50%">考题内容</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="fenye">
		<logic:iterate id="questionsList" name="fenye" property="rs">
			<tr align="center" bordercolor="1" bgcolor="#FFFFFF">
				<td width="10%"><bean:write name="questionsList" property="tqId"/></td>
				<td width="50%">
					<html:link href="/U05ForwardA203Action.do?questionID=${questionsList.tqId}&method=search">
						<bean:write name="questionsList" property="tqName"/>
					</html:link>
				</td>
				<td width="10%"><bean:write name="questionsList" property="tqNumber"/></td>
				<td width="10%"><input name="tqId" type="checkbox" value="${questionsList.tqId}"/></td>
			</tr>
		</logic:iterate>
	</logic:present>
</table>
	
	<logic:present name="fenye">
      <table width="80%" align="center">
        <tr>
          <td height="20" align="left">
            页数:
            <bean:write name="fenye" property="currentPage" />
            /
            <bean:write name="fenye" property="totalPage" />
            页&nbsp;每页:
            <bean:write name="fenye" property="range" />
            总数:
            <bean:write name="fenye" property="count" />
          </td>
   	      <td align="right">
            <bean:write name="fenye" property="fenye" filter="false" />
          </td>
        </tr>
      </table>
    </logic:present>  
      
<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>
</html:form>
</body>
</html:html>



⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -