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.
pyexr2f4a/WebContent/RepairedAdd.jsp

67 lines
2.2 KiB

5 years ago
<%@ page import="java.util.Date" %>
<%@ page import="java.text.SimpleDateFormat" %><%--
Created by IntelliJ IDEA.
User: 黄瑛
Date: 2019/10/24
Time: 16:03
To change this template use File | Settings | File Templates.
--%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>网上报修</title>
<style>
body{
background-image:url("Images/bg11.jpg"); /* 随便选的图,记得改啊卧槽!*/
background-size: cover;
}
</style>
<style type="text/css">
*{margin: 0;padding: 0;}
form{margin: 0 auto;padding:15px; width: 300px;height:300px;text-align:center;font-size:25px;}
#submit{padding: 20px}
#submit input{width: 60px;height: 40px;}
</style>
</head>
<body>
<div align="right" style="color: lavender">欢迎你,<%=request.getParameter("Username")%></div>
<div class="wrapper">
<form action="<%=request.getContextPath()%>/loginDemo" method="post">
<label>报修宿舍:</label>
<input type="text" name="num" value="${param.num}" size="15" style="height:30px;weight:100px;"/><br><br>
<label>损坏物品:</label>
<input type="text" name="item" size="15" style="height:30px;weight:100px;"/><br><br>
<label>可修时间:</label>
<input type="text" name="time" size="15" style="height:30px;weight:100px;"/><br><br>
<label>维修状态:</label>
<input type="text" name="status" size="15" style="height:30px;weight:100px;"/><br><br>
<font color="red">
<%
if(request.getAttribute("message")!= null){
out.print(request.getAttribute("message"));
}
%>
</font>
<div id="submit">
<input type="submit" value="确定" size="10"/>
</div>
</form>
</div>
<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>