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

📄 c14.jsp

📁 持久层hibernate技术使用的一个例子
💻 JSP
字号:
<%@ page language="java" contentType="text/html;charset=gbk" %>
<%@ taglib uri="/tags/struts-html" prefix="html" %>
<%@ taglib uri="/tags/struts-logic" prefix="logic" %>
<%@ taglib uri="/tags/struts-bean" prefix="bean" %>
<html:html>
<head>
<link href="/css/base.css" rel="stylesheet" type="text/css">
<title></title>
<html:base/>
<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.C14.action = "/CA.do?start=" + start;
        document.C14.submit();
      }
      function doChoose(operation){
      	document.C14.action="/C14.do?method="+operation;
      	document.C14.submit();
      }
      function doSearch(){
      	document.C14.action="/CA.do";
      	document.C14.submit();	
      }
</script>
</head>
<center>
<body>
<table width="80%"  border="0" align="center" cellpadding="4" cellspacing="0">
  <tr align="center" bordercolor="1">
    <td><span class="font_title">教师信息查询</span></td>
  </tr>
</table>
<html:form action="/C14.do" >
<html:hidden property="ttttid" value="111111" />
<table height="80">
<tr align="center" bordercolor="1" >
<td align="left" colspan="3">请输入查询条件:</td>
<tr align="center" bordercolor="1" >
<td width="80">教师姓名:</td>
<td><html:text property="tinfo.TName" /></td>
<td width="68">完全匹配
<input type="checkbox" name="isEq" value="checkbox"  value="true" class="input-checkbox"></td>
<tr align="center" bordercolor="1">
<td>所在部门:</td>
<td align="left">
<!--名字没有修改-->
<html:select property="dept.DId" styleClass="input-select" styleId="DId">
		<html:option value="">请选择</html:option>
 <html:options collection="dlist" property="DId" labelProperty="DName" />
</html:select>
</td></tr>
<tr align="center" bordercolor="1" >
<td>用户组:</td>
<td align="left">
<!--名字没有修改-->
 <html:select property="group.GId" styleClass="input-select" styleId="GId">
      <html:option value="">请选择</html:option>
      <html:options collection="glist" property="GId" labelProperty="GName" />
</html:select>
</td>
<td><html:submit onclick="doSearch()">查询</html:submit></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="64" height="33">教师姓名</td>
    <td width="64">所在部门</td>
    <td width="197">电子邮件</td>
    <td width="">用户组</td>
    <td width="80">修改</td>
    <td width="43">操作</td>
  </tr>
 
<logic:present name="tlist">
  	<logic:iterate id="tlist1" name="tlist" property="rs">
  <tr align="center" bordercolor="1" bgcolor="#FFFFFF">
  <!--这个链接没有改名,config中也没有配置-->
   	<td align="center"><a href="/C3.do?method=search&id=<bean:write name="tlist1" property="TId"/>">
   	<bean:write name="tlist1" property="TName"/></a></td>
   	<td align="center"><bean:write name="tlist1" property="CDept.DName"/></td>
    <td align="center"><bean:write name="tlist1" property="TEmail"/></td>
    <td align="center"><bean:write name="tlist1" property="MGroup.GName"/></td>
    <!--<a href="C15.htm" >-->
    <td align="center">修改</td>
    <td align="center"><input type="checkbox" name="ht" value="${tlist1.TId}" /></td>
   </tr>
   </logic:iterate>
</logic:present>
</table>

<logic:present name="tlist">
      <table width="80%" align="center">
        <tr>
          <td height="20" align="left">
            页数:
            <bean:write name="tlist" property="currentPage" />
            /
            <bean:write name="tlist" property="totalPage" />
            页&nbsp;每页:
            <bean:write name="tlist" property="range" />
            总数:
            <bean:write name="tlist" property="count" />
          </td>
          <td align="right">
            <bean:write name="tlist" property="fenye" filter="false" />
          </td>
        </tr>
      </table>
</logic:present>
<br><br>
<tr align="center" bordercolor="1" >
<td>
	<html:select property="method" onchange="doChoose(this.selectedIndex.value)" >
	<html:option value="">请你选择</html:option>
	<html:option value="make">生成报表</html:option>
	<html:option value="delete">删除</html:option>
	<html:option value="sendEmail">Email群发</html:option>
	</html:select>
   	&nbsp;&nbsp;&nbsp;
	<input name="all" type="checkbox" onClick="setValue(this)" />全部</td>
</tr>
<tr align="center" bordercolor="1">
<td align="center">
<html:submit>执行</html:submit>
&nbsp;&nbsp;&nbsp;
<html:submit>添加</html:submit>
<!--这个是要链接C11.htm的网页-->
</td></tr>
</table>
</html:form>
</body>
</center>
</html:html>

⌨️ 快捷键说明

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