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

📄 showresult.jsp

📁 采用STRUTS+HIBERNATE做的一个学生成绩管理系统.用的ORACLE9I数据库.
💻 JSP
字号:
<%@ page language="java" pageEncoding="gbk" contentType="text/html; charset=gbk" %>

<%@ taglib uri="http://jakarta.apache.org/struts/tags-bean" prefix="bean" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-html" prefix="html" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-logic" prefix="logic" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-tiles" prefix="tiles" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    
    <title>My JSP 'showCourse.jsp' starting page</title>
    
	  <meta http-equiv="content-type" content="text/html; charset=gbk">
	  <meta http-equiv="Content-Style-Type" content="text/css">
	  <meta http-equiv="Content-Script-Type" content="text/javascript">
	  <link href="css/base.css" rel="stylesheet" type="text/css">
  </head>
  
	<body>
		<div class="header">
			<div class="headerBox">
				<table cellpadding="0" class="headerInfo" cellspacing="0" border="0">
		      <tr>
		        <td rowspan="2">
		          <span class="title">&nbsp;学生成绩管理系统</span>
		        </td>
						<td style=" text-align:right;">制作人:</td>
						<td style=" text-align:right; width:12em; ">杨诚</td>
		      </tr>
		    </table>
			</div>
		</div>
	
	<div class="screenName">
	  <a href="index.jsp">主页</a>
	  &gt;&gt;
	  成绩信息查询
	</div>

	<html:form action="result?method=search" >
	<div class="body">
	<div class="guidance">
	  成绩信息查询<br>
	</div>
	<br>
	
	<h6>検索条件</h6>
	<table width="101%" border="0" cellpadding="0" cellspacing="0" class="split">
	<tbody>
	<tr>
	  <td>
	    <div class="box">
	    <table width="100%" border="0" cellpadding="0" cellspacing="0" class="split">
	  	<tbody>
	  		<tr>
	  			<td colspan="2" class="split" style="text-align:left; vertical-align:top;">
	      		<span class=input><span class=inputCaption>学员编号</span>
	      		<input name="studentid" id="studentid" type="text" class="text2">
	      		</span><br>
	  			</td>
	  		</tr>
	  		<tr>
	  			<td colspan="2" class="split" style="text-align:left; vertical-align:top;">
	      		<span class=input><span class=inputCaption>课程编号</span>
	      		<input name="id" id="id" type="text" class="text2">
	      		</span><br>
	  			</td>
	  			</td>
	  		</tr>
	    </tbody>
	    </table>
	    </div>
	    <p>
	    <html:submit styleClass="submit" value="查询"></html:submit>
	    </p>
		</td>
	</tr>
	</tbody>
	</table>
	<p>
	</html:form>
	<h5>课程情报</h5>
	<div class="box">
	 <logic:present name="resultList">
	<table cellpadding="0" class="listTable" cellspacing="0" border="0">
	  <thead>
	    <tr>
	      <th class="caption" style=" width:10em;">编号</th>
	      <th class="caption" style=" width:10em;">学员名称</th>
	      <th class="caption" style=" width:5em;">课程名称</th>
	      <th class="caption" style=" width:5em;">评分学年</th>
	      <th class="caption" style=" width:5em;">评分种类</th>
	      <th class="caption" style=" width:5em;">评分</th> 
	      <th class="blank"></th>
	    </tr>
	  </thead>
	
	  <tbody>
		  <logic:iterate id="result"  name="resultList">
		  <bean:define id="stu" name="result" property="student"></bean:define>
		  <bean:define id="cou" name="result" property="course"></bean:define>
		    <tr class="">
		      <td><span class="tbody"><bean:write name="result" property="id" />
		      </span><br>
		      </td>
		      <td><span class="tbody"><bean:write name="stu" property="name" />
		      </span><br>
		      </td>
		      <td><span class="tbody"><bean:write name="cou" property="name" />
		      </span><br>
		      </td>
		      <td><span class="tbody"><bean:write name="result" property="gradeyear" />
		      </span><br>
		      </td>
		      <td><span class="tbody"><bean:write name="result" property="kind" />
		      </span><br>
		      </td>
		      <td><span class="tbody"><bean:write name="result" property="count" />
		      </span><br>
		      </td>
		    </tr>
		  </logic:iterate>
	  </tbody>
	</logic:present>
	<logic:notPresent name="pageNum" >
	 <font color="red" size="4"  >没有数据</font>
	</logic:notPresent>
	</table>
	</div>
	
	</body>
</html>

⌨️ 快捷键说明

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