This commit is contained in:
2023-06-05 23:52:15 +08:00
commit 35ec24f344
26 changed files with 1518 additions and 0 deletions

6
web/WEB-INF/web.xml Normal file
View File

@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_4_0.xsd"
version="4.0">
</web-app>

16
web/error.jsp Normal file
View File

@@ -0,0 +1,16 @@
<%--
Created by IntelliJ IDEA.
User: LDQ
Date: 2023/6/5
Time: 19:06
To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
<title>ERROR</title>
</head>
<body>
<h1>系统错误,错误信息:${errorMsg}</h1>
</body>
</html>

34
web/flight.html Normal file
View File

@@ -0,0 +1,34 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
</head>
<body>
<table border="1" align="center" style="border-collapse: collapse;width: 80%">
<tr align="center">
<th align="center">航号</th>
<th align="center">航空公司</th>
<th align="center">出发机场</th>
<th align="center">达到机场</th>
<th align="center">出发时间</th>
<th align="center">到达时间</th>
<th align="center">机型</th>
<th align="center">操作</th>
</tr>
<tr align="center">
<td align="center">MYKT001</td>
<td align="center">中国东方航空</td>
<td align="center">武汉天河机场</td>
<td align="center">北京首都机场</td>
<td align="center">2022年5月25日 12:00</td>
<td align="center">2022年5月25日 14:00</td>
<td align="center">735</td>
<td align="center"><a href="#">修改</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href="#">删除</a></td>
</tr>
</table>
</body>
</html>

16
web/index.jsp Normal file
View File

@@ -0,0 +1,16 @@
<%--
Created by IntelliJ IDEA.
User: LDQ
Date: 2023/6/5
Time: 17:52
To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
<title>$Title$</title>
</head>
<body>
$END$
</body>
</html>

26
web/insertFlight.jsp Normal file
View File

@@ -0,0 +1,26 @@
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>添加航班信息</title>
</head>
<body>
<div>
<h1>添加数据</h1>
<form action="insert" method="post">
<label>航&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;号:&nbsp;<input type="text" name="flightId" value="${flight.flightId}"></label><br>
<label>航空公司:&nbsp;<input type="text" name="company"></label><br>
<label>出发机场:&nbsp;<input type="text" name="departureAirport"></label><br>
<label>达到机场:&nbsp;<input type="text" name="arriveAirport"></label><br>
<label>出发时间:&nbsp;<input type="text" name="departureTime"></label><br>
<label>到达时间:&nbsp;<input type="text" name="arriveTime"></label><br>
<label>机&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;型:&nbsp;<input type="text" name="model"></label><br>
<input type="submit" value="提交">
</form>
</div>
</body>
</html>

46
web/show.jsp Normal file
View File

@@ -0,0 +1,46 @@
<%--
Created by IntelliJ IDEA.
User: LDQ
Date: 2023/6/5
Time: 18:42
To change this template use File | Settings | File Templates.
--%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
<title>航班系统</title>
</head>
<body>
<table border="1" align="center" style="border-collapse: collapse;width: 80%">
<tr align="center">
<th align="center">序号</th>
<th align="center">航号</th>
<th align="center">航空公司</th>
<th align="center">出发机场</th>
<th align="center">达到机场</th>
<th align="center">出发时间</th>
<th align="center">到达时间</th>
<th align="center">机型</th>
<th align="center">操作</th>
</tr>
<c:forEach items="${flights}" var="f" varStatus="i">
<tr align="center">
<td align="center">${i.index+1}</td>
<td align="center">${f.flightId}</td>
<td align="center">${f.company}</td>
<td align="center">${f.departureAirport}</td>
<td align="center">${f.arriveAirport}</td>
<td align="center">${f.departureTime}</td>
<td align="center">${f.arriveTime}</td>
<td align="center">${f.model}</td>
<td align="center"><a href="/JavaWeb_Flight_System_war_exploded/update?id=${f.id}">修改</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href="/JavaWeb_Flight_System_war_exploded/deleteFlight?id=${f.id}">删除</a></td>
</tr>
</c:forEach>
<a href="insertFlight.jsp">点击添加航班</a>
</table>
</body>
</html>

24
web/updateFlight.html Normal file
View File

@@ -0,0 +1,24 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
</head>
<body>
<div >
<h1>修改数据</h1>
<form>
<label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;号:&nbsp;<input type="text"></label><br>
<label>航空公司:&nbsp;<input type="text"></label><br>
<label>出发机场:&nbsp;<input type="text"></label><br>
<label>达到机场:&nbsp;<input type="text"></label><br>
<label>出发时间:&nbsp;<input type="text"></label><br>
<label>到达时间:&nbsp;<input type="text"></label><br>
<label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;型:&nbsp;<input type="text"></label><br>
<input type="submit" value="提交">
</form>
</div>
</body>
</html>

27
web/updateFlight.jsp Normal file
View File

@@ -0,0 +1,27 @@
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>修改航班信息</title>
</head>
<body>
<div>
<h1>修改数据</h1>
<form action="update" method="post">
<input type="hidden" name="id" value="${flight.id}"></label><br>
<label>航&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;号:&nbsp;<input type="text" name="flightId" value="${flight.flightId}"></label><br>
<label>航空公司:&nbsp;<input type="text" value="${flight.company}" name="company"></label><br>
<label>出发机场:&nbsp;<input type="text" value="${flight.departureAirport}" name="departureAirport"></label><br>
<label>达到机场:&nbsp;<input type="text" value="${flight.arriveAirport}" name="arriveAirport"></label><br>
<label>出发时间:&nbsp;<input type="text" value="${flight.departureTime}" name="departureTime"></label><br>
<label>到达时间:&nbsp;<input type="text" value="${flight.arriveTime}" name="arriveTime"></label><br>
<label>机&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;型:&nbsp;<input type="text" value="${flight.model}" name="model"></label><br>
<input type="submit" value="提交">
</form>
</div>
</body>
</html>