📄 teacher_user.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">
</td>
<td width="450">
</td>
<td width="114">
</td>
</tr>
<tr>
<td height="184">
</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>
</td>
<td>
<input type="submit" name="Submit" value="提交"
onClick="return validateForm();">
<input type="reset" name="Submit2" value="重置">
<input name="" type="button" value="返回首页"
onClick="window.location.href='../index.jsp'">
</td>
</tr>
</table>
</form>
</td>
</tr>
</table>
</td>
<td>
</td>
</tr>
<tr>
<td height="69">
</td>
<td>
</td>
<td>
</td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -