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

📄 selectcondition.jsp

📁 基本分数查询功能,自己的毕业设计作品!希望能给大家一点帮助!
💻 JSP
字号:
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ page import = "org.xk.po.*" %>
<%@ page import = "org.xk.util.*" %>
<%@ 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"%>
<% 
	StudentUser su = new StudentUser();
	if(session.getAttribute("user") != null){
		su = (StudentUser) session.getAttribute("user");
	}
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
   
    
    <title>WEB查分系统</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
<link rel="stylesheet" type="text/css" href="../css/main.css">
    <style type="text/css">
<!--
.STYLE1 {font-size: 12px}
.STYLE2 {color: #FF0000}
-->
    </style>
    <script type="text/JavaScript">
	   var selectYear;
       function selectYear(){
	      selectYear = document.getElementById("selectYear").value;
	      document.getElementById("button1").style.visibility = "visible";
	   }
	   function submitAll(){
	    if(selectYear=="--请选择年份--") return false;
	    var class_id = document.getElementById("class_id").value;
		var port_id = document.getElementById("port_id").value;
		var stu_number = document.getElementById("stu_number").value;
	    window.location.href='selectScore.do?a=selectScore&year_id='+selectYear+'&class_id='+class_id+'&port_id='+port_id+'&stu_number='+stu_number;
	   }
    </script>
  </head>
  
  <body>
 
  <table width="960" border="0" align="center" cellpadding="0" cellspacing="0">
    <!--DWLayoutTable-->
    <tr>
      <td width="960" height="202" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
        <!--DWLayoutTable-->
        <tr>
          <td width="960" height="202" valign="top"><img src="../image/mainMB/main_01.gif" width="960" height="202"></td>
        </tr>
      </table></td>
    </tr>
    <tr>
      <td height="591" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
        <!--DWLayoutTable-->
        <tr>
          <td width="237" rowspan="2" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0"  background="../image/mainMB/main_02.gif">
            <!--DWLayoutTable-->
            <tr>
              <td width="237" height="591"><table width="200" border="0" align="center">
                <tr>
                  <td width="21"><div align="center"><img src="../image/icon/li_arrow_off.gif" width="8" height="5"></div></td>
                  <td width="163"><a href="selectCondition.do?a=selectCondition&class_id=<%=su.getClass_id() %>&port_id=<%=su.getPort_id() %>">查询分数</a></td>
                </tr>
                <tr>
                  <td><div align="center"><img src="../image/icon/li_arrow_off.gif" width="8" height="5"></div></td>
                  <td><a href="selectStudentInfo.do?a=selectStudentInfo&stu_id=<%=su.getStu_id() %>&class_id=<%=su.getClass_id() %>&port_id=<%=su.getPort_id() %>">查看个人信息</a></td>
                </tr>
                <tr>
                  <td><div align="center"><img src="../image/icon/li_arrow_off.gif" width="8" height="5"></div></td>
                  <td><a href="selectStudentUser.do?a=selectStudentUser&stu_id=<%=su.getStu_id() %>">修改密码</a></td>
                </tr>
                <tr>
                  <td>&nbsp;</td>
                  <td>&nbsp;</td>
                </tr>
                <tr>
                  <td>&nbsp;</td>
                  <td>&nbsp;</td>
                </tr>
                <tr>
                  <td>&nbsp;</td>
                  <td>&nbsp;</td>
                </tr>
                <tr>
                  <td height="397">&nbsp;</td>
                  <td>&nbsp;</td>
                </tr>
              </table></td>
            </tr>
          </table></td>
          <td width="723" height="47" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0" background="../image/mainMB/main_03.gif">
            <!--DWLayoutTable-->
            <tr>
              <td width="723" height="47"><div><table width="695" border="0" align="center">
                <tr>
                  <td width="22"><img src="../image/icon/heec_002.gif"></td>
                  <td width="663"><span class="STYLE1">欢迎</span><span class="STYLE2"><%=su.getStu_name() %></span><span class="STYLE1">同学来到WEB查分系统!</span><img src="../image/icon/li_arrow_off.gif" width="8" height="5">&nbsp;<a href="logout.jsp"><strong>注销</strong></a>&nbsp;<img src="../image/icon/li_arrow_off.gif" width="8" height="5"></td>
                </tr>
              </table>
              </div></td>
              </tr>
          </table></td>
        </tr>
        <tr>
          <td height="544" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0" background="../image/mainMB/main_04.gif">
            <!--DWLayoutTable-->
            <tr>
              <td width="723" height="544"><table width="528" height="74" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#666666" bgcolor="#CCCCCC">
                  <tr>
                    <td height="30" colspan="6"><input id="stu_number" type="hidden" value="<%=su.getStu_number()%>"><input id="class_id" type="hidden" value="${classList.class_id}"><input id="port_id" type="hidden" value="${portList.port_id}"><span class="STYLE1">您是<span class="STYLE2">${portList.port_department}&nbsp;${classList.class_name}</span>的学生,请选择年份以便查询!</span></td>
                  </tr>
                  <tr>
                    <td height="42" colspan="6" align="center"><div>
                      <select id="selectYear"  onChange="selectYear();">
                        <option>--请选择年份--</option>
                        <logic:iterate id="yearList" name="yearList">
						<%HashMap hm = (HashMap)yearList;%>
						<option value="<%=hm.get("year_id")%>">
						<%=hm.get("year_name")%>
						</option>
						</logic:iterate>
                      </select><div id="button1" style="visibility:hidden;"><input type="button" value="查询分数" onClick="return submitAll();">
                      <input type="button" value="返回">
                      </div></div>
                       </td>
                  </tr>
                  
          

                </table>
              <br/><br/><br/><br/><br/><br/>   <br/><br/><br/><br/><br/><br/> <br/><br/><br/><br/><br/><br/></td>
            </tr>
          </table>
          </td>
        </tr>
        
      </table></td>
    </tr>
    <tr>
      <td height="127" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0" background="../image/mainMB/main_05.gif">
        <!--DWLayoutTable-->
        <tr>
          <td width="960" height="127"><table width="97%" border="0" align="center" cellpadding="0" cellspacing="0">
          <!--DWLayoutTable-->
          <tr>
            <td width="960" height="7"></td>
              </tr>
          <tr>
            <td height="16" valign="top"> <div align="center"><span class="STYLE6"><span class="STYLE7 STYLE1">Copyright@2007 千寻查分系统 All Rights Reserved </span><img src="../image/img/xml.gif" width="36" height="14"></span></div></td>
              </tr>
          <tr>
            <td height="14" valign="top"><div align="center"><span class="STYLE7 STYLE1">备案序号 皖ICP备07000520</span></div></td>
              </tr>
          <tr>
            <td height="31" valign="top"><div align="center"><img src="../image/main/pic_bottom.gif" width="36" height="31"><img src="../image/img/w3c_xhtml.gif" width="88" height="31" border="0"><img src="../image/img/w3c_css.gif" width="88" height="31"><img src="../image/main/12681_safety.gif" width="36" height="31"></div></td>
              </tr>
          
          
          </table></td>
        </tr>
      </table>
      </td>
    </tr>
  </table>
  </body>
</html>

⌨️ 快捷键说明

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