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

📄 teacher_user.jsp

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

<!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">
	-->

    <style type="text/css">
<!--
.STYLE2 {
	font-size: 14px;
	font-weight: bold;
}
-->
    </style>
</head>
  
  
      <script  language="javascript" type="text/javascript">
     function validateForm(){
	    var u1 = document.getElementById("u1").value;
		var p1 = document.getElementById("p1").value;
		if(p1==""||p1==null||u1==""||u1==null){
		alert("错误:用户名密码不能为空!");
		return false;
		}
	 }
  </script>
  <body>
  <br/><br/>
  <table width="750" border="0" align="center" cellpadding="0" cellspacing="0" background="../image/user_bg.gif">
    <!--DWLayoutTable-->
    <tr>
      <td width="186" height="247">&nbsp;</td>
      <td width="450">&nbsp;</td>
      <td width="114">&nbsp;</td>
    </tr>
    <tr>
      <td height="184">&nbsp;</td>
      <td valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
        <!--DWLayoutTable-->
        <tr>
          <td width="450" height="184"><form action="teacher.do?a=teacherLogin&port_id=<%=pu.getPort_id() %>" method="post"><table width="445" height="114" border="0">
            <tr>
              <td width="89"><div align="center"><span class="STYLE2">用户名:</span></div></td>
              <td width="340"><input type="text" name="teacher_user" id="u1" style="height:20; width:220"></td>
            </tr>
            <tr>
              <td><div align="center"><span class="STYLE2">密码:</span></div></td>
              <td><input type="password" name="teacher_password" id="p1" style="height:20; width:220"></td>
            </tr>
            <tr>
              <td>&nbsp;</td>
              <td><input type="submit" name="Submit" value="提交" onClick="return validateForm();">&nbsp;&nbsp;
                <input type="reset" name="Submit2" value="重置">&nbsp;&nbsp;<input name="" type="button" value="返回首页" onClick="window.location.href='../index.jsp'">  </td>
            </tr>
          </table></form></td>
        </tr>
      </table>
      </td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td height="69">&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
    </tr>
  </table>
  </body>
</html>

⌨️ 快捷键说明

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