📄 examlogin.jsp
字号:
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<style>
body { background:url(<%=basePath%>admins/images/loginbg.gif) no-repeat; }
p { font-family:"黑体"; font-size:30px; margin:100px 0 0 250px; color:#FFFFFF;}
.right { margin:165px 0 0 250px; }
</style>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>在线考试</title>
<script type="text/javascript">
function check_login(o){
if(o.examNumber.value==""){
alert("请输入准考证号!");
return false;
}
if(o.password.value==""){
alert("请输入密码!");
return false;
}
}
</script>
</head>
<body>
<p style="font-family:'黑体'; font-size:30px; margin:100px 0 0 250px; color:#FFFFFF;"> 考不过?...我不信!</p>
<div style="margin:165px 0 0 450px;"><h1 style="padding-left:50px;">银河考试系统</h1>
<ul style="padding-top:1;list-style-type:none">
<form action="<%=path%>/admins/exam/exam.html?method=login" method="post" onsubmit="return check_login(this);">
<li>考号:
<input type="text" size="19" name="examNumber" />
</li>
<li>密码:
<input type="password" size="20" name="password" />
</li>
<li><input type="submit" value="登陆"/></li>
</form>
</ul>
</div>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -