You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
100 lines
3.9 KiB
100 lines
3.9 KiB
<%--
|
|
Created by IntelliJ IDEA.
|
|
User: MaCong
|
|
Date: 2019/10/24
|
|
Time: 10:04
|
|
To change this template use File | Settings | File Templates.
|
|
--%>
|
|
<%@ page contentType="text/html;charset=UTF-8" language="java" import="java.util.*" pageEncoding="UTF-8"%>
|
|
<%@ page import="java.text.SimpleDateFormat" %>
|
|
<%@ page import="java.util.Date" %>
|
|
<!DOCTYPE html>
|
|
<%
|
|
String path = request.getContextPath();
|
|
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
|
|
%>
|
|
|
|
|
|
<body style="background:url(Images/bj_zhuce.jpg)">
|
|
<div align="right" > </div>
|
|
|
|
<html>
|
|
<head>
|
|
<title>用户登录</title>
|
|
<base href="<%=basePath%>">
|
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
|
<meta name="viewport" content="width=device-width,initial-scale=1.0,
|
|
minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
|
|
<link href="Style/Style.css" rel="stylesheet" type="text/css" />
|
|
</head>
|
|
<script type="text/javascript" language="JavaScript">
|
|
function validate_form() {
|
|
var name = document.getElementById("Username").value;
|
|
var password = document.getElementById("password").value;
|
|
if (name == null || name == "") {
|
|
alert("您的用户名不能为空");
|
|
return false;
|
|
}
|
|
if (password == null || password == "") {
|
|
alert("您的密码不能为空");
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|
|
</script>
|
|
<img src="Images/157776728736064.png">
|
|
<form action="addStudent.jsp" onsubmit="return validate_form()" method="post">
|
|
<center>
|
|
<table width="900" border="0" cellspacing="0" cellpadding="0" style="margin: auto">
|
|
<tr>
|
|
<td height="60" bgcolor="#E6F5FF" style="color:#7817c0; font-size:25px; font-weight:bolder; padding-left:50px;">高校学生公寓管理系统</td>
|
|
</tr>
|
|
<tr>
|
|
<td height="30" background="Images/MenuBg.jpg"> </td>
|
|
</tr>
|
|
<tr>
|
|
<td height="500" align="center" bgcolor="#E6F5FF" valign="top"><table width="900" border="0" cellspacing="0" cellpadding="0">
|
|
<tr>
|
|
|
|
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
|
<tr>
|
|
<td width="33%" height="30" align="right"> </td>
|
|
<td width="67%"> </td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td width="800" height="80" align="right" class="STYLE2">用户名:</td>
|
|
<td width="300" align="left"><input style="color: red;font-size:30px;" size="20" type="text" name="Username" id="Username" class="text1" /></td>
|
|
</tr>
|
|
<tr>
|
|
<td height="20" align="right" class="STYLE2">密码:</td>
|
|
<td width="300" align="left"><input style="color: green;font-size:30px;" size="20" type="password" name="password" id="password" class="text1" /></td>
|
|
</tr>
|
|
<tr>
|
|
<td height="100"> </td>
|
|
<td><input type="submit" name="button" id="button" value="登录"></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table></td>
|
|
</tr>
|
|
</table></td>
|
|
</tr>
|
|
<tr>
|
|
<td height="35" background="Images/bootBg.jpg"> </td>
|
|
</tr>
|
|
</table>
|
|
|
|
</center>
|
|
</form>
|
|
<div align="center" style="width: 100%;position: fixed;bottom: 0;color:yellow">
|
|
<%!Date time= new Date();%>
|
|
<%
|
|
SimpleDateFormat sdf1 = new SimpleDateFormat("yyyy年MM月dd日 E HH时mm分ss秒");
|
|
%>
|
|
<h3><% out.println(sdf1.format(time)); %></h3>
|
|
</div>
|
|
</body>
|
|
</html>
|